Lines Matching refs:hash_idx
73 u16 hash_idx; in brcmf_flowring_lookup() local
91 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : in brcmf_flowring_lookup()
93 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1); in brcmf_flowring_lookup()
97 if ((sta || (memcmp(hash[hash_idx].mac, mac, ETH_ALEN) == 0)) && in brcmf_flowring_lookup()
98 (hash[hash_idx].fifo == fifo) && in brcmf_flowring_lookup()
99 (hash[hash_idx].ifidx == ifidx)) { in brcmf_flowring_lookup()
103 hash_idx++; in brcmf_flowring_lookup()
104 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1); in brcmf_flowring_lookup()
107 return hash[hash_idx].flowid; in brcmf_flowring_lookup()
118 u16 hash_idx; in brcmf_flowring_create() local
136 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : in brcmf_flowring_create()
138 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1); in brcmf_flowring_create()
142 if ((hash[hash_idx].ifidx == BRCMF_FLOWRING_INVALID_IFIDX) && in brcmf_flowring_create()
143 (is_zero_ether_addr(hash[hash_idx].mac))) { in brcmf_flowring_create()
147 hash_idx++; in brcmf_flowring_create()
148 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1); in brcmf_flowring_create()
162 memcpy(hash[hash_idx].mac, mac, ETH_ALEN); in brcmf_flowring_create()
163 hash[hash_idx].fifo = fifo; in brcmf_flowring_create()
164 hash[hash_idx].ifidx = ifidx; in brcmf_flowring_create()
165 hash[hash_idx].flowid = i; in brcmf_flowring_create()
167 ring->hash_id = hash_idx; in brcmf_flowring_create()
242 u16 hash_idx; in brcmf_flowring_delete() local
254 hash_idx = ring->hash_id; in brcmf_flowring_delete()
255 flow->hash[hash_idx].ifidx = BRCMF_FLOWRING_INVALID_IFIDX; in brcmf_flowring_delete()
256 eth_zero_addr(flow->hash[hash_idx].mac); in brcmf_flowring_delete()
359 u16 hash_idx; in brcmf_flowring_ifidx_get() local
362 hash_idx = ring->hash_id; in brcmf_flowring_ifidx_get()
364 return flow->hash[hash_idx].ifidx; in brcmf_flowring_ifidx_get()