Home
last modified time | relevance | path

Searched defs:rtwdev (Results 1 – 24 of 24) sorted by relevance

/Linux-v5.4/drivers/net/wireless/realtek/rtw88/
Dcoex.c12 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 …]
Dhci.h28 static inline int rtw_hci_tx(struct rtw_dev *rtwdev, in rtw_hci_tx()
35 static inline int rtw_hci_setup(struct rtw_dev *rtwdev) in rtw_hci_setup()
40 static inline int rtw_hci_start(struct rtw_dev *rtwdev) in rtw_hci_start()
45 static inline void rtw_hci_stop(struct rtw_dev *rtwdev) in rtw_hci_stop()
51 rtw_hci_write_data_rsvd_page(struct rtw_dev *rtwdev, u8 *buf, u32 size) in rtw_hci_write_data_rsvd_page()
57 rtw_hci_write_data_h2c(struct rtw_dev *rtwdev, u8 *buf, u32 size) in rtw_hci_write_data_h2c()
62 static inline u8 rtw_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_read8()
67 static inline u16 rtw_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_read16()
72 static inline u32 rtw_read32(struct rtw_dev *rtwdev, u32 addr) in rtw_read32()
77 static inline void rtw_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_write8()
[all …]
Drtw8822c.c27 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()
260 static void rtw8822c_dac_cal_iq_sample(struct rtw_dev *rtwdev, u32 *iv, u32 *qv) in rtw8822c_dac_cal_iq_sample()
[all …]
Dmac.c11 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 …]
Dps.c12 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() local
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() local
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 …]
Dpci.c44 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 …]
Dfw.c12 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 …]
Dmain.c150 struct rtw_dev *rtwdev = container_of(work, struct rtw_dev, in rtw_watch_dog_work() local
196 struct rtw_dev *rtwdev = container_of(work, struct rtw_dev, c2h_work); in rtw_c2h_work() local
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 …]
Dmac80211.c19 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_tx() local
37 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_start() local
49 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_stop() local
58 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_config() local
124 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_add_interface() local
176 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_remove_interface() local
200 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_configure_filter() local
246 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_bss_info_changed() local
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 …]
Dphy.c114 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; member
200 struct rtw_dev *rtwdev = iter_data->rtwdev; in rtw_phy_stat_rssi_iter() local
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() local
[all …]
Drtw8822b.c26 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()
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()
499 static void rtw8822b_toggle_igi(struct rtw_dev *rtwdev) in rtw8822b_toggle_igi()
515 static void rtw8822b_set_channel_rxdfir(struct rtw_dev *rtwdev, u8 bw) in rtw8822b_set_channel_rxdfir()
[all …]
Dtx.c11 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() local
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 …]
Ddebug.h29 static inline void rtw_debugfs_init(struct rtw_dev *rtwdev) {} in rtw_debugfs_init()
39 #define rtw_dbg(rtwdev, a...) __rtw_dbg(rtwdev, ##a) argument
43 static inline void rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask, in rtw_dbg()
48 #define rtw_info(rtwdev, a...) dev_info(rtwdev->dev, ##a) argument
49 #define rtw_warn(rtwdev, a...) dev_warn(rtwdev->dev, ##a) argument
50 #define rtw_err(rtwdev, a...) dev_err(rtwdev->dev, ##a) argument
Drx.c9 void rtw_rx_stats(struct rtw_dev *rtwdev, struct ieee80211_vif *vif, in rtw_rx_stats()
36 struct rtw_dev *rtwdev; member
48 struct rtw_dev *rtwdev = iter_data->rtwdev; in rtw_rx_addr_match_iter() local
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()
Dutil.c9 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()
Ddebug.c16 struct rtw_dev *rtwdev; member
102 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_read_reg() local
127 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_rf_read() local
168 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_read_reg() local
193 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_dump_cam() local
219 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_rsvd_page() local
258 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_rsvd_page() local
284 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_single_input() local
308 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_write_reg() local
351 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_rf_write() local
[all …]
Dutil.h10 #define rtw_iterate_vifs(rtwdev, iterator, data) \ argument
13 #define rtw_iterate_vifs_atomic(rtwdev, iterator, data) \ argument
16 #define rtw_iterate_stas_atomic(rtwdev, iterator, data) \ argument
Defuse.c12 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()
Dregd.c297 struct rtw_dev *rtwdev = hw->priv; in rtw_regd_apply_hw_cap_flags() local
342 static int rtw_regd_notifier_apply(struct rtw_dev *rtwdev, in rtw_regd_notifier_apply()
370 int rtw_regd_init(struct rtw_dev *rtwdev, in rtw_regd_init()
388 struct rtw_dev *rtwdev = hw->priv; in rtw_regd_notifier() local
Dsec.c22 void rtw_sec_write_cam(struct rtw_dev *rtwdev, in rtw_sec_write_cam()
78 void rtw_sec_clear_cam(struct rtw_dev *rtwdev, in rtw_sec_clear_cam()
99 void rtw_sec_enable_sec_engine(struct rtw_dev *rtwdev) in rtw_sec_enable_sec_engine()
Dcoex.h294 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()
Dphy.h86 static inline const struct rtw_rfe_def *rtw_get_rfe_def(struct rtw_dev *rtwdev) in rtw_get_rfe_def()
102 static inline int rtw_check_supported_rfe(struct rtw_dev *rtwdev) in rtw_check_supported_rfe()
Drtw8822b.h101 _rtw_write32s_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask, u32 data) in _rtw_write32s_mask()
108 #define rtw_write32s_mask(rtwdev, addr, mask, data) \ argument
Dmain.h798 static inline void rtw_load_table(struct rtw_dev *rtwdev, in rtw_load_table()
1381 static inline bool rtw_flag_check(struct rtw_dev *rtwdev, enum rtw_flags flag) in rtw_flag_check()
1386 static inline void rtw_flag_clear(struct rtw_dev *rtwdev, enum rtw_flags flag) in rtw_flag_clear()
1391 static inline void rtw_flag_set(struct rtw_dev *rtwdev, enum rtw_flags flag) in rtw_flag_set()
1396 static inline bool rtw_is_assoc(struct rtw_dev *rtwdev) in rtw_is_assoc()