Lines Matching refs:et
624 static uint32_t exception_hash(struct dm_exception_table *et, chunk_t chunk);
654 static int dm_exception_table_init(struct dm_exception_table *et, in dm_exception_table_init() argument
659 et->hash_shift = hash_shift; in dm_exception_table_init()
660 et->hash_mask = size - 1; in dm_exception_table_init()
661 et->table = kvmalloc_array(size, sizeof(struct hlist_bl_head), in dm_exception_table_init()
663 if (!et->table) in dm_exception_table_init()
667 INIT_HLIST_BL_HEAD(et->table + i); in dm_exception_table_init()
672 static void dm_exception_table_exit(struct dm_exception_table *et, in dm_exception_table_exit() argument
680 size = et->hash_mask + 1; in dm_exception_table_exit()
682 slot = et->table + i; in dm_exception_table_exit()
688 kvfree(et->table); in dm_exception_table_exit()
691 static uint32_t exception_hash(struct dm_exception_table *et, chunk_t chunk) in exception_hash() argument
693 return (chunk >> et->hash_shift) & et->hash_mask; in exception_hash()
705 static struct dm_exception *dm_lookup_exception(struct dm_exception_table *et, in dm_lookup_exception() argument
712 slot = &et->table[exception_hash(et, chunk)]; in dm_lookup_exception()