Lines Matching refs:level

61 	u32 level = 0;  in sidtab_level_from_count()  local
65 ++level; in sidtab_level_from_count()
67 return level; in sidtab_level_from_count()
70 static int sidtab_alloc_roots(struct sidtab *s, u32 level) in sidtab_alloc_roots() argument
80 for (l = 1; l <= level; ++l) in sidtab_alloc_roots()
94 u32 level, capacity_shift, leaf_index = index / SIDTAB_LEAF_ENTRIES; in sidtab_do_lookup() local
97 level = sidtab_level_from_count(index + 1); in sidtab_do_lookup()
98 capacity_shift = level * SIDTAB_INNER_SHIFT; in sidtab_do_lookup()
101 if (alloc && sidtab_alloc_roots(s, level) != 0) in sidtab_do_lookup()
105 entry = &s->roots[level]; in sidtab_do_lookup()
106 while (level != 0) { in sidtab_do_lookup()
108 --level; in sidtab_do_lookup()
174 u32 *pos, u32 count, u32 level, in sidtab_find_context() argument
180 if (level != 0) { in sidtab_find_context()
186 pos, count, level - 1, in sidtab_find_context()
246 u32 count, count_locked, level, pos; in sidtab_reverse_lookup() local
257 level = sidtab_level_from_count(count); in sidtab_reverse_lookup()
260 rc = sidtab_find_context(s->roots[level], &pos, count, level, in sidtab_reverse_lookup()
272 level = sidtab_level_from_count(count_locked); in sidtab_reverse_lookup()
361 u32 *pos, u32 count, u32 level, in sidtab_convert_tree() argument
367 if (level != 0) { in sidtab_convert_tree()
378 pos, count, level - 1, in sidtab_convert_tree()
409 u32 count, level, pos; in sidtab_convert() local
421 level = sidtab_level_from_count(count); in sidtab_convert()
445 rc = sidtab_convert_tree(&params->target->roots[level], in sidtab_convert()
446 &s->roots[level], &pos, count, level, params); in sidtab_convert()
456 static void sidtab_destroy_tree(union sidtab_entry_inner entry, u32 level) in sidtab_destroy_tree() argument
460 if (level != 0) { in sidtab_destroy_tree()
467 sidtab_destroy_tree(node->entries[i], level - 1); in sidtab_destroy_tree()
483 u32 i, level; in sidtab_destroy() local
489 level = SIDTAB_MAX_LEVEL; in sidtab_destroy()
490 while (level && !s->roots[level].ptr_inner) in sidtab_destroy()
491 --level; in sidtab_destroy()
493 sidtab_destroy_tree(s->roots[level], level); in sidtab_destroy()