/drivers/net/wireless/mediatek/mt76/ |
D | mt76.h | 29 struct mt76_dev; 45 u32 (*rr)(struct mt76_dev *dev, u32 offset); 46 void (*wr)(struct mt76_dev *dev, u32 offset, u32 val); 47 u32 (*rmw)(struct mt76_dev *dev, u32 offset, u32 mask, u32 val); 48 void (*write_copy)(struct mt76_dev *dev, u32 offset, const void *data, 50 void (*read_copy)(struct mt76_dev *dev, u32 offset, void *data, 52 int (*wr_rp)(struct mt76_dev *dev, u32 base, 54 int (*rd_rp)(struct mt76_dev *dev, u32 base, 174 int (*mcu_send_msg)(struct mt76_dev *dev, int cmd, const void *data, 176 int (*mcu_skb_send_msg)(struct mt76_dev *dev, struct sk_buff *skb, [all …]
|
D | usb.c | 18 static int __mt76u_vendor_request(struct mt76_dev *dev, u8 req, in __mt76u_vendor_request() 49 int mt76u_vendor_request(struct mt76_dev *dev, u8 req, in mt76u_vendor_request() 65 static u32 ___mt76u_rr(struct mt76_dev *dev, u8 req, u32 addr) in ___mt76u_rr() 82 static u32 __mt76u_rr(struct mt76_dev *dev, u32 addr) in __mt76u_rr() 101 static u32 mt76u_rr(struct mt76_dev *dev, u32 addr) in mt76u_rr() 112 static u32 mt76u_rr_ext(struct mt76_dev *dev, u32 addr) in mt76u_rr_ext() 123 static void ___mt76u_wr(struct mt76_dev *dev, u8 req, in ___mt76u_wr() 136 static void __mt76u_wr(struct mt76_dev *dev, u32 addr, u32 val) in __mt76u_wr() 151 static void mt76u_wr(struct mt76_dev *dev, u32 addr, u32 val) in mt76u_wr() 158 static void mt76u_wr_ext(struct mt76_dev *dev, u32 addr, u32 val) in mt76u_wr_ext() [all …]
|
D | sdio.c | 21 mt76s_alloc_rx_queue(struct mt76_dev *dev, enum mt76_rxq_id qid) in mt76s_alloc_rx_queue() 39 static struct mt76_queue *mt76s_alloc_tx_queue(struct mt76_dev *dev) in mt76s_alloc_tx_queue() 59 static int mt76s_alloc_tx(struct mt76_dev *dev) in mt76s_alloc_tx() 83 int mt76s_alloc_queues(struct mt76_dev *dev) in mt76s_alloc_queues() 112 mt76s_process_rx_queue(struct mt76_dev *dev, struct mt76_queue *q) in mt76s_process_rx_queue() 141 struct mt76_dev *dev = container_of(sdio, struct mt76_dev, sdio); in mt76s_net_worker() 158 static int mt76s_process_tx_queue(struct mt76_dev *dev, struct mt76_queue *q) in mt76s_process_tx_queue() 194 struct mt76_dev *dev = container_of(sdio, struct mt76_dev, sdio); in mt76s_status_worker() 222 struct mt76_dev *dev; in mt76s_tx_status_data() 227 dev = container_of(sdio, struct mt76_dev, sdio); in mt76s_tx_status_data() [all …]
|
D | mmio.c | 9 static u32 mt76_mmio_rr(struct mt76_dev *dev, u32 offset) in mt76_mmio_rr() 19 static void mt76_mmio_wr(struct mt76_dev *dev, u32 offset, u32 val) in mt76_mmio_wr() 25 static u32 mt76_mmio_rmw(struct mt76_dev *dev, u32 offset, u32 mask, u32 val) in mt76_mmio_rmw() 32 static void mt76_mmio_write_copy(struct mt76_dev *dev, u32 offset, in mt76_mmio_write_copy() 38 static void mt76_mmio_read_copy(struct mt76_dev *dev, u32 offset, in mt76_mmio_read_copy() 44 static int mt76_mmio_wr_rp(struct mt76_dev *dev, u32 base, in mt76_mmio_wr_rp() 56 static int mt76_mmio_rd_rp(struct mt76_dev *dev, u32 base, in mt76_mmio_rd_rp() 68 void mt76_set_irq_mask(struct mt76_dev *dev, u32 addr, in mt76_set_irq_mask() 82 void mt76_mmio_init(struct mt76_dev *dev, void __iomem *regs) in mt76_mmio_init()
|
D | dma.c | 11 mt76_alloc_txwi(struct mt76_dev *dev) in mt76_alloc_txwi() 32 __mt76_get_txwi(struct mt76_dev *dev) in __mt76_get_txwi() 48 mt76_get_txwi(struct mt76_dev *dev) in mt76_get_txwi() 59 mt76_put_txwi(struct mt76_dev *dev, struct mt76_txwi_cache *t) in mt76_put_txwi() 71 mt76_free_pending_txwi(struct mt76_dev *dev) in mt76_free_pending_txwi() 85 mt76_dma_sync_idx(struct mt76_dev *dev, struct mt76_queue *q) in mt76_dma_sync_idx() 94 mt76_dma_queue_reset(struct mt76_dev *dev, struct mt76_queue *q) in mt76_dma_queue_reset() 111 mt76_dma_alloc_queue(struct mt76_dev *dev, struct mt76_queue *q, in mt76_dma_alloc_queue() 141 mt76_dma_add_buf(struct mt76_dev *dev, struct mt76_queue *q, in mt76_dma_add_buf() 202 mt76_dma_tx_cleanup_idx(struct mt76_dev *dev, struct mt76_queue *q, int idx, in mt76_dma_tx_cleanup_idx() [all …]
|
D | debugfs.c | 10 struct mt76_dev *dev = data; in mt76_reg_set() 19 struct mt76_dev *dev = data; in mt76_reg_get() 31 struct mt76_dev *dev = data; in mt76_napi_threaded_set() 45 struct mt76_dev *dev = data; in mt76_napi_threaded_get() 56 struct mt76_dev *dev = dev_get_drvdata(s->private); in mt76_queues_read() 76 struct mt76_dev *dev = dev_get_drvdata(s->private); in mt76_rx_queues_read() 104 struct mt76_dev *dev = dev_get_drvdata(s->private); in mt76_read_rate_txpower() 120 mt76_register_debugfs_fops(struct mt76_dev *dev, in mt76_register_debugfs_fops()
|
D | tx.c | 40 mt76_tx_status_lock(struct mt76_dev *dev, struct sk_buff_head *list) in mt76_tx_status_lock() 49 mt76_tx_status_unlock(struct mt76_dev *dev, struct sk_buff_head *list) in mt76_tx_status_unlock() 80 __mt76_tx_status_skb_done(struct mt76_dev *dev, struct sk_buff *skb, u8 flags, in __mt76_tx_status_skb_done() 106 mt76_tx_status_skb_done(struct mt76_dev *dev, struct sk_buff *skb, in mt76_tx_status_skb_done() 114 mt76_tx_status_skb_add(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_tx_status_skb_add() 147 mt76_tx_status_skb_get(struct mt76_dev *dev, struct mt76_wcid *wcid, int pktid, in mt76_tx_status_skb_get() 174 mt76_tx_status_check(struct mt76_dev *dev, struct mt76_wcid *wcid, bool flush) in mt76_tx_status_check() 185 mt76_tx_check_non_aql(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_tx_check_non_aql() 199 void __mt76_tx_complete_skb(struct mt76_dev *dev, u16 wcid_idx, struct sk_buff *skb, in __mt76_tx_complete_skb() 256 struct mt76_dev *dev = phy->dev; in __mt76_tx_queue_skb() [all …]
|
D | mt76x02.h | 77 struct mt76_dev mt76; 140 int mt76x02_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, 142 void mt76x02_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif, 173 bool mt76x02_tx_status_data(struct mt76_dev *mdev, u8 *update); 174 void mt76x02_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, 176 void mt76x02_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q); 180 int mt76x02_tx_prepare_skb(struct mt76_dev *mdev, void *txwi, 186 void mt76x02_sta_ps(struct mt76_dev *dev, struct ieee80211_sta *sta, bool ps); 237 mt76x02_wait_for_txrx_idle(struct mt76_dev *dev) in mt76x02_wait_for_txrx_idle() 245 mt76x02_rx_get_sta(struct mt76_dev *dev, u8 idx) in mt76x02_rx_get_sta()
|
D | usb_trace.h | 28 TP_PROTO(struct mt76_dev *dev, u32 reg, u32 val), 45 TP_PROTO(struct mt76_dev *dev, u32 reg, u32 val), 50 TP_PROTO(struct mt76_dev *dev, u32 reg, u32 val), 55 TP_PROTO(struct mt76_dev *dev, struct urb *u), 70 TP_PROTO(struct mt76_dev *dev, struct urb *u), 75 TP_PROTO(struct mt76_dev *dev, struct urb *u),
|
D | mac80211.c | 102 static int mt76_led_init(struct mt76_dev *dev) in mt76_led_init() 132 static void mt76_led_cleanup(struct mt76_dev *dev) in mt76_led_cleanup() 194 struct mt76_dev *dev = phy->dev; in mt76_init_sband() 295 struct mt76_dev *dev = phy->dev; in mt76_phy_init() 338 mt76_alloc_phy(struct mt76_dev *dev, unsigned int size, in mt76_alloc_phy() 405 struct mt76_dev *dev = phy->dev; in mt76_unregister_phy() 413 struct mt76_dev * 420 struct mt76_dev *dev; in mt76_alloc_device() 478 int mt76_register_device(struct mt76_dev *dev, bool vht, in mt76_register_device() 521 void mt76_unregister_device(struct mt76_dev *dev) in mt76_unregister_device() [all …]
|
D | trace.h | 33 TP_PROTO(struct mt76_dev *dev, u32 reg, u32 val), 50 TP_PROTO(struct mt76_dev *dev, u32 reg, u32 val), 55 TP_PROTO(struct mt76_dev *dev, u32 reg, u32 val), 60 TP_PROTO(struct mt76_dev *dev, u32 val, u32 mask), 83 TP_PROTO(struct mt76_dev *dev, u8 wcid, u8 pktid), 100 TP_PROTO(struct mt76_dev *dev, u8 wcid, u8 pktid),
|
D | mcu.c | 9 mt76_mcu_msg_alloc(struct mt76_dev *dev, const void *data, in mt76_mcu_msg_alloc() 30 struct sk_buff *mt76_mcu_get_response(struct mt76_dev *dev, in mt76_mcu_get_response() 47 void mt76_mcu_rx_event(struct mt76_dev *dev, struct sk_buff *skb) in mt76_mcu_rx_event() 54 int mt76_mcu_send_and_get_msg(struct mt76_dev *dev, int cmd, const void *data, in mt76_mcu_send_and_get_msg() 70 int mt76_mcu_skb_send_and_get_msg(struct mt76_dev *dev, struct sk_buff *skb, in mt76_mcu_skb_send_and_get_msg() 109 int mt76_mcu_send_firmware(struct mt76_dev *dev, int cmd, const void *data, in mt76_mcu_send_firmware()
|
D | mt76_connac_mcu.h | 987 mt76_connac_mcu_get_wlan_idx(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_connac_mcu_get_wlan_idx() 1001 mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, 1004 mt76_connac_mcu_alloc_wtbl_req(struct mt76_dev *dev, struct mt76_wcid *wcid, 1016 int mt76_connac_mcu_set_vif_ps(struct mt76_dev *dev, struct ieee80211_vif *vif); 1021 void mt76_connac_mcu_wtbl_generic_tlv(struct mt76_dev *dev, struct sk_buff *skb, 1029 int mt76_connac_mcu_sta_update_hdr_trans(struct mt76_dev *dev, 1036 void mt76_connac_mcu_wtbl_ht_tlv(struct mt76_dev *dev, struct sk_buff *skb, 1039 void mt76_connac_mcu_wtbl_ba_tlv(struct mt76_dev *dev, struct sk_buff *skb, 1050 int mt76_connac_mcu_sta_ba(struct mt76_dev *dev, struct mt76_vif *mvif, 1061 int mt76_connac_mcu_set_rts_thresh(struct mt76_dev *dev, u32 val, u8 band); [all …]
|
D | mt76_connac.h | 88 static inline bool is_mt7921(struct mt76_dev *dev) in is_mt7921() 93 static inline bool is_mt7663(struct mt76_dev *dev) in is_mt7663() 137 struct mt76_dev *dev = phy->dev; in mt76_connac_skip_fw_pmctrl() 151 mt76_connac_mutex_acquire(struct mt76_dev *dev, struct mt76_connac_pm *pm) in mt76_connac_mutex_acquire() 159 mt76_connac_mutex_release(struct mt76_dev *dev, struct mt76_connac_pm *pm) in mt76_connac_mutex_release()
|
D | mt76x02_usb.h | 12 void mt76x02u_init_mcu(struct mt76_dev *dev); 18 int mt76x02u_tx_prepare_skb(struct mt76_dev *mdev, void *data, 22 void mt76x02u_tx_complete_skb(struct mt76_dev *mdev, struct mt76_queue_entry *e);
|
D | mt76x02_usb_mcu.c | 21 mt76x02u_multiple_mcu_reads(struct mt76_dev *dev, u8 *data, int len) in mt76x02u_multiple_mcu_reads() 50 static int mt76x02u_mcu_wait_resp(struct mt76_dev *dev, u8 seq) in mt76x02u_mcu_wait_resp() 83 __mt76x02u_mcu_send_msg(struct mt76_dev *dev, struct sk_buff *skb, in __mt76x02u_mcu_send_msg() 123 mt76x02u_mcu_send_msg(struct mt76_dev *dev, int cmd, const void *data, in mt76x02u_mcu_send_msg() 146 mt76x02u_mcu_wr_rp(struct mt76_dev *dev, u32 base, in mt76x02u_mcu_wr_rp() 179 mt76x02u_mcu_rd_rp(struct mt76_dev *dev, u32 base, in mt76x02u_mcu_rd_rp() 294 void mt76x02u_init_mcu(struct mt76_dev *dev) in mt76x02u_init_mcu()
|
D | mt76_connac_mcu.c | 6 int mt76_connac_mcu_start_firmware(struct mt76_dev *dev, u32 addr, u32 option) in mt76_connac_mcu_start_firmware() 21 int mt76_connac_mcu_patch_sem_ctrl(struct mt76_dev *dev, bool get) in mt76_connac_mcu_patch_sem_ctrl() 35 int mt76_connac_mcu_start_patch(struct mt76_dev *dev) in mt76_connac_mcu_start_patch() 51 int mt76_connac_mcu_init_download(struct mt76_dev *dev, u32 addr, u32 len, in mt76_connac_mcu_init_download() 77 struct mt76_dev *dev = phy->dev; in mt76_connac_mcu_set_channel_domain() 150 int mt76_connac_mcu_set_mac_enable(struct mt76_dev *dev, int band, bool enable, in mt76_connac_mcu_set_mac_enable() 167 int mt76_connac_mcu_set_vif_ps(struct mt76_dev *dev, struct ieee80211_vif *vif) in mt76_connac_mcu_set_vif_ps() 189 int mt76_connac_mcu_set_rts_thresh(struct mt76_dev *dev, u32 val, u8 band) in mt76_connac_mcu_set_rts_thresh() 254 mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, in mt76_connac_mcu_alloc_sta_req() 277 mt76_connac_mcu_alloc_wtbl_req(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_connac_mcu_alloc_wtbl_req() [all …]
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | mt7615.h | 231 struct mt76_dev mt76; 400 static inline bool is_mt7622(struct mt76_dev *dev) in is_mt7622() 408 static inline bool is_mt7615(struct mt76_dev *dev) in is_mt7615() 413 static inline bool is_mt7611(struct mt76_dev *dev) in is_mt7611() 478 int mt7615_mcu_restart(struct mt76_dev *dev); 501 int mt7615_mcu_parse_response(struct mt76_dev *mdev, int cmd, 513 int mt7615_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 519 void mt7615_tx_complete_skb(struct mt76_dev *mdev, struct mt76_queue_entry *e); 521 void mt7615_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, 523 void mt7615_sta_ps(struct mt76_dev *mdev, struct ieee80211_sta *sta, bool ps); [all …]
|
D | sdio.c | 27 static u32 mt7663s_read_whisr(struct mt76_dev *dev) in mt7663s_read_whisr() 39 static u32 mt7663s_read_mailbox(struct mt76_dev *dev, u32 offset) in mt7663s_read_mailbox() 94 static void mt7663s_write_mailbox(struct mt76_dev *dev, u32 offset, u32 val) in mt7663s_write_mailbox() 147 static u32 mt7663s_rr(struct mt76_dev *dev, u32 offset) in mt7663s_rr() 155 static void mt7663s_wr(struct mt76_dev *dev, u32 offset, u32 val) in mt7663s_wr() 163 static u32 mt7663s_rmw(struct mt76_dev *dev, u32 offset, u32 mask, u32 val) in mt7663s_rmw() 171 static void mt7663s_write_copy(struct mt76_dev *dev, u32 offset, in mt7663s_write_copy() 183 static void mt7663s_read_copy(struct mt76_dev *dev, u32 offset, in mt7663s_read_copy() 195 static int mt7663s_wr_rp(struct mt76_dev *dev, u32 base, in mt7663s_wr_rp() 209 static int mt7663s_rd_rp(struct mt76_dev *dev, u32 base, in mt7663s_rd_rp() [all …]
|
D | sdio_txrx.c | 22 static int mt7663s_refill_sched_quota(struct mt76_dev *dev, u32 *data) in mt7663s_refill_sched_quota() 81 static int mt7663s_rx_run_queue(struct mt76_dev *dev, enum mt76_rxq_id qid, in mt7663s_rx_run_queue() 135 static int mt7663s_rx_handler(struct mt76_dev *dev) in mt7663s_rx_handler() 201 static int __mt7663s_xmit_queue(struct mt76_dev *dev, u8 *data, int len) in __mt7663s_xmit_queue() 216 static int mt7663s_tx_run_queue(struct mt76_dev *dev, struct mt76_queue *q) in mt7663s_tx_run_queue() 286 struct mt76_dev *mdev = container_of(sdio, struct mt76_dev, sdio); in mt7663s_txrx_worker()
|
/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | mt7603.h | 105 struct mt76_dev mt76; 239 int mt7603_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 244 void mt7603_tx_complete_skb(struct mt76_dev *mdev, struct mt76_queue_entry *e); 246 void mt7603_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, 248 void mt7603_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q); 249 void mt7603_sta_ps(struct mt76_dev *mdev, struct ieee80211_sta *sta, bool ps); 250 int mt7603_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, 252 void mt7603_sta_assoc(struct mt76_dev *mdev, struct ieee80211_vif *vif, 254 void mt7603_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
|
/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | mt7921.h | 152 struct mt76_dev mt76; 337 int mt7921_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, 339 void mt7921_mac_sta_assoc(struct mt76_dev *mdev, struct ieee80211_vif *vif, 341 void mt7921_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif, 345 void mt7921_reset(struct mt76_dev *mdev); 347 int mt7921_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 353 void mt7921_tx_complete_skb(struct mt76_dev *mdev, struct mt76_queue_entry *e); 356 void mt7921_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, 358 void mt7921_sta_ps(struct mt76_dev *mdev, struct ieee80211_sta *sta, bool ps); 360 void mt7921_txp_skb_unmap(struct mt76_dev *dev,
|
D | pci.c | 21 mt7921_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q) in mt7921_rx_poll_complete() 171 static u32 mt7921_rr(struct mt76_dev *mdev, u32 offset) in mt7921_rr() 179 static void mt7921_wr(struct mt76_dev *mdev, u32 offset, u32 val) in mt7921_wr() 187 static u32 mt7921_rmw(struct mt76_dev *mdev, u32 offset, u32 mask, u32 val) in mt7921_rmw() 219 struct mt76_dev *mdev; in mt7921_pci_probe() 308 struct mt76_dev *mdev = pci_get_drvdata(pdev); in mt7921_pci_remove() 319 struct mt76_dev *mdev = pci_get_drvdata(pdev); in mt7921_pci_suspend() 400 struct mt76_dev *mdev = pci_get_drvdata(pdev); in mt7921_pci_resume()
|
/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | mt7915.h | 175 struct mt76_dev mt76; 380 static inline bool is_mt7915(struct mt76_dev *dev) in is_mt7915() 414 int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, 416 void mt7915_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif, 421 int mt7915_mmio_init(struct mt76_dev *mdev, void __iomem *mem_base, int irq); 422 int mt7915_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 426 void mt7915_tx_complete_skb(struct mt76_dev *mdev, struct mt76_queue_entry *e); 429 void mt7915_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, 431 void mt7915_sta_ps(struct mt76_dev *mdev, struct ieee80211_sta *sta, bool ps);
|
D | mmio.c | 102 static u32 mt7915_rr(struct mt76_dev *mdev, u32 offset) in mt7915_rr() 110 static void mt7915_wr(struct mt76_dev *mdev, u32 offset, u32 val) in mt7915_wr() 118 static u32 mt7915_rmw(struct mt76_dev *mdev, u32 offset, u32 mask, u32 val) in mt7915_rmw() 126 int mt7915_mmio_init(struct mt76_dev *mdev, void __iomem *mem_base, int irq) in mt7915_mmio_init()
|