Lines Matching refs:mt76

96 					       mt76);  in mt76x02_led_set_config()
148 INIT_DELAYED_WORK(&dev->mt76.mac_work, mt76x02_mac_work); in mt76x02_init_device()
181 dev->mt76.led_cdev.brightness_set = in mt76x02_init_device()
183 dev->mt76.led_cdev.blink_set = mt76x02_led_set_blink; in mt76x02_init_device()
195 dev->mt76.global_wcid.idx = 255; in mt76x02_init_device()
196 dev->mt76.global_wcid.hw_key_idx = -1; in mt76x02_init_device()
200 dev->mt76.sband_2g.sband.ht_cap.cap |= in mt76x02_init_device()
202 dev->mt76.sband_5g.sband.ht_cap.cap |= in mt76x02_init_device()
204 dev->mt76.chainmask = 0x202; in mt76x02_init_device()
205 dev->mt76.antenna_mask = 3; in mt76x02_init_device()
207 dev->mt76.chainmask = 0x101; in mt76x02_init_device()
208 dev->mt76.antenna_mask = 1; in mt76x02_init_device()
222 dev->mt76.rxfilter &= ~(_hw); \ in mt76x02_configure_filter()
223 dev->mt76.rxfilter |= !(flags & FIF_##_flag) * (_hw); \ in mt76x02_configure_filter()
226 mutex_lock(&dev->mt76.mutex); in mt76x02_configure_filter()
228 dev->mt76.rxfilter &= ~MT_RX_FILTR_CFG_OTHER_BSS; in mt76x02_configure_filter()
241 mt76_wr(dev, MT_RX_FILTR_CFG, dev->mt76.rxfilter); in mt76x02_configure_filter()
243 mutex_unlock(&dev->mt76.mutex); in mt76x02_configure_filter()
250 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_add()
257 idx = mt76_wcid_alloc(dev->mt76.wcid_mask, ARRAY_SIZE(dev->mt76.wcid)); in mt76x02_sta_add()
278 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_remove()
302 mt76_txq_init(&dev->mt76, vif->txq); in mt76x02_vif_init()
313 (((vif->addr[0] ^ dev->mt76.macaddr[0]) & ~GENMASK(4, 1)) || in mt76x02_add_interface()
314 memcmp(vif->addr + 1, dev->mt76.macaddr + 1, ETH_ALEN - 1))) in mt76x02_add_interface()
318 idx = 1 + (((dev->mt76.macaddr[0] ^ vif->addr[0]) >> 2) & 7); in mt76x02_add_interface()
352 mt76_txq_remove(&dev->mt76, vif->txq); in mt76x02_remove_interface()
376 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, in mt76x02_ampdu_action()
381 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt76x02_ampdu_action()
469 mt76_wcid_key_setup(&dev->mt76, wcid, key); in mt76x02_set_key()
492 qid = dev->mt76.q_tx[queue].q->hw_idx; in mt76x02_conf_tx()
552 mutex_lock(&dev->mt76.mutex); in mt76x02_set_coverage_class()
555 mutex_unlock(&dev->mt76.mutex); in mt76x02_set_coverage_class()
566 mutex_lock(&dev->mt76.mutex); in mt76x02_set_rts_threshold()
568 mutex_unlock(&dev->mt76.mutex); in mt76x02_set_rts_threshold()
610 clear_bit(MT76_SCANNING, &dev->mt76.state); in mt76x02_sw_scan_complete()
622 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_ps()
626 mt76_stop_tx_queues(&dev->mt76, sta, true); in mt76x02_sta_ps()
640 mutex_lock(&dev->mt76.mutex); in mt76x02_bss_info_changed()
653 dev->mt76.beacon_int = info->beacon_int; in mt76x02_bss_info_changed()
669 mutex_unlock(&dev->mt76.mutex); in mt76x02_bss_info_changed()
682 memcpy(addr, dev->mt76.macaddr, ETH_ALEN); in mt76x02_config_mac_addr_list()