• Home
  • Raw
  • Download

Lines Matching refs:count

32 	s->count = 0;  in sidtab_init()
121 static u32 sidtab_level_from_count(u32 count) in sidtab_level_from_count() argument
126 while (count > capacity) { in sidtab_level_from_count()
198 u32 count = smp_load_acquire(&s->count); in sidtab_lookup() local
200 if (index >= count) in sidtab_lookup()
241 u32 count; in sidtab_context_to_sid() local
259 count = smp_load_acquire(&s->count); in sidtab_context_to_sid()
264 if (count >= SIDTAB_MAX) in sidtab_context_to_sid()
269 dst = sidtab_do_lookup(s, count, 1); in sidtab_context_to_sid()
273 dst->sid = index_to_sid(count); in sidtab_context_to_sid()
285 dst_convert = sidtab_do_lookup(convert->target, count, 1); in sidtab_context_to_sid()
297 dst_convert->sid = index_to_sid(count); in sidtab_context_to_sid()
298 convert->target->count = count + 1; in sidtab_context_to_sid()
308 *sid = index_to_sid(count); in sidtab_context_to_sid()
311 smp_store_release(&s->count, count + 1); in sidtab_context_to_sid()
320 static void sidtab_convert_hashtable(struct sidtab *s, u32 count) in sidtab_convert_hashtable() argument
325 for (i = 0; i < count; i++) { in sidtab_convert_hashtable()
337 u32 *pos, u32 count, u32 level, in sidtab_convert_tree() argument
351 while (i < SIDTAB_INNER_ENTRIES && *pos < count) { in sidtab_convert_tree()
354 pos, count, level - 1, in sidtab_convert_tree()
368 while (i < SIDTAB_LEAF_ENTRIES && *pos < count) { in sidtab_convert_tree()
386 u32 count, level, pos; in sidtab_convert() local
397 count = s->count; in sidtab_convert()
398 level = sidtab_level_from_count(count); in sidtab_convert()
403 rc = sidtab_do_lookup(params->target, count - 1, 1) ? 0 : -ENOMEM; in sidtab_convert()
410 params->target->count = count; in sidtab_convert()
418 pr_info("SELinux: Converting %u SID table entries...\n", count); in sidtab_convert()
423 &s->roots[level], &pos, count, level, params); in sidtab_convert()
436 sidtab_convert_hashtable(params->target, count); in sidtab_convert()