/linux-6.1.9/drivers/net/wireless/mediatek/mt7601u/ |
D | mt7601u.h | 68 struct mt7601u_dev *dev; 84 struct mt7601u_dev *dev; 152 struct mt7601u_dev { struct 281 void mt7601u_init_debugfs(struct mt7601u_dev *dev); 283 u32 mt7601u_rr(struct mt7601u_dev *dev, u32 offset); 284 void mt7601u_wr(struct mt7601u_dev *dev, u32 offset, u32 val); 285 u32 mt7601u_rmw(struct mt7601u_dev *dev, u32 offset, u32 mask, u32 val); 286 u32 mt7601u_rmc(struct mt7601u_dev *dev, u32 offset, u32 mask, u32 val); 287 void mt7601u_wr_copy(struct mt7601u_dev *dev, u32 offset, 290 int mt7601u_wait_asic_ready(struct mt7601u_dev *dev); [all …]
|
D | trace.h | 30 TP_PROTO(struct mt7601u_dev *dev, u32 reg, u32 val), 47 TP_PROTO(struct mt7601u_dev *dev, u32 reg, u32 val), 52 TP_PROTO(struct mt7601u_dev *dev, u32 reg, u32 val), 57 TP_PROTO(struct mt7601u_dev *dev, struct urb *u), 79 TP_PROTO(struct mt7601u_dev *dev, 99 TP_PROTO(struct mt7601u_dev *dev, unsigned pipe, u8 req, u8 req_type, 127 TP_PROTO(struct mt7601u_dev *dev, int offset, u16 val), 142 TP_PROTO(struct mt7601u_dev *dev, u8 bank, u8 reg, u8 val), 162 TP_PROTO(struct mt7601u_dev *dev, u8 bank, u8 reg, u8 val), 167 TP_PROTO(struct mt7601u_dev *dev, u8 bank, u8 reg, u8 val), [all …]
|
D | usb.h | 43 static inline struct usb_device *mt7601u_to_usb_dev(struct mt7601u_dev *mt7601u) in mt7601u_to_usb_dev() 56 bool mt7601u_usb_alloc_buf(struct mt7601u_dev *dev, size_t len, 58 void mt7601u_usb_free_buf(struct mt7601u_dev *dev, struct mt7601u_dma_buf *buf); 59 int mt7601u_usb_submit_buf(struct mt7601u_dev *dev, int dir, int ep_idx, 64 int mt7601u_vendor_request(struct mt7601u_dev *dev, const u8 req, 67 void mt7601u_vendor_reset(struct mt7601u_dev *dev); 68 int mt7601u_vendor_single_wr(struct mt7601u_dev *dev, const u8 req,
|
D | phy.c | 16 static void mt7601u_agc_reset(struct mt7601u_dev *dev); 19 mt7601u_rf_wr(struct mt7601u_dev *dev, u8 bank, u8 offset, u8 value) in mt7601u_rf_wr() 54 mt7601u_rf_rr(struct mt7601u_dev *dev, u8 bank, u8 offset) in mt7601u_rf_rr() 95 mt7601u_rf_rmw(struct mt7601u_dev *dev, u8 bank, u8 offset, u8 mask, u8 val) in mt7601u_rf_rmw() 111 mt7601u_rf_set(struct mt7601u_dev *dev, u8 bank, u8 offset, u8 val) in mt7601u_rf_set() 117 mt7601u_rf_clear(struct mt7601u_dev *dev, u8 bank, u8 offset, u8 mask) in mt7601u_rf_clear() 122 static void mt7601u_bbp_wr(struct mt7601u_dev *dev, u8 offset, u8 val) in mt7601u_bbp_wr() 144 static int mt7601u_bbp_rr(struct mt7601u_dev *dev, u8 offset) in mt7601u_bbp_rr() 182 static int mt7601u_bbp_rmw(struct mt7601u_dev *dev, u8 offset, u8 mask, u8 val) in mt7601u_bbp_rmw() 195 static u8 mt7601u_bbp_rmc(struct mt7601u_dev *dev, u8 offset, u8 mask, u8 val) in mt7601u_bbp_rmc() [all …]
|
D | usb.c | 35 bool mt7601u_usb_alloc_buf(struct mt7601u_dev *dev, size_t len, in mt7601u_usb_alloc_buf() 47 void mt7601u_usb_free_buf(struct mt7601u_dev *dev, struct mt7601u_dma_buf *buf) in mt7601u_usb_free_buf() 55 int mt7601u_usb_submit_buf(struct mt7601u_dev *dev, int dir, int ep_idx, in mt7601u_usb_submit_buf() 88 int mt7601u_vendor_request(struct mt7601u_dev *dev, const u8 req, in mt7601u_vendor_request() 119 void mt7601u_vendor_reset(struct mt7601u_dev *dev) in mt7601u_vendor_reset() 126 static u32 __mt7601u_rr(struct mt7601u_dev *dev, u32 offset) in __mt7601u_rr() 145 u32 mt7601u_rr(struct mt7601u_dev *dev, u32 offset) in mt7601u_rr() 157 static int __mt7601u_vendor_single_wr(struct mt7601u_dev *dev, const u8 req, in __mt7601u_vendor_single_wr() 169 int mt7601u_vendor_single_wr(struct mt7601u_dev *dev, const u8 req, in mt7601u_vendor_single_wr() 181 void mt7601u_wr(struct mt7601u_dev *dev, u32 offset, u32 val) in mt7601u_wr() [all …]
|
D | mcu.h | 10 struct mt7601u_dev; 78 int mt7601u_mcu_init(struct mt7601u_dev *dev); 79 int mt7601u_mcu_cmd_init(struct mt7601u_dev *dev); 80 void mt7601u_mcu_cmd_deinit(struct mt7601u_dev *dev); 83 mt7601u_mcu_calibrate(struct mt7601u_dev *dev, enum mcu_calibrate cal, u32 val); 84 int mt7601u_mcu_tssi_read_kick(struct mt7601u_dev *dev, int use_hvga);
|
D | init.c | 16 mt7601u_set_wlan_state(struct mt7601u_dev *dev, u32 val, bool enable) in mt7601u_set_wlan_state() 59 static void mt7601u_chip_onoff(struct mt7601u_dev *dev, bool enable, bool reset) in mt7601u_chip_onoff() 90 static void mt7601u_reset_csr_bbp(struct mt7601u_dev *dev) in mt7601u_reset_csr_bbp() 99 static void mt7601u_init_usb_dma(struct mt7601u_dev *dev) in mt7601u_init_usb_dma() 118 static int mt7601u_init_bbp(struct mt7601u_dev *dev) in mt7601u_init_bbp() 136 mt76_init_beacon_offsets(struct mt7601u_dev *dev) in mt76_init_beacon_offsets() 152 static int mt7601u_write_mac_initvals(struct mt7601u_dev *dev) in mt7601u_write_mac_initvals() 172 static int mt7601u_init_wcid_mem(struct mt7601u_dev *dev) in mt7601u_init_wcid_mem() 193 static int mt7601u_init_key_mem(struct mt7601u_dev *dev) in mt7601u_init_key_mem() 201 static int mt7601u_init_wcid_attr_mem(struct mt7601u_dev *dev) in mt7601u_init_wcid_attr_mem() [all …]
|
D | dma.c | 11 static int mt7601u_submit_rx_buf(struct mt7601u_dev *dev, 28 mt7601u_rx_skb_from_seg(struct mt7601u_dev *dev, struct mt7601u_rxwi *rxwi, in mt7601u_rx_skb_from_seg() 76 static void mt7601u_rx_process_seg(struct mt7601u_dev *dev, u8 *data, in mt7601u_rx_process_seg() 133 mt7601u_rx_process_entry(struct mt7601u_dev *dev, struct mt7601u_dma_buf_rx *e) in mt7601u_rx_process_entry() 170 mt7601u_rx_get_pending_entry(struct mt7601u_dev *dev) in mt7601u_rx_get_pending_entry() 192 struct mt7601u_dev *dev = urb->context; in mt7601u_complete_rx() 226 struct mt7601u_dev *dev = from_tasklet(dev, t, rx_tasklet); in mt7601u_rx_tasklet() 241 struct mt7601u_dev *dev = q->dev; in mt7601u_complete_tx() 281 struct mt7601u_dev *dev = from_tasklet(dev, t, tx_tasklet); in mt7601u_tx_tasklet() 305 static int mt7601u_dma_submit_tx(struct mt7601u_dev *dev, in mt7601u_dma_submit_tx() [all …]
|
D | eeprom.c | 32 mt7601u_efuse_read(struct mt7601u_dev *dev, u16 addr, u8 *data, in mt7601u_efuse_read() 67 mt7601u_efuse_physical_size_check(struct mt7601u_dev *dev) in mt7601u_efuse_physical_size_check() 98 mt7601u_has_tssi(struct mt7601u_dev *dev, u8 *eeprom) in mt7601u_has_tssi() 106 mt7601u_set_chip_cap(struct mt7601u_dev *dev, u8 *eeprom) in mt7601u_set_chip_cap() 130 static void mt7601u_set_channel_target_power(struct mt7601u_dev *dev, in mt7601u_set_channel_target_power() 145 mt7601u_set_channel_power(struct mt7601u_dev *dev, u8 *eeprom) in mt7601u_set_channel_power() 169 mt7601u_set_country_reg(struct mt7601u_dev *dev, u8 *eeprom) in mt7601u_set_country_reg() 205 mt7601u_set_rf_freq_off(struct mt7601u_dev *dev, u8 *eeprom) in mt7601u_set_rf_freq_off() 219 mt7601u_set_rssi_offset(struct mt7601u_dev *dev, u8 *eeprom) in mt7601u_set_rssi_offset() 237 mt7601u_extra_power_over_mac(struct mt7601u_dev *dev) in mt7601u_extra_power_over_mac() [all …]
|
D | main.c | 13 struct mt7601u_dev *dev = hw->priv; in mt7601u_start() 33 struct mt7601u_dev *dev = hw->priv; in mt7601u_stop() 47 struct mt7601u_dev *dev = hw->priv; in mt7601u_add_interface() 74 struct mt7601u_dev *dev = hw->priv; in mt7601u_remove_interface() 83 struct mt7601u_dev *dev = hw->priv; in mt7601u_config() 103 struct mt7601u_dev *dev = hw->priv; in mt76_configure_filter() 137 struct mt7601u_dev *dev = hw->priv; in mt7601u_bss_info_changed() 187 mt76_wcid_alloc(struct mt7601u_dev *dev) in mt76_wcid_alloc() 212 struct mt7601u_dev *dev = hw->priv; in mt7601u_sta_add() 243 struct mt7601u_dev *dev = hw->priv; in mt7601u_sta_remove() [all …]
|
D | mac.h | 155 u32 mt76_mac_process_rx(struct mt7601u_dev *dev, struct sk_buff *skb, 157 int mt76_mac_wcid_set_key(struct mt7601u_dev *dev, u8 idx, 159 void mt76_mac_wcid_set_rate(struct mt7601u_dev *dev, struct mt76_wcid *wcid, 162 int mt76_mac_shared_key_setup(struct mt7601u_dev *dev, u8 vif_idx, u8 key_idx, 164 u16 mt76_mac_tx_rate_val(struct mt7601u_dev *dev, 167 mt7601u_mac_fetch_tx_status(struct mt7601u_dev *dev); 168 void mt76_send_tx_status(struct mt7601u_dev *dev, struct mt76_tx_status *stat); 169 void mt7601u_set_macaddr(struct mt7601u_dev *dev, const u8 *addr);
|
D | mac.c | 11 void mt7601u_set_macaddr(struct mt7601u_dev *dev, const u8 *addr) in mt7601u_set_macaddr() 66 mt76_mac_fill_tx_status(struct mt7601u_dev *dev, struct ieee80211_tx_info *info, in mt76_mac_fill_tx_status() 104 u16 mt76_mac_tx_rate_val(struct mt7601u_dev *dev, in mt76_mac_tx_rate_val() 146 void mt76_mac_wcid_set_rate(struct mt7601u_dev *dev, struct mt76_wcid *wcid, in mt76_mac_wcid_set_rate() 157 struct mt76_tx_status mt7601u_mac_fetch_tx_status(struct mt7601u_dev *dev) in mt7601u_mac_fetch_tx_status() 174 void mt76_send_tx_status(struct mt7601u_dev *dev, struct mt76_tx_status *stat) in mt76_send_tx_status() 200 void mt7601u_mac_set_protection(struct mt7601u_dev *dev, bool legacy_prot, in mt7601u_mac_set_protection() 259 void mt7601u_mac_set_short_preamble(struct mt7601u_dev *dev, bool short_preamb) in mt7601u_mac_set_short_preamble() 267 void mt7601u_mac_config_tsf(struct mt7601u_dev *dev, bool enable, int interval) in mt7601u_mac_config_tsf() 287 static void mt7601u_check_mac_err(struct mt7601u_dev *dev) in mt7601u_check_mac_err() [all …]
|
D | mcu.c | 24 static inline int firmware_running(struct mt7601u_dev *dev) in firmware_running() 42 static inline void trace_mt_mcu_msg_send_cs(struct mt7601u_dev *dev, in trace_mt_mcu_msg_send_cs() 68 static int mt7601u_mcu_wait_resp(struct mt7601u_dev *dev, u8 seq) in mt7601u_mcu_wait_resp() 110 mt7601u_mcu_msg_send(struct mt7601u_dev *dev, struct sk_buff *skb, in mt7601u_mcu_msg_send() 155 static int mt7601u_mcu_function_select(struct mt7601u_dev *dev, in mt7601u_mcu_function_select() 173 int mt7601u_mcu_tssi_read_kick(struct mt7601u_dev *dev, int use_hvga) in mt7601u_mcu_tssi_read_kick() 193 mt7601u_mcu_calibrate(struct mt7601u_dev *dev, enum mcu_calibrate cal, u32 val) in mt7601u_mcu_calibrate() 210 int mt7601u_write_reg_pairs(struct mt7601u_dev *dev, u32 base, in mt7601u_write_reg_pairs() 239 int mt7601u_burst_write_regs(struct mt7601u_dev *dev, u32 offset, in mt7601u_burst_write_regs() 283 static int __mt7601u_dma_fw(struct mt7601u_dev *dev, in __mt7601u_dma_fw() [all …]
|
D | tx.c | 55 static u8 mt7601u_tx_pktid_enc(struct mt7601u_dev *dev, u8 rate, bool is_probe) in mt7601u_tx_pktid_enc() 71 mt7601u_tx_pktid_dec(struct mt7601u_dev *dev, struct mt76_tx_status *stat) in mt7601u_tx_pktid_dec() 102 void mt7601u_tx_status(struct mt7601u_dev *dev, struct sk_buff *skb) in mt7601u_tx_status() 117 static int mt7601u_skb_rooms(struct mt7601u_dev *dev, struct sk_buff *skb) in mt7601u_skb_rooms() 130 mt7601u_push_txwi(struct mt7601u_dev *dev, struct sk_buff *skb, in mt7601u_push_txwi() 194 struct mt7601u_dev *dev = hw->priv; in mt7601u_tx() 230 struct mt7601u_dev *dev = container_of(work, struct mt7601u_dev, in mt7601u_tx_stat() 264 struct mt7601u_dev *dev = hw->priv; in mt7601u_conf_tx()
|
D | debugfs.c | 15 struct mt7601u_dev *dev = data; in mt76_reg_set() 24 struct mt7601u_dev *dev = data; in mt76_reg_get() 35 struct mt7601u_dev *dev = file->private; in mt7601u_ampdu_stat_show() 81 struct mt7601u_dev *dev = file->private; in mt7601u_eeprom_param_show() 125 void mt7601u_init_debugfs(struct mt7601u_dev *dev) in mt7601u_init_debugfs()
|
D | core.c | 9 int mt7601u_wait_asic_ready(struct mt7601u_dev *dev) in mt7601u_wait_asic_ready() 28 bool mt76_poll(struct mt7601u_dev *dev, u32 offset, u32 mask, u32 val, in mt76_poll() 50 bool mt76_poll_msec(struct mt7601u_dev *dev, u32 offset, u32 mask, u32 val, in mt76_poll_msec()
|
D | eeprom.h | 10 struct mt7601u_dev; 114 int mt7601u_eeprom_init(struct mt7601u_dev *dev);
|