Lines Matching refs:hash
62 struct brcmf_flowring_hash *hash; in brcmf_flowring_lookup() local
85 hash = flow->hash; 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()
97 return hash[hash_idx].flowid; in brcmf_flowring_lookup()
107 struct brcmf_flowring_hash *hash; in brcmf_flowring_create() local
130 hash = flow->hash; in brcmf_flowring_create()
132 if ((hash[hash_idx].ifidx == BRCMF_FLOWRING_INVALID_IFIDX) && in brcmf_flowring_create()
133 (is_zero_ether_addr(hash[hash_idx].mac))) { in brcmf_flowring_create()
152 memcpy(hash[hash_idx].mac, mac, ETH_ALEN); in brcmf_flowring_create()
153 hash[hash_idx].fifo = fifo; in brcmf_flowring_create()
154 hash[hash_idx].ifidx = ifidx; in brcmf_flowring_create()
155 hash[hash_idx].flowid = i; in brcmf_flowring_create()
174 return flow->hash[ring->hash_id].fifo; in brcmf_flowring_tid()
245 flow->hash[hash_idx].ifidx = BRCMF_FLOWRING_INVALID_IFIDX; in brcmf_flowring_delete()
246 eth_zero_addr(flow->hash[hash_idx].mac); in brcmf_flowring_delete()
354 return flow->hash[hash_idx].ifidx; in brcmf_flowring_ifidx_get()
370 for (i = 0; i < ARRAY_SIZE(flow->hash); i++) in brcmf_flowring_attach()
371 flow->hash[i].ifidx = BRCMF_FLOWRING_INVALID_IFIDX; in brcmf_flowring_attach()
417 for (i = 0; i < ARRAY_SIZE(flow->hash); i++) { in brcmf_flowring_configure_addr_mode()
418 if (flow->hash[i].ifidx == ifidx) { in brcmf_flowring_configure_addr_mode()
419 flowid = flow->hash[i].flowid; in brcmf_flowring_configure_addr_mode()
436 struct brcmf_flowring_hash *hash; in brcmf_flowring_delete_peer() local
456 hash = flow->hash; in brcmf_flowring_delete_peer()
458 if ((sta || (memcmp(hash[i].mac, peer, ETH_ALEN) == 0)) && in brcmf_flowring_delete_peer()
459 (hash[i].ifidx == ifidx)) { in brcmf_flowring_delete_peer()
460 flowid = flow->hash[i].flowid; in brcmf_flowring_delete_peer()