Lines Matching refs:et
627 static uint32_t exception_hash(struct dm_exception_table *et, chunk_t chunk);
657 static int dm_exception_table_init(struct dm_exception_table *et, in dm_exception_table_init() argument
662 et->hash_shift = hash_shift; in dm_exception_table_init()
663 et->hash_mask = size - 1; in dm_exception_table_init()
664 et->table = kvmalloc_array(size, sizeof(struct hlist_bl_head), in dm_exception_table_init()
666 if (!et->table) in dm_exception_table_init()
670 INIT_HLIST_BL_HEAD(et->table + i); in dm_exception_table_init()
675 static void dm_exception_table_exit(struct dm_exception_table *et, in dm_exception_table_exit() argument
683 size = et->hash_mask + 1; in dm_exception_table_exit()
685 slot = et->table + i; in dm_exception_table_exit()
693 kvfree(et->table); in dm_exception_table_exit()
696 static uint32_t exception_hash(struct dm_exception_table *et, chunk_t chunk) in exception_hash() argument
698 return (chunk >> et->hash_shift) & et->hash_mask; in exception_hash()
710 static struct dm_exception *dm_lookup_exception(struct dm_exception_table *et, in dm_lookup_exception() argument
717 slot = &et->table[exception_hash(et, chunk)]; in dm_lookup_exception()