/Linux-v5.4/drivers/net/wireless/realtek/rtw88/ |
D | hci.h | 10 int (*tx)(struct rtw_dev *rtwdev, 13 int (*setup)(struct rtw_dev *rtwdev); 14 int (*start)(struct rtw_dev *rtwdev); 15 void (*stop)(struct rtw_dev *rtwdev); 17 int (*write_data_rsvd_page)(struct rtw_dev *rtwdev, u8 *buf, u32 size); 18 int (*write_data_h2c)(struct rtw_dev *rtwdev, u8 *buf, u32 size); 20 u8 (*read8)(struct rtw_dev *rtwdev, u32 addr); 21 u16 (*read16)(struct rtw_dev *rtwdev, u32 addr); 22 u32 (*read32)(struct rtw_dev *rtwdev, u32 addr); 23 void (*write8)(struct rtw_dev *rtwdev, u32 addr, u8 val); [all …]
|
D | phy.h | 19 void rtw_phy_init(struct rtw_dev *rtwdev); 20 void rtw_phy_dynamic_mechanism(struct rtw_dev *rtwdev); 22 u32 rtw_phy_read_rf(struct rtw_dev *rtwdev, enum rtw_rf_path rf_path, 24 bool rtw_phy_write_rf_reg_sipi(struct rtw_dev *rtwdev, enum rtw_rf_path rf_path, 26 bool rtw_phy_write_rf_reg(struct rtw_dev *rtwdev, enum rtw_rf_path rf_path, 28 bool rtw_phy_write_rf_reg_mix(struct rtw_dev *rtwdev, enum rtw_rf_path rf_path, 30 void rtw_phy_setup_phy_cond(struct rtw_dev *rtwdev, u32 pkg); 31 void rtw_parse_tbl_phy_cond(struct rtw_dev *rtwdev, const struct rtw_table *tbl); 32 void rtw_parse_tbl_bb_pg(struct rtw_dev *rtwdev, const struct rtw_table *tbl); 33 void rtw_parse_tbl_txpwr_lmt(struct rtw_dev *rtwdev, const struct rtw_table *tbl); [all …]
|
D | coex.h | 294 static inline void rtw_coex_set_init(struct rtw_dev *rtwdev) in rtw_coex_set_init() 302 void rtw_coex_set_ant_switch(struct rtw_dev *rtwdev, u8 ctrl_type, u8 pos_type) in rtw_coex_set_ant_switch() 312 static inline void rtw_coex_set_gnt_fix(struct rtw_dev *rtwdev) in rtw_coex_set_gnt_fix() 319 static inline void rtw_coex_set_gnt_debug(struct rtw_dev *rtwdev) in rtw_coex_set_gnt_debug() 326 static inline void rtw_coex_set_rfe_type(struct rtw_dev *rtwdev) in rtw_coex_set_rfe_type() 333 static inline void rtw_coex_set_wl_tx_power(struct rtw_dev *rtwdev, u8 wl_pwr) in rtw_coex_set_wl_tx_power() 341 void rtw_coex_set_wl_rx_gain(struct rtw_dev *rtwdev, bool low_gain) in rtw_coex_set_wl_rx_gain() 348 void rtw_coex_info_response(struct rtw_dev *rtwdev, struct sk_buff *skb); 349 u32 rtw_coex_read_indirect_reg(struct rtw_dev *rtwdev, u16 addr); 350 void rtw_coex_write_indirect_reg(struct rtw_dev *rtwdev, u16 addr, [all …]
|
D | ps.c | 12 static int rtw_ips_pwr_up(struct rtw_dev *rtwdev) in rtw_ips_pwr_up() 26 int rtw_enter_ips(struct rtw_dev *rtwdev) in rtw_enter_ips() 40 struct rtw_dev *rtwdev = data; in rtw_restore_port_cfg_iter() 47 int rtw_leave_ips(struct rtw_dev *rtwdev) in rtw_leave_ips() 64 static void rtw_leave_lps_core(struct rtw_dev *rtwdev) in rtw_leave_lps_core() 79 static void rtw_enter_lps_core(struct rtw_dev *rtwdev) in rtw_enter_lps_core() 96 struct rtw_dev *rtwdev = container_of(work, struct rtw_dev, in rtw_lps_work() 110 void rtw_enter_lps_irqsafe(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif) in rtw_enter_lps_irqsafe() 124 void rtw_leave_lps_irqsafe(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif) in rtw_leave_lps_irqsafe() 138 bool rtw_in_lps(struct rtw_dev *rtwdev) in rtw_in_lps() [all …]
|
D | ps.h | 10 int rtw_enter_ips(struct rtw_dev *rtwdev); 11 int rtw_leave_ips(struct rtw_dev *rtwdev); 14 void rtw_enter_lps_irqsafe(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif); 15 void rtw_leave_lps_irqsafe(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif); 16 void rtw_enter_lps(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif); 17 void rtw_leave_lps(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif); 18 bool rtw_in_lps(struct rtw_dev *rtwdev);
|
D | fw.h | 265 void rtw_fw_c2h_cmd_rx_irqsafe(struct rtw_dev *rtwdev, u32 pkt_offset, 267 void rtw_fw_c2h_cmd_handle(struct rtw_dev *rtwdev, struct sk_buff *skb); 268 void rtw_fw_send_general_info(struct rtw_dev *rtwdev); 269 void rtw_fw_send_phydm_info(struct rtw_dev *rtwdev); 271 void rtw_fw_do_iqk(struct rtw_dev *rtwdev, struct rtw_iqk_para *para); 272 void rtw_fw_set_pwr_mode(struct rtw_dev *rtwdev); 273 void rtw_fw_query_bt_info(struct rtw_dev *rtwdev); 274 void rtw_fw_wl_ch_info(struct rtw_dev *rtwdev, u8 link, u8 ch, u8 bw); 275 void rtw_fw_query_bt_mp_info(struct rtw_dev *rtwdev, 277 void rtw_fw_force_bt_tx_power(struct rtw_dev *rtwdev, u8 bt_pwr_dec_lvl); [all …]
|
D | main.h | 38 struct rtw_dev; 624 int (*mac_init)(struct rtw_dev *rtwdev); 625 int (*read_efuse)(struct rtw_dev *rtwdev, u8 *map); 626 void (*phy_set_param)(struct rtw_dev *rtwdev); 627 void (*set_channel)(struct rtw_dev *rtwdev, u8 channel, 629 void (*query_rx_desc)(struct rtw_dev *rtwdev, u8 *rx_desc, 632 u32 (*read_rf)(struct rtw_dev *rtwdev, enum rtw_rf_path rf_path, 634 bool (*write_rf)(struct rtw_dev *rtwdev, enum rtw_rf_path rf_path, 636 void (*set_tx_power_index)(struct rtw_dev *rtwdev); 637 int (*rsvd_page_dump)(struct rtw_dev *rtwdev, u8 *buf, u32 offset, [all …]
|
D | fw.c | 12 static void rtw_fw_c2h_cmd_handle_ext(struct rtw_dev *rtwdev, in rtw_fw_c2h_cmd_handle_ext() 30 void rtw_fw_c2h_cmd_handle(struct rtw_dev *rtwdev, struct sk_buff *skb) in rtw_fw_c2h_cmd_handle() 59 void rtw_fw_c2h_cmd_rx_irqsafe(struct rtw_dev *rtwdev, u32 pkt_offset, in rtw_fw_c2h_cmd_rx_irqsafe() 86 static void rtw_fw_send_h2c_command(struct rtw_dev *rtwdev, in rtw_fw_send_h2c_command() 147 static void rtw_fw_send_h2c_packet(struct rtw_dev *rtwdev, u8 *h2c_pkt) in rtw_fw_send_h2c_packet() 163 rtw_fw_send_general_info(struct rtw_dev *rtwdev) in rtw_fw_send_general_info() 181 rtw_fw_send_phydm_info(struct rtw_dev *rtwdev) in rtw_fw_send_phydm_info() 206 void rtw_fw_do_iqk(struct rtw_dev *rtwdev, struct rtw_iqk_para *para) in rtw_fw_do_iqk() 219 void rtw_fw_query_bt_info(struct rtw_dev *rtwdev) in rtw_fw_query_bt_info() 230 void rtw_fw_wl_ch_info(struct rtw_dev *rtwdev, u8 link, u8 ch, u8 bw) in rtw_fw_wl_ch_info() [all …]
|
D | mac.h | 28 void rtw_set_channel_mac(struct rtw_dev *rtwdev, u8 channel, u8 bw, 30 int rtw_mac_power_on(struct rtw_dev *rtwdev); 31 void rtw_mac_power_off(struct rtw_dev *rtwdev); 32 int rtw_download_firmware(struct rtw_dev *rtwdev, struct rtw_fw_state *fw); 33 int rtw_mac_init(struct rtw_dev *rtwdev);
|
D | coex.c | 12 static u8 rtw_coex_next_rssi_state(struct rtw_dev *rtwdev, u8 pre_state, in rtw_coex_next_rssi_state() 35 static void rtw_coex_limited_tx(struct rtw_dev *rtwdev, in rtw_coex_limited_tx() 100 static void rtw_coex_limited_wl(struct rtw_dev *rtwdev) in rtw_coex_limited_wl() 121 static void rtw_coex_wl_ccklock_action(struct rtw_dev *rtwdev) in rtw_coex_wl_ccklock_action() 160 static void rtw_coex_wl_ccklock_detect(struct rtw_dev *rtwdev) in rtw_coex_wl_ccklock_detect() 171 static void rtw_coex_wl_noisy_detect(struct rtw_dev *rtwdev) in rtw_coex_wl_noisy_detect() 217 static void rtw_coex_tdma_timer_base(struct rtw_dev *rtwdev, u8 type) in rtw_coex_tdma_timer_base() 242 static void rtw_coex_set_wl_pri_mask(struct rtw_dev *rtwdev, u8 bitmap, in rtw_coex_set_wl_pri_mask() 253 void rtw_coex_write_scbd(struct rtw_dev *rtwdev, u16 bitpos, bool set) in rtw_coex_write_scbd() 287 static u16 rtw_coex_read_scbd(struct rtw_dev *rtwdev) in rtw_coex_read_scbd() [all …]
|
D | pci.c | 44 static u8 rtw_pci_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_pci_read8() 51 static u16 rtw_pci_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_pci_read16() 58 static u32 rtw_pci_read32(struct rtw_dev *rtwdev, u32 addr) in rtw_pci_read32() 65 static void rtw_pci_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_pci_write8() 72 static void rtw_pci_write16(struct rtw_dev *rtwdev, u32 addr, u16 val) in rtw_pci_write16() 79 static void rtw_pci_write32(struct rtw_dev *rtwdev, u32 addr, u32 val) in rtw_pci_write32() 93 static void rtw_pci_free_tx_ring_skbs(struct rtw_dev *rtwdev, in rtw_pci_free_tx_ring_skbs() 112 static void rtw_pci_free_tx_ring(struct rtw_dev *rtwdev, in rtw_pci_free_tx_ring() 127 static void rtw_pci_free_rx_ring_skbs(struct rtw_dev *rtwdev, in rtw_pci_free_rx_ring_skbs() 148 static void rtw_pci_free_rx_ring(struct rtw_dev *rtwdev, in rtw_pci_free_rx_ring() [all …]
|
D | rtw8822c.c | 18 static void rtw8822c_config_trx_mode(struct rtw_dev *rtwdev, u8 tx_path, 27 static int rtw8822c_read_efuse(struct rtw_dev *rtwdev, u8 *log_map) in rtw8822c_read_efuse() 59 static void rtw8822c_header_file_init(struct rtw_dev *rtwdev, bool pre) in rtw8822c_header_file_init() 72 static void rtw8822c_dac_backup_reg(struct rtw_dev *rtwdev, in rtw8822c_dac_backup_reg() 101 static void rtw8822c_dac_restore_reg(struct rtw_dev *rtwdev, in rtw8822c_dac_restore_reg() 120 static void rtw8822c_rf_minmax_cmp(struct rtw_dev *rtwdev, u32 value, in rtw8822c_rf_minmax_cmp() 158 static void __rtw8822c_dac_iq_sort(struct rtw_dev *rtwdev, u32 *v1, u32 *v2) in __rtw8822c_dac_iq_sort() 171 static void rtw8822c_dac_iq_sort(struct rtw_dev *rtwdev, u32 *iv, u32 *qv) in rtw8822c_dac_iq_sort() 183 static void rtw8822c_dac_iq_offset(struct rtw_dev *rtwdev, u32 *vec, u32 *val) in rtw8822c_dac_iq_offset() 247 static bool rtw8822c_dac_iq_check(struct rtw_dev *rtwdev, u32 value) in rtw8822c_dac_iq_check() [all …]
|
D | mac.c | 11 void rtw_set_channel_mac(struct rtw_dev *rtwdev, u8 channel, u8 bw, in rtw_set_channel_mac() 55 static int rtw_mac_pre_system_cfg(struct rtw_dev *rtwdev) in rtw_mac_pre_system_cfg() 101 static int rtw_pwr_cmd_polling(struct rtw_dev *rtwdev, in rtw_pwr_cmd_polling() 139 static int rtw_sub_pwr_seq_parser(struct rtw_dev *rtwdev, u8 intf_mask, in rtw_sub_pwr_seq_parser() 183 static int rtw_pwr_seq_parser(struct rtw_dev *rtwdev, in rtw_pwr_seq_parser() 221 static int rtw_mac_power_switch(struct rtw_dev *rtwdev, bool pwr_on) in rtw_mac_power_switch() 254 static int rtw_mac_init_system_cfg(struct rtw_dev *rtwdev) in rtw_mac_init_system_cfg() 279 int rtw_mac_power_on(struct rtw_dev *rtwdev) in rtw_mac_power_on() 308 void rtw_mac_power_off(struct rtw_dev *rtwdev) in rtw_mac_power_off() 335 static void wlan_cpu_enable(struct rtw_dev *rtwdev, bool enable) in wlan_cpu_enable() [all …]
|
D | phy.c | 114 static void rtw_phy_cck_pd_init(struct rtw_dev *rtwdev) in rtw_phy_cck_pd_init() 127 void rtw_phy_init(struct rtw_dev *rtwdev) in rtw_phy_init() 148 void rtw_phy_dig_write(struct rtw_dev *rtwdev, u8 igi) in rtw_phy_dig_write() 162 static void rtw_phy_stat_false_alarm(struct rtw_dev *rtwdev) in rtw_phy_stat_false_alarm() 193 struct rtw_dev *rtwdev; 200 struct rtw_dev *rtwdev = iter_data->rtwdev; in rtw_phy_stat_rssi_iter() 212 static void rtw_phy_stat_rssi(struct rtw_dev *rtwdev) in rtw_phy_stat_rssi() 225 static void rtw_phy_statistics(struct rtw_dev *rtwdev) in rtw_phy_statistics() 387 static void rtw_phy_dig(struct rtw_dev *rtwdev) in rtw_phy_dig() 442 struct rtw_dev *rtwdev = data; in rtw_phy_ra_info_update_iter() [all …]
|
D | mac80211.c | 19 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_tx() 37 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_start() 49 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_stop() 58 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_config() 124 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_add_interface() 176 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_remove_interface() 200 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_configure_filter() 246 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_bss_info_changed() 292 static u8 rtw_acquire_macid(struct rtw_dev *rtwdev) in rtw_acquire_macid() 303 static void rtw_release_macid(struct rtw_dev *rtwdev, u8 mac_id) in rtw_release_macid() [all …]
|
D | debug.h | 25 void rtw_debugfs_init(struct rtw_dev *rtwdev); 29 static inline void rtw_debugfs_init(struct rtw_dev *rtwdev) {} in rtw_debugfs_init() 36 void __rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask, 43 static inline void rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask, in rtw_dbg()
|
D | tx.c | 11 void rtw_tx_stats(struct rtw_dev *rtwdev, struct ieee80211_vif *vif, in rtw_tx_stats() 80 static u8 get_highest_ht_tx_rate(struct rtw_dev *rtwdev, in get_highest_ht_tx_rate() 93 static u8 get_highest_vht_tx_rate(struct rtw_dev *rtwdev, in get_highest_vht_tx_rate() 134 static void rtw_tx_report_enable(struct rtw_dev *rtwdev, in rtw_tx_report_enable() 149 struct rtw_dev *rtwdev = from_timer(rtwdev, t, tx_report.purge_timer); in rtw_tx_report_purge_timer() 163 void rtw_tx_report_enqueue(struct rtw_dev *rtwdev, struct sk_buff *skb, u8 sn) in rtw_tx_report_enqueue() 181 static void rtw_tx_report_tx_status(struct rtw_dev *rtwdev, in rtw_tx_report_tx_status() 196 void rtw_tx_report_handle(struct rtw_dev *rtwdev, struct sk_buff *skb) in rtw_tx_report_handle() 222 static void rtw_tx_mgmt_pkt_info_update(struct rtw_dev *rtwdev, in rtw_tx_mgmt_pkt_info_update() 232 static void rtw_tx_data_pkt_info_update(struct rtw_dev *rtwdev, in rtw_tx_data_pkt_info_update() [all …]
|
D | util.c | 9 bool check_hw_ready(struct rtw_dev *rtwdev, u32 addr, u32 mask, u32 target) in check_hw_ready() 23 bool ltecoex_read_reg(struct rtw_dev *rtwdev, u16 offset, u32 *val) in ltecoex_read_reg() 34 bool ltecoex_reg_write(struct rtw_dev *rtwdev, u16 offset, u32 value) in ltecoex_reg_write() 45 void rtw_restore_reg(struct rtw_dev *rtwdev, in rtw_restore_reg()
|
D | main.c | 150 struct rtw_dev *rtwdev = container_of(work, struct rtw_dev, in rtw_watch_dog_work() 196 struct rtw_dev *rtwdev = container_of(work, struct rtw_dev, c2h_work); in rtw_c2h_work() 285 void rtw_set_channel(struct rtw_dev *rtwdev) in rtw_set_channel() 323 static void rtw_vif_write_addr(struct rtw_dev *rtwdev, u32 start, u8 *addr) in rtw_vif_write_addr() 331 void rtw_vif_port_config(struct rtw_dev *rtwdev, in rtw_vif_port_config() 382 static void rtw_hw_config_rf_ant_num(struct rtw_dev *rtwdev, u8 hw_ant_num) in rtw_hw_config_rf_ant_num() 532 void rtw_update_sta_info(struct rtw_dev *rtwdev, struct rtw_sta_info *si) in rtw_update_sta_info() 659 static int rtw_power_on(struct rtw_dev *rtwdev) in rtw_power_on() 724 int rtw_core_start(struct rtw_dev *rtwdev) in rtw_core_start() 745 static void rtw_power_off(struct rtw_dev *rtwdev) in rtw_power_off() [all …]
|
D | sec.h | 29 void rtw_sec_write_cam(struct rtw_dev *rtwdev, 34 void rtw_sec_clear_cam(struct rtw_dev *rtwdev, 37 void rtw_sec_enable_sec_engine(struct rtw_dev *rtwdev);
|
D | debug.c | 16 struct rtw_dev *rtwdev; 102 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_read_reg() 127 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_rf_read() 168 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_read_reg() 193 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_dump_cam() 219 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_rsvd_page() 258 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_rsvd_page() 284 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_single_input() 308 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_write_reg() 351 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_rf_write() [all …]
|
D | rtw8822b.c | 17 static void rtw8822b_config_trx_mode(struct rtw_dev *rtwdev, u8 tx_path, 26 static int rtw8822b_read_efuse(struct rtw_dev *rtwdev, u8 *log_map) in rtw8822b_read_efuse() 62 static void rtw8822b_phy_rfe_init(struct rtw_dev *rtwdev) in rtw8822b_phy_rfe_init() 78 static void rtw8822b_phy_set_param(struct rtw_dev *rtwdev) in rtw8822b_phy_set_param() 163 static int rtw8822b_mac_init(struct rtw_dev *rtwdev) in rtw8822b_mac_init() 211 static void rtw8822b_set_channel_rfe_efem(struct rtw_dev *rtwdev, u8 channel) in rtw8822b_set_channel_rfe_efem() 241 static void rtw8822b_set_channel_rfe_ifem(struct rtw_dev *rtwdev, u8 channel) in rtw8822b_set_channel_rfe_ifem() 320 void (*rtw_set_channel_rfe)(struct rtw_dev *rtwdev, u8 channel); 343 static void rtw8822b_set_channel_cca(struct rtw_dev *rtwdev, u8 channel, u8 bw, in rtw8822b_set_channel_cca() 422 static void rtw8822b_set_channel_rf(struct rtw_dev *rtwdev, u8 channel, u8 bw) in rtw8822b_set_channel_rf() [all …]
|
D | tx.h | 78 void rtw_tx_pkt_info_update(struct rtw_dev *rtwdev, 83 void rtw_tx_report_enqueue(struct rtw_dev *rtwdev, struct sk_buff *skb, u8 sn); 84 void rtw_tx_report_handle(struct rtw_dev *rtwdev, struct sk_buff *skb); 85 void rtw_rsvd_page_pkt_info_update(struct rtw_dev *rtwdev,
|
D | rx.c | 9 void rtw_rx_stats(struct rtw_dev *rtwdev, struct ieee80211_vif *vif, in rtw_rx_stats() 36 struct rtw_dev *rtwdev; 48 struct rtw_dev *rtwdev = iter_data->rtwdev; in rtw_rx_addr_match_iter() 68 static void rtw_rx_addr_match(struct rtw_dev *rtwdev, in rtw_rx_addr_match() 86 void rtw_rx_fill_rx_status(struct rtw_dev *rtwdev, in rtw_rx_fill_rx_status()
|
D | efuse.c | 12 static void switch_efuse_bank(struct rtw_dev *rtwdev) in switch_efuse_bank() 38 static int rtw_dump_logical_efuse_map(struct rtw_dev *rtwdev, u8 *phy_map, in rtw_dump_logical_efuse_map() 85 static int rtw_dump_physical_efuse_map(struct rtw_dev *rtwdev, u8 *map) in rtw_dump_physical_efuse_map() 119 int rtw_parse_efuse_map(struct rtw_dev *rtwdev) in rtw_parse_efuse_map()
|