/linux/drivers/staging/rtl8723bs/hal/ |
H A D | rtl8723b_phycfg.c | 96 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_RFSerialRead_8723B() local 97 struct bb_register_def *pPhyReg = &pHalData->PHYRegDef[eRFPath]; in phy_RFSerialRead_8723B() 192 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_RFSerialWrite_8723B() local 193 struct bb_register_def *pPhyReg = &pHalData->PHYRegDef[eRFPath]; in phy_RFSerialWrite_8723B() 292 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in PHY_MACConfig8723B() local 294 ODM_ReadAndConfig_MP_8723B_MAC_REG(&pHalData->odmpriv); in PHY_MACConfig8723B() 307 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in phy_InitBBRFRegisterDefinition() local 310 …pHalData->PHYRegDef[RF_PATH_A].rfintfs = rFPGA0_XAB_RFInterfaceSW; /* 16 LSBs if read 32-bit from… in phy_InitBBRFRegisterDefinition() 311 …pHalData->PHYRegDef[RF_PATH_B].rfintfs = rFPGA0_XAB_RFInterfaceSW; /* 16 MSBs if read 32-bit from… in phy_InitBBRFRegisterDefinition() 314 …pHalData->PHYRegDef[RF_PATH_A].rfintfo = rFPGA0_XA_RFInterfaceOE; /* 16 LSBs if read 32-bit from … in phy_InitBBRFRegisterDefinition() [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 | 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 | 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 | sdio_halinit.c | 134 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in _InitQueueReservedPage() local 144 if (pHalData->OutEpQueueSel & TX_SELE_HQ) in _InitQueueReservedPage() 147 if (pHalData->OutEpQueueSel & TX_SELE_LQ) in _InitQueueReservedPage() 151 if (pHalData->OutEpQueueSel & TX_SELE_NQ) in _InitQueueReservedPage() 214 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in _InitNormalChipOneOutEpPriority() local 217 switch (pHalData->OutEpQueueSel) { in _InitNormalChipOneOutEpPriority() 239 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in _InitNormalChipTwoOutEpPriority() local 247 switch (pHalData->OutEpQueueSel) { in _InitNormalChipTwoOutEpPriority() 312 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in _InitQueuePriority() local 314 switch (pHalData->OutEpNumber) { in _InitQueuePriority() [all …]
|
H A D | rtl8723b_hal_init.c | 259 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_FirmwareSelfReset() local 264 …!(IS_FW_81xxC(padapter) && ((pHalData->FirmwareVersion < 0x21) || (pHalData->FirmwareVersion == 0x… in rtl8723b_FirmwareSelfReset() 296 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_FirmwareDownload() local 372 pHalData->FirmwareVersion = le16_to_cpu(pFwHdr->version); in rtl8723b_FirmwareDownload() 373 pHalData->FirmwareSubVersion = le16_to_cpu(pFwHdr->subversion); in rtl8723b_FirmwareDownload() 374 pHalData->FirmwareSignature = le16_to_cpu(pFwHdr->signature); in rtl8723b_FirmwareDownload() 427 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtl8723b_InitializeFirmwareVars() local 436 pHalData->LastHMEBoxNum = 0; in rtl8723b_InitializeFirmwareVars() 456 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in hal_EfuseSwitchToBank() local 457 struct efuse_hal *pEfuseHal = &pHalData->EfuseHal; in hal_EfuseSwitchToBank() [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 | 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 …]
|
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 | hal_com.c | 106 struct hal_com_data *pHalData; in hal_com_config_channel_plan() local 109 pHalData = GET_HAL_DATA(padapter); in hal_com_config_channel_plan() 110 pHalData->bDisableSWChannelPlan = false; in hal_com_config_channel_plan() 122 pHalData->bDisableSWChannelPlan = true; in hal_com_config_channel_plan() 129 (false == pHalData->bDisableSWChannelPlan) && in hal_com_config_channel_plan() 478 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in rtw_init_hal_com_default_value() local 480 pHalData->AntDetection = 1; in rtw_init_hal_com_default_value() 819 struct hal_com_data *pHalData = GET_HAL_DATA(Adapter); in SetHalODMVar() local 820 struct dm_odm_t *podmpriv = &pHalData->odmpriv; in SetHalODMVar() 903 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_dump_raw_rssi_info() local [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()
|
H A D | rtl8723bs_xmit.c | 14 struct hal_com_data *pHalData = GET_HAL_DATA(padapter); in rtw_sdio_wait_enough_TxOQT_space() local 16 while (pHalData->SdioTxOQTFreeSpace < agg_num) { in rtw_sdio_wait_enough_TxOQT_space() 31 pHalData->SdioTxOQTFreeSpace -= agg_num; in rtw_sdio_wait_enough_TxOQT_space()
|