Lines Matching refs:et
604 static int dm_exception_table_init(struct dm_exception_table *et, in dm_exception_table_init() argument
609 et->hash_shift = hash_shift; in dm_exception_table_init()
610 et->hash_mask = size - 1; in dm_exception_table_init()
611 et->table = dm_vcalloc(size, sizeof(struct list_head)); in dm_exception_table_init()
612 if (!et->table) in dm_exception_table_init()
616 INIT_LIST_HEAD(et->table + i); in dm_exception_table_init()
621 static void dm_exception_table_exit(struct dm_exception_table *et, in dm_exception_table_exit() argument
628 size = et->hash_mask + 1; in dm_exception_table_exit()
630 slot = et->table + i; in dm_exception_table_exit()
636 vfree(et->table); in dm_exception_table_exit()
639 static uint32_t exception_hash(struct dm_exception_table *et, chunk_t chunk) in exception_hash() argument
641 return (chunk >> et->hash_shift) & et->hash_mask; in exception_hash()
653 static struct dm_exception *dm_lookup_exception(struct dm_exception_table *et, in dm_lookup_exception() argument
659 slot = &et->table[exception_hash(et, chunk)]; in dm_lookup_exception()