Home
last modified time | relevance | path

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

123

/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);
46 void mt76x2_phy_power_on(struct mt76x02_dev *dev);
47 void mt76x2_stop_hardware(struct mt76x02_dev *dev);
48 int mt76x2_eeprom_init(struct mt76x02_dev *dev);
49 int mt76x2_apply_calibration_data(struct mt76x02_dev *dev, int channel);
51 void mt76x2_phy_set_antenna(struct mt76x02_dev *dev);
52 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 mt76x02_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 …]
/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.h66 void (*pre_tbtt_enable)(struct mt76x02_dev *dev, bool en);
67 void (*beacon_enable)(struct mt76x02_dev *dev, bool en);
87 struct mt76x02_dev { struct
151 int mt76x02_init_device(struct mt76x02_dev *dev); argument
160 void mt76x02_config_mac_addr_list(struct mt76x02_dev *dev);
178 s8 mt76x02_tx_get_max_txpwr_adj(struct mt76x02_dev *dev,
180 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr,
183 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr);
184 void mt76x02_set_tx_ackto(struct mt76x02_dev *dev);
210 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_mmio.c16 struct mt76x02_dev *dev = from_tasklet(dev, t, mt76.pre_tbtt_tasklet); in mt76x02_pre_tbtt_tasklet()
68 static void mt76x02e_pre_tbtt_enable(struct mt76x02_dev *dev, bool en) in mt76x02e_pre_tbtt_enable()
76 static void mt76x02e_beacon_enable(struct mt76x02_dev *dev, bool en) in mt76x02e_beacon_enable()
85 void mt76x02e_init_beacon_config(struct mt76x02_dev *dev) in mt76x02e_init_beacon_config()
108 mt76x02_init_rx_queue(struct mt76x02_dev *dev, struct mt76_queue *q, in mt76x02_init_rx_queue()
123 static void mt76x02_process_tx_status_fifo(struct mt76x02_dev *dev) in mt76x02_process_tx_status_fifo()
134 struct mt76x02_dev *dev; in mt76x02_tx_worker()
136 dev = container_of(w, struct mt76x02_dev, mt76.tx_worker); in mt76x02_tx_worker()
146 struct mt76x02_dev *dev = container_of(napi, struct mt76x02_dev, in mt76x02_poll_tx()
168 int mt76x02_dma_init(struct mt76x02_dev *dev) in mt76x02_dma_init()
[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()
128 static void mt76x02u_start_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_start_pre_tbtt_timer()
146 static void mt76x02u_restart_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_restart_pre_tbtt_timer()
172 static void mt76x02u_stop_pre_tbtt_timer(struct mt76x02_dev *dev) in mt76x02u_stop_pre_tbtt_timer()
183 struct mt76x02_dev *dev = in mt76x02u_pre_tbtt_work()
184 container_of(work, struct mt76x02_dev, pre_tbtt_work); in mt76x02u_pre_tbtt_work()
227 struct mt76x02_dev *dev = in mt76x02u_pre_tbtt_interrupt()
228 container_of(timer, struct mt76x02_dev, pre_tbtt_timer); in mt76x02u_pre_tbtt_interrupt()
235 static void mt76x02u_pre_tbtt_enable(struct mt76x02_dev *dev, bool en) in mt76x02u_pre_tbtt_enable()
[all …]
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()
69 void mt76x02_mac_set_beacon_enable(struct mt76x02_dev *dev, in mt76x02_mac_set_beacon_enable()
107 mt76x02_resync_beacon_timer(struct mt76x02_dev *dev) in mt76x02_resync_beacon_timer()
139 struct mt76x02_dev *dev = (struct mt76x02_dev *)priv; in mt76x02_update_beacon_iter()
158 struct mt76x02_dev *dev = data->dev; in mt76x02_add_buffered_bc()
179 mt76x02_enqueue_buffered_bc(struct mt76x02_dev *dev, in mt76x02_enqueue_buffered_bc()
207 void mt76x02_init_beacon_config(struct mt76x02_dev *dev) in mt76x02_init_beacon_config()
Dmt76x02_mcu.c16 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_mcu_parse_response()
37 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_mcu_msg_send()
82 int mt76x02_mcu_function_select(struct mt76x02_dev *dev, enum mcu_function func, in mt76x02_mcu_function_select()
102 int mt76x02_mcu_set_radio_state(struct mt76x02_dev *dev, bool on) in mt76x02_mcu_set_radio_state()
117 int mt76x02_mcu_calibrate(struct mt76x02_dev *dev, int type, u32 param) in mt76x02_mcu_calibrate()
146 int mt76x02_mcu_cleanup(struct mt76x02_dev *dev) in mt76x02_mcu_cleanup()
160 void mt76x02_set_ethtool_fwver(struct mt76x02_dev *dev, in mt76x02_set_ethtool_fwver()
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_util.c92 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, in mt76x02_led_set_config()
140 int mt76x02_init_device(struct mt76x02_dev *dev) in mt76x02_init_device()
208 struct mt76x02_dev *dev = hw->priv; in mt76x02_configure_filter()
241 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_add()
270 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_sta_remove()
280 mt76x02_vif_init(struct mt76x02_dev *dev, struct ieee80211_vif *vif, in mt76x02_vif_init()
301 struct mt76x02_dev *dev = hw->priv; in mt76x02_add_interface()
344 struct mt76x02_dev *dev = hw->priv; in mt76x02_remove_interface()
358 struct mt76x02_dev *dev = hw->priv; in mt76x02_ampdu_action()
411 struct mt76x02_dev *dev = hw->priv; in mt76x02_set_key()
[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_eeprom.h163 mt76x02_eeprom_get(struct mt76x02_dev *dev, in mt76x02_eeprom_get()
172 bool mt76x02_ext_pa_enabled(struct mt76x02_dev *dev, enum nl80211_band band);
173 int mt76x02_get_efuse_data(struct mt76x02_dev *dev, u16 base, void *buf,
175 void mt76x02_get_rx_gain(struct mt76x02_dev *dev, enum nl80211_band band,
177 u8 mt76x02_get_lna_gain(struct mt76x02_dev *dev,
180 void mt76x02_eeprom_parse_hw_cap(struct mt76x02_dev *dev);
181 int mt76x02_eeprom_copy(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()
119 struct mt76x02_dev *dev = dev_get_drvdata(s->private); in mt76x02_read_rate_txpower()
132 void mt76x02_init_debugfs(struct mt76x02_dev *dev) in mt76x02_init_debugfs()
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 …]
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()
/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);
56 void mt76x0_phy_init(struct mt76x02_dev *dev);
57 int mt76x0_phy_wait_bbp_ready(struct mt76x02_dev *dev);
58 void mt76x0_phy_set_channel(struct mt76x02_dev *dev,
60 void mt76x0_phy_set_txpower(struct mt76x02_dev *dev);
[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()
91 static int mt76x0e_init_hardware(struct mt76x02_dev *dev, bool resume) in mt76x0e_init_hardware()
132 static int mt76x0e_register_device(struct mt76x02_dev *dev) in mt76x0e_register_device()
166 struct mt76x02_dev *dev; in mt76x0e_probe()
191 dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0e_probe()
218 static void mt76x0e_cleanup(struct mt76x02_dev *dev) in mt76x0e_cleanup()
232 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0e_remove()
243 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0e_suspend()
[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()
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()
Dphy.c21 mt76x0_rf_csr_wr(struct mt76x02_dev *dev, u32 offset, u8 value) in mt76x0_rf_csr_wr()
59 static int mt76x0_rf_csr_rr(struct mt76x02_dev *dev, u32 offset) in mt76x0_rf_csr_rr()
103 mt76x0_rf_wr(struct mt76x02_dev *dev, u32 offset, u8 val) in mt76x0_rf_wr()
119 static int mt76x0_rf_rr(struct mt76x02_dev *dev, u32 offset) in mt76x0_rf_rr()
141 mt76x0_rf_rmw(struct mt76x02_dev *dev, u32 offset, u8 mask, u8 val) in mt76x0_rf_rmw()
156 mt76x0_rf_set(struct mt76x02_dev *dev, u32 offset, u8 val) in mt76x0_rf_set()
162 mt76x0_rf_clear(struct mt76x02_dev *dev, u32 offset, u8 mask) in mt76x0_rf_clear()
168 mt76x0_phy_rf_csr_wr_rp(struct mt76x02_dev *dev, in mt76x0_phy_rf_csr_wr_rp()
185 int mt76x0_phy_wait_bbp_ready(struct mt76x02_dev *dev) in mt76x0_phy_wait_bbp_ready()
206 mt76x0_phy_set_band(struct mt76x02_dev *dev, enum nl80211_band band) in mt76x0_phy_set_band()
[all …]
Deeprom.c20 mt76x0_efuse_physical_size_check(struct mt76x02_dev *dev) in mt76x0_efuse_physical_size_check()
48 static void mt76x0_set_chip_cap(struct mt76x02_dev *dev) in mt76x0_set_chip_cap()
82 static void mt76x0_set_temp_offset(struct mt76x02_dev *dev) in mt76x0_set_temp_offset()
93 static void mt76x0_set_freq_offset(struct mt76x02_dev *dev) in mt76x0_set_freq_offset()
110 void mt76x0_read_rx_gain(struct mt76x02_dev *dev) in mt76x0_read_rx_gain()
130 static s8 mt76x0_get_delta(struct mt76x02_dev *dev) in mt76x0_get_delta()
152 void mt76x0_get_tx_power_per_rate(struct mt76x02_dev *dev, in mt76x0_get_tx_power_per_rate()
200 void mt76x0_get_power_info(struct mt76x02_dev *dev, in mt76x0_get_power_info()
273 static int mt76x0_check_eeprom(struct mt76x02_dev *dev) in mt76x0_check_eeprom()
293 static int mt76x0_load_eeprom(struct mt76x02_dev *dev) in mt76x0_load_eeprom()
[all …]
Dusb.c46 static void mt76x0_init_usb_dma(struct mt76x02_dev *dev) in mt76x0_init_usb_dma()
73 static void mt76x0u_cleanup(struct mt76x02_dev *dev) in mt76x0u_cleanup()
82 struct mt76x02_dev *dev = hw->priv; in mt76x0u_stop()
104 struct mt76x02_dev *dev = hw->priv; in mt76x0u_start()
147 static int mt76x0u_init_hardware(struct mt76x02_dev *dev, bool reset) in mt76x0u_init_hardware()
175 static int mt76x0u_register_device(struct mt76x02_dev *dev) in mt76x0u_register_device()
225 struct mt76x02_dev *dev; in mt76x0u_probe()
235 dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x0u_probe()
290 struct mt76x02_dev *dev = usb_get_intfdata(usb_intf); in mt76x0_disconnect()
308 struct mt76x02_dev *dev = usb_get_intfdata(usb_intf); in mt76x0_suspend()
[all …]

123