Home
last modified time | relevance | path

Searched refs:hal (Results 1 – 25 of 60) sorted by relevance

123

/linux/drivers/staging/rtl8723bs/
H A DMakefile18 hal/hal_intf.o \
19 hal/hal_com.o \
20 hal/hal_com_phycfg.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 \
27 hal/odm_CfoTracking.o \
[all …]
/linux/drivers/net/wireless/realtek/rtw89/
H A Dchan.h49 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_get_entity_state() local
51 return READ_ONCE(hal->entity_active[phy_idx]); in rtw89_get_entity_state()
58 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_set_entity_state() local
60 WRITE_ONCE(hal->entity_active[phy_idx], active); in rtw89_set_entity_state()
66 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_get_entity_mode() local
68 return READ_ONCE(hal->entity_mode); in rtw89_get_entity_mode()
74 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_set_entity_mode() local
76 WRITE_ONCE(hal->entity_mode, mode); in rtw89_set_entity_mode()
H A Dchan.c134 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_assign_entity_chan() local
135 struct rtw89_chan *chan = &hal->chanctx[idx].chan; in rtw89_assign_entity_chan()
136 struct rtw89_chan_rcd *rcd = &hal->chanctx[idx].rcd; in rtw89_assign_entity_chan()
153 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_iterate_entity_chan() local
160 for_each_set_bit(idx, hal->entity_map, NUM_OF_RTW89_CHANCTX) { in rtw89_iterate_entity_chan()
175 struct rtw89_hal *hal = &rtwdev->hal; in __rtw89_config_entity_chandef() local
177 hal->chanctx[idx].chandef = *chandef; in __rtw89_config_entity_chandef()
180 set_bit(idx, hal->entity_map); in __rtw89_config_entity_chandef()
194 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_config_roc_chandef() local
198 cur = atomic_cmpxchg(&hal->roc_chanctx_idx, in rtw89_config_roc_chandef()
[all …]
H A Dmac80211.c315 rtwdev->hal.rx_fltr &= ~B_AX_A_MC; in rtw89_ops_configure_filter()
317 rtwdev->hal.rx_fltr |= B_AX_A_MC; in rtw89_ops_configure_filter()
321 rtwdev->hal.rx_fltr |= B_AX_A_CRC32_ERR; in rtw89_ops_configure_filter()
323 rtwdev->hal.rx_fltr &= ~B_AX_A_CRC32_ERR; in rtw89_ops_configure_filter()
327 rtwdev->hal.rx_fltr &= ~B_AX_A_A1_MATCH; in rtw89_ops_configure_filter()
329 rtwdev->hal.rx_fltr |= B_AX_A_A1_MATCH; in rtw89_ops_configure_filter()
333 rtwdev->hal.rx_fltr &= ~B_AX_A_BCN_CHK_EN; in rtw89_ops_configure_filter()
334 rtwdev->hal.rx_fltr &= ~B_AX_A_BC; in rtw89_ops_configure_filter()
335 rtwdev->hal.rx_fltr &= ~B_AX_A_A1_MATCH; in rtw89_ops_configure_filter()
337 rtwdev->hal.rx_fltr |= B_AX_A_BCN_CHK_EN; in rtw89_ops_configure_filter()
[all …]
H A Drtw8922a_rfk.c43 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 Dphy.c394 for (i = 0; i < rtwdev->hal.tx_nss; i++) in rtw89_phy_ra_sta_update()
450 ra->ss_num = min(link_sta->rx_nss, rtwdev->hal.tx_nss) - 1; in rtw89_phy_ra_sta_update()
580 u8 tx_nss = rtwdev->hal.tx_nss; in __rtw89_phy_rate_pattern_vif()
1606 u8 cv = rtwdev->hal.cv; in rtw89_phy_init_reg()
4125 if (rtwdev->chip->chip_id == RTL8852A && rtwdev->hal.cv == CHIP_CBV) in rtw89_dcfo_comp()
4536 if (chip->chip_id == RTL8852B && rtwdev->hal.cv > CHIP_CBV) in rtw89_phy_ul_tb_assoc()
4772 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_phy_antdiv_parse() local
4774 if (!hal->ant_diversity || hal->ant_diversity_fixed) in rtw89_phy_antdiv_parse()
4782 if (hal->antenna_rx == RF_A) in rtw89_phy_antdiv_parse()
4784 else if (hal->antenna_rx == RF_B) in rtw89_phy_antdiv_parse()
[all …]
H A Dcore.c674 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_core_get_no_ul_ofdma_htc() local
686 le32_encode_bits(hal->rx_nss - 1, RTW89_HTC_MASK_HTC_OM_RX_NSS) | in rtw89_core_get_no_ul_ofdma_htc()
689 le32_encode_bits(hal->tx_nss - 1, RTW89_HTC_MASK_HTC_OM_TX_NSTS) | in rtw89_core_get_no_ul_ofdma_htc()
1574 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_core_rx_process_phy_ppdu_iter() local
1576 u8 ant_num = hal->ant_diversity ? 2 : rtwdev->chip->rf_path_num; in rtw89_core_rx_process_phy_ppdu_iter()
1591 if (hal->ant_diversity && hal->antenna_rx) { in rtw89_core_rx_process_phy_ppdu_iter()
1592 ant_pos = __ffs(hal->antenna_rx); in rtw89_core_rx_process_phy_ppdu_iter()
3256 rtw89_write32_mask(rtwdev, reg, B_AX_RX_FLTR_CFG_MASK, rtwdev->hal.rx_fltr); in rtw89_roc_end()
3645 struct rtw89_hal *hal = &rtwdev->hal; in rtw89_core_sta_link_add() local
3646 u8 ant_num = hal->ant_diversity ? 2 : rtwdev->chip->rf_path_num; in rtw89_core_sta_link_add()
[all …]
/linux/drivers/net/wireless/realtek/rtw88/
H A Dsar.c11 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 Dmain.c742 struct rtw_hal *hal = &rtwdev->hal; in rtw_update_channel() local
743 u8 *cch_by_bw = hal->cch_by_bw; in rtw_update_channel()
812 hal->current_primary_channel_index = primary_channel_idx; in rtw_update_channel()
813 hal->current_band_width = bandwidth; in rtw_update_channel()
814 hal->primary_channel = primary_channel; in rtw_update_channel()
815 hal->current_channel = center_channel; in rtw_update_channel()
816 hal->current_band_type = band; in rtw_update_channel()
817 hal->sar_band = sar_band; in rtw_update_channel()
873 struct rtw_hal *hal = &rtwdev->hal; in rtw_set_channel() local
892 hal->current_primary_channel_index); in rtw_set_channel()
[all …]
H A Drtw8822b.c136 for (path = RF_PATH_A; path < rtwdev->hal.rf_path_num; path++) { in rtw8822b_pwrtrack_init()
154 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_phy_set_param() local
178 rtw8822b_config_trx_mode(rtwdev, hal->antenna_tx, hal->antenna_rx, in rtw8822b_phy_set_param()
292 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_rfe_efem() local
306 if (hal->antenna_rx == BB_PATH_AB || in rtw8822b_set_channel_rfe_efem()
307 hal->antenna_tx == BB_PATH_AB) { in rtw8822b_set_channel_rfe_efem()
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
336 if (hal->antenna_rx == BB_PATH_AB || in rtw8822b_set_channel_rfe_ifem()
337 hal->antenna_tx == BB_PATH_AB) { in rtw8822b_set_channel_rfe_ifem()
[all …]
H A Dmac80211.c292 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()
310 rtwdev->hal.rcr &= ~(BIT_CBSSID_BCN | BIT_CBSSID_DATA); in rtw_ops_configure_filter()
312 rtwdev->hal.rcr |= BIT_CBSSID_BCN; in rtw_ops_configure_filter()
317 changed_flags, *new_flags, rtwdev->hal.rcr); in rtw_ops_configure_filter()
319 rtw_write32(rtwdev, REG_RCR, rtwdev->hal.rcr); in rtw_ops_configure_filter()
[all …]
H A Ddebug.c592 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw_debugfs_get_rf_dump()
695 struct rtw_hal *hal = &rtwdev->hal; in rtw_debugfs_get_tx_pwr_tbl() local
700 bw = hal->current_band_width; in rtw_debugfs_get_tx_pwr_tbl()
701 ch = hal->current_channel; in rtw_debugfs_get_tx_pwr_tbl()
710 mutex_lock(&hal->tx_power_mutex); in rtw_debugfs_get_tx_pwr_tbl()
713 if (hal->current_band_type == RTW_BAND_5G) in rtw_debugfs_get_tx_pwr_tbl()
731 hal->tx_pwr_tbl[path][rate], in rtw_debugfs_get_tx_pwr_tbl()
732 hal->tx_pwr_tbl[path][rate], in rtw_debugfs_get_tx_pwr_tbl()
743 mutex_unlock(&hal->tx_power_mutex); in rtw_debugfs_get_tx_pwr_tbl()
753 struct rtw_hal *hal = &rtwdev->hal; in rtw_debugfs_get_simple_phy_info() local
[all …]
H A Dfw.c542 struct rtw_hal *hal = &rtwdev->hal; in rtw_fw_send_phydm_info() local
551 if (hal->rf_type == RF_1T1R) in rtw_fw_send_phydm_info()
553 else if (hal->rf_type == RF_2T2R) in rtw_fw_send_phydm_info()
561 PHYDM_INFO_SET_CUT_VER(h2c_pkt, hal->cut_version); in rtw_fw_send_phydm_info()
562 PHYDM_INFO_SET_RX_ANT_STATUS(h2c_pkt, hal->antenna_tx); in rtw_fw_send_phydm_info()
563 PHYDM_INFO_SET_TX_ANT_STATUS(h2c_pkt, hal->antenna_rx); in rtw_fw_send_phydm_info()
2240 rtwdev->hal.rcr &= ~BIT_CBSSID_BCN; in rtw_hw_scan_start()
2241 rtw_write32(rtwdev, REG_RCR, rtwdev->hal.rcr); in rtw_hw_scan_start()
2251 struct rtw_hal *hal = &rtwdev->hal; in rtw_hw_scan_complete() local
2258 rtwdev->hal.rcr |= BIT_CBSSID_BCN; in rtw_hw_scan_complete()
[all …]
H A Dregd.c464 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()
H A Drtw8822c.c1034 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_set_power_trim()
1077 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_power_trim()
1098 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_thermal_trim()
1117 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_pa_bias()
1125 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_pa_bias()
1184 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_rfk_power_save()
1460 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_txgapk_write_gain_bb_table()
1622 if (path >= rtwdev->hal.rf_path_num) in rtw8822c_txgapk_rf_restore()
1680 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_txgapk_write_tx_gain()
1747 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw8822c_txgapk_save_all_tx_gain_table()
[all …]
H A Drx.c87 for (i = 0; i < rtwdev->hal.rf_path_num; i++) { in rtw_rx_phy_stat()
154 int channel = rtwdev->hal.current_channel; in rtw_update_rx_freq_from_ie()
239 for (path = 0; path < rtwdev->hal.rf_path_num; path++) { in rtw_rx_fill_rx_status()
H A Dphy.h49 void rtw_phy_tx_power_by_rate_config(struct rtw_hal *hal);
50 void rtw_phy_tx_power_limit_config(struct rtw_hal *hal);
/linux/drivers/staging/rtl8723bs/hal/
H A Dsdio_ops.c393 struct hal_com_data *hal; in sdio_read_port() local
398 hal = GET_HAL_DATA(adapter); in sdio_read_port()
400 hal_sdio_get_cmd_addr_8723b(adapter, addr, hal->SdioRxFIFOCnt++, &addr); 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()
866 if (hal->sdio_hisr & SDIO_HISR_AVAL) { in sd_int_dpc()
873 if (hal->sdio_hisr & SDIO_HISR_CPWM1) { in sd_int_dpc()
881 if (hal->sdio_hisr & SDIO_HISR_TXERR) { in sd_int_dpc()
895 if (hal->sdio_hisr & SDIO_HISR_C2HCMD) { in sd_int_dpc()
918 if (hal->sdio_hisr & SDIO_HISR_RX_REQUEST) { in sd_int_dpc()
[all …]
/linux/drivers/net/wireless/ath/ath12k/
H A Dhal_rx.c48 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 Ddbring.c23 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()
H A Ddp_rx.c62 hdr = (struct ieee80211_hdr *)(skb->data + ab->hal.hal_desc_sz); in ath12k_dp_rx_h_more_frags()
71 hdr = (struct ieee80211_hdr *)(skb->data + ab->hal.hal_desc_sz); in ath12k_dp_rx_h_frag_no()
313 srng = &ab->hal.srng_list[rx_ring->refill_buf_ring.ring_id]; in ath12k_dp_rx_bufs_replenish()
603 cmd_ring = &ab->hal.srng_list[dp->reo_cmd_ring.ring_id]; in ath12k_dp_reo_cmd_send()
824 srng = &ab->hal.srng_list[dp->wbm_desc_rel_ring.ring_id]; in ath12k_dp_rx_link_desc_return()
1774 u32 hal_rx_desc_sz = ar->ab->hal.hal_desc_sz; in ath12k_dp_rx_msdu_coalesce()
2489 u32 hal_rx_desc_sz = ar->ab->hal.hal_desc_sz; in ath12k_dp_rx_process_msdu()
2635 srng = &ab->hal.srng_list[dp->reo_dst_ring[ring_id].ring_id]; in ath12k_dp_rx_process()
2850 u32 hdr_len, hal_rx_desc_sz = ar->ab->hal.hal_desc_sz; in ath12k_dp_rx_h_verify_tkip_mic()
2900 u32 hal_rx_desc_sz = ar->ab->hal.hal_desc_sz; in ath12k_dp_rx_h_undecap_frag()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Ddbring.c52 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_bufs_replenish()
116 srng = &ar->ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_fill_bufs()
207 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_buf_setup()
324 srng = &ab->hal.srng_list[ring->refill_srng.ring_id]; in ath11k_dbring_buffer_release_event()
H A Dhal_rx.c48 static int ath11k_hal_reo_cmd_flush_cache(struct ath11k_hal *hal, struct hal_tlv_hdr *tlv, in ath11k_hal_reo_cmd_flush_cache() argument
52 u8 avail_slot = ffz(hal->avail_blk_resource); in ath11k_hal_reo_cmd_flush_cache()
58 hal->current_blk_index = avail_slot; in ath11k_hal_reo_cmd_flush_cache()
240 ret = ath11k_hal_reo_cmd_flush_cache(&ab->hal, reo_desc, cmd); in ath11k_hal_reo_cmd_send()
530 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_reo_flush_cache_status() local
549 hal->avail_blk_resource |= BIT(hal->current_blk_index); in ath11k_hal_reo_flush_cache_status()
572 struct ath11k_hal *hal = &ab->hal; in ath11k_hal_reo_unblk_cache_status() local
594 hal->avail_blk_resource &= ~BIT(hal->current_blk_index); in ath11k_hal_reo_unblk_cache_status()
H A DMakefile4 hal.o \
/linux/drivers/staging/most/dim2/
H A DMakefile4 most_dim2-objs := dim2.o hal.o

123