Searched refs:region_entries_per_slot (Results 1 – 1 of 1) sorted by relevance
49 unsigned char region_entries_per_slot; /* Number of entries in one region table slot */ member93 sctx->region_entries_per_slot = (sizeof(region_table_slot_t) * 8) / sctx->region_table_entry_bits; in alloc_region_table()94 if (!(sctx->region_entries_per_slot & (sctx->region_entries_per_slot - 1))) in alloc_region_table()95 sctx->region_entries_per_slot_bits = __ffs(sctx->region_entries_per_slot); in alloc_region_table()109 if (sector_div(nr_slots, sctx->region_entries_per_slot)) in alloc_region_table()132 *bit = region_nr & (sctx->region_entries_per_slot - 1); in switch_get_position()134 *region_index = region_nr / sctx->region_entries_per_slot; in switch_get_position()135 *bit = region_nr % sctx->region_entries_per_slot; in switch_get_position()