/linux-6.3-rc2/drivers/md/persistent-data/ |
A D | dm-persistent-data-internal.h | 13 static inline unsigned int dm_hash_block(dm_block_t b, unsigned int hash_mask) in dm_hash_block() argument 17 return (((unsigned int) b) * BIG_PRIME) & hash_mask; in dm_hash_block()
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | rvu_npc_hash.h | 44 u64 hash_mask[NPC_MAX_INTF][NPC_MAX_HASH][NPC_MAX_HASH_MASK]; member 95 .hash_mask = { 176 u16 hash_mask; // 11 bits for hash mask member
|
A D | rvu_npc_hash.c | 94 data_padded[0] = mkex_hash->hash_mask[intf][hash_idx][0] & ldata[0]; in npc_field_hash_calc() 95 data_padded[1] = mkex_hash->hash_mask[intf][hash_idx][1] & ldata[1]; in npc_field_hash_calc() 147 mkex_hash->hash_mask[intf][ld][0]); in npc_program_mkex_hash_rx() 149 mkex_hash->hash_mask[intf][ld][1]); in npc_program_mkex_hash_rx() 184 mkex_hash->hash_mask[intf][ld][0]); in npc_program_mkex_hash_tx() 186 mkex_hash->hash_mask[intf][ld][1]); in npc_program_mkex_hash_tx() 406 hash &= table->mem_table.hash_mask; in rvu_exact_calculate_hash() 635 rvu->hw->table->mem_table.hash_mask = (depth - 1); in rvu_exact_config_result_ctrl()
|
A D | rvu_debugfs.c | 3078 seq_printf(s, "Hash Mask : 0x%x\n", table->mem_table.hash_mask); in rvu_dbg_npc_exact_show_info()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/igbvf/ |
A D | vf.c | 170 u32 hash_value, hash_mask; in e1000_hash_mc_addr_vf() local 174 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in e1000_hash_mc_addr_vf() 179 while (hash_mask >> bit_shift != 0xFF) in e1000_hash_mc_addr_vf() 182 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr_vf()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/igc/ |
A D | igc_mac.c | 790 u32 hash_value, hash_mask; in igc_hash_mc_addr() local 794 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in igc_hash_mc_addr() 799 while (hash_mask >> bit_shift != 0xFF) in igc_hash_mc_addr() 842 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igc_hash_mc_addr()
|
/linux-6.3-rc2/drivers/crypto/hisilicon/sec/ |
A D | sec_drv.c | 448 static void sec_ipv6_hashmask(struct sec_dev_info *info, u32 hash_mask[]) in sec_ipv6_hashmask() argument 454 writel_relaxed(hash_mask[0], in sec_ipv6_hashmask() 458 static int sec_ipv4_hashmask(struct sec_dev_info *info, u32 hash_mask) in sec_ipv4_hashmask() argument 460 if (hash_mask & SEC_HASH_IPV4_MASK) { in sec_ipv4_hashmask() 465 writel_relaxed(hash_mask, in sec_ipv4_hashmask()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/igb/ |
A D | e1000_mac.c | 428 u32 hash_value, hash_mask; in igb_hash_mc_addr() local 432 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in igb_hash_mc_addr() 437 while (hash_mask >> bit_shift != 0xFF) in igb_hash_mc_addr() 480 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igb_hash_mc_addr()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/e1000e/ |
A D | mac.c | 248 u32 hash_value, hash_mask; in e1000_hash_mc_addr() local 252 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in e1000_hash_mc_addr() 257 while (hash_mask >> bit_shift != 0xFF) in e1000_hash_mc_addr() 300 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr()
|
/linux-6.3-rc2/lib/zlib_deflate/ |
A D | defutil.h | 117 uInt hash_mask; /* hash_size-1 */ member
|
A D | deflate.c | 163 #define UPDATE_HASH(s,h,c) (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask) 258 s->hash_mask = s->hash_size - 1; in zlib_deflateInit2()
|
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/fw/api/ |
A D | rx.h | 860 u8 hash_mask; member
|
/linux-6.3-rc2/drivers/md/ |
A D | dm-snap.c | 44 uint32_t hash_mask; member 663 et->hash_mask = size - 1; in dm_exception_table_init() 683 size = et->hash_mask + 1; in dm_exception_table_exit() 696 return (chunk >> et->hash_shift) & et->hash_mask; in exception_hash()
|
/linux-6.3-rc2/drivers/net/ethernet/brocade/bna/ |
A D | bna_types.h | 654 u8 hash_mask; member
|
A D | bnad.c | 2040 rx_config->rss_config.hash_mask = in bnad_init_rx_config()
|
A D | bna_tx_rx.c | 322 req->cfg.mask = rxf->rss_cfg.hash_mask; in bna_bfi_rss_cfg()
|
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | fw.c | 52 .hash_mask = BIT(IWL_RSS_HASH_TYPE_IPV4_TCP) | in iwl_send_rss_cfg_cmd()
|
A D | debugfs.c | 1109 .hash_mask = IWL_RSS_HASH_TYPE_IPV4_TCP | in iwl_dbgfs_indirection_tbl_write()
|