Lines Matching refs:sc_level
160 int sc_level; member
180 int level, sc_level, next_sc_level; in assoc_array_walk() local
244 sc_level = level + ASSOC_ARRAY_LEVEL_STEP; in assoc_array_walk()
245 BUG_ON(sc_level > shortcut->skip_to_level); in assoc_array_walk()
252 if ((sc_level & ASSOC_ARRAY_KEY_CHUNK_MASK) == 0) in assoc_array_walk()
253 segments = ops->get_key_chunk(index_key, sc_level); in assoc_array_walk()
255 sc_segments = shortcut->index_key[sc_level >> ASSOC_ARRAY_KEY_CHUNK_SHIFT]; in assoc_array_walk()
258 if (round_up(sc_level, ASSOC_ARRAY_KEY_CHUNK_SIZE) > shortcut->skip_to_level) { in assoc_array_walk()
264 next_sc_level = sc_level + ASSOC_ARRAY_KEY_CHUNK_SIZE; in assoc_array_walk()
272 result->wrong_shortcut.sc_level = sc_level; in assoc_array_walk()
278 sc_level = next_sc_level; in assoc_array_walk()
279 } while (sc_level < shortcut->skip_to_level); in assoc_array_walk()
283 if (((level ^ sc_level) & ~ASSOC_ARRAY_KEY_CHUNK_MASK) != 0) { in assoc_array_walk()
284 level = sc_level; in assoc_array_walk()
287 level = sc_level; in assoc_array_walk()
801 int level, sc_level, diff; in assoc_array_insert_mid_shortcut() local
806 sc_level = result->wrong_shortcut.sc_level; in assoc_array_insert_mid_shortcut()
811 __func__, level, dissimilarity, sc_level); in assoc_array_insert_mid_shortcut()
821 diff += sc_level & ~ASSOC_ARRAY_KEY_CHUNK_MASK; in assoc_array_insert_mid_shortcut()