Lines Matching refs:hash_idx

71 	u8 hash_idx;  in brcmf_flowring_lookup()  local
89 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : 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()
100 hash_idx++; in brcmf_flowring_lookup()
103 return hash[hash_idx].flowid; in brcmf_flowring_lookup()
114 u8 hash_idx; in brcmf_flowring_create() local
132 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : 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()
142 hash_idx++; 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()
161 ring->hash_id = hash_idx; in brcmf_flowring_create()
230 u8 hash_idx; in brcmf_flowring_delete() local
237 hash_idx = ring->hash_id; in brcmf_flowring_delete()
238 flow->hash[hash_idx].ifidx = BRCMF_FLOWRING_INVALID_IFIDX; in brcmf_flowring_delete()
239 eth_zero_addr(flow->hash[hash_idx].mac); in brcmf_flowring_delete()
341 u8 hash_idx; in brcmf_flowring_ifidx_get() local
344 hash_idx = ring->hash_id; in brcmf_flowring_ifidx_get()
346 return flow->hash[hash_idx].ifidx; in brcmf_flowring_ifidx_get()