| /Linux-v5.15/drivers/net/wireless/realtek/rtw88/ |
| D | ps.c | 13 static int rtw_ips_pwr_up(struct rtw_dev *rtwdev) in rtw_ips_pwr_up() argument 17 ret = rtw_core_start(rtwdev); in rtw_ips_pwr_up() 19 rtw_err(rtwdev, "leave idle state failed\n"); in rtw_ips_pwr_up() 21 rtw_set_channel(rtwdev); in rtw_ips_pwr_up() 22 clear_bit(RTW_FLAG_INACTIVE_PS, rtwdev->flags); in rtw_ips_pwr_up() 27 int rtw_enter_ips(struct rtw_dev *rtwdev) in rtw_enter_ips() argument 29 set_bit(RTW_FLAG_INACTIVE_PS, rtwdev->flags); in rtw_enter_ips() 31 rtw_coex_ips_notify(rtwdev, COEX_IPS_ENTER); in rtw_enter_ips() 33 rtw_core_stop(rtwdev); in rtw_enter_ips() 34 rtw_hci_link_ps(rtwdev, true); in rtw_enter_ips() [all …]
|
| D | wow.c | 13 static void rtw_wow_show_wakeup_reason(struct rtw_dev *rtwdev) in rtw_wow_show_wakeup_reason() argument 21 reason = rtw_read8(rtwdev, REG_WOWLAN_WAKE_REASON); in rtw_wow_show_wakeup_reason() 26 rtw_dbg(rtwdev, RTW_DBG_WOW, "WOW: Rx deauth\n"); in rtw_wow_show_wakeup_reason() 30 rtw_dbg(rtwdev, RTW_DBG_WOW, "WOW: AP is off\n"); in rtw_wow_show_wakeup_reason() 34 rtw_dbg(rtwdev, RTW_DBG_WOW, "WOW: Rx magic packet\n"); in rtw_wow_show_wakeup_reason() 38 rtw_dbg(rtwdev, RTW_DBG_WOW, "WOW: Rx gtk rekey\n"); in rtw_wow_show_wakeup_reason() 45 rtw_dbg(rtwdev, RTW_DBG_WOW, "WOW: Rx pattern match packet\n"); in rtw_wow_show_wakeup_reason() 53 rtw_dbg(rtwdev, RTW_DBG_WOW, "Rx NLO\n"); in rtw_wow_show_wakeup_reason() 56 rtw_warn(rtwdev, "Unknown wakeup reason %x\n", reason); in rtw_wow_show_wakeup_reason() 57 ieee80211_report_wowlan_wakeup(rtwdev->wow.wow_vif, NULL, in rtw_wow_show_wakeup_reason() [all …]
|
| D | hci.h | 10 int (*tx_write)(struct rtw_dev *rtwdev, 13 void (*tx_kick_off)(struct rtw_dev *rtwdev); 14 void (*flush_queues)(struct rtw_dev *rtwdev, u32 queues, bool drop); 15 int (*setup)(struct rtw_dev *rtwdev); 16 int (*start)(struct rtw_dev *rtwdev); 17 void (*stop)(struct rtw_dev *rtwdev); 18 void (*deep_ps)(struct rtw_dev *rtwdev, bool enter); 19 void (*link_ps)(struct rtw_dev *rtwdev, bool enter); 20 void (*interface_cfg)(struct rtw_dev *rtwdev); 22 int (*write_data_rsvd_page)(struct rtw_dev *rtwdev, u8 *buf, u32 size); [all …]
|
| D | rtw8822c.c | 23 static void rtw8822c_config_trx_mode(struct rtw_dev *rtwdev, u8 tx_path, 32 static int rtw8822c_read_efuse(struct rtw_dev *rtwdev, u8 *log_map) in rtw8822c_read_efuse() argument 34 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8822c_read_efuse() 57 switch (rtw_hci_type(rtwdev)) { in rtw8822c_read_efuse() 69 static void rtw8822c_header_file_init(struct rtw_dev *rtwdev, bool pre) in rtw8822c_header_file_init() argument 71 rtw_write32_set(rtwdev, REG_3WIRE, BIT_3WIRE_TX_EN | BIT_3WIRE_RX_EN); in rtw8822c_header_file_init() 72 rtw_write32_set(rtwdev, REG_3WIRE, BIT_3WIRE_PI_ON); in rtw8822c_header_file_init() 73 rtw_write32_set(rtwdev, REG_3WIRE2, BIT_3WIRE_TX_EN | BIT_3WIRE_RX_EN); in rtw8822c_header_file_init() 74 rtw_write32_set(rtwdev, REG_3WIRE2, BIT_3WIRE_PI_ON); in rtw8822c_header_file_init() 77 rtw_write32_clr(rtwdev, REG_ENCCK, BIT_CCK_OFDM_BLK_EN); in rtw8822c_header_file_init() [all …]
|
| D | mac.c | 11 void rtw_set_channel_mac(struct rtw_dev *rtwdev, u8 channel, u8 bw, in rtw_set_channel_mac() argument 25 rtw_write8(rtwdev, REG_DATA_SC, in rtw_set_channel_mac() 28 value32 = rtw_read32(rtwdev, REG_WMAC_TRXPTCL_CTL); in rtw_set_channel_mac() 41 rtw_write32(rtwdev, REG_WMAC_TRXPTCL_CTL, value32); in rtw_set_channel_mac() 43 if (rtw_chip_wcpu_11n(rtwdev)) in rtw_set_channel_mac() 46 value32 = rtw_read32(rtwdev, REG_AFE_CTRL1) & ~(BIT_MAC_CLK_SEL); in rtw_set_channel_mac() 48 rtw_write32(rtwdev, REG_AFE_CTRL1, value32); in rtw_set_channel_mac() 50 rtw_write8(rtwdev, REG_USTIME_TSF, MAC_CLK_SPEED); in rtw_set_channel_mac() 51 rtw_write8(rtwdev, REG_USTIME_EDCA, MAC_CLK_SPEED); in rtw_set_channel_mac() 53 value8 = rtw_read8(rtwdev, REG_CCK_CHECK); in rtw_set_channel_mac() [all …]
|
| D | rtw8723d.c | 68 static void rtw8723d_lck(struct rtw_dev *rtwdev) in rtw8723d_lck() argument 74 val_ctx = rtw_read8(rtwdev, REG_CTX); in rtw8723d_lck() 76 rtw_write8(rtwdev, REG_CTX, val_ctx & ~BIT_MASK_CTX_TYPE); in rtw8723d_lck() 78 rtw_write8(rtwdev, REG_TXPAUSE, 0xFF); in rtw8723d_lck() 79 lc_cal = rtw_read_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK); in rtw8723d_lck() 81 rtw_write_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK, lc_cal | BIT_LCK); in rtw8723d_lck() 85 rtwdev, RF_PATH_A, RF_CFGCH, BIT_LCK); in rtw8723d_lck() 87 rtw_warn(rtwdev, "failed to poll LCK status bit\n"); in rtw8723d_lck() 89 rtw_write_rf(rtwdev, RF_PATH_A, RF_CFGCH, RFREG_MASK, lc_cal); in rtw8723d_lck() 91 rtw_write8(rtwdev, REG_CTX, val_ctx); in rtw8723d_lck() [all …]
|
| D | coex.c | 13 static u8 rtw_coex_next_rssi_state(struct rtw_dev *rtwdev, u8 pre_state, in rtw_coex_next_rssi_state() argument 16 struct rtw_chip_info *chip = rtwdev->chip; in rtw_coex_next_rssi_state() 36 static void rtw_coex_limited_tx(struct rtw_dev *rtwdev, in rtw_coex_limited_tx() argument 39 struct rtw_chip_info *chip = rtwdev->chip; in rtw_coex_limited_tx() 40 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_limited_tx() 53 coex_stat->darfrc = rtw_read32(rtwdev, REG_DARFRC); in rtw_coex_limited_tx() 54 coex_stat->darfrch = rtw_read32(rtwdev, REG_DARFRCH); in rtw_coex_limited_tx() 55 coex_stat->retry_limit = rtw_read16(rtwdev, REG_RETRY_LIMIT); in rtw_coex_limited_tx() 60 rtw_read8(rtwdev, REG_AMPDU_MAX_TIME_V1); in rtw_coex_limited_tx() 69 rtw_write8_set(rtwdev, REG_TX_HANG_CTRL, BIT_EN_GNT_BT_AWAKE); in rtw_coex_limited_tx() [all …]
|
| D | mac80211.c | 21 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_tx() local 23 if (!test_bit(RTW_FLAG_RUNNING, rtwdev->flags)) { in rtw_ops_tx() 28 rtw_tx(rtwdev, control, skb); in rtw_ops_tx() 34 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_wake_tx_queue() local 37 if (!test_bit(RTW_FLAG_RUNNING, rtwdev->flags)) in rtw_ops_wake_tx_queue() 40 spin_lock_bh(&rtwdev->txq_lock); in rtw_ops_wake_tx_queue() 42 list_add_tail(&rtwtxq->list, &rtwdev->txqs); in rtw_ops_wake_tx_queue() 43 spin_unlock_bh(&rtwdev->txq_lock); in rtw_ops_wake_tx_queue() 45 queue_work(rtwdev->tx_wq, &rtwdev->tx_work); in rtw_ops_wake_tx_queue() 50 struct rtw_dev *rtwdev = hw->priv; in rtw_ops_start() local [all …]
|
| D | main.c | 136 struct rtw_dev *rtwdev; member 140 static void rtw_dynamic_csi_rate(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif) in rtw_dynamic_csi_rate() argument 142 struct rtw_bf_info *bf_info = &rtwdev->bf_info; in rtw_dynamic_csi_rate() 150 rtw_chip_cfg_csi_rate(rtwdev, rtwdev->dm_info.min_rssi, in rtw_dynamic_csi_rate() 168 rtw_dynamic_csi_rate(iter_data->rtwdev, rtwvif); in rtw_vif_watch_dog_iter() 181 struct rtw_dev *rtwdev = container_of(work, struct rtw_dev, in rtw_watch_dog_work() local 183 struct rtw_traffic_stats *stats = &rtwdev->stats; in rtw_watch_dog_work() 185 bool busy_traffic = test_bit(RTW_FLAG_BUSY_TRAFFIC, rtwdev->flags); in rtw_watch_dog_work() 188 mutex_lock(&rtwdev->mutex); in rtw_watch_dog_work() 190 if (!test_bit(RTW_FLAG_RUNNING, rtwdev->flags)) in rtw_watch_dog_work() [all …]
|
| D | rtw8821c.c | 35 static int rtw8821c_read_efuse(struct rtw_dev *rtwdev, u8 *log_map) in rtw8821c_read_efuse() argument 37 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8821c_read_efuse() 63 switch (rtw_hci_type(rtwdev)) { in rtw8821c_read_efuse() 82 static u8 rtw8821c_get_swing_index(struct rtw_dev *rtwdev) in rtw8821c_get_swing_index() argument 87 swing = rtw_read32_mask(rtwdev, REG_TXSCALE_A, 0xffe00000); in rtw8821c_get_swing_index() 97 static void rtw8821c_pwrtrack_init(struct rtw_dev *rtwdev) in rtw8821c_pwrtrack_init() argument 99 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw8821c_pwrtrack_init() 100 u8 swing_idx = rtw8821c_get_swing_index(rtwdev); in rtw8821c_pwrtrack_init() 112 dm_info->thermal_meter_k = rtwdev->efuse.thermal_meter_k; in rtw8821c_pwrtrack_init() 115 static void rtw8821c_phy_bf_init(struct rtw_dev *rtwdev) in rtw8821c_phy_bf_init() argument [all …]
|
| D | bf.c | 10 void rtw_bf_disassoc(struct rtw_dev *rtwdev, struct ieee80211_vif *vif, in rtw_bf_disassoc() argument 15 struct rtw_bf_info *bfinfo = &rtwdev->bf_info; in rtw_bf_disassoc() 25 rtw_chip_config_bfee(rtwdev, rtwvif, bfee, false); in rtw_bf_disassoc() 30 void rtw_bf_assoc(struct rtw_dev *rtwdev, struct ieee80211_vif *vif, in rtw_bf_assoc() argument 33 struct ieee80211_hw *hw = rtwdev->hw; in rtw_bf_assoc() 36 struct rtw_bf_info *bfinfo = &rtwdev->bf_info; in rtw_bf_assoc() 37 struct rtw_chip_info *chip = rtwdev->chip; in rtw_bf_assoc() 52 rtw_warn(rtwdev, "failed to find station entry for bss %pM\n", in rtw_bf_assoc() 63 rtw_dbg(rtwdev, RTW_DBG_BF, "mu bfer number over limit\n"); in rtw_bf_assoc() 73 rtw_chip_config_bfee(rtwdev, rtwvif, bfee, true); in rtw_bf_assoc() [all …]
|
| D | pci.c | 50 static u8 rtw_pci_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_pci_read8() argument 52 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_read8() 57 static u16 rtw_pci_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_pci_read16() argument 59 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_read16() 64 static u32 rtw_pci_read32(struct rtw_dev *rtwdev, u32 addr) in rtw_pci_read32() argument 66 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_read32() 71 static void rtw_pci_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_pci_write8() argument 73 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_write8() 78 static void rtw_pci_write16(struct rtw_dev *rtwdev, u32 addr, u16 val) in rtw_pci_write16() argument 80 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_write16() [all …]
|
| D | rtw8822b.c | 19 static void rtw8822b_config_trx_mode(struct rtw_dev *rtwdev, u8 tx_path, 28 static int rtw8822b_read_efuse(struct rtw_dev *rtwdev, u8 *log_map) in rtw8822b_read_efuse() argument 30 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8822b_read_efuse() 54 switch (rtw_hci_type(rtwdev)) { in rtw8822b_read_efuse() 66 static void rtw8822b_phy_rfe_init(struct rtw_dev *rtwdev) in rtw8822b_phy_rfe_init() argument 69 rtw_write32_mask(rtwdev, 0x64, BIT(29) | BIT(28), 0x3); in rtw8822b_phy_rfe_init() 70 rtw_write32_mask(rtwdev, 0x4c, BIT(26) | BIT(25), 0x0); in rtw8822b_phy_rfe_init() 71 rtw_write32_mask(rtwdev, 0x40, BIT(2), 0x1); in rtw8822b_phy_rfe_init() 74 rtw_write32_mask(rtwdev, 0x1990, 0x3f, 0x30); in rtw8822b_phy_rfe_init() 75 rtw_write32_mask(rtwdev, 0x1990, (BIT(11) | BIT(10)), 0x3); in rtw8822b_phy_rfe_init() [all …]
|
| D | fw.c | 18 static void rtw_fw_c2h_cmd_handle_ext(struct rtw_dev *rtwdev, in rtw_fw_c2h_cmd_handle_ext() argument 29 rtw_tx_report_handle(rtwdev, skb, C2H_CCX_RPT); in rtw_fw_c2h_cmd_handle_ext() 59 struct rtw_dev *rtwdev; member 116 static void rtw_fw_ra_report_handle(struct rtw_dev *rtwdev, u8 *payload, in rtw_fw_ra_report_handle() argument 124 rtwdev->dm_info.tx_rate = GET_RA_REPORT_RATE(payload); in rtw_fw_ra_report_handle() 125 ra_data.rtwdev = rtwdev; in rtw_fw_ra_report_handle() 127 rtw_iterate_stas_atomic(rtwdev, rtw_fw_ra_report_iter, &ra_data); in rtw_fw_ra_report_handle() 131 struct rtw_dev *rtwdev; member 139 struct rtw_dev *rtwdev = iter_data->rtwdev; in rtw_fw_bcn_filter_notify_vif_iter() local 155 rtwdev->beacon_loss = false; in rtw_fw_bcn_filter_notify_vif_iter() [all …]
|
| D | phy.c | 109 static void rtw_phy_cck_pd_init(struct rtw_dev *rtwdev) in rtw_phy_cck_pd_init() argument 111 struct rtw_dm_info *dm_info = &rtwdev->dm_info; in rtw_phy_cck_pd_init() 122 static void rtw_phy_cfo_init(struct rtw_dev *rtwdev) in rtw_phy_cfo_init() argument 124 struct rtw_chip_info *chip = rtwdev->chip; in rtw_phy_cfo_init() 127 chip->ops->cfo_init(rtwdev); in rtw_phy_cfo_init() 130 static void rtw_phy_tx_path_div_init(struct rtw_dev *rtwdev) in rtw_phy_tx_path_div_init() argument 132 struct rtw_path_div *path_div = &rtwdev->dm_path_div; in rtw_phy_tx_path_div_init() 134 path_div->current_tx_path = rtwdev->chip->default_1ss_tx_path; in rtw_phy_tx_path_div_init() 141 void rtw_phy_init(struct rtw_dev *rtwdev) in rtw_phy_init() argument 143 struct rtw_chip_info *chip = rtwdev->chip; in rtw_phy_init() [all …]
|
| D | tx.c | 12 void rtw_tx_stats(struct rtw_dev *rtwdev, struct ieee80211_vif *vif, in rtw_tx_stats() argument 25 rtwdev->stats.tx_unicast += skb->len; in rtw_tx_stats() 26 rtwdev->stats.tx_cnt++; in rtw_tx_stats() 89 static u8 get_highest_ht_tx_rate(struct rtw_dev *rtwdev, in get_highest_ht_tx_rate() argument 94 if (rtwdev->hal.rf_type == RF_2T2R && sta->ht_cap.mcs.rx_mask[1] != 0) in get_highest_ht_tx_rate() 102 static u8 get_highest_vht_tx_rate(struct rtw_dev *rtwdev, in get_highest_vht_tx_rate() argument 105 struct rtw_efuse *efuse = &rtwdev->efuse; in get_highest_vht_tx_rate() 143 static void rtw_tx_report_enable(struct rtw_dev *rtwdev, in rtw_tx_report_enable() argument 146 struct rtw_tx_report *tx_report = &rtwdev->tx_report; in rtw_tx_report_enable() 158 struct rtw_dev *rtwdev = from_timer(rtwdev, t, tx_report.purge_timer); in rtw_tx_report_purge_timer() local [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 u32 rtw_phy_read_rf_sipi(struct rtw_dev *rtwdev, enum rtw_rf_path rf_path, 26 bool rtw_phy_write_rf_reg_sipi(struct rtw_dev *rtwdev, enum rtw_rf_path rf_path, 28 bool rtw_phy_write_rf_reg(struct rtw_dev *rtwdev, enum rtw_rf_path rf_path, 30 bool rtw_phy_write_rf_reg_mix(struct rtw_dev *rtwdev, enum rtw_rf_path rf_path, 32 void rtw_phy_setup_phy_cond(struct rtw_dev *rtwdev, u32 pkg); 33 void rtw_parse_tbl_phy_cond(struct rtw_dev *rtwdev, const struct rtw_table *tbl); 34 void rtw_parse_tbl_bb_pg(struct rtw_dev *rtwdev, const struct rtw_table *tbl); [all …]
|
| D | efuse.c | 14 static void switch_efuse_bank(struct rtw_dev *rtwdev) in switch_efuse_bank() argument 16 rtw_write32_mask(rtwdev, REG_LDO_EFUSE_CTRL, BIT_MASK_EFUSE_BANK_SEL, in switch_efuse_bank() 40 static int rtw_dump_logical_efuse_map(struct rtw_dev *rtwdev, u8 *phy_map, in rtw_dump_logical_efuse_map() argument 43 u32 physical_size = rtwdev->efuse.physical_size; in rtw_dump_logical_efuse_map() 44 u32 protect_size = rtwdev->efuse.protect_size; in rtw_dump_logical_efuse_map() 45 u32 logical_size = rtwdev->efuse.logical_size; in rtw_dump_logical_efuse_map() 87 static int rtw_dump_physical_efuse_map(struct rtw_dev *rtwdev, u8 *map) in rtw_dump_physical_efuse_map() argument 89 struct rtw_chip_info *chip = rtwdev->chip; in rtw_dump_physical_efuse_map() 90 u32 size = rtwdev->efuse.physical_size; in rtw_dump_physical_efuse_map() 95 rtw_chip_efuse_grant_on(rtwdev); in rtw_dump_physical_efuse_map() [all …]
|
| D | bf.h | 70 void rtw_bf_disassoc(struct rtw_dev *rtwdev, struct ieee80211_vif *vif, 72 void rtw_bf_assoc(struct rtw_dev *rtwdev, struct ieee80211_vif *vif, 74 void rtw_bf_init_bfer_entry_mu(struct rtw_dev *rtwdev, 76 void rtw_bf_cfg_sounding(struct rtw_dev *rtwdev, struct rtw_vif *vif, 78 void rtw_bf_cfg_mu_bfee(struct rtw_dev *rtwdev, struct cfg_mumimo_para *param); 79 void rtw_bf_del_bfer_entry_mu(struct rtw_dev *rtwdev); 80 void rtw_bf_del_sounding(struct rtw_dev *rtwdev); 81 void rtw_bf_enable_bfee_su(struct rtw_dev *rtwdev, struct rtw_vif *vif, 83 void rtw_bf_enable_bfee_mu(struct rtw_dev *rtwdev, struct rtw_vif *vif, 85 void rtw_bf_remove_bfee_su(struct rtw_dev *rtwdev, struct rtw_bfee *bfee); [all …]
|
| D | debug.c | 19 struct rtw_dev *rtwdev; member 113 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_read_reg() local 120 val = rtw_read8(rtwdev, addr); in rtw_debugfs_get_read_reg() 124 val = rtw_read16(rtwdev, addr); in rtw_debugfs_get_read_reg() 128 val = rtw_read32(rtwdev, addr); in rtw_debugfs_get_read_reg() 138 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_rf_read() local 146 val = rtw_read_rf(rtwdev, path, addr, mask); in rtw_debugfs_get_rf_read() 181 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_set_read_reg() local 194 rtw_warn(rtwdev, "read reg setting wrong len\n"); in rtw_debugfs_set_read_reg() 206 struct rtw_dev *rtwdev = debugfs_priv->rtwdev; in rtw_debugfs_get_dump_cam() local [all …]
|
| D | coex.h | 326 static inline void rtw_coex_set_init(struct rtw_dev *rtwdev) in rtw_coex_set_init() argument 328 struct rtw_chip_info *chip = rtwdev->chip; in rtw_coex_set_init() 330 chip->ops->coex_set_init(rtwdev); in rtw_coex_set_init() 334 void rtw_coex_set_ant_switch(struct rtw_dev *rtwdev, u8 ctrl_type, u8 pos_type) in rtw_coex_set_ant_switch() argument 336 struct rtw_chip_info *chip = rtwdev->chip; in rtw_coex_set_ant_switch() 341 chip->ops->coex_set_ant_switch(rtwdev, ctrl_type, pos_type); in rtw_coex_set_ant_switch() 344 static inline void rtw_coex_set_gnt_fix(struct rtw_dev *rtwdev) in rtw_coex_set_gnt_fix() argument 346 struct rtw_chip_info *chip = rtwdev->chip; in rtw_coex_set_gnt_fix() 348 chip->ops->coex_set_gnt_fix(rtwdev); in rtw_coex_set_gnt_fix() 351 static inline void rtw_coex_set_gnt_debug(struct rtw_dev *rtwdev) in rtw_coex_set_gnt_debug() argument [all …]
|
| D | debug.h | 30 void rtw_debugfs_init(struct rtw_dev *rtwdev); 35 static inline void rtw_debugfs_init(struct rtw_dev *rtwdev) {} in rtw_debugfs_init() argument 42 void __rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask, 45 #define rtw_dbg(rtwdev, a...) __rtw_dbg(rtwdev, ##a) argument 49 static inline void rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask, in rtw_dbg() argument 54 #define rtw_info(rtwdev, a...) dev_info(rtwdev->dev, ##a) argument 55 #define rtw_warn(rtwdev, a...) dev_warn(rtwdev->dev, ##a) argument 56 #define rtw_err(rtwdev, a...) dev_err(rtwdev->dev, ##a) argument
|
| D | util.c | 9 bool check_hw_ready(struct rtw_dev *rtwdev, u32 addr, u32 mask, u32 target) in check_hw_ready() argument 14 if (rtw_read32_mask(rtwdev, addr, mask) == target) in check_hw_ready() 24 bool ltecoex_read_reg(struct rtw_dev *rtwdev, u16 offset, u32 *val) in ltecoex_read_reg() argument 26 struct rtw_chip_info *chip = rtwdev->chip; in ltecoex_read_reg() 29 if (!check_hw_ready(rtwdev, ltecoex->ctrl, LTECOEX_READY, 1)) in ltecoex_read_reg() 32 rtw_write32(rtwdev, ltecoex->ctrl, 0x800F0000 | offset); in ltecoex_read_reg() 33 *val = rtw_read32(rtwdev, ltecoex->rdata); in ltecoex_read_reg() 38 bool ltecoex_reg_write(struct rtw_dev *rtwdev, u16 offset, u32 value) in ltecoex_reg_write() argument 40 struct rtw_chip_info *chip = rtwdev->chip; in ltecoex_reg_write() 43 if (!check_hw_ready(rtwdev, ltecoex->ctrl, LTECOEX_READY, 1)) in ltecoex_reg_write() [all …]
|
| D | mac.h | 32 void rtw_set_channel_mac(struct rtw_dev *rtwdev, u8 channel, u8 bw, 34 int rtw_mac_power_on(struct rtw_dev *rtwdev); 35 void rtw_mac_power_off(struct rtw_dev *rtwdev); 36 int rtw_download_firmware(struct rtw_dev *rtwdev, struct rtw_fw_state *fw); 37 int rtw_mac_init(struct rtw_dev *rtwdev); 38 void rtw_mac_flush_queues(struct rtw_dev *rtwdev, u32 queues, bool drop); 39 int rtw_ddma_to_fw_fifo(struct rtw_dev *rtwdev, u32 ocp_src, u32 size); 41 static inline void rtw_mac_flush_all_queues(struct rtw_dev *rtwdev, bool drop) in rtw_mac_flush_all_queues() argument 43 rtw_mac_flush_queues(rtwdev, BIT(rtwdev->hw->queues) - 1, drop); in rtw_mac_flush_all_queues()
|
| D | util.h | 10 #define rtw_iterate_vifs(rtwdev, iterator, data) \ argument 11 ieee80211_iterate_active_interfaces(rtwdev->hw, \ 13 #define rtw_iterate_vifs_atomic(rtwdev, iterator, data) \ argument 14 ieee80211_iterate_active_interfaces_atomic(rtwdev->hw, \ 16 #define rtw_iterate_stas_atomic(rtwdev, iterator, data) \ argument 17 ieee80211_iterate_stations_atomic(rtwdev->hw, iterator, data) 18 #define rtw_iterate_keys(rtwdev, vif, iterator, data) \ argument 19 ieee80211_iter_keys(rtwdev->hw, vif, iterator, data) 20 #define rtw_iterate_keys_rcu(rtwdev, vif, iterator, data) \ argument 21 ieee80211_iter_keys_rcu((rtwdev)->hw, vif, iterator, data)
|