Home
last modified time | relevance | path

Searched refs:mt76_dev (Results 1 – 25 of 97) sorted by relevance

1234

/Linux-v6.6/drivers/net/wireless/mediatek/mt76/
Dmt76.h42 struct mt76_dev;
65 u32 (*rr)(struct mt76_dev *dev, u32 offset);
66 void (*wr)(struct mt76_dev *dev, u32 offset, u32 val);
67 u32 (*rmw)(struct mt76_dev *dev, u32 offset, u32 mask, u32 val);
68 void (*write_copy)(struct mt76_dev *dev, u32 offset, const void *data,
70 void (*read_copy)(struct mt76_dev *dev, u32 offset, void *data,
72 int (*wr_rp)(struct mt76_dev *dev, u32 base,
74 int (*rd_rp)(struct mt76_dev *dev, u32 base,
213 int (*mcu_send_msg)(struct mt76_dev *dev, int cmd, const void *data,
215 int (*mcu_skb_send_msg)(struct mt76_dev *dev, struct sk_buff *skb,
[all …]
Dmt76_connac.h175 static inline bool is_mt7922(struct mt76_dev *dev) in is_mt7922()
180 static inline bool is_mt7921(struct mt76_dev *dev) in is_mt7921()
185 static inline bool is_mt7663(struct mt76_dev *dev) in is_mt7663()
190 static inline bool is_mt7915(struct mt76_dev *dev) in is_mt7915()
195 static inline bool is_mt7916(struct mt76_dev *dev) in is_mt7916()
200 static inline bool is_mt7981(struct mt76_dev *dev) in is_mt7981()
205 static inline bool is_mt7986(struct mt76_dev *dev) in is_mt7986()
210 static inline bool is_mt798x(struct mt76_dev *dev) in is_mt798x()
215 static inline bool is_mt7996(struct mt76_dev *dev) in is_mt7996()
220 static inline bool is_mt7622(struct mt76_dev *dev) in is_mt7622()
[all …]
Dusb.c18 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 …]
Dsdio.c23 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 …]
Dmmio.c9 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()
87 void mt76_mmio_init(struct mt76_dev *dev, void __iomem *regs) in mt76_mmio_init()
Dusb_trace.h28 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),
Ddebugfs.c10 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()
Ddma.c42 mt76_alloc_txwi(struct mt76_dev *dev) in mt76_alloc_txwi()
63 mt76_alloc_rxwi(struct mt76_dev *dev) in mt76_alloc_rxwi()
76 __mt76_get_txwi(struct mt76_dev *dev) in __mt76_get_txwi()
92 __mt76_get_rxwi(struct mt76_dev *dev) in __mt76_get_rxwi()
108 mt76_get_txwi(struct mt76_dev *dev) in mt76_get_txwi()
119 mt76_get_rxwi(struct mt76_dev *dev) in mt76_get_rxwi()
131 mt76_put_txwi(struct mt76_dev *dev, struct mt76_txwi_cache *t) in mt76_put_txwi()
143 mt76_put_rxwi(struct mt76_dev *dev, struct mt76_txwi_cache *t) in mt76_put_rxwi()
155 mt76_free_pending_txwi(struct mt76_dev *dev) in mt76_free_pending_txwi()
169 mt76_free_pending_rxwi(struct mt76_dev *dev) in mt76_free_pending_rxwi()
[all …]
Dtrace.h33 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),
Dtx.c40 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 …]
Dmt76x02.h89 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()
Dmcu.c9 __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()
111 int __mt76_mcu_send_firmware(struct mt76_dev *dev, int cmd, const void *data, in __mt76_mcu_send_firmware()
Dmt76_connac_mcu.h1736 mt76_connac_mcu_gen_dl_mode(struct mt76_dev *dev, u8 feature_set, bool is_wa) in mt76_connac_mcu_gen_dl_mode()
1757 mt76_connac_mcu_get_wlan_idx(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_connac_mcu_get_wlan_idx()
1771 __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif,
1774 mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, in mt76_connac_mcu_alloc_sta_req()
1782 mt76_connac_mcu_alloc_wtbl_req(struct mt76_dev *dev, struct mt76_wcid *wcid,
1794 int mt76_connac_mcu_set_vif_ps(struct mt76_dev *dev, struct ieee80211_vif *vif);
1795 void mt76_connac_mcu_sta_basic_tlv(struct mt76_dev *dev, struct sk_buff *skb,
1799 void mt76_connac_mcu_wtbl_generic_tlv(struct mt76_dev *dev, struct sk_buff *skb,
1807 int mt76_connac_mcu_sta_update_hdr_trans(struct mt76_dev *dev,
1810 int mt76_connac_mcu_wtbl_update_hdr_trans(struct mt76_dev *dev,
[all …]
Dmt76x02_usb.h12 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);
Dmac80211.c198 struct mt76_dev *dev = phy->dev; in mt76_led_init()
302 struct mt76_dev *dev = phy->dev; in mt76_init_sband()
415 struct mt76_dev *dev = phy->dev; in mt76_phy_init()
468 mt76_alloc_phy(struct mt76_dev *dev, unsigned int size, in mt76_alloc_phy()
552 struct mt76_dev *dev = phy->dev; in mt76_unregister_phy()
565 int mt76_create_page_pool(struct mt76_dev *dev, struct mt76_queue *q) in mt76_create_page_pool()
606 struct mt76_dev *
613 struct mt76_dev *dev; in mt76_alloc_device()
683 int mt76_register_device(struct mt76_dev *dev, bool vht, in mt76_register_device()
736 void mt76_unregister_device(struct mt76_dev *dev) in mt76_unregister_device()
[all …]
Ddma.h58 void mt76_dma_attach(struct mt76_dev *dev);
59 void mt76_dma_cleanup(struct mt76_dev *dev);
60 int mt76_dma_wed_setup(struct mt76_dev *dev, struct mt76_queue *q, bool reset);
Dsdio_txrx.c21 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()
Dmt76x02_usb_mcu.c21 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()
Deeprom.c13 static int mt76_get_of_eeprom_data(struct mt76_dev *dev, void *eep, int len) in mt76_get_of_eeprom_data()
31 static int mt76_get_of_epprom_from_mtd(struct mt76_dev *dev, void *eep, int offset, int len) in mt76_get_of_epprom_from_mtd()
109 static int mt76_get_of_epprom_from_nvmem(struct mt76_dev *dev, void *eep, int len) in mt76_get_of_epprom_from_nvmem()
140 int mt76_get_of_eeprom(struct mt76_dev *dev, void *eep, int offset, int len) in mt76_get_of_eeprom()
163 struct mt76_dev *dev = phy->dev; in mt76_eeprom_override()
192 mt76_find_power_limits_node(struct mt76_dev *dev) in mt76_find_power_limits_node()
333 struct mt76_dev *dev = phy->dev; in mt76_get_rate_power_limits()
405 mt76_eeprom_init(struct mt76_dev *dev, int len) in mt76_eeprom_init()
Dmt792x.h160 struct mt76_dev mt76;
234 void mt792x_reset(struct mt76_dev *mdev);
286 void mt792x_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q);
335 u32 mt792xu_rr(struct mt76_dev *dev, u32 addr);
336 void mt792xu_wr(struct mt76_dev *dev, u32 addr, u32 val);
337 u32 mt792xu_rmw(struct mt76_dev *dev, u32 addr, u32 mask, u32 val);
338 void mt792xu_copy(struct mt76_dev *dev, u32 offset, const void *data, int len);
Dmt76_connac_mcu.c8 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()
106 struct mt76_dev *dev = phy->dev; in mt76_connac_mcu_set_channel_domain()
171 int mt76_connac_mcu_set_mac_enable(struct mt76_dev *dev, int band, bool enable, in mt76_connac_mcu_set_mac_enable()
188 int mt76_connac_mcu_set_vif_ps(struct mt76_dev *dev, struct ieee80211_vif *vif) in mt76_connac_mcu_set_vif_ps()
210 int mt76_connac_mcu_set_rts_thresh(struct mt76_dev *dev, u32 val, u8 band) in mt76_connac_mcu_set_rts_thresh()
274 __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, in __mt76_connac_mcu_alloc_sta_req()
297 mt76_connac_mcu_alloc_wtbl_req(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_connac_mcu_alloc_wtbl_req()
[all …]
Dmt792x_usb.c14 u32 mt792xu_rr(struct mt76_dev *dev, u32 addr) in mt792xu_rr()
27 void mt792xu_wr(struct mt76_dev *dev, u32 addr, u32 val) in mt792xu_wr()
36 u32 mt792xu_rmw(struct mt76_dev *dev, u32 addr, u32 mask, u32 val) in mt792xu_rmw()
49 void mt792xu_copy(struct mt76_dev *dev, u32 offset, const void *data, int len) in mt792xu_copy()
102 static u32 mt792xu_uhw_rr(struct mt76_dev *dev, u32 addr) in mt792xu_uhw_rr()
114 static void mt792xu_uhw_wr(struct mt76_dev *dev, u32 addr, u32 val) in mt792xu_uhw_wr()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7603/
Dmt7603.h104 struct mt76_dev mt76;
235 int mt7603_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
240 void mt7603_tx_complete_skb(struct mt76_dev *mdev, struct mt76_queue_entry *e);
242 void mt7603_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q,
244 void mt7603_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q);
245 void mt7603_sta_ps(struct mt76_dev *mdev, struct ieee80211_sta *sta, bool ps);
246 int mt7603_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
248 void mt7603_sta_assoc(struct mt76_dev *mdev, struct ieee80211_vif *vif,
250 void mt7603_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7921/
Dmt7921.h254 int mt7921_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
256 void mt7921_mac_sta_assoc(struct mt76_dev *mdev, struct ieee80211_vif *vif,
258 void mt7921_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
261 int mt7921e_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
266 bool mt7921_rx_check(struct mt76_dev *mdev, void *data, int len);
267 void mt7921_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q,
291 int mt7921_mcu_parse_response(struct mt76_dev *mdev, int cmd,
316 int mt7921_usb_sdio_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
320 void mt7921_usb_sdio_tx_complete_skb(struct mt76_dev *mdev,
322 bool mt7921_usb_sdio_tx_status_data(struct mt76_dev *mdev, u8 *update);
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7615/
Dmt7615.h243 struct mt76_dev mt76;
463 int mt7615_mcu_restart(struct mt76_dev *dev);
487 int mt7615_mcu_parse_response(struct mt76_dev *mdev, int cmd,
499 int mt7615_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
506 bool mt7615_rx_check(struct mt76_dev *mdev, void *data, int len);
507 void mt7615_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q,
509 int mt7615_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
511 void mt7615_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
544 int mt7663_usb_sdio_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
548 bool mt7663_usb_sdio_tx_status_data(struct mt76_dev *mdev, u8 *update);
[all …]

1234