/linux-6.6.21/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_phycfg.c | 97 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_RFSerialRead_8723B() local 98 struct bb_register_def *pPhyReg = &pHalData->PHYRegDef[eRFPath]; in phy_RFSerialRead_8723B() 193 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_RFSerialWrite_8723B() local 194 struct bb_register_def *pPhyReg = &pHalData->PHYRegDef[eRFPath]; in phy_RFSerialWrite_8723B() 293 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in PHY_MACConfig8723B() local 295 ODM_ReadAndConfig_MP_8723B_MAC_REG(&pHalData->odmpriv); in PHY_MACConfig8723B() 308 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_InitBBRFRegisterDefinition() local 311 …pHalData->PHYRegDef[RF_PATH_A].rfintfs = rFPGA0_XAB_RFInterfaceSW; /* 16 LSBs if read 32-bit from… in phy_InitBBRFRegisterDefinition() 312 …pHalData->PHYRegDef[RF_PATH_B].rfintfs = rFPGA0_XAB_RFInterfaceSW; /* 16 MSBs if read 32-bit from… in phy_InitBBRFRegisterDefinition() 315 …pHalData->PHYRegDef[RF_PATH_A].rfintfo = rFPGA0_XA_RFInterfaceOE; /* 16 LSBs if read 32-bit from … in phy_InitBBRFRegisterDefinition() [all …]
|
D | hal_sdio.c | 14 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_hal_sdio_max_txoqt_free_space() local 16 if (pHalData->SdioTxOQTMaxFreeSpace < 8) in rtw_hal_sdio_max_txoqt_free_space() 17 pHalData->SdioTxOQTMaxFreeSpace = 8; in rtw_hal_sdio_max_txoqt_free_space() 19 return pHalData->SdioTxOQTMaxFreeSpace; in rtw_hal_sdio_max_txoqt_free_space() 26 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_hal_sdio_query_tx_freepage() local 28 …if ((pHalData->SdioTxFIFOFreePage[PageIdx]+pHalData->SdioTxFIFOFreePage[PUBLIC_QUEUE_IDX]) >= (Req… in rtw_hal_sdio_query_tx_freepage() 38 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_hal_sdio_update_tx_freepage() local 45 DedicatedPgNum = pHalData->SdioTxFIFOFreePage[PageIdx]; in rtw_hal_sdio_update_tx_freepage() 47 pHalData->SdioTxFIFOFreePage[PageIdx] -= RequiredPageNum; in rtw_hal_sdio_update_tx_freepage() 49 pHalData->SdioTxFIFOFreePage[PageIdx] = 0; in rtw_hal_sdio_update_tx_freepage() [all …]
|
D | hal_com_phycfg.c | 16 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in PHY_GetTxPowerByRateBase() local 24 value = pHalData->TxPwrByRateBase2_4G[RfPath][0]; in PHY_GetTxPowerByRateBase() 27 value = pHalData->TxPwrByRateBase2_4G[RfPath][1]; in PHY_GetTxPowerByRateBase() 30 value = pHalData->TxPwrByRateBase2_4G[RfPath][2]; in PHY_GetTxPowerByRateBase() 43 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_SetTxPowerByRateBase() local 50 pHalData->TxPwrByRateBase2_4G[RfPath][0] = Value; in phy_SetTxPowerByRateBase() 53 pHalData->TxPwrByRateBase2_4G[RfPath][1] = Value; in phy_SetTxPowerByRateBase() 56 pHalData->TxPwrByRateBase2_4G[RfPath][2] = Value; in phy_SetTxPowerByRateBase() 86 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in PHY_GetRateSectionIndexOfTxPowerByRate() local 87 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in PHY_GetRateSectionIndexOfTxPowerByRate() [all …]
|
D | rtl8723b_dm.c | 25 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in Init_ODM_ComInfo_8723b() local 26 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in Init_ODM_ComInfo_8723b() 27 struct dm_priv *pdmpriv = &pHalData->dmpriv; in Init_ODM_ComInfo_8723b() 39 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_PACKAGE_TYPE, pHalData->PackageType); in Init_ODM_ComInfo_8723b() 48 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_PATCH_ID, pHalData->CustomerID); in Init_ODM_ComInfo_8723b() 63 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in Update_ODM_ComInfo_8723b() local 64 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in Update_ODM_ComInfo_8723b() 65 struct dm_priv *pdmpriv = &pHalData->dmpriv; in Update_ODM_ComInfo_8723b() 94 ODM_CmnInfoHook(pDM_Odm, ODM_CMNINFO_SEC_CHNL_OFFSET, &(pHalData->nCur40MhzPrimeSC)); in Update_ODM_ComInfo_8723b() 96 ODM_CmnInfoHook(pDM_Odm, ODM_CMNINFO_BW, &(pHalData->CurrentChannelBW)); in Update_ODM_ComInfo_8723b() [all …]
|
D | rtl8723b_rf6052.c | 61 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in PHY_RF6052SetBandwidth8723B() local 65 pHalData->RfRegChnlVal[0] = ((pHalData->RfRegChnlVal[0] & 0xfffff3ff) | BIT10 | BIT11); in PHY_RF6052SetBandwidth8723B() 66 PHY_SetRFReg(Adapter, RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]); in PHY_RF6052SetBandwidth8723B() 67 PHY_SetRFReg(Adapter, RF_PATH_B, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]); in PHY_RF6052SetBandwidth8723B() 71 pHalData->RfRegChnlVal[0] = ((pHalData->RfRegChnlVal[0] & 0xfffff3ff) | BIT10); in PHY_RF6052SetBandwidth8723B() 72 PHY_SetRFReg(Adapter, RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]); in PHY_RF6052SetBandwidth8723B() 73 PHY_SetRFReg(Adapter, RF_PATH_B, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]); in PHY_RF6052SetBandwidth8723B() 87 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_RF6052_Config_ParaFile() local 93 for (eRFPath = 0; eRFPath < pHalData->NumTotalRFPath; eRFPath++) { in phy_RF6052_Config_ParaFile() 95 pPhyReg = &pHalData->PHYRegDef[eRFPath]; in phy_RF6052_Config_ParaFile() [all …]
|
D | sdio_halinit.c | 135 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in _InitQueueReservedPage() local 145 if (pHalData->OutEpQueueSel & TX_SELE_HQ) in _InitQueueReservedPage() 148 if (pHalData->OutEpQueueSel & TX_SELE_LQ) in _InitQueueReservedPage() 152 if (pHalData->OutEpQueueSel & TX_SELE_NQ) in _InitQueueReservedPage() 215 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in _InitNormalChipOneOutEpPriority() local 218 switch (pHalData->OutEpQueueSel) { in _InitNormalChipOneOutEpPriority() 240 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in _InitNormalChipTwoOutEpPriority() local 248 switch (pHalData->OutEpQueueSel) { in _InitNormalChipTwoOutEpPriority() 313 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in _InitQueuePriority() local 315 switch (pHalData->OutEpNumber) { in _InitQueuePriority() [all …]
|
D | rtl8723b_hal_init.c | 260 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_FirmwareSelfReset() local 265 …!(IS_FW_81xxC(padapter) && ((pHalData->FirmwareVersion < 0x21) || (pHalData->FirmwareVersion == 0x… in rtl8723b_FirmwareSelfReset() 297 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_FirmwareDownload() local 373 pHalData->FirmwareVersion = le16_to_cpu(pFwHdr->version); in rtl8723b_FirmwareDownload() 374 pHalData->FirmwareSubVersion = le16_to_cpu(pFwHdr->subversion); in rtl8723b_FirmwareDownload() 375 pHalData->FirmwareSignature = le16_to_cpu(pFwHdr->signature); in rtl8723b_FirmwareDownload() 428 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_InitializeFirmwareVars() local 437 pHalData->LastHMEBoxNum = 0; in rtl8723b_InitializeFirmwareVars() 457 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in hal_EfuseSwitchToBank() local 458 struct efuse_hal *pEfuseHal = &pHalData->EfuseHal; in hal_EfuseSwitchToBank() [all …]
|
D | HalPhyRf.c | 26 struct hal_com_data *pHalData = GET_HAL_DATA(pDM_Odm->Adapter); in ODM_ClearTxPowerTrackingState() local 53 pDM_Odm->RFCalibrateInfo.ThermalValue = pHalData->EEPROMThermalMeter; in ODM_ClearTxPowerTrackingState() 54 pDM_Odm->RFCalibrateInfo.ThermalValue_IQK = pHalData->EEPROMThermalMeter; in ODM_ClearTxPowerTrackingState() 55 pDM_Odm->RFCalibrateInfo.ThermalValue_LCK = pHalData->EEPROMThermalMeter; in ODM_ClearTxPowerTrackingState() 61 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in ODM_TXPowerTrackingCallback_ThermalMeter() local 62 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in ODM_TXPowerTrackingCallback_ThermalMeter() 99 pHalData->EEPROMThermalMeter == 0 || in ODM_TXPowerTrackingCallback_ThermalMeter() 100 pHalData->EEPROMThermalMeter == 0xFF in ODM_TXPowerTrackingCallback_ThermalMeter() 148 ThermalValue > pHalData->EEPROMThermalMeter ? in ODM_TXPowerTrackingCallback_ThermalMeter() 149 (ThermalValue - pHalData->EEPROMThermalMeter) : in ODM_TXPowerTrackingCallback_ThermalMeter() [all …]
|
D | HalPhyRf_8723B.c | 180 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in ODM_TxPwrTrackSetPwr_8723B() local 228 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, CCK); in ODM_TxPwrTrackSetPwr_8723B() 229 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 230 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() 264 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 265 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() 274 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 275 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() 283 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 284 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() [all …]
|
D | rtl8723b_cmd.c | 51 struct hal_com_data *pHalData; in FillH2CCmd8723B() local 57 pHalData = GET_HAL_DATA(padapter); in FillH2CCmd8723B() 74 h2c_box_num = pHalData->LastHMEBoxNum; in FillH2CCmd8723B() 96 pHalData->LastHMEBoxNum = (h2c_box_num+1) % MAX_H2C_BOX_NUMS; in FillH2CCmd8723B() 633 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_download_rsvd_page() local 663 if (pHalData->RegFwHwTxQCtrl & BIT(6)) in rtl8723b_download_rsvd_page() 667 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl & ~BIT(6)); in rtl8723b_download_rsvd_page() 668 pHalData->RegFwHwTxQCtrl &= ~BIT(6); in rtl8723b_download_rsvd_page() 708 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl | BIT(6)); in rtl8723b_download_rsvd_page() 709 pHalData->RegFwHwTxQCtrl |= BIT(6); in rtl8723b_download_rsvd_page() [all …]
|
D | odm.c | 541 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in FindMinimumRSSI() local 542 struct dm_priv *pdmpriv = &pHalData->dmpriv; in FindMinimumRSSI() 543 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in FindMinimumRSSI() 559 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in odm_RSSIMonitorCheckCE() local 560 struct dm_priv *pdmpriv = &pHalData->dmpriv; in odm_RSSIMonitorCheckCE() 600 if (pHalData->fw_ractrl == true)/* Report every sta's RSSI to FW */ in odm_RSSIMonitorCheckCE() 679 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in odm_TXPowerTrackingInit() local 682 struct dm_priv *pdmpriv = &pHalData->dmpriv; in odm_TXPowerTrackingInit() 694 pDM_Odm->RFCalibrateInfo.ThermalValue = pHalData->EEPROMThermalMeter; in odm_TXPowerTrackingInit() 695 pDM_Odm->RFCalibrateInfo.ThermalValue_IQK = pHalData->EEPROMThermalMeter; in odm_TXPowerTrackingInit() [all …]
|
D | hal_btcoex.c | 241 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in halbtcoutsrc_GetWifiRssi() local 243 return pHalData->dmpriv.EntryMinUndecoratedSmoothedPWDB; in halbtcoutsrc_GetWifiRssi() 267 struct hal_com_data *pHalData; in halbtcoutsrc_Get() local 280 pHalData = GET_HAL_DATA(padapter); in halbtcoutsrc_Get() 359 else if (pHalData->CurrentChannelBW == CHANNEL_WIDTH_20) in halbtcoutsrc_Get() 378 *pU4Tmp = pHalData->FirmwareVersion << 16; in halbtcoutsrc_Get() 379 *pU4Tmp |= pHalData->FirmwareSubVersion; in halbtcoutsrc_Get() 395 *pu8 = pHalData->CurrentChannel; in halbtcoutsrc_Get() 1145 struct hal_com_data *pHalData; in hal_btcoex_SetBTCoexist() local 1148 pHalData = GET_HAL_DATA(padapter); in hal_btcoex_SetBTCoexist() [all …]
|
D | hal_com.c | 107 struct hal_com_data *pHalData; in hal_com_config_channel_plan() local 110 pHalData = GET_HAL_DATA(padapter); in hal_com_config_channel_plan() 111 pHalData->bDisableSWChannelPlan = false; in hal_com_config_channel_plan() 123 pHalData->bDisableSWChannelPlan = true; in hal_com_config_channel_plan() 130 (false == pHalData->bDisableSWChannelPlan) && in hal_com_config_channel_plan() 479 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in rtw_init_hal_com_default_value() local 481 pHalData->AntDetection = 1; in rtw_init_hal_com_default_value() 820 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in SetHalODMVar() local 821 struct dm_odm_t *podmpriv = &pHalData->odmpriv; in SetHalODMVar() 904 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_dump_raw_rssi_info() local [all …]
|
D | odm_DynamicTxPower.c | 15 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in odm_DynamicTxPowerInit() local 16 struct dm_priv *pdmpriv = &pHalData->dmpriv; in odm_DynamicTxPowerInit()
|
D | odm_EdcaTurboCheck.c | 75 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in odm_EdcaTurboCheckCE() local 154 rtw_write32(Adapter, REG_EDCA_BE_PARAM, pHalData->AcParam_BE); in odm_EdcaTurboCheckCE()
|
D | odm_CfoTracking.c | 35 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in odm_GetDefaultCrytaltalCap() local 37 return pHalData->CrystalCap & 0x3f; in odm_GetDefaultCrytaltalCap()
|
D | rtl8723bs_xmit.c | 15 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_sdio_wait_enough_TxOQT_space() local 17 while (pHalData->SdioTxOQTFreeSpace < agg_num) { in rtw_sdio_wait_enough_TxOQT_space() 32 pHalData->SdioTxOQTFreeSpace -= agg_num; in rtw_sdio_wait_enough_TxOQT_space()
|
/linux-6.6.21/drivers/staging/rtl8192u/ |
D | r8192U_dm.c | 2786 SetTxPowerLevel8190(Adapter, pHalData->CurrentChannel); in dm_dynamic_txpower()
|