Searched refs:hash_mask (Results 1 - 12 of 12) sorted by relevance

/linux-4.4.14/drivers/md/persistent-data/
H A Ddm-persistent-data-internal.h12 static inline unsigned dm_hash_block(dm_block_t b, unsigned hash_mask) dm_hash_block() argument
16 return (((unsigned) b) * BIG_PRIME) & hash_mask; dm_hash_block()
/linux-4.4.14/net/mac80211/
H A Dmesh_pathtbl.c77 for (i = 0; i <= tbl->hash_mask; i++) \
107 newtbl->hash_mask = (1 << size_order) - 1; mesh_table_alloc()
111 for (i = 0; i <= newtbl->hash_mask; i++) mesh_table_alloc()
133 for (i = 0; i <= tbl->hash_mask; i++) { mesh_table_free()
163 < oldtbl->mean_chain_len * (oldtbl->hash_mask + 1)) mesh_table_grow()
173 for (i = 0; i <= oldtbl->hash_mask; i++) mesh_table_grow()
181 for (i = 0; i <= newtbl->hash_mask; i++) { mesh_table_grow()
193 tbl->hash_rnd) & tbl->hash_mask; mesh_table_hash()
588 tbl->mean_chain_len * (tbl->hash_mask + 1))
717 tbl->mean_chain_len * (tbl->hash_mask + 1))
H A Dmesh.h133 * @hash_mask: 2^size_order - 1, used to compute hash idx
151 unsigned int hash_mask; /* (2^size_order) - 1 */ member in struct:mesh_table
/linux-4.4.14/drivers/net/ethernet/intel/igbvf/
H A Dvf.c190 u32 hash_value, hash_mask; e1000_hash_mc_addr_vf() local
194 hash_mask = (hw->mac.mta_reg_count * 32) - 1; e1000_hash_mc_addr_vf()
199 while (hash_mask >> bit_shift != 0xFF) e1000_hash_mc_addr_vf()
202 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | e1000_hash_mc_addr_vf()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
H A Dmac.c266 u32 hash_value, hash_mask; e1000_hash_mc_addr() local
270 hash_mask = (hw->mac.mta_reg_count * 32) - 1; e1000_hash_mc_addr()
275 while (hash_mask >> bit_shift != 0xFF) e1000_hash_mc_addr()
283 * the hash_mask. Case 0 does this exactly. Since there are a total e1000_hash_mc_addr()
318 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | e1000_hash_mc_addr()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
H A De1000_mac.c374 u32 hash_value, hash_mask; igb_hash_mc_addr() local
378 hash_mask = (hw->mac.mta_reg_count * 32) - 1; igb_hash_mc_addr()
383 while (hash_mask >> bit_shift != 0xFF) igb_hash_mc_addr()
391 * the hash_mask. Case 0 does this exactly. Since there are a total igb_hash_mc_addr()
426 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | igb_hash_mc_addr()
/linux-4.4.14/drivers/md/
H A Ddm-snap.c44 uint32_t hash_mask; member in struct:dm_exception_table
610 et->hash_mask = size - 1; dm_exception_table_init()
628 size = et->hash_mask + 1; dm_exception_table_exit()
641 return (chunk >> et->hash_shift) & et->hash_mask; exception_hash()
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
H A Dbna_types.h653 u8 hash_mask; member in struct:bna_rss_config
H A Dbna_tx_rx.c330 req->cfg.mask = rxf->rss_cfg.hash_mask; bna_bfi_rss_cfg()
H A Dbnad.c2058 rx_config->rss_config.hash_mask = bnad_init_rx_config()
/linux-4.4.14/lib/zlib_deflate/
H A Ddefutil.h115 uInt hash_mask; /* hash_size-1 */ member in struct:deflate_state
H A Ddeflate.c142 #define UPDATE_HASH(s,h,c) (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask)
229 s->hash_mask = s->hash_size - 1; zlib_deflateInit2()

Completed in 537 milliseconds