/Linux-v6.1/drivers/staging/r8188eu/hal/ |
D | odm_RTL8188E.c | 6 static void odm_RX_HWAntDivInit(struct odm_dm_struct *dm_odm) in odm_RX_HWAntDivInit() argument 8 struct adapter *adapter = dm_odm->Adapter; in odm_RX_HWAntDivInit() 24 ODM_UpdateRxIdleAnt_88E(dm_odm, MAIN_ANT); in odm_RX_HWAntDivInit() 28 static void odm_TRX_HWAntDivInit(struct odm_dm_struct *dm_odm) in odm_TRX_HWAntDivInit() argument 30 struct adapter *adapter = dm_odm->Adapter; in odm_TRX_HWAntDivInit() 48 ODM_UpdateRxIdleAnt_88E(dm_odm, MAIN_ANT); in odm_TRX_HWAntDivInit() 51 if (!dm_odm->bIsMPChip) { /* testchip */ in odm_TRX_HWAntDivInit() 59 static void odm_FastAntTrainingInit(struct odm_dm_struct *dm_odm) in odm_FastAntTrainingInit() argument 61 struct adapter *adapter = dm_odm->Adapter; in odm_FastAntTrainingInit() 80 if (!dm_odm->bIsMPChip) { /* testchip */ in odm_FastAntTrainingInit() [all …]
|
D | HalPhyRf_8188e.c | 33 void ODM_TxPwrTrackAdjust88E(struct odm_dm_struct *dm_odm, u8 Type,/* 0 = OFDM, 1 = CCK */ in ODM_TxPwrTrackAdjust88E() argument 42 if (dm_odm->BbSwingIdxOfdm <= dm_odm->BbSwingIdxOfdmBase) { in ODM_TxPwrTrackAdjust88E() 44 pwr_value = (dm_odm->BbSwingIdxOfdmBase - dm_odm->BbSwingIdxOfdm); in ODM_TxPwrTrackAdjust88E() 47 pwr_value = (dm_odm->BbSwingIdxOfdm - dm_odm->BbSwingIdxOfdmBase); in ODM_TxPwrTrackAdjust88E() 50 if (dm_odm->BbSwingIdxCck <= dm_odm->BbSwingIdxCckBase) { in ODM_TxPwrTrackAdjust88E() 52 pwr_value = (dm_odm->BbSwingIdxCckBase - dm_odm->BbSwingIdxCck); in ODM_TxPwrTrackAdjust88E() 55 pwr_value = (dm_odm->BbSwingIdxCck - dm_odm->BbSwingIdxCckBase); in ODM_TxPwrTrackAdjust88E() 86 static void odm_TxPwrTrackSetPwr88E(struct odm_dm_struct *dm_odm) in odm_TxPwrTrackSetPwr88E() argument 88 if (dm_odm->BbSwingFlagOfdm || dm_odm->BbSwingFlagCck) { in odm_TxPwrTrackSetPwr88E() 89 PHY_SetTxPowerLevel8188E(dm_odm->Adapter, *dm_odm->pChannel); in odm_TxPwrTrackSetPwr88E() [all …]
|
D | rtl8188e_dm.c | 35 struct odm_dm_struct *dm_odm = &hal_data->odmpriv; in Update_ODM_ComInfo_88E() local 43 dm_odm->SupportAbility = pdmpriv->InitODMFlag; in Update_ODM_ComInfo_88E() 45 dm_odm->pWirelessMode = &pmlmeext->cur_wireless_mode; in Update_ODM_ComInfo_88E() 46 dm_odm->pSecChOffset = &hal_data->nCur40MhzPrimeSC; in Update_ODM_ComInfo_88E() 47 dm_odm->pBandWidth = &hal_data->CurrentChannelBW; in Update_ODM_ComInfo_88E() 48 dm_odm->pChannel = &hal_data->CurrentChannel; in Update_ODM_ComInfo_88E() 49 dm_odm->pbScanInProcess = &pmlmepriv->bScanInProcess; in Update_ODM_ComInfo_88E() 50 dm_odm->pbPowerSaving = &pwrctrlpriv->bpower_saving; in Update_ODM_ComInfo_88E() 52 ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_RF_ANTENNA_TYPE, hal_data->TRxAntDivType); in Update_ODM_ComInfo_88E() 55 dm_odm->pODM_StaInfo[i] = NULL; in Update_ODM_ComInfo_88E() [all …]
|
D | Hal8188ERateAdaptive.c | 81 struct odm_dm_struct *dm_odm, in odm_SetTxRPTTiming_8188E() argument 105 static int odm_RateDown_8188E(struct odm_dm_struct *dm_odm, struct odm_ra_info *pRaInfo) in odm_RateDown_8188E() argument 147 odm_SetTxRPTTiming_8188E(dm_odm, pRaInfo, 2); in odm_RateDown_8188E() 152 struct odm_dm_struct *dm_odm, in odm_RateUp_8188E() argument 170 odm_SetTxRPTTiming_8188E(dm_odm, pRaInfo, 0); in odm_RateUp_8188E() 206 static void odm_RateDecision_8188E(struct odm_dm_struct *dm_odm, in odm_RateDecision_8188E() argument 255 odm_RateDown_8188E(dm_odm, pRaInfo); in odm_RateDecision_8188E() 257 odm_RateUp_8188E(dm_odm, pRaInfo); in odm_RateDecision_8188E() 268 odm_SetTxRPTTiming_8188E(dm_odm, pRaInfo, 1); in odm_RateDecision_8188E() 278 static int odm_ARFBRefresh_8188E(struct odm_dm_struct *dm_odm, struct odm_ra_info *pRaInfo) in odm_ARFBRefresh_8188E() argument [all …]
|
D | odm_HWConfig.c | 16 static s32 odm_signal_scale_mapping(struct odm_dm_struct *dm_odm, s32 currsig) in odm_signal_scale_mapping() argument 51 static void odm_RxPhyStatus92CSeries_Parsing(struct odm_dm_struct *dm_odm, in odm_RxPhyStatus92CSeries_Parsing() argument 76 cck_highpwr = dm_odm->bCckHighPower; in odm_RxPhyStatus92CSeries_Parsing() 155 if (dm_odm->RFPathRxEnable & BIT(i)) in odm_RxPhyStatus92CSeries_Parsing() 171 dm_odm->PhyDbgInfo.RxSNRdB[i] = (s32)(pPhyStaRpt->path_rxsnr[i] / 2); in odm_RxPhyStatus92CSeries_Parsing() 203 pPhyInfo->SignalStrength = (u8)(odm_signal_scale_mapping(dm_odm, PWDB_ALL));/* PWDB_ALL; */ in odm_RxPhyStatus92CSeries_Parsing() 206 pPhyInfo->SignalStrength = (u8)(odm_signal_scale_mapping(dm_odm, total_rssi /= rf_rx_num)); in odm_RxPhyStatus92CSeries_Parsing() 210 dm_odm->DM_FatTable.antsel_rx_keep_0 = pPhyStaRpt->ant_sel; in odm_RxPhyStatus92CSeries_Parsing() 211 dm_odm->DM_FatTable.antsel_rx_keep_1 = pPhyStaRpt->ant_sel_b; in odm_RxPhyStatus92CSeries_Parsing() 212 dm_odm->DM_FatTable.antsel_rx_keep_2 = pPhyStaRpt->antsel_rx_keep_2; in odm_RxPhyStatus92CSeries_Parsing() [all …]
|
D | HalHWImg8188E_BB.c | 176 int ODM_ReadAndConfig_AGC_TAB_1T_8188E(struct odm_dm_struct *dm_odm) in ODM_ReadAndConfig_AGC_TAB_1T_8188E() argument 183 struct adapter *adapter = dm_odm->Adapter; in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 211 odm_ConfigBB_AGC_8188E(dm_odm, v1, bMaskDWord, v2); in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 234 odm_ConfigBB_AGC_8188E(dm_odm, v1, bMaskDWord, v2); in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 245 if (!rtl8188e_IOL_exec_cmds_sync(dm_odm->Adapter, pxmit_frame, 1000, bndy_cnt)) { in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 475 int ODM_ReadAndConfig_PHY_REG_1T_8188E(struct odm_dm_struct *dm_odm) in ODM_ReadAndConfig_PHY_REG_1T_8188E() argument 482 struct adapter *adapter = dm_odm->Adapter; in ODM_ReadAndConfig_PHY_REG_1T_8188E() 521 dm_odm->RFCalibrateInfo.RegA24 = v2; in ODM_ReadAndConfig_PHY_REG_1T_8188E() 525 odm_ConfigBB_PHY_8188E(dm_odm, v1, bMaskDWord, v2); in ODM_ReadAndConfig_PHY_REG_1T_8188E() 559 dm_odm->RFCalibrateInfo.RegA24 = v2; in ODM_ReadAndConfig_PHY_REG_1T_8188E() [all …]
|
D | HalHWImg8188E_MAC.c | 134 int ODM_ReadAndConfig_MAC_REG_8188E(struct odm_dm_struct *dm_odm) in ODM_ReadAndConfig_MAC_REG_8188E() argument 144 struct adapter *adapt = dm_odm->Adapter; in ODM_ReadAndConfig_MAC_REG_8188E() 172 odm_ConfigMAC_8188E(dm_odm, v1, (u8)v2); in ODM_ReadAndConfig_MAC_REG_8188E() 195 odm_ConfigMAC_8188E(dm_odm, v1, (u8)v2); in ODM_ReadAndConfig_MAC_REG_8188E() 206 if (!rtl8188e_IOL_exec_cmds_sync(dm_odm->Adapter, pxmit_frame, 1000, bndy_cnt)) { in ODM_ReadAndConfig_MAC_REG_8188E()
|
/Linux-v6.1/drivers/staging/r8188eu/include/ |
D | Hal8188ERateAdaptive.h | 27 int ODM_RAInfo_Init_all(struct odm_dm_struct *dm_odm); 29 int ODM_RAInfo_Init(struct odm_dm_struct *dm_odm, u8 MacID); 31 u8 ODM_RA_GetShortGI_8188E(struct odm_dm_struct *dm_odm, u8 MacID); 33 u8 ODM_RA_GetDecisionRate_8188E(struct odm_dm_struct *dm_odm, u8 MacID); 35 u8 ODM_RA_GetHwPwrStatus_8188E(struct odm_dm_struct *dm_odm, u8 MacID); 36 void ODM_RA_UpdateRateInfo_8188E(struct odm_dm_struct *dm_odm, u8 MacID, 40 void ODM_RA_SetRSSI_8188E(struct odm_dm_struct *dm_odm, u8 macid, 43 void ODM_RA_TxRPT2Handle_8188E(struct odm_dm_struct *dm_odm, 47 void ODM_RA_Set_TxRPT_Time(struct odm_dm_struct *dm_odm, u16 minRptTime);
|
D | HalHWImg8188E_BB.h | 25 void ODM_ReadAndConfig_PHY_REG_PG_8188E(struct odm_dm_struct *dm_odm);
|
/Linux-v6.1/drivers/staging/rtl8723bs/hal/ |
D | odm_HWConfig.c | 24 s32 odm_signal_scale_mapping(struct dm_odm_t *dm_odm, s32 curr_sig) in odm_signal_scale_mapping() argument 28 if (dm_odm->SupportInterface == ODM_ITRF_SDIO) { in odm_signal_scale_mapping() 101 static void odm_rx_phy_status_parsing(struct dm_odm_t *dm_odm, in odm_rx_phy_status_parsing() argument 123 dm_odm->PhyDbgInfo.NumQryPhyStatusCCK++; in odm_rx_phy_status_parsing() 154 if (phy_info->rx_pwd_ba11 > 40 && !dm_odm->bInHctTest) in odm_rx_phy_status_parsing() 173 dm_odm->PhyDbgInfo.NumQryPhyStatusOFDM++; in odm_rx_phy_status_parsing() 181 if (dm_odm->RFPathRxEnable & BIT(i)) in odm_rx_phy_status_parsing() 197 phy_info->rx_snr[i] = dm_odm->PhyDbgInfo.RxSNRdB[i] = (s32)(phy_sta_rpt->path_rxsnr[i]/2); in odm_rx_phy_status_parsing() 232 odm_parsing_cfo(dm_odm, pkt_info, phy_sta_rpt->path_cfotail); in odm_rx_phy_status_parsing() 241 phy_info->signal_strength = (u8)(odm_signal_scale_mapping(dm_odm, pwdb_all)); in odm_rx_phy_status_parsing() [all …]
|
D | odm_CfoTracking.c | 189 struct dm_odm_t *dm_odm = (struct dm_odm_t *)dm_void; in odm_parsing_cfo() local 191 struct cfo_tracking *cfo_track = &dm_odm->DM_CfoTrack; in odm_parsing_cfo() 194 if (!(dm_odm->SupportAbility & ODM_BB_CFO_TRACKING)) in odm_parsing_cfo()
|
D | odm_HWConfig.h | 62 void odm_phy_status_query(struct dm_odm_t *dm_odm, struct odm_phy_info *phy_info,
|