Lines Matching refs:class_value
735 int add_perm_to_class(uint32_t perm_value, uint32_t class_value) in add_perm_to_class() argument
741 assert(class_value >= 1); in add_perm_to_class()
743 if (class_value > scope->class_perms_len) { in add_perm_to_class()
746 class_value * sizeof(*new_map)); in add_perm_to_class()
751 for (i = scope->class_perms_len; i < class_value; i++) { in add_perm_to_class()
754 scope->class_perms_len = class_value; in add_perm_to_class()
756 if (ebitmap_set_bit(scope->class_perms_map + class_value - 1, in add_perm_to_class()
1140 static int is_perm_in_scope_index(uint32_t perm_value, uint32_t class_value, in is_perm_in_scope_index() argument
1143 if (class_value > scope->class_perms_len) { in is_perm_in_scope_index()
1146 if (ebitmap_get_bit(scope->class_perms_map + class_value - 1, in is_perm_in_scope_index()
1153 static int is_perm_in_stack(uint32_t perm_value, uint32_t class_value, in is_perm_in_stack() argument
1162 (perm_value, class_value, &decl->required) in is_perm_in_stack()
1163 || is_perm_in_scope_index(perm_value, class_value, in is_perm_in_stack()
1173 return is_perm_in_stack(perm_value, class_value, stack->parent); in is_perm_in_stack()