Lines Matching full:mphy

28 	memset(dev->mphy.aggr_stats, 0, sizeof(dev->mphy.aggr_stats));  in mt76x02_mac_reset_counters()
204 int band = dev->mphy.chandef.chan->band; in mt76x02_mac_tx_rate_val()
348 u8 ccmp_pn[8], nstreams = dev->mphy.chainmask & 0xf; in mt76x02_mac_write_txwi()
497 dev->mphy.chandef.chan->band); in mt76x02_mac_fill_tx_status()
503 dev->mphy.chandef.chan->band); in mt76x02_mac_fill_tx_status()
507 dev->mphy.chandef.chan->band); in mt76x02_mac_fill_tx_status()
690 u8 n_rxstream = dev->mphy.chainmask & 0xf; in mt76x02_mac_process_rate()
732 ether_addr_copy(dev->mphy.macaddr, addr); in mt76x02_mac_setaddr()
734 if (!is_valid_ether_addr(dev->mphy.macaddr)) { in mt76x02_mac_setaddr()
735 eth_random_addr(dev->mphy.macaddr); in mt76x02_mac_setaddr()
738 dev->mphy.macaddr); in mt76x02_mac_setaddr()
741 mt76_wr(dev, MT_MAC_ADDR_DW0, get_unaligned_le32(dev->mphy.macaddr)); in mt76x02_mac_setaddr()
743 get_unaligned_le16(dev->mphy.macaddr + 4) | in mt76x02_mac_setaddr()
747 get_unaligned_le32(dev->mphy.macaddr)); in mt76x02_mac_setaddr()
749 get_unaligned_le16(dev->mphy.macaddr + 4) | in mt76x02_mac_setaddr()
783 int pad_len = 0, nstreams = dev->mphy.chainmask & 0xf; in mt76x02_mac_process_rx()
789 if (!test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) in mt76x02_mac_process_rx()
866 status->freq = dev->mphy.chandef.chan->center_freq; in mt76x02_mac_process_rx()
867 status->band = dev->mphy.chandef.chan->band; in mt76x02_mac_process_rx()
882 if (!test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) in mt76x02_mac_poll_tx_status()
1026 void mt76x02_update_channel(struct mt76_phy *mphy) in mt76x02_update_channel() argument
1028 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, mt76); in mt76x02_update_channel()
1031 state = mphy->chan_state; in mt76x02_update_channel()
1106 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x02_edcca_init()
1187 mphy.mac_work.work); in mt76x02_mac_work()
1192 mt76_update_survey(&dev->mphy); in mt76x02_mac_work()
1196 dev->mphy.aggr_stats[idx++] += val & 0xffff; in mt76x02_mac_work()
1197 dev->mphy.aggr_stats[idx++] += val >> 16; in mt76x02_mac_work()
1209 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mphy.mac_work, in mt76x02_mac_work()
1215 dev->mphy.survey_time = ktime_get_boottime(); in mt76x02_mac_cc_reset()