| /Linux-v5.15/drivers/staging/r8188eu/hal/ |
| D | odm_RTL8188E.c | 6 void ODM_DIG_LowerBound_88E(struct odm_dm_struct *dm_odm) in ODM_DIG_LowerBound_88E() argument 8 struct rtw_dig *pDM_DigTable = &dm_odm->DM_DigTable; in ODM_DIG_LowerBound_88E() 10 if (dm_odm->AntDivType == CG_TRX_HW_ANTDIV) in ODM_DIG_LowerBound_88E() 15 static void odm_RX_HWAntDivInit(struct odm_dm_struct *dm_odm) in odm_RX_HWAntDivInit() argument 19 if (*dm_odm->mp_mode == 1) { in odm_RX_HWAntDivInit() 20 dm_odm->AntDivType = CGCS_RX_SW_ANTDIV; in odm_RX_HWAntDivInit() 21 ODM_SetBBReg(dm_odm, ODM_REG_IGI_A_11N, BIT(7), 0); /* disable HW AntDiv */ in odm_RX_HWAntDivInit() 22 ODM_SetBBReg(dm_odm, ODM_REG_LNA_SWITCH_11N, BIT(31), 1); /* 1:CG, 0:CS */ in odm_RX_HWAntDivInit() 27 value32 = ODM_GetMACReg(dm_odm, ODM_REG_ANTSEL_PIN_11N, bMaskDWord); in odm_RX_HWAntDivInit() 28 …ODM_SetMACReg(dm_odm, ODM_REG_ANTSEL_PIN_11N, bMaskDWord, value32 | (BIT(23) | BIT(25))); /* Reg4C… in odm_RX_HWAntDivInit() [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 | odm_HWConfig.c | 8 #define READ_AND_CONFIG_MP(ic, txt) (ODM_ReadAndConfig##txt##ic(dm_odm)) 9 #define READ_AND_CONFIG_TC(ic, txt) (ODM_ReadAndConfig_TC##txt##ic(dm_odm)) 23 static s32 odm_sig_patch_lenove(struct odm_dm_struct *dm_odm, s32 CurrSig) in odm_sig_patch_lenove() argument 28 static s32 odm_sig_patch_netcore(struct odm_dm_struct *dm_odm, s32 CurrSig) in odm_sig_patch_netcore() argument 33 static s32 odm_SignalScaleMapping_92CSeries(struct odm_dm_struct *dm_odm, s32 CurrSig) in odm_SignalScaleMapping_92CSeries() argument 37 if ((dm_odm->SupportInterface == ODM_ITRF_USB) || in odm_SignalScaleMapping_92CSeries() 38 (dm_odm->SupportInterface == ODM_ITRF_SDIO)) { in odm_SignalScaleMapping_92CSeries() 59 static s32 odm_SignalScaleMapping(struct odm_dm_struct *dm_odm, s32 CurrSig) in odm_SignalScaleMapping() argument 61 if ((dm_odm->SupportPlatform == ODM_MP) && in odm_SignalScaleMapping() 62 (dm_odm->SupportInterface != ODM_ITRF_PCIE) && /* USB & SDIO */ in odm_SignalScaleMapping() [all …]
|
| D | rtl8188e_dm.c | 33 struct odm_dm_struct *dm_odm = &hal_data->odmpriv; in Init_ODM_ComInfo_88E() local 37 memset(dm_odm, 0, sizeof(*dm_odm)); in Init_ODM_ComInfo_88E() 39 dm_odm->Adapter = Adapter; in Init_ODM_ComInfo_88E() 41 ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_PLATFORM, ODM_CE); in Init_ODM_ComInfo_88E() 44 ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_INTERFACE, ODM_ITRF_SDIO); in Init_ODM_ComInfo_88E() 46 ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_INTERFACE, Adapter->interface_type);/* RTL871X_HCI_TYPE */ in Init_ODM_ComInfo_88E() 48 ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_IC_TYPE, ODM_RTL8188E); in Init_ODM_ComInfo_88E() 53 ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_FAB_VER, fab_ver); in Init_ODM_ComInfo_88E() 54 ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_CUT_VER, cut_ver); in Init_ODM_ComInfo_88E() 56 ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_MP_TEST_CHIP, IS_NORMAL_CHIP(hal_data->VersionID)); in Init_ODM_ComInfo_88E() [all …]
|
| D | Hal8188ERateAdaptive.c | 94 struct odm_dm_struct *dm_odm, in odm_SetTxRPTTiming_8188E() argument 118 static int odm_RateDown_8188E(struct odm_dm_struct *dm_odm, struct odm_ra_info *pRaInfo) in odm_RateDown_8188E() argument 160 odm_SetTxRPTTiming_8188E(dm_odm, pRaInfo, 2); in odm_RateDown_8188E() 165 struct odm_dm_struct *dm_odm, in odm_RateUp_8188E() argument 183 odm_SetTxRPTTiming_8188E(dm_odm, pRaInfo, 0); in odm_RateUp_8188E() 219 static void odm_RateDecision_8188E(struct odm_dm_struct *dm_odm, in odm_RateDecision_8188E() argument 268 odm_RateDown_8188E(dm_odm, pRaInfo); in odm_RateDecision_8188E() 270 odm_RateUp_8188E(dm_odm, pRaInfo); in odm_RateDecision_8188E() 281 odm_SetTxRPTTiming_8188E(dm_odm, pRaInfo, 1); in odm_RateDecision_8188E() 291 static int odm_ARFBRefresh_8188E(struct odm_dm_struct *dm_odm, struct odm_ra_info *pRaInfo) in odm_ARFBRefresh_8188E() argument [all …]
|
| D | HalHWImg8188E_BB.c | 175 enum HAL_STATUS ODM_ReadAndConfig_AGC_TAB_1T_8188E(struct odm_dm_struct *dm_odm) in ODM_ReadAndConfig_AGC_TAB_1T_8188E() argument 179 u8 platform = dm_odm->SupportPlatform; in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 180 u8 interfaceValue = dm_odm->SupportInterface; in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 181 u8 board = dm_odm->BoardType; in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 185 struct adapter *adapter = dm_odm->Adapter; in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 215 odm_ConfigBB_AGC_8188E(dm_odm, v1, bMaskDWord, v2); in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 238 odm_ConfigBB_AGC_8188E(dm_odm, v1, bMaskDWord, v2); in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 249 if (!rtw_IOL_exec_cmds_sync(dm_odm->Adapter, pxmit_frame, 1000, bndy_cnt)) { in ODM_ReadAndConfig_AGC_TAB_1T_8188E() 455 enum HAL_STATUS ODM_ReadAndConfig_PHY_REG_1T_8188E(struct odm_dm_struct *dm_odm) in ODM_ReadAndConfig_PHY_REG_1T_8188E() argument 459 u8 platform = dm_odm->SupportPlatform; in ODM_ReadAndConfig_PHY_REG_1T_8188E() [all …]
|
| D | HalHWImg8188E_MAC.c | 130 enum HAL_STATUS ODM_ReadAndConfig_MAC_REG_8188E(struct odm_dm_struct *dm_odm) in ODM_ReadAndConfig_MAC_REG_8188E() argument 136 u8 platform = dm_odm->SupportPlatform; in ODM_ReadAndConfig_MAC_REG_8188E() 137 u8 interface_val = dm_odm->SupportInterface; in ODM_ReadAndConfig_MAC_REG_8188E() 138 u8 board = dm_odm->BoardType; in ODM_ReadAndConfig_MAC_REG_8188E() 143 struct adapter *adapt = dm_odm->Adapter; in ODM_ReadAndConfig_MAC_REG_8188E() 173 odm_ConfigMAC_8188E(dm_odm, v1, (u8)v2); in ODM_ReadAndConfig_MAC_REG_8188E() 196 odm_ConfigMAC_8188E(dm_odm, v1, (u8)v2); in ODM_ReadAndConfig_MAC_REG_8188E() 207 if (!rtw_IOL_exec_cmds_sync(dm_odm->Adapter, pxmit_frame, 1000, bndy_cnt)) { in ODM_ReadAndConfig_MAC_REG_8188E()
|
| /Linux-v5.15/drivers/staging/r8188eu/include/ |
| D | Hal8188ERateAdaptive.h | 40 void ODM_RASupport_Init(struct odm_dm_struct *dm_odm); 42 int ODM_RAInfo_Init_all(struct odm_dm_struct *dm_odm); 44 int ODM_RAInfo_Init(struct odm_dm_struct *dm_odm, u8 MacID); 46 u8 ODM_RA_GetShortGI_8188E(struct odm_dm_struct *dm_odm, u8 MacID); 48 u8 ODM_RA_GetDecisionRate_8188E(struct odm_dm_struct *dm_odm, u8 MacID); 50 u8 ODM_RA_GetHwPwrStatus_8188E(struct odm_dm_struct *dm_odm, u8 MacID); 51 void ODM_RA_UpdateRateInfo_8188E(struct odm_dm_struct *dm_odm, u8 MacID, 55 void ODM_RA_SetRSSI_8188E(struct odm_dm_struct *dm_odm, u8 macid, 58 void ODM_RA_TxRPT2Handle_8188E(struct odm_dm_struct *dm_odm, 62 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-v5.15/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,
|