/linux/drivers/staging/rtl8723bs/hal/ |
H A D | hal_sdio.c | 13 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_hal_sdio_max_txoqt_free_space() local 15 if (pHalData->SdioTxOQTMaxFreeSpace < 8) in rtw_hal_sdio_max_txoqt_free_space() 16 pHalData->SdioTxOQTMaxFreeSpace = 8; in rtw_hal_sdio_max_txoqt_free_space() 18 return pHalData->SdioTxOQTMaxFreeSpace; in rtw_hal_sdio_max_txoqt_free_space() 25 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_hal_sdio_query_tx_freepage() local 27 …if ((pHalData->SdioTxFIFOFreePage[PageIdx]+pHalData->SdioTxFIFOFreePage[PUBLIC_QUEUE_IDX]) >= (Req… in rtw_hal_sdio_query_tx_freepage() 37 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_hal_sdio_update_tx_freepage() local 44 DedicatedPgNum = pHalData->SdioTxFIFOFreePage[PageIdx]; in rtw_hal_sdio_update_tx_freepage() 46 pHalData->SdioTxFIFOFreePage[PageIdx] -= RequiredPageNum; in rtw_hal_sdio_update_tx_freepage() 48 pHalData->SdioTxFIFOFreePage[PageIdx] = 0; in rtw_hal_sdio_update_tx_freepage() [all …]
|
H A D | hal_com_phycfg.c | 15 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in PHY_GetTxPowerByRateBase() local 23 value = pHalData->TxPwrByRateBase2_4G[RfPath][0]; in PHY_GetTxPowerByRateBase() 26 value = pHalData->TxPwrByRateBase2_4G[RfPath][1]; in PHY_GetTxPowerByRateBase() 29 value = pHalData->TxPwrByRateBase2_4G[RfPath][2]; in PHY_GetTxPowerByRateBase() 42 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_SetTxPowerByRateBase() local 49 pHalData->TxPwrByRateBase2_4G[RfPath][0] = Value; in phy_SetTxPowerByRateBase() 52 pHalData->TxPwrByRateBase2_4G[RfPath][1] = Value; in phy_SetTxPowerByRateBase() 55 pHalData->TxPwrByRateBase2_4G[RfPath][2] = Value; in phy_SetTxPowerByRateBase() 85 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in PHY_GetRateSectionIndexOfTxPowerByRate() local 86 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in PHY_GetRateSectionIndexOfTxPowerByRate() [all …]
|
H A D | rtl8723b_dm.c | 24 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in Init_ODM_ComInfo_8723b() local 25 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in Init_ODM_ComInfo_8723b() 26 struct dm_priv *pdmpriv = &pHalData->dmpriv; in Init_ODM_ComInfo_8723b() 38 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_PACKAGE_TYPE, pHalData->PackageType); in Init_ODM_ComInfo_8723b() 47 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_PATCH_ID, pHalData->CustomerID); in Init_ODM_ComInfo_8723b() 62 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in Update_ODM_ComInfo_8723b() local 63 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in Update_ODM_ComInfo_8723b() 64 struct dm_priv *pdmpriv = &pHalData->dmpriv; in Update_ODM_ComInfo_8723b() 93 ODM_CmnInfoHook(pDM_Odm, ODM_CMNINFO_SEC_CHNL_OFFSET, &(pHalData->nCur40MhzPrimeSC)); in Update_ODM_ComInfo_8723b() 95 ODM_CmnInfoHook(pDM_Odm, ODM_CMNINFO_BW, &(pHalData->CurrentChannelBW)); in Update_ODM_ComInfo_8723b() [all …]
|
H A 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 …]
|
H A 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 …]
|
H A D | HalPhyRf_8723B.c | 179 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in ODM_TxPwrTrackSetPwr_8723B() local 227 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, CCK); in ODM_TxPwrTrackSetPwr_8723B() 228 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 229 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() 263 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 264 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() 273 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 274 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() 282 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, OFDM); in ODM_TxPwrTrackSetPwr_8723B() 283 PHY_SetTxPowerIndexByRateSection(Adapter, RFPath, pHalData->CurrentChannel, HT_MCS0_MCS7); in ODM_TxPwrTrackSetPwr_8723B() [all …]
|
H A D | rtl8723b_cmd.c | 50 struct hal_com_data *pHalData; in FillH2CCmd8723B() local 56 pHalData = GET_HAL_DATA(padapter); in FillH2CCmd8723B() 73 h2c_box_num = pHalData->LastHMEBoxNum; in FillH2CCmd8723B() 95 pHalData->LastHMEBoxNum = (h2c_box_num+1) % MAX_H2C_BOX_NUMS; in FillH2CCmd8723B() 632 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_download_rsvd_page() local 662 if (pHalData->RegFwHwTxQCtrl & BIT(6)) in rtl8723b_download_rsvd_page() 666 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl & ~BIT(6)); in rtl8723b_download_rsvd_page() 667 pHalData->RegFwHwTxQCtrl &= ~BIT(6); in rtl8723b_download_rsvd_page() 707 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl | BIT(6)); in rtl8723b_download_rsvd_page() 708 pHalData->RegFwHwTxQCtrl |= BIT(6); in rtl8723b_download_rsvd_page() [all …]
|
H A D | hal_btcoex.c | 240 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in halbtcoutsrc_GetWifiRssi() local 242 return pHalData->dmpriv.EntryMinUndecoratedSmoothedPWDB; in halbtcoutsrc_GetWifiRssi() 266 struct hal_com_data *pHalData; in halbtcoutsrc_Get() local 279 pHalData = GET_HAL_DATA(padapter); in halbtcoutsrc_Get() 358 else if (pHalData->CurrentChannelBW == CHANNEL_WIDTH_20) in halbtcoutsrc_Get() 377 *pU4Tmp = pHalData->FirmwareVersion << 16; in halbtcoutsrc_Get() 378 *pU4Tmp |= pHalData->FirmwareSubVersion; in halbtcoutsrc_Get() 394 *pu8 = pHalData->CurrentChannel; in halbtcoutsrc_Get() 1144 struct hal_com_data *pHalData; in hal_btcoex_SetBTCoexist() local 1147 pHalData = GET_HAL_DATA(padapter); in hal_btcoex_SetBTCoexist() [all …]
|
H A 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()
|
H A 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()
|
H A 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()
|