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 = dm_vcalloc(size, sizeof(struct hlist_bl_head)); in dm_exception_table_init()
662 if (!et->table) in dm_exception_table_init()
666 INIT_HLIST_BL_HEAD(et->table + i); in dm_exception_table_init()
671 static void dm_exception_table_exit(struct dm_exception_table *et, in dm_exception_table_exit() argument
679 size = et->hash_mask + 1; in dm_exception_table_exit()
681 slot = et->table + i; in dm_exception_table_exit()
687 vfree(et->table); in dm_exception_table_exit()
690 static uint32_t exception_hash(struct dm_exception_table *et, chunk_t chunk) in exception_hash() argument
692 return (chunk >> et->hash_shift) & et->hash_mask; in exception_hash()
704 static struct dm_exception *dm_lookup_exception(struct dm_exception_table *et, in dm_lookup_exception() argument
711 slot = &et->table[exception_hash(et, chunk)]; in dm_lookup_exception()