Home
last modified time | relevance | path

Searched refs:hash_mask (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/drivers/md/persistent-data/
H A Ddm-persistent-data-internal.h13 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()
/openbmc/qemu/hw/misc/
H A Daspeed_hace.c357 data &= ahc->hash_mask; in aspeed_hace_write()
373 __func__, data & ahc->hash_mask); in aspeed_hace_write()
486 ahc->hash_mask = 0x000003ff; /* No SG or SHA512 modes */ in aspeed_ast2400_hace_class_init()
505 ahc->hash_mask = 0x000003ff; /* No SG or SHA512 modes */ in aspeed_ast2500_hace_class_init()
524 ahc->hash_mask = 0x00147FFF; in aspeed_ast2600_hace_class_init()
543 ahc->hash_mask = 0x00147FFF; in aspeed_ast1030_hace_class_init()
/openbmc/linux/drivers/net/ethernet/intel/igbvf/
H A Dvf.c177 u32 hash_value, hash_mask; in e1000_hash_mc_addr_vf() local
181 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in e1000_hash_mc_addr_vf()
186 while (hash_mask >> bit_shift != 0xFF) in e1000_hash_mc_addr_vf()
189 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr_vf()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.h50 u64 hash_mask[NPC_MAX_INTF][NPC_MAX_HASH][NPC_MAX_HASH_MASK]; member
101 .hash_mask = {
182 u16 hash_mask; // 11 bits for hash mask member
H A Drvu_npc_hash.c94 data_padded[0] = rsp.hash_mask[intf][hash_idx][0] & ldata[0]; in npc_field_hash_calc()
95 data_padded[1] = rsp.hash_mask[intf][hash_idx][1] & ldata[1]; in npc_field_hash_calc()
149 mkex_hash->hash_mask[intf][ld][0]); in npc_program_mkex_hash_rx()
151 mkex_hash->hash_mask[intf][ld][1]); in npc_program_mkex_hash_rx()
189 mkex_hash->hash_mask[intf][ld][0]); in npc_program_mkex_hash_tx()
191 mkex_hash->hash_mask[intf][ld][1]); in npc_program_mkex_hash_tx()
379 rsp->hash_mask[NIX_INTF_RX][i][j] = in rvu_mbox_handler_npc_get_field_hash_info()
381 rsp->hash_mask[NIX_INTF_TX][i][j] = in rvu_mbox_handler_npc_get_field_hash_info()
448 hash &= table->mem_table.hash_mask; in rvu_exact_calculate_hash()
677 rvu->hw->table->mem_table.hash_mask = (depth - 1); in rvu_exact_config_result_ctrl()
H A Dmbox.h1574 u64 hash_mask[NPC_MAX_INTF][NPC_MAX_HASH][NPC_MAX_HASH_MASK]; member
H A Drvu_debugfs.c3091 seq_printf(s, "Hash Mask : 0x%x\n", table->mem_table.hash_mask); in rvu_dbg_npc_exact_show_info()
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_mac.c790 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()
/openbmc/qemu/include/hw/misc/
H A Daspeed_hace.h51 uint32_t hash_mask; member
/openbmc/linux/drivers/crypto/hisilicon/sec/
H A Dsec_drv.c448 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()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A De1000_mac.c428 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 && bit_shift < 4) in igb_hash_mc_addr()
480 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igb_hash_mc_addr()
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dmac.c248 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()
/openbmc/u-boot/lib/zlib/
H A Ddeflate.h139 uInt hash_mask; /* hash_size-1 */ member
H A Ddeflate.c164 #define UPDATE_HASH(s,h,c) (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask)
278 s->hash_mask = s->hash_size - 1;
/openbmc/u-boot/lib/
H A Dtpm-v2.c1167 u32 hash_mask = tpm2_algorithm_to_mask(pcrs.selection[i].hash); in tpm2_get_pcr_info() local
1169 if (hash_mask) { in tpm2_get_pcr_info()
1170 *supported_pcr |= hash_mask; in tpm2_get_pcr_info()
1172 *active_pcr |= hash_mask; in tpm2_get_pcr_info()
/openbmc/linux/lib/zlib_deflate/
H A Ddefutil.h117 uInt hash_mask; /* hash_size-1 */ member
H A Ddeflate.c163 #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()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Drx.h898 u8 hash_mask; member
/openbmc/linux/drivers/md/
H A Ddm-snap.c44 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()
698 return (chunk >> et->hash_shift) & et->hash_mask; in exception_hash()
/openbmc/linux/drivers/net/ethernet/brocade/bna/
H A Dbna_types.h654 u8 hash_mask; member
H A Dbnad.c2040 rx_config->rss_config.hash_mask = in bnad_init_rx_config()
H A Dbna_tx_rx.c322 req->cfg.mask = rxf->rss_cfg.hash_mask; in bna_bfi_rss_cfg()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dfw.c53 .hash_mask = BIT(IWL_RSS_HASH_TYPE_IPV4_TCP) | in iwl_send_rss_cfg_cmd()
H A Ddebugfs.c1320 .hash_mask = IWL_RSS_HASH_TYPE_IPV4_TCP | in iwl_dbgfs_indirection_tbl_write()