Lines Matching defs:hash_idx
63 u16 hash_idx;
81 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) :
83 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1);
87 if ((sta || (memcmp(hash[hash_idx].mac, mac, ETH_ALEN) == 0)) &&
88 (hash[hash_idx].fifo == fifo) &&
89 (hash[hash_idx].ifidx == ifidx)) {
93 hash_idx++;
94 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1);
97 return hash[hash_idx].flowid;
108 u16 hash_idx;
126 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) :
128 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1);
132 if ((hash[hash_idx].ifidx == BRCMF_FLOWRING_INVALID_IFIDX) &&
133 (is_zero_ether_addr(hash[hash_idx].mac))) {
137 hash_idx++;
138 hash_idx &= (BRCMF_FLOWRING_HASHSIZE - 1);
152 memcpy(hash[hash_idx].mac, mac, ETH_ALEN);
153 hash[hash_idx].fifo = fifo;
154 hash[hash_idx].ifidx = ifidx;
155 hash[hash_idx].flowid = i;
157 ring->hash_id = hash_idx;
232 u16 hash_idx;
244 hash_idx = ring->hash_id;
245 flow->hash[hash_idx].ifidx = BRCMF_FLOWRING_INVALID_IFIDX;
246 eth_zero_addr(flow->hash[hash_idx].mac);
349 u16 hash_idx;
352 hash_idx = ring->hash_id;
354 return flow->hash[hash_idx].ifidx;