Lines Matching refs:hash

70 	struct brcmf_flowring_hash *hash;  in brcmf_flowring_lookup()  local
92 hash = flow->hash; in brcmf_flowring_lookup()
94 if ((sta || (memcmp(hash[hash_idx].mac, mac, ETH_ALEN) == 0)) && in brcmf_flowring_lookup()
95 (hash[hash_idx].fifo == fifo) && in brcmf_flowring_lookup()
96 (hash[hash_idx].ifidx == ifidx)) { in brcmf_flowring_lookup()
103 return hash[hash_idx].flowid; in brcmf_flowring_lookup()
113 struct brcmf_flowring_hash *hash; in brcmf_flowring_create() local
135 hash = flow->hash; in brcmf_flowring_create()
137 if ((hash[hash_idx].ifidx == BRCMF_FLOWRING_INVALID_IFIDX) && in brcmf_flowring_create()
138 (is_zero_ether_addr(hash[hash_idx].mac))) { in brcmf_flowring_create()
156 memcpy(hash[hash_idx].mac, mac, ETH_ALEN); in brcmf_flowring_create()
157 hash[hash_idx].fifo = fifo; in brcmf_flowring_create()
158 hash[hash_idx].ifidx = ifidx; in brcmf_flowring_create()
159 hash[hash_idx].flowid = i; in brcmf_flowring_create()
178 return flow->hash[ring->hash_id].fifo; in brcmf_flowring_tid()
242 flow->hash[hash_idx].ifidx = BRCMF_FLOWRING_INVALID_IFIDX; in brcmf_flowring_delete()
243 eth_zero_addr(flow->hash[hash_idx].mac); in brcmf_flowring_delete()
351 return flow->hash[hash_idx].ifidx; in brcmf_flowring_ifidx_get()
367 for (i = 0; i < ARRAY_SIZE(flow->hash); i++) in brcmf_flowring_attach()
368 flow->hash[i].ifidx = BRCMF_FLOWRING_INVALID_IFIDX; in brcmf_flowring_attach()
414 for (i = 0; i < ARRAY_SIZE(flow->hash); i++) { in brcmf_flowring_configure_addr_mode()
415 if (flow->hash[i].ifidx == ifidx) { in brcmf_flowring_configure_addr_mode()
416 flowid = flow->hash[i].flowid; in brcmf_flowring_configure_addr_mode()
433 struct brcmf_flowring_hash *hash; in brcmf_flowring_delete_peer() local
453 hash = flow->hash; in brcmf_flowring_delete_peer()
455 if ((sta || (memcmp(hash[i].mac, peer, ETH_ALEN) == 0)) && in brcmf_flowring_delete_peer()
456 (hash[i].ifidx == ifidx)) { in brcmf_flowring_delete_peer()
457 flowid = flow->hash[i].flowid; in brcmf_flowring_delete_peer()