Lines Matching refs:hash_idx

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
126 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : in brcmf_flowring_create()
128 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1); 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()
137 hash_idx++; in brcmf_flowring_create()
138 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1); 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()
157 ring->hash_id = hash_idx; in brcmf_flowring_create()
232 u16 hash_idx; in brcmf_flowring_delete() local
244 hash_idx = ring->hash_id; in brcmf_flowring_delete()
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()
349 u16 hash_idx; in brcmf_flowring_ifidx_get() local
352 hash_idx = ring->hash_id; in brcmf_flowring_ifidx_get()
354 return flow->hash[hash_idx].ifidx; in brcmf_flowring_ifidx_get()