/Linux-v5.10/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_phycfg.c | 131 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_RFSerialRead_8723B() local 132 struct bb_register_def *pPhyReg = &pHalData->PHYRegDef[eRFPath]; in phy_RFSerialRead_8723B() 237 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_RFSerialWrite_8723B() local 238 struct bb_register_def *pPhyReg = &pHalData->PHYRegDef[eRFPath]; in phy_RFSerialWrite_8723B() 365 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in PHY_MACConfig8723B() local 367 ODM_ReadAndConfig_MP_8723B_MAC_REG(&pHalData->odmpriv); in PHY_MACConfig8723B() 385 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_InitBBRFRegisterDefinition() local 388 …pHalData->PHYRegDef[ODM_RF_PATH_A].rfintfs = rFPGA0_XAB_RFInterfaceSW; /* 16 LSBs if read 32-bit … in phy_InitBBRFRegisterDefinition() 389 …pHalData->PHYRegDef[ODM_RF_PATH_B].rfintfs = rFPGA0_XAB_RFInterfaceSW; /* 16 MSBs if read 32-bit … in phy_InitBBRFRegisterDefinition() 392 …pHalData->PHYRegDef[ODM_RF_PATH_A].rfintfo = rFPGA0_XA_RFInterfaceOE; /* 16 LSBs if read 32-bit f… in phy_InitBBRFRegisterDefinition() [all …]
|
D | hal_sdio.c | 15 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_hal_sdio_max_txoqt_free_space() local 17 if (pHalData->SdioTxOQTMaxFreeSpace < 8) in rtw_hal_sdio_max_txoqt_free_space() 18 pHalData->SdioTxOQTMaxFreeSpace = 8; in rtw_hal_sdio_max_txoqt_free_space() 20 return pHalData->SdioTxOQTMaxFreeSpace; in rtw_hal_sdio_max_txoqt_free_space() 27 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_hal_sdio_query_tx_freepage() local 29 …if ((pHalData->SdioTxFIFOFreePage[PageIdx]+pHalData->SdioTxFIFOFreePage[PUBLIC_QUEUE_IDX]) >= (Req… in rtw_hal_sdio_query_tx_freepage() 39 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_hal_sdio_update_tx_freepage() local 46 DedicatedPgNum = pHalData->SdioTxFIFOFreePage[PageIdx]; in rtw_hal_sdio_update_tx_freepage() 48 pHalData->SdioTxFIFOFreePage[PageIdx] -= RequiredPageNum; in rtw_hal_sdio_update_tx_freepage() 50 pHalData->SdioTxFIFOFreePage[PageIdx] = 0; in rtw_hal_sdio_update_tx_freepage() [all …]
|
D | rtl8723b_dm.c | 27 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in Init_ODM_ComInfo_8723b() local 28 PDM_ODM_T pDM_Odm = &(pHalData->odmpriv); in Init_ODM_ComInfo_8723b() 29 struct dm_priv *pdmpriv = &pHalData->dmpriv; in Init_ODM_ComInfo_8723b() 41 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_PACKAGE_TYPE, pHalData->PackageType); in Init_ODM_ComInfo_8723b() 50 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_MP_TEST_CHIP, IS_NORMAL_CHIP(pHalData->VersionID)); in Init_ODM_ComInfo_8723b() 52 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_PATCH_ID, pHalData->CustomerID); in Init_ODM_ComInfo_8723b() 57 if (pHalData->rf_type == RF_1T1R) { in Init_ODM_ComInfo_8723b() 59 } else if (pHalData->rf_type == RF_2T2R) { in Init_ODM_ComInfo_8723b() 61 } else if (pHalData->rf_type == RF_1T2R) { in Init_ODM_ComInfo_8723b() 76 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in Update_ODM_ComInfo_8723b() local [all …]
|
D | hal_com_phycfg.c | 17 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in PHY_GetTxPowerByRateBase() local 28 value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][0]; in PHY_GetTxPowerByRateBase() 31 value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][1]; in PHY_GetTxPowerByRateBase() 34 value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][2]; in PHY_GetTxPowerByRateBase() 37 value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][3]; in PHY_GetTxPowerByRateBase() 40 value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][4]; in PHY_GetTxPowerByRateBase() 43 value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][5]; in PHY_GetTxPowerByRateBase() 46 value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][6]; in PHY_GetTxPowerByRateBase() 49 value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][7]; in PHY_GetTxPowerByRateBase() 52 value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][8]; in PHY_GetTxPowerByRateBase() [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, ODM_RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]); in PHY_RF6052SetBandwidth8723B() 67 PHY_SetRFReg(Adapter, ODM_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, ODM_RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]); in PHY_RF6052SetBandwidth8723B() 73 PHY_SetRFReg(Adapter, ODM_RF_PATH_B, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]); in PHY_RF6052SetBandwidth8723B() 88 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_RF6052_Config_ParaFile() local 94 for (eRFPath = 0; eRFPath < pHalData->NumTotalRFPath; eRFPath++) { in phy_RF6052_Config_ParaFile() 96 pPhyReg = &pHalData->PHYRegDef[eRFPath]; in phy_RF6052_Config_ParaFile() [all …]
|
D | rtl8723b_hal_init.c | 319 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_FirmwareSelfReset() local 324 …!(IS_FW_81xxC(padapter) && ((pHalData->FirmwareVersion < 0x21) || (pHalData->FirmwareVersion == 0x… in rtl8723b_FirmwareSelfReset() 358 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_FirmwareDownload() local 448 pHalData->FirmwareVersion = le16_to_cpu(pFwHdr->version); in rtl8723b_FirmwareDownload() 449 pHalData->FirmwareSubVersion = le16_to_cpu(pFwHdr->subversion); in rtl8723b_FirmwareDownload() 450 pHalData->FirmwareSignature = le16_to_cpu(pFwHdr->signature); in rtl8723b_FirmwareDownload() 455 pHalData->FirmwareVersion, in rtl8723b_FirmwareDownload() 456 pHalData->FirmwareSubVersion, in rtl8723b_FirmwareDownload() 457 pHalData->FirmwareSignature, in rtl8723b_FirmwareDownload() 523 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_InitializeFirmwareVars() local [all …]
|
D | sdio_halinit.c | 222 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in _InitQueueReservedPage() local 232 if (pHalData->OutEpQueueSel & TX_SELE_HQ) in _InitQueueReservedPage() 235 if (pHalData->OutEpQueueSel & TX_SELE_LQ) in _InitQueueReservedPage() 239 if (pHalData->OutEpQueueSel & TX_SELE_NQ) in _InitQueueReservedPage() 302 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in _InitNormalChipOneOutEpPriority() local 305 switch (pHalData->OutEpQueueSel) { in _InitNormalChipOneOutEpPriority() 328 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in _InitNormalChipTwoOutEpPriority() local 336 switch (pHalData->OutEpQueueSel) { in _InitNormalChipTwoOutEpPriority() 402 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in _InitQueuePriority() local 404 switch (pHalData->OutEpNumber) { in _InitQueuePriority() [all …]
|
D | HalPhyRf.c | 41 struct hal_com_data *pHalData = GET_HAL_DATA(pDM_Odm->Adapter); in ODM_ClearTxPowerTrackingState() local 68 pDM_Odm->RFCalibrateInfo.ThermalValue = pHalData->EEPROMThermalMeter; in ODM_ClearTxPowerTrackingState() 69 pDM_Odm->RFCalibrateInfo.ThermalValue_IQK = pHalData->EEPROMThermalMeter; in ODM_ClearTxPowerTrackingState() 70 pDM_Odm->RFCalibrateInfo.ThermalValue_LCK = pHalData->EEPROMThermalMeter; in ODM_ClearTxPowerTrackingState() 76 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in ODM_TXPowerTrackingCallback_ThermalMeter() local 77 PDM_ODM_T pDM_Odm = &pHalData->odmpriv; in ODM_TXPowerTrackingCallback_ThermalMeter() 126 pHalData->EEPROMThermalMeter == 0 || in ODM_TXPowerTrackingCallback_ThermalMeter() 127 pHalData->EEPROMThermalMeter == 0xFF in ODM_TXPowerTrackingCallback_ThermalMeter() 164 pHalData->EEPROMThermalMeter in ODM_TXPowerTrackingCallback_ThermalMeter() 218 ThermalValue > pHalData->EEPROMThermalMeter ? in ODM_TXPowerTrackingCallback_ThermalMeter() [all …]
|
D | HalPhyRf_8723B.c | 195 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in ODM_TxPwrTrackSetPwr_8723B() local 248 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, CCK); in ODM_TxPwrTrackSetPwr_8723B() 249 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 250 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() 288 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 289 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() 302 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 303 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() 318 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 319 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() [all …]
|
D | hal_btcoex.c | 318 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in halbtcoutsrc_GetWifiRssi() local 320 return pHalData->dmpriv.EntryMinUndecoratedSmoothedPWDB; in halbtcoutsrc_GetWifiRssi() 344 struct hal_com_data *pHalData; in halbtcoutsrc_Get() local 357 pHalData = GET_HAL_DATA(padapter); in halbtcoutsrc_Get() 402 *pu8 = pHalData->CurrentBandType == 1; in halbtcoutsrc_Get() 440 else if (pHalData->CurrentChannelBW == CHANNEL_WIDTH_20) in halbtcoutsrc_Get() 459 *pU4Tmp = pHalData->FirmwareVersion << 16; in halbtcoutsrc_Get() 460 *pU4Tmp |= pHalData->FirmwareSubVersion; in halbtcoutsrc_Get() 476 *pu8 = pHalData->CurrentChannel; in halbtcoutsrc_Get() 1280 struct hal_com_data *pHalData; in hal_btcoex_SetBTCoexist() local [all …]
|
D | hal_com.c | 117 struct hal_com_data *pHalData; in hal_com_config_channel_plan() local 120 pHalData = GET_HAL_DATA(padapter); in hal_com_config_channel_plan() 121 pHalData->bDisableSWChannelPlan = false; in hal_com_config_channel_plan() 134 pHalData->bDisableSWChannelPlan = true; in hal_com_config_channel_plan() 142 (false == pHalData->bDisableSWChannelPlan) && in hal_com_config_channel_plan() 880 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in rtw_init_hal_com_default_value() local 882 pHalData->AntDetection = 1; in rtw_init_hal_com_default_value() 1265 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in GetHalODMVar() local 1267 *(s16 *)pValue2 = pHalData->noise[chan]; in GetHalODMVar() 1270 chan, pHalData->noise[chan]); in GetHalODMVar() [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.c | 1217 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in FindMinimumRSSI() local 1218 struct dm_priv *pdmpriv = &pHalData->dmpriv; in FindMinimumRSSI() 1219 PDM_ODM_T pDM_Odm = &(pHalData->odmpriv); in FindMinimumRSSI() 1239 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in odm_RSSIMonitorCheckCE() local 1240 struct dm_priv *pdmpriv = &pHalData->dmpriv; in odm_RSSIMonitorCheckCE() 1280 if (pHalData->fw_ractrl == true)/* Report every sta's RSSI to FW */ in odm_RSSIMonitorCheckCE() 1337 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in odm_TXPowerTrackingInit() local 1340 struct dm_priv *pdmpriv = &pHalData->dmpriv; in odm_TXPowerTrackingInit() 1355 pDM_Odm->RFCalibrateInfo.ThermalValue = pHalData->EEPROMThermalMeter; in odm_TXPowerTrackingInit() 1356 pDM_Odm->RFCalibrateInfo.ThermalValue_IQK = pHalData->EEPROMThermalMeter; in odm_TXPowerTrackingInit() [all …]
|
D | rtl8723b_cmd.c | 58 struct hal_com_data *pHalData; in FillH2CCmd8723B() local 64 pHalData = GET_HAL_DATA(padapter); in FillH2CCmd8723B() 81 h2c_box_num = pHalData->LastHMEBoxNum; in FillH2CCmd8723B() 110 pHalData->LastHMEBoxNum = (h2c_box_num+1) % MAX_H2C_BOX_NUMS; in FillH2CCmd8723B() 1818 struct hal_com_data *pHalData; in rtl8723b_set_AP_FwRsvdPagePkt() local 1838 pHalData = GET_HAL_DATA(padapter); in rtl8723b_set_AP_FwRsvdPagePkt() 1924 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_download_rsvd_page() local 1960 if (pHalData->RegFwHwTxQCtrl & BIT(6)) in rtl8723b_download_rsvd_page() 1964 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl & ~BIT(6)); in rtl8723b_download_rsvd_page() 1965 pHalData->RegFwHwTxQCtrl &= ~BIT(6); in rtl8723b_download_rsvd_page() [all …]
|
D | odm_EdcaTurboCheck.c | 93 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in odm_EdcaTurboCheckCE() local 174 rtw_write32(Adapter, REG_EDCA_BE_PARAM, pHalData->AcParam_BE); in odm_EdcaTurboCheckCE()
|
D | rtl8723bs_xmit.c | 16 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_sdio_wait_enough_TxOQT_space() local 18 while (pHalData->SdioTxOQTFreeSpace < agg_num) { in rtw_sdio_wait_enough_TxOQT_space() 32 __func__, n, pHalData->SdioTxOQTFreeSpace, agg_num); in rtw_sdio_wait_enough_TxOQT_space() 39 pHalData->SdioTxOQTFreeSpace -= agg_num; in rtw_sdio_wait_enough_TxOQT_space()
|
D | odm_CfoTracking.c | 45 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in odm_GetDefaultCrytaltalCap() local 47 return pHalData->CrystalCap & 0x3f; in odm_GetDefaultCrytaltalCap()
|
/Linux-v5.10/drivers/staging/rtl8188eu/hal/ |
D | rtl8188e_hal_init.c | 120 struct hal_data_8188e *pHalData = padapter->HalData; in rtw_hal_read_chip_version() local 129 pHalData->VersionID = ChipVersion; in rtw_hal_read_chip_version() 417 struct hal_data_8188e *pHalData = padapter->HalData; in Hal_ReadTxPowerInfo88E() local 425 pHalData->bTXPowerDataReadFromEEPORM = true; in Hal_ReadTxPowerInfo88E() 429 pHalData->Index24G_CCK_Base[0][ch] = pwrInfo24G.IndexCCK_Base[0][group]; in Hal_ReadTxPowerInfo88E() 431 pHalData->Index24G_BW40_Base[0][ch] = pwrInfo24G.IndexBW40_Base[0][4]; in Hal_ReadTxPowerInfo88E() 433 pHalData->Index24G_BW40_Base[0][ch] = pwrInfo24G.IndexBW40_Base[0][group]; in Hal_ReadTxPowerInfo88E() 436 DBG_88E("Index24G_CCK_Base[%d][%d] = 0x%x\n", 0, ch, pHalData->Index24G_CCK_Base[0][ch]); in Hal_ReadTxPowerInfo88E() 437 DBG_88E("Index24G_BW40_Base[%d][%d] = 0x%x\n", 0, ch, pHalData->Index24G_BW40_Base[0][ch]); in Hal_ReadTxPowerInfo88E() 440 pHalData->CCK_24G_Diff[0][TxCount] = pwrInfo24G.CCK_Diff[0][TxCount]; in Hal_ReadTxPowerInfo88E() [all …]
|
/Linux-v5.10/drivers/staging/rtl8723bs/core/ |
D | rtw_odm.c | 154 struct hal_com_data *pHalData = GET_HAL_DATA(adapter); in rtw_odm_adaptivity_parm_msg() local 155 DM_ODM_T *odm = &pHalData->odmpriv; in rtw_odm_adaptivity_parm_msg() 175 struct hal_com_data *pHalData = GET_HAL_DATA(adapter); in rtw_odm_adaptivity_parm_set() local 176 DM_ODM_T *odm = &pHalData->odmpriv; in rtw_odm_adaptivity_parm_set()
|
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_linux.c | 3089 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_dbg_port() local 3090 PDM_ODM_T pDM_Odm = &pHalData->odmpriv; in rtw_dbg_port()
|
/Linux-v5.10/drivers/staging/rtl8192u/ |
D | r8192U_dm.c | 2980 SetTxPowerLevel8190(Adapter, pHalData->CurrentChannel); in dm_dynamic_txpower()
|