Home
last modified time | relevance | path

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

1234

/freebsd-14.2/sys/contrib/dev/mediatek/mt76/
H A Dmt76.h49 struct mt76_dev;
72 u32 (*rr)(struct mt76_dev *dev, u32 offset);
79 int (*wr_rp)(struct mt76_dev *dev, u32 base,
81 int (*rd_rp)(struct mt76_dev *dev, u32 base,
232 int (*mcu_restart)(struct mt76_dev *dev);
236 int (*init)(struct mt76_dev *dev,
373 struct mt76_dev *dev;
723 struct mt76_dev *dev;
774 struct mt76_dev { struct
1358 int mt76_get_rate(struct mt76_dev *dev,
[all …]
H A 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 …]
H A Dusb.c230 mt76u_req_wr_rp(struct mt76_dev *dev, u32 base, in mt76u_req_wr_rp()
247 mt76u_wr_rp(struct mt76_dev *dev, u32 base, in mt76u_wr_rp()
274 mt76u_rd_rp(struct mt76_dev *dev, u32 base, in mt76u_rd_rp()
283 static bool mt76u_check_sg(struct mt76_dev *dev) in mt76u_check_sg()
632 struct mt76_dev *dev = container_of(usb, struct mt76_dev, usb); in mt76u_rx_worker()
722 void mt76u_stop_rx(struct mt76_dev *dev) in mt76u_stop_rx()
738 int mt76u_resume_rx(struct mt76_dev *dev) in mt76u_resume_rx()
763 struct mt76_dev *dev = container_of(usb, struct mt76_dev, usb); in mt76u_status_worker()
800 struct mt76_dev *dev; in mt76u_tx_status_data()
988 void mt76u_stop_tx(struct mt76_dev *dev) in mt76u_stop_tx()
[all …]
H A 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()
144 u32 mt76s_rr(struct mt76_dev *dev, u32 offset) in mt76s_rr()
197 int mt76s_wr_rp(struct mt76_dev *dev, u32 base, in mt76s_wr_rp()
212 int mt76s_rd_rp(struct mt76_dev *dev, u32 base, in mt76s_rd_rp()
343 int mt76s_alloc_tx(struct mt76_dev *dev) in mt76s_alloc_tx()
412 struct mt76_dev *dev = container_of(sdio, struct mt76_dev, sdio); in mt76s_net_worker()
465 struct mt76_dev *dev = container_of(sdio, struct mt76_dev, sdio); in mt76s_status_worker()
494 struct mt76_dev *dev; in mt76s_tx_status_data()
499 dev = container_of(sdio, struct mt76_dev, sdio); in mt76s_tx_status_data()
[all …]
H A Dmmio.c9 static u32 mt76_mmio_rr(struct mt76_dev *dev, u32 offset) in mt76_mmio_rr()
23 static void mt76_mmio_wr(struct mt76_dev *dev, u32 offset, u32 val) in mt76_mmio_wr()
33 static u32 mt76_mmio_rmw(struct mt76_dev *dev, u32 offset, u32 mask, u32 val) in mt76_mmio_rmw()
40 static void mt76_mmio_write_copy(struct mt76_dev *dev, u32 offset, in mt76_mmio_write_copy()
50 static void mt76_mmio_read_copy(struct mt76_dev *dev, u32 offset, in mt76_mmio_read_copy()
60 static int mt76_mmio_wr_rp(struct mt76_dev *dev, u32 base, in mt76_mmio_wr_rp()
72 static int mt76_mmio_rd_rp(struct mt76_dev *dev, u32 base, in mt76_mmio_rd_rp()
84 void mt76_set_irq_mask(struct mt76_dev *dev, u32 addr, in mt76_set_irq_mask()
103 void mt76_mmio_init(struct mt76_dev *dev, void __iomem *regs) in mt76_mmio_init()
H A 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()
H A 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),
H A Ddma.c46 mt76_alloc_txwi(struct mt76_dev *dev) in mt76_alloc_txwi()
67 mt76_alloc_rxwi(struct mt76_dev *dev) in mt76_alloc_rxwi()
80 __mt76_get_txwi(struct mt76_dev *dev) in __mt76_get_txwi()
96 __mt76_get_rxwi(struct mt76_dev *dev) in __mt76_get_rxwi()
112 mt76_get_txwi(struct mt76_dev *dev) in mt76_get_txwi()
123 mt76_get_rxwi(struct mt76_dev *dev) in mt76_get_rxwi()
159 mt76_free_pending_txwi(struct mt76_dev *dev) in mt76_free_pending_txwi()
173 mt76_free_pending_rxwi(struct mt76_dev *dev) in mt76_free_pending_rxwi()
904 struct mt76_dev *dev; in mt76_dma_rx_poll()
928 mt76_dma_init(struct mt76_dev *dev, in mt76_dma_init()
[all …]
H A 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()
112 int __mt76_mcu_send_firmware(struct mt76_dev *dev, int cmd, const void *data, in __mt76_mcu_send_firmware()
114 int __mt76_mcu_send_firmware(struct mt76_dev *dev, int cmd, const u8 *data, in __mt76_mcu_send_firmware()
H A Dtx.c212 mt76_tx_status_check(struct mt76_dev *dev, bool flush) in mt76_tx_status_check()
305 struct mt76_dev *dev = phy->dev; in __mt76_tx_queue_skb()
332 struct mt76_dev *dev = phy->dev; in mt76_tx()
409 struct mt76_dev *dev = phy->dev; in mt76_release_buffered_frames()
458 struct mt76_dev *dev = phy->dev; in mt76_txq_send_burst()
524 struct mt76_dev *dev = phy->dev; in mt76_txq_schedule_list()
605 void mt76_tx_worker_run(struct mt76_dev *dev) in mt76_tx_worker_run()
632 struct mt76_dev *dev = container_of(w, struct mt76_dev, tx_worker); in mt76_tx_worker()
663 struct mt76_dev *dev = phy->dev; in mt76_wake_tx_queue()
777 int mt76_rx_token_consume(struct mt76_dev *dev, void *ptr, in mt76_rx_token_consume()
[all …]
H A 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),
H A 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()
H A Dmt76_connac_mcu.h1811 int mt76_connac_mcu_sta_update_hdr_trans(struct mt76_dev *dev,
1814 int mt76_connac_mcu_wtbl_update_hdr_trans(struct mt76_dev *dev,
1855 int mt76_connac_mcu_start_patch(struct mt76_dev *dev);
1856 int mt76_connac_mcu_patch_sem_ctrl(struct mt76_dev *dev, bool get);
1870 int mt76_connac_mcu_update_arp_filter(struct mt76_dev *dev,
1879 int mt76_connac_sta_state_dp(struct mt76_dev *dev,
1882 int mt76_connac_mcu_chip_config(struct mt76_dev *dev);
1889 u32 mt76_connac_mcu_reg_rr(struct mt76_dev *dev, u32 offset);
1920 int mt76_connac_mcu_restart(struct mt76_dev *dev);
1921 int mt76_connac_mcu_rdd_cmd(struct mt76_dev *dev, int cmd, u8 index,
[all …]
H A 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);
H A Dmac80211.c208 struct mt76_dev *dev = phy->dev; in mt76_led_init()
315 struct mt76_dev *dev = phy->dev; in mt76_init_sband()
428 struct mt76_dev *dev = phy->dev; in mt76_phy_init()
571 struct mt76_dev *dev = phy->dev; in mt76_unregister_phy()
627 struct mt76_dev *
634 struct mt76_dev *dev; in mt76_alloc_device()
796 struct mt76_dev *dev = phy->dev; in mt76_rx_release_amsdu()
917 struct mt76_dev *dev = phy->dev; in mt76_update_survey()
939 struct mt76_dev *dev = phy->dev; in mt76_set_channel()
967 struct mt76_dev *dev = phy->dev; in mt76_get_survey()
[all …]
H A 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);
H A 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()
H A 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()
H A Deeprom.c16 static int mt76_get_of_eeprom_data(struct mt76_dev *dev, void *eep, int len) in mt76_get_of_eeprom_data()
36 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()
112 static int mt76_get_of_epprom_from_nvmem(struct mt76_dev *dev, void *eep, int len) in mt76_get_of_epprom_from_nvmem()
144 int mt76_get_of_eeprom(struct mt76_dev *dev, void *eep, int offset, int len) in mt76_get_of_eeprom()
171 struct mt76_dev *dev = phy->dev; in mt76_eeprom_override()
205 mt76_find_power_limits_node(struct mt76_dev *dev) in mt76_find_power_limits_node()
347 struct mt76_dev *dev = phy->dev; in mt76_get_rate_power_limits()
427 mt76_eeprom_init(struct mt76_dev *dev, int len) in mt76_eeprom_init()
H A 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);
H A Dmt76_connac_mcu.c106 struct mt76_dev *dev = phy->dev; in mt76_connac_mcu_set_channel_domain()
834 struct mt76_dev *dev = mphy->dev; in mt76_connac_mcu_sta_tlv()
1022 struct mt76_dev *dev = phy->dev; in mt76_connac_mcu_sta_cmd()
1115 struct mt76_dev *dev = phy->dev; in mt76_connac_mcu_uni_add_dev()
1285 struct mt76_dev *dev = phy->dev; in mt76_connac_get_phy_mode()
1424 struct mt76_dev *mdev = phy->dev; in mt76_connac_mcu_uni_set_chctx()
1509 struct mt76_dev *mdev = phy->dev; in mt76_connac_mcu_uni_add_bss()
1637 struct mt76_dev *mdev = phy->dev; in mt76_connac_mcu_hw_scan()
2094 struct mt76_dev *dev = phy->dev; in mt76_connac_get_ch_power()
2134 struct mt76_dev *dev = phy->dev; in mt76_connac_mcu_rate_txpower_band()
[all …]
H A 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()
/freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7603/
H A 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,
/freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7921/
H A 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);
/freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7615/
H A 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