| /linux-6.15/drivers/staging/rtl8723bs/ |
| H A D | Makefile | 18 hal/hal_intf.o \ 19 hal/hal_com.o \ 21 hal/hal_btcoex.o \ 22 hal/hal_sdio.o \ 23 hal/hal_pwr_seq.o \ 24 hal/HalPhyRf.o \ 25 hal/HalPwrSeqCmd.o \ 26 hal/odm.o \ 28 hal/odm_DIG.o \ 35 hal/rtl8723b_dm.o \ [all …]
|
| /linux-6.15/drivers/net/wireless/ath/ath11k/ |
| H A D | hal.c | 195 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_rdp() local 209 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_free_cont_rdp() local 217 hal->rdp.vaddr, hal->rdp.paddr); in ath11k_hal_free_cont_rdp() 223 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_alloc_cont_wrp() local 237 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_free_cont_wrp() local 245 hal->wrp.vaddr, hal->wrp.paddr); in ath11k_hal_free_cont_wrp() 270 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_dst_hw_init() local 349 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_src_hw_init() local 976 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_setup() local 1102 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_srng_update_hp_tp_addr() local [all …]
|
| /linux-6.15/drivers/net/wireless/realtek/rtw89/ |
| H A D | chan.h | 55 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_get_entity_state() local 57 return READ_ONCE(hal->entity_active[phy_idx]); in rtw89_get_entity_state() 64 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_set_entity_state() local 66 WRITE_ONCE(hal->entity_active[phy_idx], active); in rtw89_set_entity_state() 72 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_get_entity_mode() local 74 return READ_ONCE(hal->entity_mode); in rtw89_get_entity_mode() 80 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_set_entity_mode() local 82 WRITE_ONCE(hal->entity_mode, mode); in rtw89_set_entity_mode()
|
| H A D | chan.c | 135 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_assign_entity_chan() local 154 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_iterate_entity_chan() local 176 struct rtw89_hal *hal = &rtwdev->hal; in __rtw89_config_entity_chandef() local 195 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_config_roc_chandef() local 233 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_entity_init() local 261 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_entity_calculate_weight() local 307 struct rtw89_hal *hal = &rtwdev->hal; in __rtw89_mgnt_chan_get() local 363 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_entity_recalc_mgnt_roles() local 424 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_entity_recalc() local 902 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_mcc_fill_all_roles() local [all …]
|
| H A D | mac80211.c | 306 rtwdev->hal.rx_fltr |= B_AX_A_MC; in rtw89_ops_configure_filter() 341 rx_fltr = rtwdev->hal.rx_fltr; in rtw89_ops_configure_filter() 1115 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_ops_set_antenna() local 1119 if (hal->ant_diversity) { in rtw89_ops_set_antenna() 1126 hal->antenna_tx = tx_ant; in rtw89_ops_set_antenna() 1127 hal->antenna_rx = rx_ant; in rtw89_ops_set_antenna() 1128 hal->tx_path_diversity = false; in rtw89_ops_set_antenna() 1129 hal->ant_diversity_fixed = true; in rtw89_ops_set_antenna() 1138 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_ops_get_antenna() local 1140 *tx_ant = hal->antenna_tx; in rtw89_ops_get_antenna() [all …]
|
| H A D | rtw8922a_rfk.c | 43 struct rtw89_hal *hal = &rtwdev->hal; in rtw8922a_ctl_band_ch_bw() local 131 if (hal->cv != CHIP_CAV) in rtw8922a_ctl_band_ch_bw() 211 struct rtw89_hal *hal = &rtwdev->hal; in rtw8922a_set_syn01() local 215 if (hal->cv == CHIP_CAV) in rtw8922a_set_syn01()
|
| H A D | efuse.c | 81 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_enable_efuse_pwr_cut_ddv() local 93 if (chip_id == RTL8852B && hal->cv == CHIP_CAV) in rtw89_enable_efuse_pwr_cut_ddv() 100 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_disable_efuse_pwr_cut_ddv() local 105 if (chip_id == RTL8852B && hal->cv == CHIP_CAV) in rtw89_disable_efuse_pwr_cut_ddv()
|
| H A D | efuse_be.c | 26 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_enable_efuse_pwr_cut_ddv_be() local 29 if (chip->chip_id == RTL8922A && hal->cv == CHIP_CAV) in rtw89_enable_efuse_pwr_cut_ddv_be() 47 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_disable_efuse_pwr_cut_ddv_be() local 50 if (chip->chip_id == RTL8922A && hal->cv == CHIP_CAV) in rtw89_disable_efuse_pwr_cut_ddv_be()
|
| H A D | phy.c | 5041 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_phy_antdiv_parse() local 5097 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_phy_antdiv_init() local 5111 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_phy_thermal_protect() local 6396 struct rtw89_hal *hal = &rtwdev->hal; in __rtw89_phy_tx_path_div_sta_iter() local 6458 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_phy_tx_path_div_track() local 6474 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_phy_antdiv_set_ant() local 6500 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_phy_swap_hal_antenna() local 6503 hal->antenna_tx = hal->antenna_rx; in rtw89_phy_swap_hal_antenna() 6509 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_phy_antdiv_decision_state() local 6587 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_phy_antdiv_track() local [all …]
|
| H A D | core.c | 723 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_core_get_no_ul_ofdma_htc() local 1631 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_core_rx_process_phy_ppdu_iter() local 1648 if (hal->ant_diversity && hal->antenna_rx) { in rtw89_core_rx_process_phy_ppdu_iter() 3787 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_core_sta_link_add() local 4083 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_init_ht_cap() local 4084 u8 nss = hal->rx_nss; in rtw89_init_ht_cap() 4118 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_init_vht_cap() local 4165 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_init_he_cap() local 4278 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_init_eht_cap() local 5008 rtwdev->hal.cv = cv; in rtw89_read_chip_ver() [all …]
|
| /linux-6.15/drivers/net/wireless/ath/ath12k/ |
| H A D | hal.c | 521 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_create_config_qcn9274() local 1340 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_create_config_wcn7850() local 1578 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_alloc_cont_rdp() local 1592 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_free_cont_rdp() local 1606 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_alloc_cont_wrp() local 1620 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_free_cont_wrp() local 1653 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_dst_hw_init() local 1729 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_src_hw_init() local 2288 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_setup() local 2410 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_srng_update_hp_tp_addr() local [all …]
|
| H A D | hal_rx.c | 48 static int ath12k_hal_reo_cmd_flush_cache(struct ath12k_hal *hal, in ath12k_hal_reo_cmd_flush_cache() argument 53 u8 avail_slot = ffz(hal->avail_blk_resource); in ath12k_hal_reo_cmd_flush_cache() 59 hal->current_blk_index = avail_slot; in ath12k_hal_reo_cmd_flush_cache() 241 ret = ath12k_hal_reo_cmd_flush_cache(&ab->hal, reo_desc, cmd); in ath12k_hal_reo_cmd_send() 545 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_reo_flush_cache_status() local 563 hal->avail_blk_resource |= BIT(hal->current_blk_index); in ath12k_hal_reo_flush_cache_status() 586 struct ath12k_hal *hal = &ab->hal; in ath12k_hal_reo_unblk_cache_status() local 607 hal->avail_blk_resource &= ~BIT(hal->current_blk_index); in ath12k_hal_reo_unblk_cache_status()
|
| H A D | dbring.c | 23 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath12k_dbring_bufs_replenish() 86 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath12k_dbring_fill_bufs() 171 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath12k_dbring_buf_setup() 286 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath12k_dbring_buffer_release_event()
|
| /linux-6.15/drivers/net/wireless/realtek/rtw88/ |
| H A D | sar.c | 11 const struct rtw_hal *hal = &rtwdev->hal; in rtw_query_sar() local 12 const struct rtw_sar *sar = &hal->sar; in rtw_query_sar() 27 struct rtw_hal *hal = &rtwdev->hal; in rtw_apply_sar() local 28 struct rtw_sar *sar = &hal->sar; in rtw_apply_sar() 36 rtw_phy_set_tx_power_level(rtwdev, hal->current_channel); in rtw_apply_sar() 44 struct rtw_hal *hal = &rtwdev->hal; in rtw_sar_to_phy() local 52 hal->tx_pwr_by_rate_base_2g[arg->path][arg->rs] : in rtw_sar_to_phy() 53 hal->tx_pwr_by_rate_base_5g[arg->path][arg->rs]; in rtw_sar_to_phy()
|
| H A D | phy.c | 266 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_dig_write() local 940 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_read_rf() local 963 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_read_rf_sipi() local 1012 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_write_rf_reg_sipi() local 1052 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_write_rf_reg() local 1085 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_setup_phy_cond() local 1133 struct rtw_hal *hal = &rtwdev->hal; in check_positive() local 1538 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_store_tx_power_by_rate() local 1616 struct rtw_hal *hal = &rtwdev->hal; in rtw_phy_set_tx_power_limit() local 1651 struct rtw_hal *hal = &rtwdev->hal; in rtw_xref_5g_txpwr_lmt() local [all …]
|
| H A D | main.c | 743 struct rtw_hal *hal = &rtwdev->hal; in rtw_update_channel() local 874 struct rtw_hal *hal = &rtwdev->hal; in rtw_set_channel() local 986 struct rtw_hal *hal = &rtwdev->hal; in rtw_hw_config_rf_ant_num() local 997 hal->rf_phy_num = hal->rf_path_num; in rtw_hw_config_rf_ant_num() 1172 struct rtw_hal *hal = &rtwdev->hal; in rtw_rate_mask_cfg() local 1217 struct rtw_hal *hal = &rtwdev->hal; in rtw_update_sta_info() local 1710 struct rtw_hal *hal = &rtwdev->hal; in rtw_set_txrx_1ss() local 1833 struct rtw_hal *hal = &rtwdev->hal; in rtw_chip_parameter_setup() local 1855 hal->cut_version = BIT_GET_CHIP_VER(hal->chip_version); in rtw_chip_parameter_setup() 2041 struct rtw_hal *hal = &rtwdev->hal; in rtw_chip_board_info_setup() local [all …]
|
| H A D | rtw88xxa.c | 127 struct rtw_hal *hal = &rtwdev->hal; in rtw88xxa_read_usb_type() local 169 hal->rf_path_num = 1; in rtw88xxa_read_usb_type() 170 hal->rf_phy_num = 1; in rtw88xxa_read_usb_type() 178 hal->rf_phy_num = 2; in rtw88xxa_read_usb_type() 1011 struct rtw_hal *hal = &rtwdev->hal; in rtw88xxa_power_on() local 1254 const struct rtw_hal *hal = &rtwdev->hal; in rtw88xxa_phy_read_rf() local 1326 struct rtw_hal *hal = &rtwdev->hal; in rtw88xxa_switch_channel() local 1392 struct rtw_hal *hal = &rtwdev->hal; in rtw88xxa_post_set_bw_mode() local 1573 struct rtw_hal *hal = &rtwdev->hal; in rtw88xxa_set_tx_power_index_by_rate() local 1635 struct rtw_hal *hal = &rtwdev->hal; in rtw88xxa_set_tx_power_index() local [all …]
|
| H A D | rtw8814a.c | 77 struct rtw_hal *hal = &rtwdev->hal; in rtw8814a_read_rf_type() local 84 hal->rf_type = RF_2T2R; in rtw8814a_read_rf_type() 86 hal->rf_type = RF_3T3R; in rtw8814a_read_rf_type() 92 hal->rf_type = RF_2T2R; in rtw8814a_read_rf_type() 96 hal->rf_path_num = 4; in rtw8814a_read_rf_type() 97 hal->rf_phy_num = 4; in rtw8814a_read_rf_type() 111 struct rtw_hal *hal = &rtwdev->hal; in rtw8814a_init_hwcap() local 626 struct rtw_hal *hal = &rtwdev->hal; in rtw8814a_switch_channel() local 855 struct rtw_hal *hal = &rtwdev->hal; in rtw8814a_spur_calibration_ch140() local 1273 struct rtw_hal *hal = &rtwdev->hal; in rtw8814a_set_tx_power_index_by_rate() local [all …]
|
| H A D | rtw8822b.c | 154 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_phy_set_param() local 292 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_rfe_efem() local 310 } else if (hal->antenna_rx == hal->antenna_tx) { in rtw8822b_set_channel_rfe_efem() 321 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_rfe_ifem() local 424 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_cca() local 513 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_rf() local 577 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_toggle_igi() local 588 hal->antenna_rx | (hal->antenna_rx << 4)); in rtw8822b_toggle_igi() 941 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_tx_power_index_by_rate() local 962 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_tx_power_index() local [all …]
|
| H A D | mac80211.c | 292 rtwdev->hal.rcr |= BIT_AM; in rtw_ops_configure_filter() 294 rtwdev->hal.rcr &= ~(BIT_AM); in rtw_ops_configure_filter() 298 rtwdev->hal.rcr |= BIT_ACRC32; in rtw_ops_configure_filter() 300 rtwdev->hal.rcr &= ~(BIT_ACRC32); in rtw_ops_configure_filter() 304 rtwdev->hal.rcr |= BIT_AAP; in rtw_ops_configure_filter() 306 rtwdev->hal.rcr &= ~(BIT_AAP); in rtw_ops_configure_filter() 312 rtwdev->hal.rcr |= BIT_CBSSID_BCN; in rtw_ops_configure_filter() 665 struct rtw_hal *hal = &rtwdev->hal; in rtw_ops_can_aggregate_in_amsdu() local 820 struct rtw_hal *hal = &rtwdev->hal; in rtw_ops_get_antenna() local 822 *tx_antenna = hal->antenna_tx; in rtw_ops_get_antenna() [all …]
|
| H A D | rtw8821c.c | 50 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_read_efuse() local 83 hal->rfe_btg = true; in rtw8821c_read_efuse() 160 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_phy_set_param() local 312 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_set_channel_rf() local 344 if (hal->rfe_btg) in rtw8821c_set_channel_rf() 386 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_cck_tx_filter_srrc() local 424 hal->ch_param[0]); in rtw8821c_cck_tx_filter_srrc() 428 hal->ch_param[2]); in rtw8821c_cck_tx_filter_srrc() 446 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_set_channel_bb() local 686 struct rtw_hal *hal = &rtwdev->hal; in rtw8821c_set_tx_power_index_by_rate() local [all …]
|
| H A D | debug.c | 592 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw_debugfs_get_rf_dump() 696 struct rtw_hal *hal = &rtwdev->hal; in rtw_debugfs_get_tx_pwr_tbl() local 702 bw = hal->current_band_width; in rtw_debugfs_get_tx_pwr_tbl() 703 ch = hal->current_channel; in rtw_debugfs_get_tx_pwr_tbl() 719 mutex_lock(&hal->tx_power_mutex); in rtw_debugfs_get_tx_pwr_tbl() 722 if (hal->current_band_type == RTW_BAND_5G) in rtw_debugfs_get_tx_pwr_tbl() 737 hal->tx_pwr_tbl[path][rate], in rtw_debugfs_get_tx_pwr_tbl() 738 hal->tx_pwr_tbl[path][rate], in rtw_debugfs_get_tx_pwr_tbl() 749 mutex_unlock(&hal->tx_power_mutex); in rtw_debugfs_get_tx_pwr_tbl() 759 struct rtw_hal *hal = &rtwdev->hal; in rtw_debugfs_get_simple_phy_info() local [all …]
|
| H A D | fw.c | 541 struct rtw_hal *hal = &rtwdev->hal; in rtw_fw_send_phydm_info() local 550 if (hal->rf_type == RF_1T1R) in rtw_fw_send_phydm_info() 552 else if (hal->rf_type == RF_2T2R) in rtw_fw_send_phydm_info() 2254 rtwdev->hal.rcr &= ~BIT_CBSSID_BCN; in rtw_hw_scan_start() 2265 struct rtw_hal *hal = &rtwdev->hal; in rtw_hw_scan_complete() local 2272 rtwdev->hal.rcr |= BIT_CBSSID_BCN; in rtw_hw_scan_complete() 2380 struct rtw_hal *hal = &rtwdev->hal; in rtw_store_op_chan() local 2384 scan_info->op_chan = hal->current_channel; in rtw_store_op_chan() 2385 scan_info->op_bw = hal->current_band_width; in rtw_store_op_chan() 2387 scan_info->op_pri_ch = hal->primary_channel; in rtw_store_op_chan() [all …]
|
| H A D | regd.c | 464 struct rtw_hal *hal = &rtwdev->hal; in rtw_regd_notifier() local 490 rtw_phy_set_tx_power_level(rtwdev, hal->current_channel); in rtw_regd_notifier() 496 struct rtw_hal *hal = &rtwdev->hal; in rtw_regd_get() local 497 u8 band = hal->current_band_type; in rtw_regd_get()
|
| /linux-6.15/drivers/staging/rtl8723bs/hal/ |
| H A D | sdio_ops.c | 393 struct hal_com_data *hal; in sdio_read_port() local 398 hal = GET_HAL_DATA(adapter); in sdio_read_port() 857 struct hal_com_data *hal; in sd_int_dpc() local 862 hal = GET_HAL_DATA(adapter); in sd_int_dpc() 935 hal->SdioRxFIFOSize = 0; in sd_int_dpc() 950 struct hal_com_data *hal; in sd_int_hdl() local 957 hal = GET_HAL_DATA(adapter); in sd_int_hdl() 959 hal->sdio_hisr = 0; in sd_int_hdl() 962 if (hal->sdio_hisr & hal->sdio_himr) { in sd_int_hdl() 965 hal->sdio_hisr &= hal->sdio_himr; in sd_int_hdl() [all …]
|