Lines Matching full:mt76
83 mutex_lock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store()
86 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store()
163 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7915_unregister_thermal()
174 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7915_thermal_init()
211 struct mt76_dev *mt76; in mt7915_led_set_config() local
214 mt76 = container_of(led_cdev, struct mt76_dev, led_cdev); in mt7915_led_set_config()
215 dev = container_of(mt76, struct mt7915_dev, mt76); in mt7915_led_set_config()
230 if (dev->mt76.led_al) in mt7915_led_set_config()
307 memcpy(dev->mt76.alpha2, request->alpha2, sizeof(dev->mt76.alpha2)); in mt7915_regd_notifier()
308 dev->mt76.region = request->dfs_region; in mt7915_regd_notifier()
310 if (dev->mt76.region == NL80211_DFS_UNSET) in mt7915_regd_notifier()
325 struct mt76_dev *mdev = &phy->dev->mt76; in mt7915_init_wiphy()
372 if (phy->mt76->cap.has_2ghz) { in mt7915_init_wiphy()
373 phy->mt76->sband_2g.sband.ht_cap.cap |= in mt7915_init_wiphy()
376 phy->mt76->sband_2g.sband.ht_cap.ampdu_density = in mt7915_init_wiphy()
380 if (phy->mt76->cap.has_5ghz) { in mt7915_init_wiphy()
381 phy->mt76->sband_5g.sband.ht_cap.cap |= in mt7915_init_wiphy()
384 phy->mt76->sband_5g.sband.ht_cap.ampdu_density = in mt7915_init_wiphy()
387 if (is_mt7915(&dev->mt76)) { in mt7915_init_wiphy()
388 phy->mt76->sband_5g.sband.vht_cap.cap |= in mt7915_init_wiphy()
393 phy->mt76->sband_5g.sband.vht_cap.cap |= in mt7915_init_wiphy()
397 phy->mt76->sband_5g.sband.vht_cap.cap |= in mt7915_init_wiphy()
402 phy->mt76->sband_5g.sband.vht_cap.cap |= in mt7915_init_wiphy()
408 mt76_set_stream_caps(phy->mt76, true); in mt7915_init_wiphy()
412 wiphy->available_antennas_rx = phy->mt76->antenna_mask; in mt7915_init_wiphy()
413 wiphy->available_antennas_tx = phy->mt76->antenna_mask; in mt7915_init_wiphy()
452 u32 rx_len = is_mt7915(&dev->mt76) ? 0x400 : 0x680; in mt7915_mac_init()
455 if (!is_mt7915(&dev->mt76) && dev->hif2) in mt7915_mac_init()
461 if (!is_mt7915(&dev->mt76)) in mt7915_mac_init()
474 i = dev->mt76.led_pin ? MT_LED_GPIO_MUX3 : MT_LED_GPIO_MUX2; in mt7915_mac_init()
507 mphy = mt76_alloc_phy(&dev->mt76, sizeof(*phy), &mt7915_ops, MT_BAND1); in mt7915_alloc_ext_phy()
513 phy->mt76 = mphy; in mt7915_alloc_ext_phy()
524 struct mt76_phy *mphy = phy->mt76; in mt7915_register_ext_phy()
531 memcpy(mphy->macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR2, in mt7915_register_ext_phy()
537 memcpy(mphy->macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, in mt7915_register_ext_phy()
583 if (is_mt7915(&dev->mt76)) { in mt7915_wfsys_reset()
609 dev_err(dev->mt76.dev, "wifi subsystem reset failure\n"); in mt7915_wfsys_reset()
617 } else if (is_mt7986(&dev->mt76)) { in mt7915_wfsys_reset()
638 if (is_mt7986(&dev->mt76)) { in mt7915_band_config()
651 ret = is_mt7915(&dev->mt76) ? in mt7915_band_config()
689 idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT7915_WTBL_STA); in mt7915_init_hardware()
693 dev->mt76.global_wcid.idx = idx; in mt7915_init_hardware()
694 dev->mt76.global_wcid.hw_key_idx = -1; in mt7915_init_hardware()
695 dev->mt76.global_wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7915_init_hardware()
696 rcu_assign_pointer(dev->mt76.wcid[idx], &dev->mt76.global_wcid); in mt7915_init_hardware()
706 if (!phy->mt76->cap.has_5ghz) in mt7915_set_stream_vht_txbf_caps()
709 nss = hweight8(phy->mt76->chainmask); in mt7915_set_stream_vht_txbf_caps()
710 cap = &phy->mt76->sband_5g.sband.vht_cap.cap; in mt7915_set_stream_vht_txbf_caps()
738 if (is_mt7915(&dev->mt76) && !dev->dbdc_support) in mt7915_set_stream_he_txbf_caps()
762 if (!is_mt7915(&dev->mt76)) in mt7915_set_stream_he_txbf_caps()
806 if (!is_mt7915(&dev->mt76)) { in mt7915_set_stream_he_txbf_caps()
839 int i, idx = 0, nss = hweight8(phy->mt76->chainmask); in mt7915_init_he_caps()
845 if (is_mt7915(&dev->mt76) && !dev->dbdc_support) in mt7915_init_he_caps()
1010 if (phy->mt76->cap.has_2ghz) { in mt7915_set_stream_he_caps()
1014 band = &phy->mt76->sband_2g.sband; in mt7915_set_stream_he_caps()
1019 if (phy->mt76->cap.has_5ghz) { in mt7915_set_stream_he_caps()
1023 band = &phy->mt76->sband_5g.sband; in mt7915_set_stream_he_caps()
1028 if (phy->mt76->cap.has_6ghz) { in mt7915_set_stream_he_caps()
1032 band = &phy->mt76->sband_6g.sband; in mt7915_set_stream_he_caps()
1041 struct mt76_phy *mphy = dev->mt76.phys[MT_BAND1]; in mt7915_unregister_ext_phy()
1058 if (is_mt7986(&dev->mt76)) in mt7915_stop_hardware()
1070 dev->phy.mt76 = &dev->mt76.phy; in mt7915_register_device()
1071 dev->mt76.phy.priv = &dev->phy; in mt7915_register_device()
1095 dev->mt76.test_ops = &mt7915_testmode_ops; in mt7915_register_device()
1100 dev->mt76.led_cdev.brightness_set = mt7915_led_set_brightness; in mt7915_register_device()
1101 dev->mt76.led_cdev.blink_set = mt7915_led_set_blink; in mt7915_register_device()
1104 ret = mt76_register_device(&dev->mt76, true, mt76_rates, in mt7915_register_device()
1128 mt76_unregister_device(&dev->mt76); in mt7915_register_device()
1133 ieee80211_free_hw(phy2->mt76->hw); in mt7915_register_device()
1141 mt76_unregister_device(&dev->mt76); in mt7915_unregister_device()
1144 mt76_free_device(&dev->mt76); in mt7915_unregister_device()