Lines Matching refs:wcid

50 	unsigned int wcid = GROUP_WCID(idx);  in mt7601u_add_interface()  local
62 if (dev->wcid_mask[wcid / BITS_PER_LONG] & BIT(wcid % BITS_PER_LONG)) in mt7601u_add_interface()
64 dev->wcid_mask[wcid / BITS_PER_LONG] |= BIT(wcid % BITS_PER_LONG); in mt7601u_add_interface()
65 mvif->group_wcid.idx = wcid; in mt7601u_add_interface()
76 unsigned int wcid = mvif->group_wcid.idx; in mt7601u_remove_interface() local
78 dev->wcid_mask[wcid / BITS_PER_LONG] &= ~BIT(wcid % BITS_PER_LONG); in mt7601u_remove_interface()
226 msta->wcid.idx = idx; in mt7601u_sta_add()
227 msta->wcid.hw_key_idx = -1; in mt7601u_sta_add()
230 rcu_assign_pointer(dev->wcid[idx], &msta->wcid); in mt7601u_sta_add()
245 int idx = msta->wcid.idx; in mt7601u_sta_remove()
248 rcu_assign_pointer(dev->wcid[idx], NULL); in mt7601u_sta_remove()
299 struct mt76_wcid *wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt7601u_set_key() local
315 key->hw_key_idx = wcid->idx; in mt7601u_set_key()
316 wcid->hw_key_idx = idx; in mt7601u_set_key()
318 if (idx == wcid->hw_key_idx) in mt7601u_set_key()
319 wcid->hw_key_idx = -1; in mt7601u_set_key()
325 if (key || wcid->hw_key_idx == idx) { in mt7601u_set_key()
326 ret = mt76_mac_wcid_set_key(dev, wcid->idx, key); in mt7601u_set_key()
334 return mt76_mac_wcid_set_key(dev, msta->wcid.idx, key); in mt7601u_set_key()
357 WARN_ON(msta->wcid.idx > GROUP_WCID(0)); in mt76_ampdu_action()
361 mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76_ampdu_action()
364 mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, in mt76_ampdu_action()
401 mt76_mac_wcid_set_rate(dev, &msta->wcid, &rate); in mt76_sta_rate_tbl_update()