Searched refs:hash_idx (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | flowring.c | 63 u16 hash_idx; in brcmf_flowring_lookup() local 81 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : in brcmf_flowring_lookup() 83 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1); in brcmf_flowring_lookup() 87 if ((sta || (memcmp(hash[hash_idx].mac, mac, ETH_ALEN) == 0)) && in brcmf_flowring_lookup() 88 (hash[hash_idx].fifo == fifo) && in brcmf_flowring_lookup() 89 (hash[hash_idx].ifidx == ifidx)) { in brcmf_flowring_lookup() 93 hash_idx++; in brcmf_flowring_lookup() 94 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1); in brcmf_flowring_lookup() 97 return hash[hash_idx].flowid; in brcmf_flowring_lookup() 108 u16 hash_idx; in brcmf_flowring_create() local [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npc_hash.c | 82 u8 intf, u8 hash_idx) in npc_field_hash_calc() argument 94 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() 98 field_hash &= FIELD_GET(GENMASK(63, 32), rsp.hash_ctrl[intf][hash_idx]); in npc_field_hash_calc() 99 field_hash += FIELD_GET(GENMASK(31, 0), rsp.hash_ctrl[intf][hash_idx]); in npc_field_hash_calc() 289 u8 hash_idx; in npc_update_field_hash() local 299 for (hash_idx = 0; hash_idx < NPC_MAX_HASH; hash_idx++) { in npc_update_field_hash() 300 cfg = rvu_read64(rvu, blkaddr, NPC_AF_INTFX_HASHX_CFG(intf, hash_idx)); in npc_update_field_hash() 306 if (mkex_hash->lid_lt_ld_hash_en[intf][lid][ltype][hash_idx]) { in npc_update_field_hash() 316 if ((features & BIT_ULL(NPC_SIP_IPV6)) && !hash_idx) { in npc_update_field_hash() [all …]
|
H A D | rvu_npc_hash.h | 66 u8 intf, u8 hash_idx);
|
/openbmc/linux/drivers/misc/bcm-vk/ |
H A D | bcm_vk_msg.c | 214 u32 hash_idx = hash_32(pid, VK_PID_HT_SHIFT_BIT); in bcm_vk_get_ctx() local 243 ctx->hash_idx = hash_idx; in bcm_vk_get_ctx() 244 list_add_tail(&ctx->node, &vk->pid_ht[hash_idx].head); in bcm_vk_get_ctx() 294 u32 hash_idx; in bcm_vk_free_ctx() local 316 hash_idx = ctx->hash_idx; in bcm_vk_free_ctx() 317 list_for_each_entry(entry, &vk->pid_ht[hash_idx].head, node) { in bcm_vk_free_ctx()
|
H A D | bcm_vk_msg.h | 87 u32 hash_idx; member
|