Home
last modified time | relevance | path

Searched refs:mt76x02_dev (Results 1 – 25 of 53) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dmt76x2.h26 static inline bool is_mt7612(struct mt76x02_dev *dev) in is_mt7612()
31 static inline bool mt76x2_channel_silent(struct mt76x02_dev *dev) in mt76x2_channel_silent()
41 int mt76x2_register_device(struct mt76x02_dev *dev);
42 int mt76x2_resume_device(struct mt76x02_dev *dev);
44 void mt76x2_phy_power_on(struct mt76x02_dev *dev);
45 void mt76x2_stop_hardware(struct mt76x02_dev *dev);
46 int mt76x2_eeprom_init(struct mt76x02_dev *dev);
47 int mt76x2_apply_calibration_data(struct mt76x02_dev *dev, int channel);
49 void mt76x2_phy_set_antenna(struct mt76x02_dev *dev);
50 int mt76x2_phy_start(struct mt76x02_dev *dev);
[all …]
Dmt76x2u.h21 int mt76x2u_register_device(struct mt76x02_dev *dev);
22 int mt76x2u_init_hardware(struct mt76x02_dev *dev);
23 void mt76x2u_cleanup(struct mt76x02_dev *dev);
24 void mt76x2u_stop_hw(struct mt76x02_dev *dev);
26 int mt76x2u_mac_reset(struct mt76x02_dev *dev);
27 int mt76x2u_mac_stop(struct mt76x02_dev *dev);
29 int mt76x2u_phy_set_channel(struct mt76x02_dev *dev,
34 int mt76x2u_mcu_init(struct mt76x02_dev *dev);
35 int mt76x2u_mcu_fw_init(struct mt76x02_dev *dev);
37 int mt76x2u_alloc_queues(struct mt76x02_dev *dev);
[all …]
Deeprom.h43 void mt76x2_get_rate_power(struct mt76x02_dev *dev, struct mt76_rate_power *t,
45 void mt76x2_get_power_info(struct mt76x02_dev *dev,
48 int mt76x2_get_temp_comp(struct mt76x02_dev *dev, struct mt76x2_temp_comp *t);
49 void mt76x2_read_rx_gain(struct mt76x02_dev *dev);
52 mt76x2_has_ext_lna(struct mt76x02_dev *dev) in mt76x2_has_ext_lna()
63 mt76x2_temp_tx_alc_enabled(struct mt76x02_dev *dev) in mt76x2_temp_tx_alc_enabled()
76 mt76x2_tssi_enabled(struct mt76x02_dev *dev) in mt76x2_tssi_enabled()
Dpci_init.c13 mt76x2_mac_pbf_init(struct mt76x02_dev *dev) in mt76x2_mac_pbf_init()
31 mt76x2_fixup_xtal(struct mt76x02_dev *dev) in mt76x2_fixup_xtal()
70 int mt76x2_mac_reset(struct mt76x02_dev *dev, bool hard) in mt76x2_mac_reset()
142 mt76x2_power_on_rf_patch(struct mt76x02_dev *dev) in mt76x2_power_on_rf_patch()
163 mt76x2_power_on_rf(struct mt76x02_dev *dev, int unit) in mt76x2_power_on_rf()
185 mt76x2_power_on(struct mt76x02_dev *dev) in mt76x2_power_on()
220 int mt76x2_resume_device(struct mt76x02_dev *dev) in mt76x2_resume_device()
237 static int mt76x2_init_hardware(struct mt76x02_dev *dev) in mt76x2_init_hardware()
271 void mt76x2_stop_hardware(struct mt76x02_dev *dev) in mt76x2_stop_hardware()
281 void mt76x2_cleanup(struct mt76x02_dev *dev) in mt76x2_cleanup()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x0/
Dmt76x0.h31 static inline bool is_mt7610e(struct mt76x02_dev *dev) in is_mt7610e()
39 static inline bool is_mt7630(struct mt76x02_dev *dev) in is_mt7630()
45 int mt76x0_init_hardware(struct mt76x02_dev *dev);
46 int mt76x0_register_device(struct mt76x02_dev *dev);
47 void mt76x0_chip_onoff(struct mt76x02_dev *dev, bool enable, bool reset);
49 void mt76x0_mac_stop(struct mt76x02_dev *dev);
54 void mt76x0_phy_init(struct mt76x02_dev *dev);
55 int mt76x0_phy_wait_bbp_ready(struct mt76x02_dev *dev);
56 void mt76x0_phy_set_channel(struct mt76x02_dev *dev,
58 void mt76x0_phy_set_txpower(struct mt76x02_dev *dev);
[all …]
Deeprom.h13 struct mt76x02_dev;
18 int mt76x0_eeprom_init(struct mt76x02_dev *dev);
19 void mt76x0_read_rx_gain(struct mt76x02_dev *dev);
20 void mt76x0_get_tx_power_per_rate(struct mt76x02_dev *dev,
23 void mt76x0_get_power_info(struct mt76x02_dev *dev,
35 static inline bool mt76x0_tssi_enabled(struct mt76x02_dev *dev) in mt76x0_tssi_enabled()
Dmcu.h12 struct mt76x02_dev;
39 int mt76x0e_mcu_init(struct mt76x02_dev *dev);
40 int mt76x0u_mcu_init(struct mt76x02_dev *dev);
41 static inline int mt76x0_firmware_running(struct mt76x02_dev *dev) in mt76x0_firmware_running()
Dinit.c17 mt76x0_set_wlan_state(struct mt76x02_dev *dev, u32 val, bool enable) in mt76x0_set_wlan_state()
44 void mt76x0_chip_onoff(struct mt76x02_dev *dev, bool enable, bool reset) in mt76x0_chip_onoff()
72 static void mt76x0_reset_csr_bbp(struct mt76x02_dev *dev) in mt76x0_reset_csr_bbp()
87 static int mt76x0_init_bbp(struct mt76x02_dev *dev) in mt76x0_init_bbp()
110 static void mt76x0_init_mac_registers(struct mt76x02_dev *dev) in mt76x0_init_mac_registers()
136 void mt76x0_mac_stop(struct mt76x02_dev *dev) in mt76x0_mac_stop()
171 int mt76x0_init_hardware(struct mt76x02_dev *dev) in mt76x0_init_hardware()
216 mt76x0_init_txpower(struct mt76x02_dev *dev, in mt76x0_init_txpower()
236 int mt76x0_register_device(struct mt76x02_dev *dev) in mt76x0_register_device()
Dusb.c45 static void mt76x0_init_usb_dma(struct mt76x02_dev *dev) in mt76x0_init_usb_dma()
72 static void mt76x0u_cleanup(struct mt76x02_dev *dev) in mt76x0u_cleanup()
81 struct mt76x02_dev *dev = hw->priv; in mt76x0u_stop()
103 struct mt76x02_dev *dev = hw->priv; in mt76x0u_start()
145 static int mt76x0u_init_hardware(struct mt76x02_dev *dev, bool reset) in mt76x0u_init_hardware()
173 static int mt76x0u_register_device(struct mt76x02_dev *dev) in mt76x0u_register_device()
223 struct mt76x02_dev *dev; in mt76x0u_probe()
233 dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0u_probe()
287 struct mt76x02_dev *dev = usb_get_intfdata(usb_intf); in mt76x0_disconnect()
305 struct mt76x02_dev *dev = usb_get_intfdata(usb_intf); in mt76x0_suspend()
[all …]
Dpci.c15 struct mt76x02_dev *dev = hw->priv; in mt76x0e_start()
28 static void mt76x0e_stop_hw(struct mt76x02_dev *dev) in mt76x0e_stop_hw()
49 struct mt76x02_dev *dev = hw->priv; in mt76x0e_stop()
90 static int mt76x0e_register_device(struct mt76x02_dev *dev) in mt76x0e_register_device()
152 struct mt76x02_dev *dev; in mt76x0e_probe()
175 dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0e_probe()
202 static void mt76x0e_cleanup(struct mt76x02_dev *dev) in mt76x0e_cleanup()
216 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0e_remove()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mac.h10 struct mt76x02_dev;
170 void mt76x02_mac_reset_counters(struct mt76x02_dev *dev);
171 void mt76x02_mac_set_short_preamble(struct mt76x02_dev *dev, bool enable);
172 int mt76x02_mac_shared_key_setup(struct mt76x02_dev *dev, u8 vif_idx,
174 int mt76x02_mac_wcid_set_key(struct mt76x02_dev *dev, u8 idx,
176 void mt76x02_mac_wcid_sync_pn(struct mt76x02_dev *dev, u8 idx,
178 void mt76x02_mac_wcid_setup(struct mt76x02_dev *dev, u8 idx, u8 vif_idx,
180 void mt76x02_mac_wcid_set_drop(struct mt76x02_dev *dev, u8 idx, bool drop);
181 void mt76x02_mac_wcid_set_rate(struct mt76x02_dev *dev, struct mt76_wcid *wcid,
183 bool mt76x02_mac_load_tx_status(struct mt76x02_dev *dev,
[all …]
Dmt76x02_phy.h12 mt76x02_get_rssi_gain_thresh(struct mt76x02_dev *dev) in mt76x02_get_rssi_gain_thresh()
25 mt76x02_get_low_rssi_gain_thresh(struct mt76x02_dev *dev) in mt76x02_get_low_rssi_gain_thresh()
38 void mt76x02_phy_set_txpower(struct mt76x02_dev *dev, int txp_0, int txp_2);
41 void mt76x02_phy_set_rxpath(struct mt76x02_dev *dev);
42 void mt76x02_phy_set_txdac(struct mt76x02_dev *dev);
43 void mt76x02_phy_set_bw(struct mt76x02_dev *dev, int width, u8 ctrl);
44 void mt76x02_phy_set_band(struct mt76x02_dev *dev, int band,
46 bool mt76x02_phy_adjust_vga_gain(struct mt76x02_dev *dev);
47 void mt76x02_init_agc_gain(struct mt76x02_dev *dev);
Dmt76x02.h66 void (*pre_tbtt_enable)(struct mt76x02_dev *dev, bool en);
67 void (*beacon_enable)(struct mt76x02_dev *dev, bool en);
75 struct mt76x02_dev { struct
138 void mt76x02_init_device(struct mt76x02_dev *dev); argument
147 void mt76x02_config_mac_addr_list(struct mt76x02_dev *dev);
164 s8 mt76x02_tx_get_max_txpwr_adj(struct mt76x02_dev *dev,
166 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr,
169 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr);
170 void mt76x02_set_tx_ackto(struct mt76x02_dev *dev);
196 struct mt76x02_dev *dev;
[all …]
Dmt76x02_mmio.c16 struct mt76x02_dev *dev = (struct mt76x02_dev *)arg; in mt76x02_pre_tbtt_tasklet()
67 static void mt76x02e_pre_tbtt_enable(struct mt76x02_dev *dev, bool en) in mt76x02e_pre_tbtt_enable()
75 static void mt76x02e_beacon_enable(struct mt76x02_dev *dev, bool en) in mt76x02e_beacon_enable()
84 void mt76x02e_init_beacon_config(struct mt76x02_dev *dev) in mt76x02e_init_beacon_config()
107 mt76x02_init_tx_queue(struct mt76x02_dev *dev, int qid, int idx, int n_desc) in mt76x02_init_tx_queue()
128 mt76x02_init_rx_queue(struct mt76x02_dev *dev, struct mt76_queue *q, in mt76x02_init_rx_queue()
143 static void mt76x02_process_tx_status_fifo(struct mt76x02_dev *dev) in mt76x02_process_tx_status_fifo()
154 struct mt76x02_dev *dev; in mt76x02_tx_worker()
156 dev = container_of(w, struct mt76x02_dev, mt76.tx_worker); in mt76x02_tx_worker()
166 struct mt76x02_dev *dev = container_of(napi, struct mt76x02_dev, in mt76x02_poll_tx()
[all …]
Dmt76x02_usb_core.c25 int mt76x02u_mac_start(struct mt76x02_dev *dev) in mt76x02u_mac_start()
69 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02u_tx_prepare_skb()
122 static void mt76x02u_start_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_start_pre_tbtt_timer()
140 static void mt76x02u_restart_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_restart_pre_tbtt_timer()
166 static void mt76x02u_stop_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_stop_pre_tbtt_timer()
177 struct mt76x02_dev *dev = in mt76x02u_pre_tbtt_work()
178 container_of(work, struct mt76x02_dev, pre_tbtt_work); in mt76x02u_pre_tbtt_work()
221 struct mt76x02_dev *dev = in mt76x02u_pre_tbtt_interrupt()
222 container_of(timer, struct mt76x02_dev, pre_tbtt_timer); in mt76x02u_pre_tbtt_interrupt()
229 static void mt76x02u_pre_tbtt_enable(struct mt76x02_dev *dev, bool en) in mt76x02u_pre_tbtt_enable()
[all …]
Dmt76x02_usb.h11 int mt76x02u_mac_start(struct mt76x02_dev *dev);
13 void mt76x02u_mcu_fw_reset(struct mt76x02_dev *dev);
14 int mt76x02u_mcu_fw_send_data(struct mt76x02_dev *dev, const void *data,
23 void mt76x02u_init_beacon_config(struct mt76x02_dev *dev);
24 void mt76x02u_exit_beacon_config(struct mt76x02_dev *dev);
Dmt76x02_beacon.c10 static void mt76x02_set_beacon_offsets(struct mt76x02_dev *dev) in mt76x02_set_beacon_offsets()
26 mt76x02_write_beacon(struct mt76x02_dev *dev, int offset, struct sk_buff *skb) in mt76x02_write_beacon()
54 void mt76x02_mac_set_beacon(struct mt76x02_dev *dev, in mt76x02_mac_set_beacon()
66 void mt76x02_mac_set_beacon_enable(struct mt76x02_dev *dev, in mt76x02_mac_set_beacon_enable()
103 mt76x02_resync_beacon_timer(struct mt76x02_dev *dev) in mt76x02_resync_beacon_timer()
135 struct mt76x02_dev *dev = (struct mt76x02_dev *)priv; in mt76x02_update_beacon_iter()
154 struct mt76x02_dev *dev = data->dev; in mt76x02_add_buffered_bc()
175 mt76x02_enqueue_buffered_bc(struct mt76x02_dev *dev, in mt76x02_enqueue_buffered_bc()
203 void mt76x02_init_beacon_config(struct mt76x02_dev *dev) in mt76x02_init_beacon_config()
Dmt76x02_txrx.c15 struct mt76x02_dev *dev = hw->priv; in mt76x02_tx()
38 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_queue_rx_skb()
56 s8 mt76x02_tx_get_max_txpwr_adj(struct mt76x02_dev *dev, in mt76x02_tx_get_max_txpwr_adj()
96 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr, s8 max_txpwr_adj) in mt76x02_tx_get_txpwr_adj()
110 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr) in mt76x02_tx_set_txpwr_auto()
125 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_tx_status_data()
142 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_tx_prepare_skb()
Dmt76x02_eeprom.h165 mt76x02_eeprom_get(struct mt76x02_dev *dev, in mt76x02_eeprom_get()
174 bool mt76x02_ext_pa_enabled(struct mt76x02_dev *dev, enum nl80211_band band);
175 int mt76x02_get_efuse_data(struct mt76x02_dev *dev, u16 base, void *buf,
177 void mt76x02_get_rx_gain(struct mt76x02_dev *dev, enum nl80211_band band,
179 u8 mt76x02_get_lna_gain(struct mt76x02_dev *dev,
182 void mt76x02_eeprom_parse_hw_cap(struct mt76x02_dev *dev);
183 int mt76x02_eeprom_copy(struct mt76x02_dev *dev,
Dmt76x02_mcu.h88 int mt76x02_mcu_cleanup(struct mt76x02_dev *dev);
89 int mt76x02_mcu_calibrate(struct mt76x02_dev *dev, int type, u32 param);
92 int mt76x02_mcu_function_select(struct mt76x02_dev *dev, enum mcu_function func,
94 int mt76x02_mcu_set_radio_state(struct mt76x02_dev *dev, bool on);
95 void mt76x02_set_ethtool_fwver(struct mt76x02_dev *dev,
Dmt76x02_debugfs.c12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_show()
38 struct mt76x02_dev *dev = dev_get_drvdata(file->private); in read_txpower()
50 struct mt76x02_dev *dev = file->private; in mt76x02_dfs_stat_show()
77 struct mt76x02_dev *dev = dev_get_drvdata(file->private); in read_agc()
90 struct mt76x02_dev *dev = data; in mt76_edcca_set()
108 struct mt76x02_dev *dev = data; in mt76_edcca_get()
117 void mt76x02_init_debugfs(struct mt76x02_dev *dev) in mt76x02_init_debugfs()
Dmt76x02_eeprom.c12 mt76x02_efuse_read(struct mt76x02_dev *dev, u16 addr, u8 *data, in mt76x02_efuse_read()
45 int mt76x02_eeprom_copy(struct mt76x02_dev *dev, in mt76x02_eeprom_copy()
57 int mt76x02_get_efuse_data(struct mt76x02_dev *dev, u16 base, void *buf, in mt76x02_get_efuse_data()
72 void mt76x02_eeprom_parse_hw_cap(struct mt76x02_dev *dev) in mt76x02_eeprom_parse_hw_cap()
91 bool mt76x02_ext_pa_enabled(struct mt76x02_dev *dev, enum nl80211_band band) in mt76x02_ext_pa_enabled()
102 void mt76x02_get_rx_gain(struct mt76x02_dev *dev, enum nl80211_band band, in mt76x02_get_rx_gain()
130 u8 mt76x02_get_lna_gain(struct mt76x02_dev *dev, in mt76x02_get_lna_gain()
Dmt76x02_util.c99 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, in mt76x02_led_set_config()
147 void mt76x02_init_device(struct mt76x02_dev *dev) in mt76x02_init_device()
212 struct mt76x02_dev *dev = hw->priv; in mt76x02_configure_filter()
245 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_add()
274 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_remove()
284 mt76x02_vif_init(struct mt76x02_dev *dev, struct ieee80211_vif *vif, in mt76x02_vif_init()
302 struct mt76x02_dev *dev = hw->priv; in mt76x02_add_interface()
345 struct mt76x02_dev *dev = hw->priv; in mt76x02_remove_interface()
357 struct mt76x02_dev *dev = hw->priv; in mt76x02_ampdu_action()
410 struct mt76x02_dev *dev = hw->priv; in mt76x02_set_key()
[all …]
Dmt76x02_mcu.c16 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_mcu_msg_send()
77 int mt76x02_mcu_function_select(struct mt76x02_dev *dev, enum mcu_function func, in mt76x02_mcu_function_select()
96 int mt76x02_mcu_set_radio_state(struct mt76x02_dev *dev, bool on) in mt76x02_mcu_set_radio_state()
111 int mt76x02_mcu_calibrate(struct mt76x02_dev *dev, int type, u32 param) in mt76x02_mcu_calibrate()
140 int mt76x02_mcu_cleanup(struct mt76x02_dev *dev) in mt76x02_mcu_cleanup()
154 void mt76x02_set_ethtool_fwver(struct mt76x02_dev *dev, in mt76x02_set_ethtool_fwver()
Dmt76x02_dfs.c143 mt76x02_dfs_set_capture_mode_ctrl(struct mt76x02_dev *dev, u8 enable) in mt76x02_dfs_set_capture_mode_ctrl()
151 static void mt76x02_dfs_seq_pool_put(struct mt76x02_dev *dev, in mt76x02_dfs_seq_pool_put()
163 mt76x02_dfs_seq_pool_get(struct mt76x02_dev *dev) in mt76x02_dfs_seq_pool_get()
205 static void mt76x02_dfs_detector_reset(struct mt76x02_dev *dev) in mt76x02_dfs_detector_reset()
226 static bool mt76x02_dfs_check_chirp(struct mt76x02_dev *dev) in mt76x02_dfs_check_chirp()
247 static void mt76x02_dfs_get_hw_pulse(struct mt76x02_dev *dev, in mt76x02_dfs_get_hw_pulse()
267 static bool mt76x02_dfs_check_hw_pulse(struct mt76x02_dev *dev, in mt76x02_dfs_check_hw_pulse()
362 static bool mt76x02_dfs_fetch_event(struct mt76x02_dev *dev, in mt76x02_dfs_fetch_event()
389 static bool mt76x02_dfs_check_event(struct mt76x02_dev *dev, in mt76x02_dfs_check_event()
408 static void mt76x02_dfs_queue_event(struct mt76x02_dev *dev, in mt76x02_dfs_queue_event()
[all …]

123