wcid 78 arch/arm/kernel/pj4-cp0.c u32 cp_access, wcid; wcid 90 arch/arm/kernel/pj4-cp0.c __asm__ __volatile__ ("mrc p1, 0, %0, c0, c0, 0\n" : "=r" (wcid)); wcid 95 arch/arm/kernel/pj4-cp0.c if ((wcid & 0xffffff00) == 0x56051000) wcid 98 arch/arm/kernel/pj4-cp0.c if ((wcid & 0xffffff00) == 0x56052000) wcid 116 drivers/net/wireless/mediatek/mt76/agg-rx.c struct mt76_wcid *wcid = status->wcid; wcid 128 drivers/net/wireless/mediatek/mt76/agg-rx.c tid = rcu_dereference(wcid->aggr[status->tid]); wcid 142 drivers/net/wireless/mediatek/mt76/agg-rx.c struct mt76_wcid *wcid = status->wcid; wcid 151 drivers/net/wireless/mediatek/mt76/agg-rx.c sta = wcid_to_sta(wcid); wcid 166 drivers/net/wireless/mediatek/mt76/agg-rx.c tid = rcu_dereference(wcid->aggr[status->tid]); wcid 232 drivers/net/wireless/mediatek/mt76/agg-rx.c int mt76_rx_aggr_start(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno, wcid 237 drivers/net/wireless/mediatek/mt76/agg-rx.c mt76_rx_aggr_stop(dev, wcid, tidno); wcid 249 drivers/net/wireless/mediatek/mt76/agg-rx.c rcu_assign_pointer(wcid->aggr[tidno], tid); wcid 278 drivers/net/wireless/mediatek/mt76/agg-rx.c void mt76_rx_aggr_stop(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno) wcid 284 drivers/net/wireless/mediatek/mt76/agg-rx.c tid = rcu_dereference(wcid->aggr[tidno]); wcid 286 drivers/net/wireless/mediatek/mt76/agg-rx.c rcu_assign_pointer(wcid->aggr[tidno], NULL); wcid 282 drivers/net/wireless/mediatek/mt76/dma.c struct sk_buff *skb, struct mt76_wcid *wcid, wcid 333 drivers/net/wireless/mediatek/mt76/dma.c ret = dev->drv->tx_prepare_skb(dev, txwi, qid, wcid, sta, &tx_info); wcid 465 drivers/net/wireless/mediatek/mt76/mac80211.c void mt76_wcid_key_setup(struct mt76_dev *dev, struct mt76_wcid *wcid, wcid 471 drivers/net/wireless/mediatek/mt76/mac80211.c wcid->rx_check_pn = false; wcid 479 drivers/net/wireless/mediatek/mt76/mac80211.c wcid->rx_check_pn = true; wcid 482 drivers/net/wireless/mediatek/mt76/mac80211.c memcpy(wcid->rx_key_pn[i], seq.ccmp.pn, sizeof(seq.ccmp.pn)); wcid 512 drivers/net/wireless/mediatek/mt76/mac80211.c return wcid_to_sta(mstat.wcid); wcid 519 drivers/net/wireless/mediatek/mt76/mac80211.c struct mt76_wcid *wcid = status->wcid; wcid 526 drivers/net/wireless/mediatek/mt76/mac80211.c if (!wcid || !wcid->rx_check_pn) wcid 540 drivers/net/wireless/mediatek/mt76/mac80211.c BUILD_BUG_ON(sizeof(status->iv) != sizeof(wcid->rx_key_pn[0])); wcid 541 drivers/net/wireless/mediatek/mt76/mac80211.c ret = memcmp(status->iv, wcid->rx_key_pn[status->tid], wcid 546 drivers/net/wireless/mediatek/mt76/mac80211.c memcpy(wcid->rx_key_pn[status->tid], status->iv, sizeof(status->iv)); wcid 560 drivers/net/wireless/mediatek/mt76/mac80211.c struct mt76_wcid *wcid = status->wcid; wcid 564 drivers/net/wireless/mediatek/mt76/mac80211.c if (ieee80211_is_pspoll(hdr->frame_control) && !wcid) { wcid 567 drivers/net/wireless/mediatek/mt76/mac80211.c wcid = status->wcid = (struct mt76_wcid *)sta->drv_priv; wcid 570 drivers/net/wireless/mediatek/mt76/mac80211.c if (!wcid || !wcid->sta) wcid 573 drivers/net/wireless/mediatek/mt76/mac80211.c sta = container_of((void *)wcid, struct ieee80211_sta, drv_priv); wcid 576 drivers/net/wireless/mediatek/mt76/mac80211.c ewma_signal_add(&wcid->rssi, -status->signal); wcid 578 drivers/net/wireless/mediatek/mt76/mac80211.c wcid->inactive_count = 0; wcid 580 drivers/net/wireless/mediatek/mt76/mac80211.c if (!test_bit(MT_WCID_FLAG_CHECK_PS, &wcid->flags)) wcid 599 drivers/net/wireless/mediatek/mt76/mac80211.c if (!!test_bit(MT_WCID_FLAG_PS, &wcid->flags) == ps) wcid 603 drivers/net/wireless/mediatek/mt76/mac80211.c set_bit(MT_WCID_FLAG_PS, &wcid->flags); wcid 605 drivers/net/wireless/mediatek/mt76/mac80211.c clear_bit(MT_WCID_FLAG_PS, &wcid->flags); wcid 665 drivers/net/wireless/mediatek/mt76/mac80211.c struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv; wcid 682 drivers/net/wireless/mediatek/mt76/mac80211.c mtxq->wcid = wcid; wcid 687 drivers/net/wireless/mediatek/mt76/mac80211.c ewma_signal_init(&wcid->rssi); wcid 688 drivers/net/wireless/mediatek/mt76/mac80211.c rcu_assign_pointer(dev->wcid[wcid->idx], wcid); wcid 699 drivers/net/wireless/mediatek/mt76/mac80211.c struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv; wcid 700 drivers/net/wireless/mediatek/mt76/mac80211.c int i, idx = wcid->idx; wcid 702 drivers/net/wireless/mediatek/mt76/mac80211.c rcu_assign_pointer(dev->wcid[idx], NULL); wcid 705 drivers/net/wireless/mediatek/mt76/mac80211.c for (i = 0; i < ARRAY_SIZE(wcid->aggr); i++) wcid 706 drivers/net/wireless/mediatek/mt76/mac80211.c mt76_rx_aggr_stop(dev, wcid, i); wcid 711 drivers/net/wireless/mediatek/mt76/mac80211.c mt76_tx_status_check(dev, wcid, true); wcid 160 drivers/net/wireless/mediatek/mt76/mt76.h struct sk_buff *skb, struct mt76_wcid *wcid, wcid 218 drivers/net/wireless/mediatek/mt76/mt76.h struct mt76_wcid *wcid; wcid 265 drivers/net/wireless/mediatek/mt76/mt76.h u8 wcid; wcid 295 drivers/net/wireless/mediatek/mt76/mt76.h enum mt76_txq_id qid, struct mt76_wcid *wcid, wcid 460 drivers/net/wireless/mediatek/mt76/mt76.h struct mt76_wcid __rcu *wcid[MT76_N_WCIDS]; wcid 513 drivers/net/wireless/mediatek/mt76/mt76.h struct mt76_wcid *wcid; wcid 664 drivers/net/wireless/mediatek/mt76/mt76.h wcid_to_sta(struct mt76_wcid *wcid) wcid 666 drivers/net/wireless/mediatek/mt76/mt76.h void *ptr = wcid; wcid 668 drivers/net/wireless/mediatek/mt76/mt76.h if (!wcid || !wcid->sta) wcid 705 drivers/net/wireless/mediatek/mt76/mt76.h struct mt76_wcid *wcid, struct sk_buff *skb); wcid 725 drivers/net/wireless/mediatek/mt76/mt76.h int mt76_rx_aggr_start(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tid, wcid 727 drivers/net/wireless/mediatek/mt76/mt76.h void mt76_rx_aggr_stop(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tid); wcid 729 drivers/net/wireless/mediatek/mt76/mt76.h void mt76_wcid_key_setup(struct mt76_dev *dev, struct mt76_wcid *wcid, wcid 737 drivers/net/wireless/mediatek/mt76/mt76.h int mt76_tx_status_skb_add(struct mt76_dev *dev, struct mt76_wcid *wcid, wcid 740 drivers/net/wireless/mediatek/mt76/mt76.h struct mt76_wcid *wcid, int pktid, wcid 745 drivers/net/wireless/mediatek/mt76/mt76.h void mt76_tx_status_check(struct mt76_dev *dev, struct mt76_wcid *wcid, wcid 26 drivers/net/wireless/mediatek/mt76/mt7603/beacon.c mt76_tx_queue_skb(dev, MT_TXQ_BEACON, skb, &mvif->sta.wcid, NULL); wcid 30 drivers/net/wireless/mediatek/mt76/mt7603/beacon.c FIELD_PREP(MT_DMA_FQCR0_TARGET_WCID, mvif->sta.wcid.idx) | wcid 123 drivers/net/wireless/mediatek/mt76/mt7603/beacon.c mt76_tx_queue_skb(dev, MT_TXQ_CAB, skb, &mvif->sta.wcid, NULL); wcid 37 drivers/net/wireless/mediatek/mt76/mt7603/dma.c struct mt76_wcid *wcid; wcid 53 drivers/net/wireless/mediatek/mt76/mt7603/dma.c wcid = rcu_dereference(dev->mt76.wcid[idx]); wcid 54 drivers/net/wireless/mediatek/mt76/mt7603/dma.c if (!wcid) wcid 57 drivers/net/wireless/mediatek/mt76/mt7603/dma.c priv = msta = container_of(wcid, struct mt7603_sta, wcid); wcid 223 drivers/net/wireless/mediatek/mt76/mt7603/init.c dev->global_sta.wcid.idx = MT7603_WTBL_RESERVED; wcid 224 drivers/net/wireless/mediatek/mt76/mt7603/init.c rcu_assign_pointer(dev->mt76.wcid[MT7603_WTBL_RESERVED], wcid 225 drivers/net/wireless/mediatek/mt76/mt7603/init.c &dev->global_sta.wcid); wcid 203 drivers/net/wireless/mediatek/mt76/mt7603/mac.c u32 addr = mt7603_wtbl1_addr(sta->wcid.idx); wcid 215 drivers/net/wireless/mediatek/mt76/mt7603/mac.c int idx = sta->wcid.idx; wcid 307 drivers/net/wireless/mediatek/mt76/mt7603/mac.c int idx = msta->wcid.idx; wcid 346 drivers/net/wireless/mediatek/mt76/mt7603/mac.c void mt7603_mac_tx_ba_reset(struct mt7603_dev *dev, int wcid, int tid, wcid 349 drivers/net/wireless/mediatek/mt76/mt7603/mac.c u32 addr = mt7603_wtbl2_addr(wcid); wcid 377 drivers/net/wireless/mediatek/mt76/mt7603/mac.c struct mt76_wcid *wcid; wcid 379 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (idx >= ARRAY_SIZE(dev->mt76.wcid)) wcid 382 drivers/net/wireless/mediatek/mt76/mt7603/mac.c wcid = rcu_dereference(dev->mt76.wcid[idx]); wcid 383 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (unicast || !wcid) wcid 384 drivers/net/wireless/mediatek/mt76/mt7603/mac.c return wcid; wcid 386 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (!wcid->sta) wcid 389 drivers/net/wireless/mediatek/mt76/mt7603/mac.c sta = container_of(wcid, struct mt7603_sta, wcid); wcid 393 drivers/net/wireless/mediatek/mt76/mt7603/mac.c return &sta->vif->sta.wcid; wcid 419 drivers/net/wireless/mediatek/mt76/mt7603/mac.c status->wcid = mt7603_rx_get_wcid(dev, idx, unicast); wcid 538 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (!status->wcid || !ieee80211_is_data_qos(hdr->frame_control)) wcid 595 drivers/net/wireless/mediatek/mt76/mt7603/mac.c int wcid = sta->wcid.idx; wcid 596 drivers/net/wireless/mediatek/mt76/mt7603/mac.c u32 addr = mt7603_wtbl2_addr(wcid); wcid 709 drivers/net/wireless/mediatek/mt76/mt7603/mac.c FIELD_PREP(MT_WTBL_UPDATE_WLAN_IDX, wcid) | wcid 713 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (!(sta->wcid.tx_info & MT_WCID_TX_INFO_SET)) wcid 717 drivers/net/wireless/mediatek/mt76/mt7603/mac.c sta->wcid.tx_info |= MT_WCID_TX_INFO_SET; wcid 749 drivers/net/wireless/mediatek/mt76/mt7603/mac.c int mt7603_wtbl_set_key(struct mt7603_dev *dev, int wcid, wcid 753 drivers/net/wireless/mediatek/mt76/mt7603/mac.c u32 addr = mt7603_wtbl3_addr(wcid); wcid 768 drivers/net/wireless/mediatek/mt76/mt7603/mac.c addr = mt7603_wtbl1_addr(wcid); wcid 780 drivers/net/wireless/mediatek/mt76/mt7603/mac.c struct mt76_wcid *wcid, struct ieee80211_sta *sta, wcid 813 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (wcid) wcid 814 drivers/net/wireless/mediatek/mt76/mt7603/mac.c wlan_idx = wcid->idx; wcid 908 drivers/net/wireless/mediatek/mt76/mt7603/mac.c enum mt76_txq_id qid, struct mt76_wcid *wcid, wcid 913 drivers/net/wireless/mediatek/mt76/mt7603/mac.c struct mt7603_sta *msta = container_of(wcid, struct mt7603_sta, wcid); wcid 918 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (!wcid) wcid 919 drivers/net/wireless/mediatek/mt76/mt7603/mac.c wcid = &dev->global_sta.wcid; wcid 930 drivers/net/wireless/mediatek/mt76/mt7603/mac.c pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); wcid 940 drivers/net/wireless/mediatek/mt76/mt7603/mac.c mt7603_mac_write_txwi(dev, txwi_ptr, tx_info->skb, qid, wcid, wcid 1093 drivers/net/wireless/mediatek/mt76/mt7603/mac.c skb = mt76_tx_status_skb_get(mdev, &sta->wcid, pid, &list); wcid 1114 drivers/net/wireless/mediatek/mt76/mt7603/mac.c struct mt76_wcid *wcid; wcid 1128 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (wcidx >= ARRAY_SIZE(dev->mt76.wcid)) wcid 1133 drivers/net/wireless/mediatek/mt76/mt7603/mac.c wcid = rcu_dereference(dev->mt76.wcid[wcidx]); wcid 1134 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (!wcid) wcid 1137 drivers/net/wireless/mediatek/mt76/mt7603/mac.c msta = container_of(wcid, struct mt7603_sta, wcid); wcid 1138 drivers/net/wireless/mediatek/mt76/mt7603/mac.c sta = wcid_to_sta(wcid); wcid 68 drivers/net/wireless/mediatek/mt76/mt7603/main.c mvif->sta.wcid.idx = idx; wcid 69 drivers/net/wireless/mediatek/mt76/mt7603/main.c mvif->sta.wcid.hw_key_idx = -1; wcid 75 drivers/net/wireless/mediatek/mt76/mt7603/main.c mtxq->wcid = &mvif->sta.wcid; wcid 77 drivers/net/wireless/mediatek/mt76/mt7603/main.c rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); wcid 90 drivers/net/wireless/mediatek/mt76/mt7603/main.c int idx = mvif->sta.wcid.idx; wcid 98 drivers/net/wireless/mediatek/mt76/mt7603/main.c rcu_assign_pointer(dev->mt76.wcid[idx], NULL); wcid 330 drivers/net/wireless/mediatek/mt76/mt7603/main.c msta->wcid.sta = 1; wcid 331 drivers/net/wireless/mediatek/mt76/mt7603/main.c msta->wcid.idx = idx; wcid 336 drivers/net/wireless/mediatek/mt76/mt7603/main.c set_bit(MT_WCID_FLAG_CHECK_PS, &msta->wcid.flags); wcid 356 drivers/net/wireless/mediatek/mt76/mt7603/main.c struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv; wcid 360 drivers/net/wireless/mediatek/mt76/mt7603/main.c mt7603_filter_tx(dev, wcid->idx, true); wcid 363 drivers/net/wireless/mediatek/mt76/mt7603/main.c mt7603_wtbl_clear(dev, wcid->idx); wcid 457 drivers/net/wireless/mediatek/mt76/mt7603/main.c struct mt76_wcid *wcid = &msta->wcid; wcid 481 drivers/net/wireless/mediatek/mt76/mt7603/main.c key->hw_key_idx = wcid->idx; wcid 482 drivers/net/wireless/mediatek/mt76/mt7603/main.c wcid->hw_key_idx = idx; wcid 484 drivers/net/wireless/mediatek/mt76/mt7603/main.c if (idx == wcid->hw_key_idx) wcid 485 drivers/net/wireless/mediatek/mt76/mt7603/main.c wcid->hw_key_idx = -1; wcid 489 drivers/net/wireless/mediatek/mt76/mt7603/main.c mt76_wcid_key_setup(&dev->mt76, wcid, key); wcid 491 drivers/net/wireless/mediatek/mt76/mt7603/main.c return mt7603_wtbl_set_key(dev, wcid->idx, key); wcid 566 drivers/net/wireless/mediatek/mt76/mt7603/main.c mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn, wcid 571 drivers/net/wireless/mediatek/mt76/mt7603/main.c mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); wcid 576 drivers/net/wireless/mediatek/mt76/mt7603/main.c mt7603_mac_tx_ba_reset(dev, msta->wcid.idx, tid, ba_size); wcid 581 drivers/net/wireless/mediatek/mt76/mt7603/main.c mt7603_mac_tx_ba_reset(dev, msta->wcid.idx, tid, -1); wcid 589 drivers/net/wireless/mediatek/mt76/mt7603/main.c mt7603_mac_tx_ba_reset(dev, msta->wcid.idx, tid, -1); wcid 639 drivers/net/wireless/mediatek/mt76/mt7603/main.c struct mt76_wcid *wcid = &dev->global_sta.wcid; wcid 645 drivers/net/wireless/mediatek/mt76/mt7603/main.c wcid = &msta->wcid; wcid 650 drivers/net/wireless/mediatek/mt76/mt7603/main.c wcid = &mvif->sta.wcid; wcid 653 drivers/net/wireless/mediatek/mt76/mt7603/main.c mt76_tx(&dev->mt76, control->sta, wcid, skb); wcid 60 drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h struct mt76_wcid wcid; /* must be first */ wcid 203 drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h void mt7603_mac_tx_ba_reset(struct mt7603_dev *dev, int wcid, int tid, wcid 219 drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h int mt7603_wtbl_set_key(struct mt7603_dev *dev, int wcid, wcid 228 drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h enum mt76_txq_id qid, struct mt76_wcid *wcid, wcid 126 drivers/net/wireless/mediatek/mt76/mt7615/init.c rcu_assign_pointer(dev->mt76.wcid[idx], &dev->mt76.global_wcid); wcid 25 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct mt76_wcid *wcid; wcid 27 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (idx >= ARRAY_SIZE(dev->mt76.wcid)) wcid 30 drivers/net/wireless/mediatek/mt76/mt7615/mac.c wcid = rcu_dereference(dev->mt76.wcid[idx]); wcid 31 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (unicast || !wcid) wcid 32 drivers/net/wireless/mediatek/mt76/mt7615/mac.c return wcid; wcid 34 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!wcid->sta) wcid 37 drivers/net/wireless/mediatek/mt76/mt7615/mac.c sta = container_of(wcid, struct mt7615_sta, wcid); wcid 41 drivers/net/wireless/mediatek/mt76/mt7615/mac.c return &sta->vif->sta.wcid; wcid 63 drivers/net/wireless/mediatek/mt76/mt7615/mac.c status->wcid = mt7615_rx_get_wcid(dev, idx, unicast); wcid 207 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!status->wcid || !ieee80211_is_data_qos(hdr->frame_control)) wcid 306 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct sk_buff *skb, struct mt76_wcid *wcid, wcid 355 drivers/net/wireless/mediatek/mt76/mt7615/mac.c FIELD_PREP(MT_TXD1_WLAN_IDX, wcid->idx) | wcid 458 drivers/net/wireless/mediatek/mt76/mt7615/mac.c static u32 mt7615_mac_wtbl_addr(int wcid) wcid 460 drivers/net/wireless/mediatek/mt76/mt7615/mac.c return MT_WTBL_BASE + wcid * MT_WTBL_ENTRY_SIZE; wcid 468 drivers/net/wireless/mediatek/mt76/mt7615/mac.c int wcid = sta->wcid.idx; wcid 469 drivers/net/wireless/mediatek/mt76/mt7615/mac.c u32 addr = mt7615_mac_wtbl_addr(wcid); wcid 584 drivers/net/wireless/mediatek/mt76/mt7615/mac.c FIELD_PREP(MT_WTBL_UPDATE_WLAN_IDX, wcid) | wcid 593 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!(sta->wcid.tx_info & MT_WCID_TX_INFO_SET)) wcid 597 drivers/net/wireless/mediatek/mt76/mt7615/mac.c sta->wcid.tx_info |= MT_WCID_TX_INFO_SET; wcid 628 drivers/net/wireless/mediatek/mt76/mt7615/mac.c mt7615_mac_wtbl_update_key(struct mt7615_dev *dev, struct mt76_wcid *wcid, wcid 633 drivers/net/wireless/mediatek/mt76/mt7615/mac.c u32 addr = mt7615_mac_wtbl_addr(wcid->idx) + 30 * 4; wcid 646 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher != MT_CIPHER_BIP_CMAC_128 && wcid->cipher) wcid 648 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher != MT_CIPHER_BIP_CMAC_128 || !wcid->cipher) wcid 653 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (wcid->cipher & ~BIT(cipher)) { wcid 667 drivers/net/wireless/mediatek/mt76/mt7615/mac.c mt7615_mac_wtbl_update_pk(struct mt7615_dev *dev, struct mt76_wcid *wcid, wcid 671 drivers/net/wireless/mediatek/mt76/mt7615/mac.c u32 addr = mt7615_mac_wtbl_addr(wcid->idx), w0, w1; wcid 683 drivers/net/wireless/mediatek/mt76/mt7615/mac.c !wcid->cipher) wcid 686 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!(wcid->cipher & ~BIT(cipher))) wcid 696 drivers/net/wireless/mediatek/mt76/mt7615/mac.c FIELD_PREP(MT_WTBL_UPDATE_WLAN_IDX, wcid->idx) | wcid 706 drivers/net/wireless/mediatek/mt76/mt7615/mac.c mt7615_mac_wtbl_update_cipher(struct mt7615_dev *dev, struct mt76_wcid *wcid, wcid 710 drivers/net/wireless/mediatek/mt76/mt7615/mac.c u32 addr = mt7615_mac_wtbl_addr(wcid->idx); wcid 713 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (cipher != MT_CIPHER_BIP_CMAC_128 || !wcid->cipher) wcid 718 drivers/net/wireless/mediatek/mt76/mt7615/mac.c wcid->cipher & BIT(MT_CIPHER_BIP_CMAC_128)) wcid 722 drivers/net/wireless/mediatek/mt76/mt7615/mac.c else if (!(wcid->cipher & ~BIT(cipher))) wcid 728 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct mt76_wcid *wcid, wcid 741 drivers/net/wireless/mediatek/mt76/mt7615/mac.c mt7615_mac_wtbl_update_cipher(dev, wcid, cipher, cmd); wcid 742 drivers/net/wireless/mediatek/mt76/mt7615/mac.c err = mt7615_mac_wtbl_update_key(dev, wcid, key, cipher, cmd); wcid 746 drivers/net/wireless/mediatek/mt76/mt7615/mac.c err = mt7615_mac_wtbl_update_pk(dev, wcid, cipher, key->keyidx, wcid 752 drivers/net/wireless/mediatek/mt76/mt7615/mac.c wcid->cipher |= BIT(cipher); wcid 754 drivers/net/wireless/mediatek/mt76/mt7615/mac.c wcid->cipher &= ~BIT(cipher); wcid 763 drivers/net/wireless/mediatek/mt76/mt7615/mac.c enum mt76_txq_id qid, struct mt76_wcid *wcid, wcid 769 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct mt7615_sta *msta = container_of(wcid, struct mt7615_sta, wcid); wcid 778 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!wcid) wcid 779 drivers/net/wireless/mediatek/mt76/mt7615/mac.c wcid = &dev->mt76.global_wcid; wcid 781 drivers/net/wireless/mediatek/mt76/mt7615/mac.c pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); wcid 791 drivers/net/wireless/mediatek/mt76/mt7615/mac.c mt7615_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, sta, wcid 984 drivers/net/wireless/mediatek/mt76/mt7615/mac.c skb = mt76_tx_status_skb_get(mdev, &sta->wcid, pid, &list); wcid 1005 drivers/net/wireless/mediatek/mt76/mt7615/mac.c struct mt76_wcid *wcid; wcid 1019 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (wcidx >= ARRAY_SIZE(dev->mt76.wcid)) wcid 1024 drivers/net/wireless/mediatek/mt76/mt7615/mac.c wcid = rcu_dereference(dev->mt76.wcid[wcidx]); wcid 1025 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!wcid) wcid 1028 drivers/net/wireless/mediatek/mt76/mt7615/mac.c msta = container_of(wcid, struct mt7615_sta, wcid); wcid 1029 drivers/net/wireless/mediatek/mt76/mt7615/mac.c sta = wcid_to_sta(wcid); wcid 100 drivers/net/wireless/mediatek/mt76/mt7615/main.c mvif->sta.wcid.idx = idx; wcid 101 drivers/net/wireless/mediatek/mt76/mt7615/main.c mvif->sta.wcid.hw_key_idx = -1; wcid 103 drivers/net/wireless/mediatek/mt76/mt7615/main.c rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); wcid 105 drivers/net/wireless/mediatek/mt76/mt7615/main.c mtxq->wcid = &mvif->sta.wcid; wcid 119 drivers/net/wireless/mediatek/mt76/mt7615/main.c int idx = mvif->sta.wcid.idx; wcid 125 drivers/net/wireless/mediatek/mt76/mt7615/main.c rcu_assign_pointer(dev->mt76.wcid[idx], NULL); wcid 175 drivers/net/wireless/mediatek/mt76/mt7615/main.c struct mt76_wcid *wcid = &msta->wcid; wcid 207 drivers/net/wireless/mediatek/mt76/mt7615/main.c key->hw_key_idx = wcid->idx; wcid 208 drivers/net/wireless/mediatek/mt76/mt7615/main.c wcid->hw_key_idx = idx; wcid 209 drivers/net/wireless/mediatek/mt76/mt7615/main.c } else if (idx == wcid->hw_key_idx) { wcid 210 drivers/net/wireless/mediatek/mt76/mt7615/main.c wcid->hw_key_idx = -1; wcid 212 drivers/net/wireless/mediatek/mt76/mt7615/main.c mt76_wcid_key_setup(&dev->mt76, wcid, wcid 215 drivers/net/wireless/mediatek/mt76/mt7615/main.c return mt7615_mac_wtbl_set_key(dev, wcid, key, cmd); wcid 352 drivers/net/wireless/mediatek/mt76/mt7615/main.c msta->wcid.sta = 1; wcid 353 drivers/net/wireless/mediatek/mt76/mt7615/main.c msta->wcid.idx = idx; wcid 410 drivers/net/wireless/mediatek/mt76/mt7615/main.c struct mt76_wcid *wcid = &dev->mt76.global_wcid; wcid 416 drivers/net/wireless/mediatek/mt76/mt7615/main.c wcid = &sta->wcid; wcid 423 drivers/net/wireless/mediatek/mt76/mt7615/main.c wcid = &mvif->sta.wcid; wcid 426 drivers/net/wireless/mediatek/mt76/mt7615/main.c mt76_tx(&dev->mt76, control->sta, wcid, skb); wcid 460 drivers/net/wireless/mediatek/mt76/mt7615/main.c mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn, wcid 465 drivers/net/wireless/mediatek/mt76/mt7615/main.c mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); wcid 828 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c tx_wlan_idx = mvif->sta.wcid.idx; wcid 845 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c tx_wlan_idx = msta->wcid.idx; wcid 906 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = mvif->sta.wcid.idx, wcid 936 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = mvif->sta.wcid.idx, wcid 958 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = msta->wcid.idx, wcid 988 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = msta->wcid.idx, wcid 1016 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = mvif->sta.wcid.idx, wcid 1054 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = msta->wcid.idx, wcid 1098 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c struct mt76_wcid *wcid = &dev->mt76.global_wcid; wcid 1118 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = wcid->idx, wcid 1133 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c mt7615_mac_write_txwi(dev, (__le32 *)(req.pkt), skb, wcid, NULL, wcid 1361 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c wtbl_hdr->wlan_idx = msta->wcid.idx; wcid 1433 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c sta_hdr->wlan_idx = msta->wcid.idx; wcid 1477 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = msta->wcid.idx, wcid 1496 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = msta->wcid.idx, wcid 1545 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = msta->wcid.idx, wcid 1565 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .wlan_idx = msta->wcid.idx, wcid 55 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h struct mt76_wcid wcid; /* must be first */ wcid 235 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h struct sk_buff *skb, struct mt76_wcid *wcid, wcid 241 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h int mt7615_mac_wtbl_set_key(struct mt7615_dev *dev, struct mt76_wcid *wcid, wcid 254 drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h enum mt76_txq_id qid, struct mt76_wcid *wcid, wcid 177 drivers/net/wireless/mediatek/mt76/mt76x02.h enum mt76_txq_id qid, struct mt76_wcid *wcid, wcid 241 drivers/net/wireless/mediatek/mt76/mt76x02.h struct mt76_wcid *wcid; wcid 243 drivers/net/wireless/mediatek/mt76/mt76x02.h if (idx >= ARRAY_SIZE(dev->wcid)) wcid 246 drivers/net/wireless/mediatek/mt76/mt76x02.h wcid = rcu_dereference(dev->wcid[idx]); wcid 247 drivers/net/wireless/mediatek/mt76/mt76x02.h if (!wcid) wcid 250 drivers/net/wireless/mediatek/mt76/mt76x02.h return container_of(wcid, struct mt76x02_sta, wcid); wcid 260 drivers/net/wireless/mediatek/mt76/mt76x02.h return &sta->wcid; wcid 206 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c void mt76x02_mac_wcid_set_rate(struct mt76x02_dev *dev, struct mt76_wcid *wcid, wcid 219 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c wcid->tx_info = tx_info; wcid 245 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c stat->wcid = FIELD_GET(MT_TX_STAT_FIFO_WCID, stat1); wcid 314 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c struct sk_buff *skb, struct mt76_wcid *wcid, wcid 330 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (!info->control.hw_key && wcid && wcid->hw_key_idx != 0xff && wcid 332 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c wcid = NULL; wcid 337 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (wcid) wcid 338 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->wcid = wcid->idx; wcid 340 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c txwi->wcid = 0xff; wcid 342 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (wcid && wcid->sw_iv && key) { wcid 357 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (wcid && (rate->idx < 0 || !rate->count)) { wcid 358 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c wcid_tx_info = wcid->tx_info; wcid 474 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c mt76x02_mac_process_tx_rate(&rate[0], msta->wcid.tx_info, wcid 519 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c struct mt76_wcid *wcid = NULL; wcid 529 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (stat->wcid < ARRAY_SIZE(dev->mt76.wcid)) wcid 530 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c wcid = rcu_dereference(dev->mt76.wcid[stat->wcid]); wcid 532 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (wcid && wcid->sta) { wcid 535 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c priv = msta = container_of(wcid, struct mt76x02_sta, wcid); wcid 542 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c if (wcid) { wcid 544 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c status.skb = mt76_tx_status_skb_get(mdev, wcid, wcid 565 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c stat->wcid == msta->status.wcid && msta->n_frames < 32) { wcid 721 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c u8 wcid; wcid 737 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c wcid = FIELD_GET(MT_RXWI_CTL_WCID, ctl); wcid 738 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c sta = mt76x02_rx_get_sta(&dev->mt76, wcid); wcid 739 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c status->wcid = mt76x02_rx_get_sta_wcid(sta, unicast); wcid 842 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c trace_mac_txdone_add(dev, txwi->wcid, txwi->pktid); wcid 17 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h u8 wcid; wcid 32 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h struct mt76_wcid wcid; /* must be first */ wcid 133 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h u8 wcid; wcid 174 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h void mt76x02_mac_wcid_set_rate(struct mt76x02_dev *dev, struct mt76_wcid *wcid, wcid 187 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h struct sk_buff *skb, struct mt76_wcid *wcid, wcid 385 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c struct mt76_wcid *wcid; wcid 390 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c wcid = (struct mt76_wcid *)sta->drv_priv; wcid 392 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c if (wcid->hw_key_idx != key->keyidx || wcid->sw_iv) wcid 395 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c mt76x02_mac_wcid_sync_pn(dev, wcid->idx, key); wcid 410 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c for (i = 0; i < ARRAY_SIZE(dev->mt76.wcid); i++) { wcid 414 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c struct mt76_wcid *wcid; wcid 417 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c wcid = rcu_dereference_protected(dev->mt76.wcid[i], wcid 419 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c if (!wcid) wcid 422 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c priv = msta = container_of(wcid, struct mt76x02_sta, wcid); wcid 22 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h #define TXID_ENTRY __field(u8, wcid) __field(u8, pktid) wcid 23 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h #define TXID_ASSIGN __entry->wcid = wcid; __entry->pktid = pktid wcid 25 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h #define TXID_PR_ARG __entry->wcid, __entry->pktid wcid 40 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h TP_PROTO(struct mt76x02_dev *dev, u8 wcid, u8 pktid), wcid 41 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h TP_ARGS(dev, wcid, pktid), wcid 57 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h TP_PROTO(struct mt76x02_dev *dev, u8 wcid, u8 pktid), wcid 58 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h TP_ARGS(dev, wcid, pktid) wcid 87 drivers/net/wireless/mediatek/mt76/mt76x02_trace.h __entry->wcid = stat->wcid; wcid 17 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c struct mt76_wcid *wcid = &dev->mt76.global_wcid; wcid 23 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c wcid = &msta->wcid; wcid 28 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c wcid = &mvif->group_wcid; wcid 31 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c mt76_tx(&dev->mt76, control->sta, wcid, skb); wcid 139 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c enum mt76_txq_id qid, struct mt76_wcid *wcid, wcid 149 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c if (qid == MT_TXQ_PSD && wcid && wcid->idx < 128) wcid 150 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c mt76x02_mac_wcid_set_drop(dev, wcid->idx, false); wcid 154 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); wcid 156 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); wcid 171 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) wcid 18 drivers/net/wireless/mediatek/mt76/mt76x02_usb.h enum mt76_txq_id qid, struct mt76_wcid *wcid, wcid 64 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c enum mt76_txq_id qid, struct mt76_wcid *wcid, wcid 78 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); wcid 81 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); wcid 97 drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) wcid 257 drivers/net/wireless/mediatek/mt76/mt76x02_util.c idx = mt76_wcid_alloc(dev->mt76.wcid_mask, ARRAY_SIZE(dev->mt76.wcid)); wcid 262 drivers/net/wireless/mediatek/mt76/mt76x02_util.c msta->wcid.sta = 1; wcid 263 drivers/net/wireless/mediatek/mt76/mt76x02_util.c msta->wcid.idx = idx; wcid 264 drivers/net/wireless/mediatek/mt76/mt76x02_util.c msta->wcid.hw_key_idx = -1; wcid 269 drivers/net/wireless/mediatek/mt76/mt76x02_util.c set_bit(MT_WCID_FLAG_CHECK_PS, &msta->wcid.flags); wcid 279 drivers/net/wireless/mediatek/mt76/mt76x02_util.c struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv; wcid 280 drivers/net/wireless/mediatek/mt76/mt76x02_util.c int idx = wcid->idx; wcid 300 drivers/net/wireless/mediatek/mt76/mt76x02_util.c mtxq->wcid = &mvif->group_wcid; wcid 376 drivers/net/wireless/mediatek/mt76/mt76x02_util.c mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, wcid 378 drivers/net/wireless/mediatek/mt76/mt76x02_util.c mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); wcid 381 drivers/net/wireless/mediatek/mt76/mt76x02_util.c mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); wcid 382 drivers/net/wireless/mediatek/mt76/mt76x02_util.c mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, wcid 415 drivers/net/wireless/mediatek/mt76/mt76x02_util.c struct mt76_wcid *wcid; wcid 452 drivers/net/wireless/mediatek/mt76/mt76x02_util.c wcid = msta ? &msta->wcid : &mvif->group_wcid; wcid 455 drivers/net/wireless/mediatek/mt76/mt76x02_util.c key->hw_key_idx = wcid->idx; wcid 456 drivers/net/wireless/mediatek/mt76/mt76x02_util.c wcid->hw_key_idx = idx; wcid 459 drivers/net/wireless/mediatek/mt76/mt76x02_util.c wcid->sw_iv = true; wcid 462 drivers/net/wireless/mediatek/mt76/mt76x02_util.c if (idx == wcid->hw_key_idx) { wcid 463 drivers/net/wireless/mediatek/mt76/mt76x02_util.c wcid->hw_key_idx = -1; wcid 464 drivers/net/wireless/mediatek/mt76/mt76x02_util.c wcid->sw_iv = false; wcid 469 drivers/net/wireless/mediatek/mt76/mt76x02_util.c mt76_wcid_key_setup(&dev->mt76, wcid, key); wcid 472 drivers/net/wireless/mediatek/mt76/mt76x02_util.c if (key || wcid->hw_key_idx == idx) { wcid 473 drivers/net/wireless/mediatek/mt76/mt76x02_util.c ret = mt76x02_mac_wcid_set_key(dev, wcid->idx, key); wcid 481 drivers/net/wireless/mediatek/mt76/mt76x02_util.c return mt76x02_mac_wcid_set_key(dev, msta->wcid.idx, key); wcid 588 drivers/net/wireless/mediatek/mt76/mt76x02_util.c mt76x02_mac_wcid_set_rate(dev, &msta->wcid, &rate); wcid 624 drivers/net/wireless/mediatek/mt76/mt76x02_util.c int idx = msta->wcid.idx; wcid 157 drivers/net/wireless/mediatek/mt76/tx.c mt76_tx_status_skb_add(struct mt76_dev *dev, struct mt76_wcid *wcid, wcid 164 drivers/net/wireless/mediatek/mt76/tx.c if (!wcid) wcid 177 drivers/net/wireless/mediatek/mt76/tx.c wcid->packet_id = (wcid->packet_id + 1) & MT_PACKET_ID_MASK; wcid 178 drivers/net/wireless/mediatek/mt76/tx.c if (wcid->packet_id == MT_PACKET_ID_NO_ACK || wcid 179 drivers/net/wireless/mediatek/mt76/tx.c wcid->packet_id == MT_PACKET_ID_NO_SKB) wcid 180 drivers/net/wireless/mediatek/mt76/tx.c wcid->packet_id = MT_PACKET_ID_FIRST; wcid 182 drivers/net/wireless/mediatek/mt76/tx.c pid = wcid->packet_id; wcid 183 drivers/net/wireless/mediatek/mt76/tx.c cb->wcid = wcid->idx; wcid 195 drivers/net/wireless/mediatek/mt76/tx.c mt76_tx_status_skb_get(struct mt76_dev *dev, struct mt76_wcid *wcid, int pktid, wcid 203 drivers/net/wireless/mediatek/mt76/tx.c if (wcid && cb->wcid != wcid->idx) wcid 222 drivers/net/wireless/mediatek/mt76/tx.c mt76_tx_status_check(struct mt76_dev *dev, struct mt76_wcid *wcid, bool flush) wcid 227 drivers/net/wireless/mediatek/mt76/tx.c mt76_tx_status_skb_get(dev, wcid, flush ? -1 : 0, &list); wcid 249 drivers/net/wireless/mediatek/mt76/tx.c struct mt76_wcid *wcid, struct sk_buff *skb) wcid 261 drivers/net/wireless/mediatek/mt76/tx.c if (!(wcid->tx_info & MT_WCID_TX_INFO_SET)) wcid 281 drivers/net/wireless/mediatek/mt76/tx.c dev->queue_ops->tx_queue_skb(dev, qid, skb, wcid, sta); wcid 320 drivers/net/wireless/mediatek/mt76/tx.c struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv; wcid 329 drivers/net/wireless/mediatek/mt76/tx.c dev->queue_ops->tx_queue_skb(dev, MT_TXQ_PSD, skb, wcid, sta); wcid 385 drivers/net/wireless/mediatek/mt76/tx.c struct mt76_wcid *wcid = mtxq->wcid; wcid 395 drivers/net/wireless/mediatek/mt76/tx.c if (test_bit(MT_WCID_FLAG_PS, &wcid->flags)) { wcid 407 drivers/net/wireless/mediatek/mt76/tx.c if (!(wcid->tx_info & MT_WCID_TX_INFO_SET)) wcid 419 drivers/net/wireless/mediatek/mt76/tx.c idx = dev->queue_ops->tx_queue_skb(dev, qid, skb, wcid, txq->sta); wcid 453 drivers/net/wireless/mediatek/mt76/tx.c idx = dev->queue_ops->tx_queue_skb(dev, qid, skb, wcid, wcid 479 drivers/net/wireless/mediatek/mt76/tx.c struct mt76_wcid *wcid; wcid 499 drivers/net/wireless/mediatek/mt76/tx.c wcid = mtxq->wcid; wcid 500 drivers/net/wireless/mediatek/mt76/tx.c if (wcid && test_bit(MT_WCID_FLAG_PS, &wcid->flags)) wcid 769 drivers/net/wireless/mediatek/mt76/usb.c struct sk_buff *skb, struct mt76_wcid *wcid, wcid 783 drivers/net/wireless/mediatek/mt76/usb.c err = dev->drv->tx_prepare_skb(dev, NULL, qid, wcid, sta, &tx_info); wcid 69 drivers/net/wireless/mediatek/mt76/util.c struct mt76_wcid *wcid; wcid 86 drivers/net/wireless/mediatek/mt76/util.c wcid = rcu_dereference(dev->wcid[j]); wcid 87 drivers/net/wireless/mediatek/mt76/util.c if (!wcid) wcid 91 drivers/net/wireless/mediatek/mt76/util.c if (wcid->inactive_count++ < 5) wcid 92 drivers/net/wireless/mediatek/mt76/util.c cur_rssi = -ewma_signal_read(&wcid->rssi); wcid 356 drivers/net/wireless/mediatek/mt7601u/dma.c struct mt76_wcid *wcid, int hw_q) wcid 363 drivers/net/wireless/mediatek/mt7601u/dma.c if (wcid->hw_key_idx == 0xff) wcid 146 drivers/net/wireless/mediatek/mt7601u/mac.c void mt76_mac_wcid_set_rate(struct mt7601u_dev *dev, struct mt76_wcid *wcid, wcid 152 drivers/net/wireless/mediatek/mt7601u/mac.c wcid->tx_rate = mt76_mac_tx_rate_val(dev, rate, &wcid->tx_rate_nss); wcid 153 drivers/net/wireless/mediatek/mt7601u/mac.c wcid->tx_rate_set = true; wcid 168 drivers/net/wireless/mediatek/mt7601u/mac.c stat.wcid = FIELD_GET(MT_TX_STAT_FIFO_WCID, val); wcid 178 drivers/net/wireless/mediatek/mt7601u/mac.c struct mt76_wcid *wcid = NULL; wcid 182 drivers/net/wireless/mediatek/mt7601u/mac.c if (stat->wcid < ARRAY_SIZE(dev->wcid)) wcid 183 drivers/net/wireless/mediatek/mt7601u/mac.c wcid = rcu_dereference(dev->wcid[stat->wcid]); wcid 185 drivers/net/wireless/mediatek/mt7601u/mac.c if (wcid) { wcid 186 drivers/net/wireless/mediatek/mt7601u/mac.c msta = container_of(wcid, struct mt76_sta, wcid); wcid 374 drivers/net/wireless/mediatek/mt7601u/mac.c struct mt76_wcid *wcid; wcid 380 drivers/net/wireless/mediatek/mt7601u/mac.c for (i = 0; i < ARRAY_SIZE(dev->wcid); i++) { wcid 381 drivers/net/wireless/mediatek/mt7601u/mac.c wcid = rcu_dereference(dev->wcid[i]); wcid 382 drivers/net/wireless/mediatek/mt7601u/mac.c if (!wcid) wcid 385 drivers/net/wireless/mediatek/mt7601u/mac.c msta = container_of(wcid, struct mt76_sta, wcid); wcid 16 drivers/net/wireless/mediatek/mt7601u/mac.h u8 wcid; wcid 114 drivers/net/wireless/mediatek/mt7601u/mac.h u8 wcid; wcid 159 drivers/net/wireless/mediatek/mt7601u/mac.h void mt76_mac_wcid_set_rate(struct mt7601u_dev *dev, struct mt76_wcid *wcid, wcid 50 drivers/net/wireless/mediatek/mt7601u/main.c unsigned int wcid = GROUP_WCID(idx); wcid 62 drivers/net/wireless/mediatek/mt7601u/main.c if (dev->wcid_mask[wcid / BITS_PER_LONG] & BIT(wcid % BITS_PER_LONG)) wcid 64 drivers/net/wireless/mediatek/mt7601u/main.c dev->wcid_mask[wcid / BITS_PER_LONG] |= BIT(wcid % BITS_PER_LONG); wcid 65 drivers/net/wireless/mediatek/mt7601u/main.c mvif->group_wcid.idx = wcid; wcid 76 drivers/net/wireless/mediatek/mt7601u/main.c unsigned int wcid = mvif->group_wcid.idx; wcid 78 drivers/net/wireless/mediatek/mt7601u/main.c dev->wcid_mask[wcid / BITS_PER_LONG] &= ~BIT(wcid % BITS_PER_LONG); wcid 226 drivers/net/wireless/mediatek/mt7601u/main.c msta->wcid.idx = idx; wcid 227 drivers/net/wireless/mediatek/mt7601u/main.c msta->wcid.hw_key_idx = -1; wcid 230 drivers/net/wireless/mediatek/mt7601u/main.c rcu_assign_pointer(dev->wcid[idx], &msta->wcid); wcid 245 drivers/net/wireless/mediatek/mt7601u/main.c int idx = msta->wcid.idx; wcid 248 drivers/net/wireless/mediatek/mt7601u/main.c rcu_assign_pointer(dev->wcid[idx], NULL); wcid 299 drivers/net/wireless/mediatek/mt7601u/main.c struct mt76_wcid *wcid = msta ? &msta->wcid : &mvif->group_wcid; wcid 315 drivers/net/wireless/mediatek/mt7601u/main.c key->hw_key_idx = wcid->idx; wcid 316 drivers/net/wireless/mediatek/mt7601u/main.c wcid->hw_key_idx = idx; wcid 318 drivers/net/wireless/mediatek/mt7601u/main.c if (idx == wcid->hw_key_idx) wcid 319 drivers/net/wireless/mediatek/mt7601u/main.c wcid->hw_key_idx = -1; wcid 325 drivers/net/wireless/mediatek/mt7601u/main.c if (key || wcid->hw_key_idx == idx) { wcid 326 drivers/net/wireless/mediatek/mt7601u/main.c ret = mt76_mac_wcid_set_key(dev, wcid->idx, key); wcid 334 drivers/net/wireless/mediatek/mt7601u/main.c return mt76_mac_wcid_set_key(dev, msta->wcid.idx, key); wcid 357 drivers/net/wireless/mediatek/mt7601u/main.c WARN_ON(msta->wcid.idx > GROUP_WCID(0)); wcid 361 drivers/net/wireless/mediatek/mt7601u/main.c mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); wcid 364 drivers/net/wireless/mediatek/mt7601u/main.c mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, wcid 402 drivers/net/wireless/mediatek/mt7601u/main.c mt76_mac_wcid_set_rate(dev, &msta->wcid, &rate); wcid 174 drivers/net/wireless/mediatek/mt7601u/mt7601u.h struct mt76_wcid __rcu *wcid[N_WCIDS]; wcid 268 drivers/net/wireless/mediatek/mt7601u/mt7601u.h struct mt76_wcid wcid; wcid 390 drivers/net/wireless/mediatek/mt7601u/mt7601u.h struct mt76_wcid *wcid, int hw_q); wcid 298 drivers/net/wireless/mediatek/mt7601u/trace.h __entry->h.ack_ctl, __entry->h.wcid, wcid 131 drivers/net/wireless/mediatek/mt7601u/tx.c struct ieee80211_sta *sta, struct mt76_wcid *wcid, wcid 146 drivers/net/wireless/mediatek/mt7601u/tx.c if (!wcid->tx_rate_set) wcid 152 drivers/net/wireless/mediatek/mt7601u/tx.c rate_ctl = wcid->tx_rate; wcid 180 drivers/net/wireless/mediatek/mt7601u/tx.c txwi->wcid = wcid->idx; wcid 198 drivers/net/wireless/mediatek/mt7601u/tx.c struct mt76_wcid *wcid = dev->mon_wcid; wcid 213 drivers/net/wireless/mediatek/mt7601u/tx.c wcid = &msta->wcid; wcid 217 drivers/net/wireless/mediatek/mt7601u/tx.c wcid = &mvif->group_wcid; wcid 220 drivers/net/wireless/mediatek/mt7601u/tx.c txwi = mt7601u_push_txwi(dev, skb, sta, wcid, pkt_len); wcid 222 drivers/net/wireless/mediatek/mt7601u/tx.c if (mt7601u_dma_enqueue_tx(dev, skb, wcid, hw_q)) wcid 813 drivers/net/wireless/ralink/rt2x00/rt2800lib.c txdesc->key_idx : txdesc->u.ht.wcid); wcid 959 drivers/net/wireless/ralink/rt2x00/rt2800lib.c int wcid, ack, pid; wcid 970 drivers/net/wireless/ralink/rt2x00/rt2800lib.c wcid = rt2x00_get_field32(reg, TX_STA_FIFO_WCID); wcid 986 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if (wcid != tx_wcid || ack != tx_ack || (!is_agg && pid != tx_pid)) { wcid 1005 drivers/net/wireless/ralink/rt2x00/rt2800lib.c int aggr, ampdu, wcid, ack_req; wcid 1018 drivers/net/wireless/ralink/rt2x00/rt2800lib.c wcid = rt2x00_get_field32(status, TX_STA_FIFO_WCID); wcid 1086 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if (likely(wcid >= WCID_START && wcid <= WCID_END)) wcid 1087 drivers/net/wireless/ralink/rt2x00/rt2800lib.c skbdesc->sta = drv_data->wcid_to_sta[wcid - WCID_START]; wcid 1581 drivers/net/wireless/ralink/rt2x00/rt2800lib.c int wcid) wcid 1586 drivers/net/wireless/ralink/rt2x00/rt2800lib.c offset = MAC_WCID_ENTRY(wcid); wcid 1596 drivers/net/wireless/ralink/rt2x00/rt2800lib.c static void rt2800_delete_wcid_attr(struct rt2x00_dev *rt2x00dev, int wcid) wcid 1599 drivers/net/wireless/ralink/rt2x00/rt2800lib.c offset = MAC_WCID_ATTR_ENTRY(wcid); wcid 1604 drivers/net/wireless/ralink/rt2x00/rt2800lib.c int wcid, u32 bssidx) wcid 1606 drivers/net/wireless/ralink/rt2x00/rt2800lib.c u32 offset = MAC_WCID_ATTR_ENTRY(wcid); wcid 1738 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if (crypto->wcid > WCID_END) wcid 1740 drivers/net/wireless/ralink/rt2x00/rt2800lib.c key->hw_key_idx = crypto->wcid; wcid 1786 drivers/net/wireless/ralink/rt2x00/rt2800lib.c int wcid; wcid 1803 drivers/net/wireless/ralink/rt2x00/rt2800lib.c wcid = find_first_zero_bit(drv_data->sta_ids, STA_IDS_SIZE) + WCID_START; wcid 1809 drivers/net/wireless/ralink/rt2x00/rt2800lib.c sta_priv->wcid = wcid; wcid 1815 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if (wcid > WCID_END) wcid 1818 drivers/net/wireless/ralink/rt2x00/rt2800lib.c __set_bit(wcid - WCID_START, drv_data->sta_ids); wcid 1819 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->wcid_to_sta[wcid - WCID_START] = sta; wcid 1824 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_delete_wcid_attr(rt2x00dev, wcid); wcid 1825 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_config_wcid(rt2x00dev, sta->addr, wcid); wcid 1826 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_config_wcid_attr_bssidx(rt2x00dev, wcid, wcid 1838 drivers/net/wireless/ralink/rt2x00/rt2800lib.c int wcid = sta_priv->wcid; wcid 1845 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if (wcid > WCID_END) wcid 1851 drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_config_wcid(rt2x00dev, NULL, wcid); wcid 1852 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->wcid_to_sta[wcid - WCID_START] = NULL; wcid 1853 drivers/net/wireless/ralink/rt2x00/rt2800lib.c __clear_bit(wcid - WCID_START, drv_data->sta_ids); wcid 1864 drivers/net/wireless/ralink/rt2x00/rt2800lib.c int i, wcid; wcid 1866 drivers/net/wireless/ralink/rt2x00/rt2800lib.c for (wcid = WCID_START; wcid < WCID_END; wcid++) { wcid 1867 drivers/net/wireless/ralink/rt2x00/rt2800lib.c drv_data->wcid_to_sta[wcid - WCID_START] = NULL; wcid 1868 drivers/net/wireless/ralink/rt2x00/rt2800lib.c __clear_bit(wcid - WCID_START, drv_data->sta_ids); wcid 10475 drivers/net/wireless/ralink/rt2x00/rt2800lib.c if (sta_priv->wcid > WCID_END) wcid 462 drivers/net/wireless/ralink/rt2x00/rt2x00.h int wcid; wcid 501 drivers/net/wireless/ralink/rt2x00/rt2x00.h int wcid; wcid 479 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c crypto.wcid = sta_priv->wcid; wcid 305 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c txdesc->u.ht.wcid = sta_priv->wcid; wcid 314 drivers/net/wireless/ralink/rt2x00/rt2x00queue.h int wcid;