Lines Matching refs:et
619 static int dm_exception_table_init(struct dm_exception_table *et, in dm_exception_table_init() argument
624 et->hash_shift = hash_shift; in dm_exception_table_init()
625 et->hash_mask = size - 1; in dm_exception_table_init()
626 et->table = dm_vcalloc(size, sizeof(struct list_head)); in dm_exception_table_init()
627 if (!et->table) in dm_exception_table_init()
631 INIT_LIST_HEAD(et->table + i); in dm_exception_table_init()
636 static void dm_exception_table_exit(struct dm_exception_table *et, in dm_exception_table_exit() argument
643 size = et->hash_mask + 1; in dm_exception_table_exit()
645 slot = et->table + i; in dm_exception_table_exit()
651 vfree(et->table); in dm_exception_table_exit()
654 static uint32_t exception_hash(struct dm_exception_table *et, chunk_t chunk) in exception_hash() argument
656 return (chunk >> et->hash_shift) & et->hash_mask; in exception_hash()
668 static struct dm_exception *dm_lookup_exception(struct dm_exception_table *et, in dm_lookup_exception() argument
674 slot = &et->table[exception_hash(et, chunk)]; in dm_lookup_exception()