/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76.h | 49 struct mt76_dev; 75 u32 (*rr)(struct mt76_dev *dev, u32 offset); 76 void (*wr)(struct mt76_dev *dev, u32 offset, u32 val); 77 u32 (*rmw)(struct mt76_dev *dev, u32 offset, u32 mask, u32 val); 78 void (*write_copy)(struct mt76_dev *dev, u32 offset, const void *data, 80 void (*read_copy)(struct mt76_dev *dev, u32 offset, void *data, 82 int (*wr_rp)(struct mt76_dev *dev, u32 base, 84 int (*rd_rp)(struct mt76_dev *dev, u32 base, 237 int (*mcu_send_msg)(struct mt76_dev *dev, int cmd, const void *data, 239 int (*mcu_skb_prepare_msg)(struct mt76_dev *dev, struct sk_buff *skb, [all …]
|
H A D | mt76_connac.h | 175 static inline bool is_mt7925(struct mt76_dev *dev) in is_mt7925() 180 static inline bool is_mt7920(struct mt76_dev *dev) in is_mt7920() 185 static inline bool is_mt7922(struct mt76_dev *dev) in is_mt7922() 190 static inline bool is_mt7921(struct mt76_dev *dev) in is_mt7921() 195 static inline bool is_mt7663(struct mt76_dev *dev) in is_mt7663() 200 static inline bool is_mt7915(struct mt76_dev *dev) in is_mt7915() 205 static inline bool is_mt7916(struct mt76_dev *dev) in is_mt7916() 210 static inline bool is_mt7981(struct mt76_dev *dev) in is_mt7981() 215 static inline bool is_mt7986(struct mt76_dev *dev) in is_mt7986() 220 static inline bool is_mt798x(struct mt76_dev *dev) in is_mt798x() [all …]
|
H A D | usb.c | 18 int __mt76u_vendor_request(struct mt76_dev *dev, u8 req, u8 req_type, in __mt76u_vendor_request() 49 int mt76u_vendor_request(struct mt76_dev *dev, u8 req, in mt76u_vendor_request() 65 u32 ___mt76u_rr(struct mt76_dev *dev, u8 req, u8 req_type, u32 addr) in ___mt76u_rr() 81 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 void ___mt76u_wr(struct mt76_dev *dev, u8 req, u8 req_type, in ___mt76u_wr() 124 static void __mt76u_wr(struct mt76_dev *dev, u32 addr, u32 val) in __mt76u_wr() 140 static void mt76u_wr(struct mt76_dev *dev, u32 addr, u32 val) in mt76u_wr() 147 static u32 mt76u_rmw(struct mt76_dev *dev, u32 addr, in mt76u_rmw() 158 static void mt76u_copy(struct mt76_dev *dev, u32 offset, in mt76u_copy() [all …]
|
H A D | mmio.c | 10 static u32 mt76_mmio_rr(struct mt76_dev *dev, u32 offset) in mt76_mmio_rr() 20 static void mt76_mmio_wr(struct mt76_dev *dev, u32 offset, u32 val) in mt76_mmio_wr() 26 static u32 mt76_mmio_rmw(struct mt76_dev *dev, u32 offset, u32 mask, u32 val) in mt76_mmio_rmw() 33 static void mt76_mmio_write_copy(struct mt76_dev *dev, u32 offset, in mt76_mmio_write_copy() 39 static void mt76_mmio_read_copy(struct mt76_dev *dev, u32 offset, in mt76_mmio_read_copy() 45 static int mt76_mmio_wr_rp(struct mt76_dev *dev, u32 base, in mt76_mmio_wr_rp() 57 static int mt76_mmio_rd_rp(struct mt76_dev *dev, u32 base, in mt76_mmio_rd_rp() 69 void mt76_set_irq_mask(struct mt76_dev *dev, u32 addr, in mt76_set_irq_mask() 88 void mt76_mmio_init(struct mt76_dev *dev, void __iomem *regs) in mt76_mmio_init()
|
H A D | sdio.c | 23 static u32 mt76s_read_whisr(struct mt76_dev *dev) in mt76s_read_whisr() 28 u32 mt76s_read_pcr(struct mt76_dev *dev) in mt76s_read_pcr() 36 static u32 mt76s_read_mailbox(struct mt76_dev *dev, u32 offset) in mt76s_read_mailbox() 91 static void mt76s_write_mailbox(struct mt76_dev *dev, u32 offset, u32 val) in mt76s_write_mailbox() 144 u32 mt76s_rr(struct mt76_dev *dev, u32 offset) in mt76s_rr() 153 void mt76s_wr(struct mt76_dev *dev, u32 offset, u32 val) in mt76s_wr() 162 u32 mt76s_rmw(struct mt76_dev *dev, u32 offset, u32 mask, u32 val) in mt76s_rmw() 171 void mt76s_write_copy(struct mt76_dev *dev, u32 offset, in mt76s_write_copy() 184 void mt76s_read_copy(struct mt76_dev *dev, u32 offset, in mt76s_read_copy() 197 int mt76s_wr_rp(struct mt76_dev *dev, u32 base, in mt76s_wr_rp() [all …]
|
H A D | wed.c | 11 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_release_rx_buf() 34 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_init_rx_buf() 87 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_offload_enable() 97 int mt76_wed_dma_setup(struct mt76_dev *dev, struct mt76_queue *q, bool reset) in mt76_wed_dma_setup() 171 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_offload_disable() 181 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt76_wed_reset_complete() 201 void mt76_wed_dma_reset(struct mt76_dev *dev) in mt76_wed_dma_reset()
|
H A D | dma.h | 80 void mt76_dma_attach(struct mt76_dev *dev); 81 void mt76_dma_cleanup(struct mt76_dev *dev); 82 int mt76_dma_rx_fill(struct mt76_dev *dev, struct mt76_queue *q, 84 void __mt76_dma_queue_reset(struct mt76_dev *dev, struct mt76_queue *q, 86 void mt76_dma_queue_reset(struct mt76_dev *dev, struct mt76_queue *q); 89 mt76_dma_reset_tx_queue(struct mt76_dev *dev, struct mt76_queue *q) in mt76_dma_reset_tx_queue() 121 struct mt76_dev **priv; in mt76_priv()
|
H A D | dma.c | 42 mt76_alloc_txwi(struct mt76_dev *dev) in mt76_alloc_txwi() 68 mt76_alloc_rxwi(struct mt76_dev *dev) in mt76_alloc_rxwi() 81 __mt76_get_txwi(struct mt76_dev *dev) in __mt76_get_txwi() 97 __mt76_get_rxwi(struct mt76_dev *dev) in __mt76_get_rxwi() 113 mt76_get_txwi(struct mt76_dev *dev) in mt76_get_txwi() 124 mt76_get_rxwi(struct mt76_dev *dev) in mt76_get_rxwi() 136 mt76_put_txwi(struct mt76_dev *dev, struct mt76_txwi_cache *t) in mt76_put_txwi() 148 mt76_put_rxwi(struct mt76_dev *dev, struct mt76_txwi_cache *t) in mt76_put_rxwi() 160 mt76_free_pending_txwi(struct mt76_dev *dev) in mt76_free_pending_txwi() 174 mt76_free_pending_rxwi(struct mt76_dev *dev) in mt76_free_pending_rxwi() [all …]
|
H A 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() 108 struct mt76_dev *dev = phy->dev; in mt76_register_debugfs_fops()
|
H A 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),
|
H A 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),
|
H A D | mt76x02.h | 89 struct mt76_dev mt76; 155 int mt76x02_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, 157 void mt76x02_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif, 189 bool mt76x02_tx_status_data(struct mt76_dev *mdev, u8 *update); 190 void mt76x02_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, 192 void mt76x02_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q); 196 int mt76x02_tx_prepare_skb(struct mt76_dev *mdev, void *txwi, 202 void mt76x02_sta_ps(struct mt76_dev *dev, struct ieee80211_sta *sta, bool ps); 253 mt76x02_wait_for_txrx_idle(struct mt76_dev *dev) in mt76x02_wait_for_txrx_idle() 261 mt76x02_rx_get_sta(struct mt76_dev *dev, u8 idx) in mt76x02_rx_get_sta()
|
H A 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() 89 __mt76_tx_status_skb_done(struct mt76_dev *dev, struct sk_buff *skb, u8 flags, in __mt76_tx_status_skb_done() 113 mt76_tx_status_skb_done(struct mt76_dev *dev, struct sk_buff *skb, in mt76_tx_status_skb_done() 121 mt76_tx_status_skb_add(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_tx_status_skb_add() 170 mt76_tx_status_skb_get(struct mt76_dev *dev, struct mt76_wcid *wcid, int pktid, in mt76_tx_status_skb_get() 212 mt76_tx_status_check(struct mt76_dev *dev, bool flush) in mt76_tx_status_check() 225 mt76_tx_check_non_aql(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_tx_check_non_aql() 239 void __mt76_tx_complete_skb(struct mt76_dev *dev, u16 wcid_idx, struct sk_buff *skb, in __mt76_tx_complete_skb() 305 struct mt76_dev *dev = phy->dev; in __mt76_tx_queue_skb() [all …]
|
H A D | mt76_connac_mcu.h | 1844 mt76_connac_mcu_gen_dl_mode(struct mt76_dev *dev, u8 feature_set, bool is_wa) in mt76_connac_mcu_gen_dl_mode() 1865 mt76_connac_mcu_get_wlan_idx(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_connac_mcu_get_wlan_idx() 1879 __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, 1882 mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, in mt76_connac_mcu_alloc_sta_req() 1890 mt76_connac_mcu_alloc_wtbl_req(struct mt76_dev *dev, struct mt76_wcid *wcid, 1902 int mt76_connac_mcu_set_vif_ps(struct mt76_dev *dev, struct ieee80211_vif *vif); 1903 void mt76_connac_mcu_sta_basic_tlv(struct mt76_dev *dev, struct sk_buff *skb, 1907 void mt76_connac_mcu_wtbl_generic_tlv(struct mt76_dev *dev, struct sk_buff *skb, 1915 int mt76_connac_mcu_sta_update_hdr_trans(struct mt76_dev *dev, 1922 int mt76_connac_mcu_wtbl_update_hdr_trans(struct mt76_dev *dev, [all …]
|
H A D | mcu.c | 9 __mt76_mcu_msg_alloc(struct mt76_dev *dev, const void *data, in __mt76_mcu_msg_alloc() 32 struct sk_buff *mt76_mcu_get_response(struct mt76_dev *dev, in mt76_mcu_get_response() 49 void mt76_mcu_rx_event(struct mt76_dev *dev, struct sk_buff *skb) in mt76_mcu_rx_event() 56 int mt76_mcu_send_and_get_msg(struct mt76_dev *dev, int cmd, const void *data, in mt76_mcu_send_and_get_msg() 72 int mt76_mcu_skb_send_and_get_msg(struct mt76_dev *dev, struct sk_buff *skb, in mt76_mcu_skb_send_and_get_msg() 134 int __mt76_mcu_send_firmware(struct mt76_dev *dev, int cmd, const void *data, in __mt76_mcu_send_firmware()
|
H A 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);
|
H A D | mac80211.c | 198 struct mt76_dev *dev = phy->dev; in mt76_led_init() 313 struct mt76_dev *dev = phy->dev; in mt76_init_sband() 426 struct mt76_dev *dev = phy->dev; in mt76_phy_init() 484 mt76_alloc_phy(struct mt76_dev *dev, unsigned int size, in mt76_alloc_phy() 568 struct mt76_dev *dev = phy->dev; in mt76_unregister_phy() 581 int mt76_create_page_pool(struct mt76_dev *dev, struct mt76_queue *q) in mt76_create_page_pool() 630 struct mt76_dev * 637 struct mt76_dev *dev; in mt76_alloc_device() 707 int mt76_register_device(struct mt76_dev *dev, bool vht, in mt76_register_device() 761 void mt76_unregister_device(struct mt76_dev *dev) in mt76_unregister_device() [all …]
|
H A D | sdio_txrx.c | 21 static int mt76s_refill_sched_quota(struct mt76_dev *dev, u32 *data) in mt76s_refill_sched_quota() 81 mt76s_rx_run_queue(struct mt76_dev *dev, enum mt76_rxq_id qid, in mt76s_rx_run_queue() 149 static int mt76s_rx_handler(struct mt76_dev *dev) in mt76s_rx_handler() 221 static int __mt76s_xmit_queue(struct mt76_dev *dev, u8 *data, int len) in __mt76s_xmit_queue() 239 static int mt76s_tx_run_queue(struct mt76_dev *dev, struct mt76_queue *q) in mt76s_tx_run_queue() 311 struct mt76_dev *dev = container_of(sdio, struct mt76_dev, sdio); in mt76s_txrx_worker() 355 struct mt76_dev *dev = sdio_get_drvdata(func); in mt76s_sdio_irq() 367 bool mt76s_txqs_empty(struct mt76_dev *dev) in mt76s_txqs_empty()
|
H A D | mt76x02_usb_mcu.c | 21 mt76x02u_multiple_mcu_reads(struct mt76_dev *dev, u8 *data, int len) in mt76x02u_multiple_mcu_reads() 37 static int mt76x02u_mcu_wait_resp(struct mt76_dev *dev, u8 seq) in mt76x02u_mcu_wait_resp() 70 __mt76x02u_mcu_send_msg(struct mt76_dev *dev, struct sk_buff *skb, in __mt76x02u_mcu_send_msg() 110 mt76x02u_mcu_send_msg(struct mt76_dev *dev, int cmd, const void *data, in mt76x02u_mcu_send_msg() 133 mt76x02u_mcu_wr_rp(struct mt76_dev *dev, u32 base, in mt76x02u_mcu_wr_rp() 166 mt76x02u_mcu_rd_rp(struct mt76_dev *dev, u32 base, in mt76x02u_mcu_rd_rp() 280 void mt76x02u_init_mcu(struct mt76_dev *dev) in mt76x02u_init_mcu()
|
H A D | eeprom.c | 13 static int mt76_get_of_eeprom_data(struct mt76_dev *dev, void *eep, int len) in mt76_get_of_eeprom_data() 31 int mt76_get_of_data_from_mtd(struct mt76_dev *dev, void *eep, int offset, int len) in mt76_get_of_data_from_mtd() 110 int mt76_get_of_data_from_nvmem(struct mt76_dev *dev, void *eep, in mt76_get_of_data_from_nvmem() 143 static int mt76_get_of_eeprom(struct mt76_dev *dev, void *eep, int len) in mt76_get_of_eeprom() 165 struct mt76_dev *dev = phy->dev; in mt76_eeprom_override() 194 mt76_find_power_limits_node(struct mt76_dev *dev) in mt76_find_power_limits_node() 338 struct mt76_dev *dev = phy->dev; in mt76_get_rate_power_limits() 410 mt76_eeprom_init(struct mt76_dev *dev, int len) in mt76_eeprom_init()
|
H A D | mt76_connac_mcu.c | 8 int mt76_connac_mcu_start_firmware(struct mt76_dev *dev, u32 addr, u32 option) in mt76_connac_mcu_start_firmware() 23 int mt76_connac_mcu_patch_sem_ctrl(struct mt76_dev *dev, bool get) in mt76_connac_mcu_patch_sem_ctrl() 37 int mt76_connac_mcu_start_patch(struct mt76_dev *dev) in mt76_connac_mcu_start_patch() 53 int mt76_connac_mcu_init_download(struct mt76_dev *dev, u32 addr, u32 len, in mt76_connac_mcu_init_download() 108 struct mt76_dev *dev = phy->dev; in mt76_connac_mcu_set_channel_domain() 173 int mt76_connac_mcu_set_mac_enable(struct mt76_dev *dev, int band, bool enable, in mt76_connac_mcu_set_mac_enable() 190 int mt76_connac_mcu_set_vif_ps(struct mt76_dev *dev, struct ieee80211_vif *vif) in mt76_connac_mcu_set_vif_ps() 212 int mt76_connac_mcu_set_rts_thresh(struct mt76_dev *dev, u32 val, u8 band) in mt76_connac_mcu_set_rts_thresh() 276 __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, in __mt76_connac_mcu_alloc_sta_req() 302 mt76_connac_mcu_alloc_wtbl_req(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_connac_mcu_alloc_wtbl_req() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
H A D | mt7925.h | 219 int mt7925_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, 222 int mt7925_mac_sta_event(struct mt76_dev *mdev, struct ieee80211_vif *vif, 224 void mt7925_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif, 227 int mt7925e_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 233 bool mt7925_rx_check(struct mt76_dev *mdev, void *data, int len); 234 void mt7925_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, 259 void mt7925_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi, 266 int mt7925_mcu_parse_response(struct mt76_dev *mdev, int cmd, 285 int mt7925_usb_sdio_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 289 void mt7925_usb_sdio_tx_complete_skb(struct mt76_dev *mdev, [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | mt7603.h | 104 struct mt76_dev mt76; 236 int mt7603_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 241 void mt7603_tx_complete_skb(struct mt76_dev *mdev, struct mt76_queue_entry *e); 243 void mt7603_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, 245 void mt7603_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q); 246 void mt7603_sta_ps(struct mt76_dev *mdev, struct ieee80211_sta *sta, bool ps); 247 int mt7603_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, 249 int mt7603_sta_event(struct mt76_dev *mdev, struct ieee80211_vif *vif, 251 void mt7603_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
|
/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | mt7921.h | 246 int mt7921_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, 248 int mt7921_mac_sta_event(struct mt76_dev *mdev, struct ieee80211_vif *vif, 250 void mt7921_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif, 253 int mt7921e_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 258 bool mt7921_rx_check(struct mt76_dev *mdev, void *data, int len); 259 void mt7921_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, 283 int mt7921_mcu_parse_response(struct mt76_dev *mdev, int cmd, 308 int mt7921_usb_sdio_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 312 void mt7921_usb_sdio_tx_complete_skb(struct mt76_dev *mdev, 314 bool mt7921_usb_sdio_tx_status_data(struct mt76_dev *mdev, u8 *update);
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | mt7615.h | 243 struct mt76_dev mt76; 462 int mt7615_mcu_restart(struct mt76_dev *dev); 486 int mt7615_mcu_parse_response(struct mt76_dev *mdev, int cmd, 498 int mt7615_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 505 bool mt7615_rx_check(struct mt76_dev *mdev, void *data, int len); 506 void mt7615_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, 508 int mt7615_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, 510 void mt7615_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif, 543 int mt7663_usb_sdio_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, 547 bool mt7663_usb_sdio_tx_status_data(struct mt76_dev *mdev, u8 *update); [all …]
|