Lines Matching refs: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()
689 u8 n_rxstream = dev->mphy.chainmask & 0xf; in mt76x02_mac_process_rate()
731 ether_addr_copy(dev->mphy.macaddr, addr); in mt76x02_mac_setaddr()
733 if (!is_valid_ether_addr(dev->mphy.macaddr)) { in mt76x02_mac_setaddr()
734 eth_random_addr(dev->mphy.macaddr); in mt76x02_mac_setaddr()
737 dev->mphy.macaddr); in mt76x02_mac_setaddr()
740 mt76_wr(dev, MT_MAC_ADDR_DW0, get_unaligned_le32(dev->mphy.macaddr)); in mt76x02_mac_setaddr()
742 get_unaligned_le16(dev->mphy.macaddr + 4) | in mt76x02_mac_setaddr()
746 get_unaligned_le32(dev->mphy.macaddr)); in mt76x02_mac_setaddr()
748 get_unaligned_le16(dev->mphy.macaddr + 4) | in mt76x02_mac_setaddr()
782 int pad_len = 0, nstreams = dev->mphy.chainmask & 0xf; in mt76x02_mac_process_rx()
788 if (!test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) in mt76x02_mac_process_rx()
864 status->freq = dev->mphy.chandef.chan->center_freq; in mt76x02_mac_process_rx()
865 status->band = dev->mphy.chandef.chan->band; in mt76x02_mac_process_rx()
880 if (!test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) in mt76x02_mac_poll_tx_status()
1024 void mt76x02_update_channel(struct mt76_phy *mphy) in mt76x02_update_channel() argument
1026 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, mt76); in mt76x02_update_channel()
1029 state = mphy->chan_state; in mt76x02_update_channel()
1104 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x02_edcca_init()
1185 mphy.mac_work.work); in mt76x02_mac_work()
1190 mt76_update_survey(&dev->mphy); in mt76x02_mac_work()
1194 dev->mphy.aggr_stats[idx++] += val & 0xffff; in mt76x02_mac_work()
1195 dev->mphy.aggr_stats[idx++] += val >> 16; in mt76x02_mac_work()
1207 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mphy.mac_work, in mt76x02_mac_work()
1213 dev->mphy.survey_time = ktime_get_boottime(); in mt76x02_mac_cc_reset()