/Linux-v4.19/drivers/net/wireless/mediatek/mt76/ |
D | mt76x2_common.c | 32 mtxq->wcid = &sta->wcid; in mt76x2_txq_init() 37 mtxq->wcid = &mvif->group_wcid; in mt76x2_txq_init() 63 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, *ssn, params->buf_size); in mt76x2_ampdu_action() 64 mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76x2_ampdu_action() 67 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt76x2_ampdu_action() 68 mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, in mt76x2_ampdu_action() 107 idx = mt76_wcid_alloc(dev->wcid_mask, ARRAY_SIZE(dev->wcid)); in mt76x2_sta_add() 114 msta->wcid.sta = 1; in mt76x2_sta_add() 115 msta->wcid.idx = idx; in mt76x2_sta_add() 116 msta->wcid.hw_key_idx = -1; in mt76x2_sta_add() [all …]
|
D | mt76x2_mac_common.c | 71 stat->wcid = FIELD_GET(MT_TX_STAT_FIFO_WCID, stat1); in mt76x2_mac_load_tx_status() 185 struct mt76_wcid *wcid = NULL; in mt76x2_send_tx_status() local 189 if (stat->wcid < ARRAY_SIZE(dev->wcid)) in mt76x2_send_tx_status() 190 wcid = rcu_dereference(dev->wcid[stat->wcid]); in mt76x2_send_tx_status() 192 if (wcid) { in mt76x2_send_tx_status() 195 priv = msta = container_of(wcid, struct mt76x2_sta, wcid); in mt76x2_send_tx_status() 209 stat->wcid == msta->status.wcid && msta->n_frames < 32) { in mt76x2_send_tx_status() 361 void mt76x2_mac_wcid_set_rate(struct mt76x2_dev *dev, struct mt76_wcid *wcid, in mt76x2_mac_wcid_set_rate() argument 365 wcid->tx_rate = mt76x2_mac_tx_rate_val(dev, rate, &wcid->tx_rate_nss); in mt76x2_mac_wcid_set_rate() 366 wcid->tx_rate_set = true; in mt76x2_mac_wcid_set_rate() [all …]
|
D | mt76x2_trace.h | 32 #define TXID_ENTRY __field(u8, wcid) __field(u8, pktid) 33 #define TXID_ASSIGN __entry->wcid = wcid; __entry->pktid = pktid 35 #define TXID_PR_ARG __entry->wcid, __entry->pktid 50 TP_PROTO(struct mt76x2_dev *dev, u8 wcid, u8 pktid), 51 TP_ARGS(dev, wcid, pktid), 72 TP_PROTO(struct mt76x2_dev *dev, u8 wcid, u8 pktid), 73 TP_ARGS(dev, wcid, pktid) 97 __entry->wcid = stat->wcid;
|
D | mt76x2u_core.c | 46 struct mt76_wcid *wcid, u8 ep) in mt76x2u_set_txinfo() argument 60 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x2u_set_txinfo() 81 struct mt76_wcid *wcid, struct ieee80211_sta *sta, in mt76x2u_tx_prepare_skb() argument 95 mt76x2_mac_write_txwi(dev, txwi, skb, wcid, sta, len); in mt76x2u_tx_prepare_skb() 97 return mt76x2u_set_txinfo(skb, wcid, q2ep(q->hw_idx)); in mt76x2u_tx_prepare_skb()
|
D | agg-rx.c | 127 struct mt76_wcid *wcid = status->wcid; in mt76_rx_aggr_check_ctl() local 139 tid = rcu_dereference(wcid->aggr[status->tid]); in mt76_rx_aggr_check_ctl() 153 struct mt76_wcid *wcid = status->wcid; in mt76_rx_aggr_reorder() local 162 sta = wcid_to_sta(wcid); in mt76_rx_aggr_reorder() 177 tid = rcu_dereference(wcid->aggr[status->tid]); in mt76_rx_aggr_reorder() 242 int mt76_rx_aggr_start(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno, in mt76_rx_aggr_start() argument 247 mt76_rx_aggr_stop(dev, wcid, tidno); in mt76_rx_aggr_start() 259 rcu_assign_pointer(wcid->aggr[tidno], tid); in mt76_rx_aggr_start() 288 void mt76_rx_aggr_stop(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno) in mt76_rx_aggr_stop() argument 294 tid = rcu_dereference(wcid->aggr[tidno]); in mt76_rx_aggr_stop() [all …]
|
D | mac80211.c | 454 void mt76_wcid_key_setup(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_wcid_key_setup() argument 460 wcid->rx_check_pn = false; in mt76_wcid_key_setup() 466 wcid->rx_check_pn = true; in mt76_wcid_key_setup() 470 memcpy(wcid->rx_key_pn[i], seq.ccmp.pn, sizeof(seq.ccmp.pn)); in mt76_wcid_key_setup() 498 return wcid_to_sta(mstat.wcid); in mt76_rx_convert() 505 struct mt76_wcid *wcid = status->wcid; in mt76_check_ccmp_pn() local 512 if (!wcid || !wcid->rx_check_pn) in mt76_check_ccmp_pn() 526 BUILD_BUG_ON(sizeof(status->iv) != sizeof(wcid->rx_key_pn[0])); in mt76_check_ccmp_pn() 527 ret = memcmp(status->iv, wcid->rx_key_pn[status->tid], in mt76_check_ccmp_pn() 532 memcpy(wcid->rx_key_pn[status->tid], status->iv, sizeof(status->iv)); in mt76_check_ccmp_pn() [all …]
|
D | mt76x2_tx.c | 28 struct mt76_wcid *wcid, struct ieee80211_sta *sta, in mt76x2_tx_prepare_skb() argument 36 if (q == &dev->mt76.q_tx[MT_TXQ_PSD] && wcid && wcid->idx < 128) in mt76x2_tx_prepare_skb() 37 mt76x2_mac_wcid_set_drop(dev, wcid->idx, false); in mt76x2_tx_prepare_skb() 39 mt76x2_mac_write_txwi(dev, txwi, skb, wcid, sta, skb->len); in mt76x2_tx_prepare_skb() 51 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x2_tx_prepare_skb()
|
D | mt76x2_tx_common.c | 27 struct mt76_wcid *wcid = &dev->global_wcid; in mt76x2_tx() local 33 wcid = &msta->wcid; in mt76x2_tx() 35 if (!info->control.hw_key && wcid->hw_key_idx != -1) in mt76x2_tx() 43 wcid = &mvif->group_wcid; in mt76x2_tx() 46 mt76_tx(&dev->mt76, control->sta, wcid, skb); in mt76x2_tx()
|
D | mt76.h | 127 struct sk_buff *skb, struct mt76_wcid *wcid, 171 struct mt76_wcid *wcid; member 228 struct mt76_wcid *wcid, 380 struct mt76_wcid *wcid; member 505 wcid_to_sta(struct mt76_wcid *wcid) in wcid_to_sta() argument 507 void *ptr = wcid; in wcid_to_sta() 509 if (!wcid || !wcid->sta) in wcid_to_sta() 516 struct sk_buff *skb, struct mt76_wcid *wcid, 521 struct mt76_wcid *wcid, struct sk_buff *skb); 539 int mt76_rx_aggr_start(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tid, [all …]
|
D | mt76x2_mac.h | 32 u8 wcid; member 42 u8 wcid; member 142 u8 wcid; member 168 struct sk_buff *skb, struct mt76_wcid *wcid, 173 void mt76x2_mac_wcid_set_rate(struct mt76x2_dev *dev, struct mt76_wcid *wcid,
|
D | tx.c | 96 struct mt76_wcid *wcid, struct sk_buff *skb) in mt76_tx() argument 107 if (!wcid->tx_rate_set) in mt76_tx() 114 dev->queue_ops->tx_queue_skb(dev, q, skb, wcid, sta); in mt76_tx() 161 struct mt76_wcid *wcid = (struct mt76_wcid *) sta->drv_priv; in mt76_queue_ps_skb() local 170 dev->queue_ops->tx_queue_skb(dev, hwq, skb, wcid, sta); in mt76_queue_ps_skb() 223 struct mt76_wcid *wcid = mtxq->wcid; in mt76_txq_send_burst() local 238 if (!wcid->tx_rate_set) in mt76_txq_send_burst() 250 idx = dev->queue_ops->tx_queue_skb(dev, hwq, skb, wcid, txq->sta); in mt76_txq_send_burst() 285 idx = dev->queue_ops->tx_queue_skb(dev, hwq, skb, wcid, in mt76_txq_send_burst()
|
D | mt76x2_phy_common.c | 307 struct mt76_wcid *wcid; in mt76x2_phy_get_min_avg_rssi() local 324 wcid = rcu_dereference(dev->wcid[j]); in mt76x2_phy_get_min_avg_rssi() 325 if (!wcid) in mt76x2_phy_get_min_avg_rssi() 328 sta = container_of(wcid, struct mt76x2_sta, wcid); in mt76x2_phy_get_min_avg_rssi()
|
D | mt76x2_mac.c | 73 txi->wcid = txwi->wcid; in mt76x2_mac_queue_txdone() 75 trace_mac_txdone_add(dev, txwi->wcid, txwi->pktid); in mt76x2_mac_queue_txdone()
|
D | mt76x2.h | 120 struct mt76_wcid __rcu *wcid[128]; member 156 struct mt76_wcid wcid; /* must be first */ member 268 struct mt76_wcid *wcid, struct ieee80211_sta *sta,
|
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/ |
D | main.c | 58 unsigned int wcid = GROUP_WCID(idx); in mt7601u_add_interface() local 70 if (dev->wcid_mask[wcid / BITS_PER_LONG] & BIT(wcid % BITS_PER_LONG)) in mt7601u_add_interface() 72 dev->wcid_mask[wcid / BITS_PER_LONG] |= BIT(wcid % BITS_PER_LONG); in mt7601u_add_interface() 73 mvif->group_wcid.idx = wcid; in mt7601u_add_interface() 84 unsigned int wcid = mvif->group_wcid.idx; in mt7601u_remove_interface() local 86 dev->wcid_mask[wcid / BITS_PER_LONG] &= ~BIT(wcid % BITS_PER_LONG); in mt7601u_remove_interface() 234 msta->wcid.idx = idx; in mt7601u_sta_add() 235 msta->wcid.hw_key_idx = -1; in mt7601u_sta_add() 238 rcu_assign_pointer(dev->wcid[idx], &msta->wcid); in mt7601u_sta_add() 253 int idx = msta->wcid.idx; in mt7601u_sta_remove() [all …]
|
D | mac.c | 154 void mt76_mac_wcid_set_rate(struct mt7601u_dev *dev, struct mt76_wcid *wcid, in mt76_mac_wcid_set_rate() argument 160 wcid->tx_rate = mt76_mac_tx_rate_val(dev, rate, &wcid->tx_rate_nss); in mt76_mac_wcid_set_rate() 161 wcid->tx_rate_set = true; in mt76_mac_wcid_set_rate() 176 stat.wcid = FIELD_GET(MT_TX_STAT_FIFO_WCID, val); in mt7601u_mac_fetch_tx_status() 186 struct mt76_wcid *wcid = NULL; in mt76_send_tx_status() local 190 if (stat->wcid < ARRAY_SIZE(dev->wcid)) in mt76_send_tx_status() 191 wcid = rcu_dereference(dev->wcid[stat->wcid]); in mt76_send_tx_status() 193 if (wcid) { in mt76_send_tx_status() 194 msta = container_of(wcid, struct mt76_sta, wcid); in mt76_send_tx_status() 382 struct mt76_wcid *wcid; in mt7601u_mac_set_ampdu_factor() local [all …]
|
D | tx.c | 139 struct ieee80211_sta *sta, struct mt76_wcid *wcid, in mt7601u_push_txwi() argument 154 if (!wcid->tx_rate_set) in mt7601u_push_txwi() 160 rate_ctl = wcid->tx_rate; in mt7601u_push_txwi() 188 txwi->wcid = wcid->idx; in mt7601u_push_txwi() 206 struct mt76_wcid *wcid = dev->mon_wcid; in mt7601u_tx() local 221 wcid = &msta->wcid; in mt7601u_tx() 225 wcid = &mvif->group_wcid; in mt7601u_tx() 228 txwi = mt7601u_push_txwi(dev, skb, sta, wcid, pkt_len); in mt7601u_tx() 230 if (mt7601u_dma_enqueue_tx(dev, skb, wcid, hw_q)) in mt7601u_tx()
|
D | mac.h | 24 u8 wcid; member 122 u8 wcid; member 167 void mt76_mac_wcid_set_rate(struct mt7601u_dev *dev, struct mt76_wcid *wcid,
|
D | mt7601u.h | 182 struct mt76_wcid __rcu *wcid[N_WCIDS]; member 276 struct mt76_wcid wcid; member 398 struct mt76_wcid *wcid, int hw_q);
|
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/ |
D | main.c | 209 idx = mt76_wcid_alloc(dev->wcid_mask, ARRAY_SIZE(dev->wcid)); in mt76x0_sta_add() 215 msta->wcid.idx = idx; in mt76x0_sta_add() 216 msta->wcid.hw_key_idx = -1; in mt76x0_sta_add() 219 rcu_assign_pointer(dev->wcid[idx], &msta->wcid); in mt76x0_sta_add() 234 int idx = msta->wcid.idx; in mt76x0_sta_remove() 237 rcu_assign_pointer(dev->wcid[idx], NULL); in mt76x0_sta_remove() 286 struct mt76_wcid *wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x0_set_key() local 291 key->hw_key_idx = wcid->idx; in mt76x0_set_key() 292 wcid->hw_key_idx = idx; in mt76x0_set_key() 294 if (idx == wcid->hw_key_idx) in mt76x0_set_key() [all …]
|
D | tx.c | 72 struct ieee80211_sta *sta, struct mt76_wcid *wcid, in mt76x0_push_txwi() argument 87 if (!wcid->tx_rate_set) in mt76x0_push_txwi() 93 rate_ctl = wcid->tx_rate; in mt76x0_push_txwi() 94 nss = wcid->tx_rate_nss; in mt76x0_push_txwi() 137 txwi->wcid = wcid->idx; in mt76x0_push_txwi() 153 struct mt76_wcid *wcid = dev->mon_wcid; in mt76x0_tx() local 168 wcid = &msta->wcid; in mt76x0_tx() 169 } else if (vif && (!info->control.hw_key && wcid->hw_key_idx != -1)) { in mt76x0_tx() 172 wcid = &mvif->group_wcid; in mt76x0_tx() 175 txwi = mt76x0_push_txwi(dev, skb, sta, wcid, pkt_len); in mt76x0_tx() [all …]
|
D | mac.c | 169 void mt76x0_mac_wcid_set_rate(struct mt76x0_dev *dev, struct mt76_wcid *wcid, in mt76x0_mac_wcid_set_rate() argument 175 wcid->tx_rate = mt76x0_mac_tx_rate_val(dev, rate, &wcid->tx_rate_nss); in mt76x0_mac_wcid_set_rate() 176 wcid->tx_rate_set = true; in mt76x0_mac_wcid_set_rate() 192 stat.wcid = FIELD_GET(MT_TX_STAT_FIFO_WCID, stat1); in mt76x0_mac_fetch_tx_status() 205 struct mt76_wcid *wcid = NULL; in mt76x0_send_tx_status() local 209 if (stat->wcid < ARRAY_SIZE(dev->wcid)) in mt76x0_send_tx_status() 210 wcid = rcu_dereference(dev->wcid[stat->wcid]); in mt76x0_send_tx_status() 212 if (wcid) { in mt76x0_send_tx_status() 214 priv = msta = container_of(wcid, struct mt76_sta, wcid); in mt76x0_send_tx_status() 227 stat->wcid == msta->status.wcid && msta->n_frames < 32) { in mt76x0_send_tx_status() [all …]
|
D | mt76x0.h | 174 struct mt76_wcid __rcu *wcid[N_WCIDS]; member 236 u8 wcid; member 243 struct mt76_wcid wcid; member 328 struct mt76_wcid *wcid, int hw_q);
|
D | mac.h | 99 u8 wcid; member 143 void mt76x0_mac_wcid_set_rate(struct mt76x0_dev *dev, struct mt76_wcid *wcid,
|
/Linux-v4.19/arch/arm/kernel/ |
D | pj4-cp0.c | 81 u32 cp_access, wcid; in pj4_get_iwmmxt_version() local 93 __asm__ __volatile__ ("mrc p1, 0, %0, c0, c0, 0\n" : "=r" (wcid)); in pj4_get_iwmmxt_version() 98 if ((wcid & 0xffffff00) == 0x56051000) in pj4_get_iwmmxt_version() 101 if ((wcid & 0xffffff00) == 0x56052000) in pj4_get_iwmmxt_version()
|