Home
last modified time | relevance | path

Searched refs:pDM_Odm (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/staging/rtl8723bs/hal/
H A Dodm_DIG.c12 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in odm_NHMCounterStatisticsInit() local
15 …rtw_write16(pDM_Odm->Adapter, ODM_REG_NHM_TIMER_11N+2, 0x2710); /* 0x894[31:16]= 0x2710 Time durat… in odm_NHMCounterStatisticsInit()
17 …rtw_write16(pDM_Odm->Adapter, ODM_REG_NHM_TH9_TH10_11N+2, 0xffff); /* 0x890[31:16]= 0xffff th_9, t… in odm_NHMCounterStatisticsInit()
19 …rtw_write32(pDM_Odm->Adapter, ODM_REG_NHM_TH3_TO_TH0_11N, 0xffffff52); /* 0x898 = 0xffffff52 th_3… in odm_NHMCounterStatisticsInit()
20 …rtw_write32(pDM_Odm->Adapter, ODM_REG_NHM_TH7_TO_TH4_11N, 0xffffffff); /* 0x89c = 0xffffffff th_7… in odm_NHMCounterStatisticsInit()
21 …PHY_SetBBReg(pDM_Odm->Adapter, ODM_REG_FPGA0_IQK_11N, bMaskByte0, 0xff); /* 0xe28[7:0]= 0xff th_… in odm_NHMCounterStatisticsInit()
22 …PHY_SetBBReg(pDM_Odm->Adapter, ODM_REG_NHM_TH9_TH10_11N, BIT10|BIT9|BIT8, 0x7); /* 0x890[9:8]=3 … in odm_NHMCounterStatisticsInit()
23 …PHY_SetBBReg(pDM_Odm->Adapter, ODM_REG_OFDM_FA_RSTC_11N, BIT7, 0x1); /* 0xc0c[7]= 1 max power a… in odm_NHMCounterStatisticsInit()
28 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in odm_NHMCounterStatistics() local
31 odm_GetNHMCounterStatistics(pDM_Odm); in odm_NHMCounterStatistics()
[all …]
H A DHalPhyRf.c11 void ConfigureTxpowerTrack(struct dm_odm_t *pDM_Odm, struct txpwrtrack_cfg *pConfig) in ConfigureTxpowerTrack() argument
24 void ODM_ClearTxPowerTrackingState(struct dm_odm_t *pDM_Odm) in ODM_ClearTxPowerTrackingState() argument
26 struct hal_com_data *pHalData = GET_HAL_DATA(pDM_Odm->Adapter); in ODM_ClearTxPowerTrackingState()
29 pDM_Odm->BbSwingIdxCckBase = pDM_Odm->DefaultCckIndex; in ODM_ClearTxPowerTrackingState()
30 pDM_Odm->BbSwingIdxCck = pDM_Odm->DefaultCckIndex; in ODM_ClearTxPowerTrackingState()
31 pDM_Odm->RFCalibrateInfo.CCK_index = 0; in ODM_ClearTxPowerTrackingState()
34 pDM_Odm->BbSwingIdxOfdmBase[p] = pDM_Odm->DefaultOfdmIndex; in ODM_ClearTxPowerTrackingState()
35 pDM_Odm->BbSwingIdxOfdm[p] = pDM_Odm->DefaultOfdmIndex; in ODM_ClearTxPowerTrackingState()
36 pDM_Odm->RFCalibrateInfo.OFDM_index[p] = pDM_Odm->DefaultOfdmIndex; in ODM_ClearTxPowerTrackingState()
38 pDM_Odm->RFCalibrateInfo.PowerIndexOffset[p] = 0; in ODM_ClearTxPowerTrackingState()
[all …]
H A DHalPhyRf_8723B.c44 struct dm_odm_t *pDM_Odm, in setIqkMatrix_8723B() argument
76 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XATxIQImbalance, bMaskDWord, value32); in setIqkMatrix_8723B()
79 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XCTxAFE, bMaskH4Bits, value32); in setIqkMatrix_8723B()
82 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_ECCAThreshold, BIT24, value32); in setIqkMatrix_8723B()
89 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XBTxIQImbalance, bMaskDWord, value32); in setIqkMatrix_8723B()
92 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XDTxAFE, bMaskH4Bits, value32); in setIqkMatrix_8723B()
95 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_ECCAThreshold, BIT28, value32); in setIqkMatrix_8723B()
104 …PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XATxIQImbalance, bMaskDWord, OFDMSwingTable_New[OFDM_index]); in setIqkMatrix_8723B()
105 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XCTxAFE, bMaskH4Bits, 0x00); in setIqkMatrix_8723B()
106 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_ECCAThreshold, BIT24, 0x00); in setIqkMatrix_8723B()
[all …]
H A Dodm_CfoTracking.c12 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in odm_SetCrystalCap() local
13 struct cfo_tracking *pCfoTrack = &pDM_Odm->DM_CfoTrack; in odm_SetCrystalCap()
23 pDM_Odm->Adapter, in odm_SetCrystalCap()
32 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in odm_GetDefaultCrytaltalCap() local
34 struct adapter *Adapter = pDM_Odm->Adapter; in odm_GetDefaultCrytaltalCap()
42 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in odm_SetATCStatus() local
43 struct cfo_tracking *pCfoTrack = &pDM_Odm->DM_CfoTrack; in odm_SetATCStatus()
49 pDM_Odm->Adapter, in odm_SetATCStatus()
50 ODM_REG(BB_ATC, pDM_Odm), in odm_SetATCStatus()
51 ODM_BIT(BB_ATC, pDM_Odm), in odm_SetATCStatus()
[all …]
H A Dodm_DynamicBBPowerSaving.c12 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in odm_DynamicBBPowerSavingInit() local
13 struct ps_t *pDM_PSTable = &pDM_Odm->DM_PSTable; in odm_DynamicBBPowerSavingInit()
25 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in ODM_RF_Saving() local
26 struct ps_t *pDM_PSTable = &pDM_Odm->DM_PSTable; in ODM_RF_Saving()
30 if (pDM_Odm->PatchID == 40) { /* RT_CID_819x_FUNAI_TV */ in ODM_RF_Saving()
37 pDM_PSTable->Reg874 = (PHY_QueryBBReg(pDM_Odm->Adapter, 0x874, bMaskDWord)&0x1CC000)>>14; in ODM_RF_Saving()
38 pDM_PSTable->RegC70 = (PHY_QueryBBReg(pDM_Odm->Adapter, 0xc70, bMaskDWord)&BIT3)>>3; in ODM_RF_Saving()
39 pDM_PSTable->Reg85C = (PHY_QueryBBReg(pDM_Odm->Adapter, 0x85c, bMaskDWord)&0xFF000000)>>24; in ODM_RF_Saving()
40 pDM_PSTable->RegA74 = (PHY_QueryBBReg(pDM_Odm->Adapter, 0xa74, bMaskDWord)&0xF000)>>12; in ODM_RF_Saving()
46 if (pDM_Odm->RSSI_Min != 0xFF) { in ODM_RF_Saving()
[all …]
H A Drtl8723b_dm.c25 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in Init_ODM_ComInfo_8723b() local
32 memset(pDM_Odm, 0, sizeof(*pDM_Odm)); in Init_ODM_ComInfo_8723b()
34 pDM_Odm->Adapter = Adapter; in Init_ODM_ComInfo_8723b()
36 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_PLATFORM, ODM_CE); in Init_ODM_ComInfo_8723b()
37 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_INTERFACE, RTW_SDIO); in Init_ODM_ComInfo_8723b()
38 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_PACKAGE_TYPE, pHalData->PackageType); in Init_ODM_ComInfo_8723b()
39 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_IC_TYPE, ODM_RTL8723B); in Init_ODM_ComInfo_8723b()
44 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_FAB_VER, fab_ver); in Init_ODM_ComInfo_8723b()
45 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_CUT_VER, cut_ver); in Init_ODM_ComInfo_8723b()
47 ODM_CmnInfoInit(pDM_Odm, ODM_CMNINFO_PATCH_ID, pHalData->CustomerID); in Init_ODM_ComInfo_8723b()
[all …]
H A Dodm_RegConfig8723B.c11 struct dm_odm_t *pDM_Odm, in odm_ConfigRFReg_8723B() argument
21 PHY_SetRFReg(pDM_Odm->Adapter, RF_PATH, RegAddr, bRFRegOffsetMask, Data); in odm_ConfigRFReg_8723B()
31 pDM_Odm->Adapter, RF_PATH, Addr, bMaskDWord in odm_ConfigRFReg_8723B()
38 PHY_SetRFReg(pDM_Odm->Adapter, RF_PATH, RegAddr, bRFRegOffsetMask, Data); in odm_ConfigRFReg_8723B()
40 getvalue = PHY_QueryRFReg(pDM_Odm->Adapter, RF_PATH, Addr, bMaskDWord); in odm_ConfigRFReg_8723B()
51 pDM_Odm->Adapter, RF_PATH, Addr, bMaskDWord in odm_ConfigRFReg_8723B()
59 pDM_Odm->Adapter, in odm_ConfigRFReg_8723B()
68 pDM_Odm->Adapter, in odm_ConfigRFReg_8723B()
76 pDM_Odm->Adapter, RF_PATH, Addr, bMaskDWord in odm_ConfigRFReg_8723B()
87 void odm_ConfigRF_RadioA_8723B(struct dm_odm_t *pDM_Odm, u32 Addr, u32 Data) in odm_ConfigRF_RadioA_8723B() argument
[all …]
H A DHalHWImg8723B_BB.c12 struct dm_odm_t *pDM_Odm, const u32 Condition1, const u32 Condition2 in CheckPositive() argument
16 ((pDM_Odm->BoardType & BIT4) >> 4) << 0 | /* _GLNA */ in CheckPositive()
17 ((pDM_Odm->BoardType & BIT3) >> 3) << 1 | /* _GPA */ in CheckPositive()
18 ((pDM_Odm->BoardType & BIT7) >> 7) << 2 | /* _ALNA */ in CheckPositive()
19 ((pDM_Odm->BoardType & BIT6) >> 6) << 3 | /* _APA */ in CheckPositive()
20 ((pDM_Odm->BoardType & BIT2) >> 2) << 4; /* _BT */ in CheckPositive()
24 pDM_Odm->CutVersion << 24 | in CheckPositive()
25 pDM_Odm->SupportPlatform << 16 | in CheckPositive()
26 pDM_Odm->PackageType << 12 | in CheckPositive()
27 pDM_Odm->SupportInterface << 8 | in CheckPositive()
[all …]
H A DHalHWImg8723B_RF.c12 struct dm_odm_t *pDM_Odm, const u32 Condition1, const u32 Condition2 in CheckPositive() argument
16 ((pDM_Odm->BoardType & BIT4) >> 4) << 0 | /* _GLNA */ in CheckPositive()
17 ((pDM_Odm->BoardType & BIT3) >> 3) << 1 | /* _GPA */ in CheckPositive()
18 ((pDM_Odm->BoardType & BIT7) >> 7) << 2 | /* _ALNA */ in CheckPositive()
19 ((pDM_Odm->BoardType & BIT6) >> 6) << 3 | /* _APA */ in CheckPositive()
20 ((pDM_Odm->BoardType & BIT2) >> 2) << 4; /* _BT */ in CheckPositive()
24 pDM_Odm->CutVersion << 24 | in CheckPositive()
25 pDM_Odm->SupportPlatform << 16 | in CheckPositive()
26 pDM_Odm->PackageType << 12 | in CheckPositive()
27 pDM_Odm->SupportInterface << 8 | in CheckPositive()
[all …]
H A DHalHWImg8723B_MAC.c12 struct dm_odm_t *pDM_Odm, const u32 Condition1, const u32 Condition2 in CheckPositive() argument
16 ((pDM_Odm->BoardType & BIT4) >> 4) << 0 | /* _GLNA */ in CheckPositive()
17 ((pDM_Odm->BoardType & BIT3) >> 3) << 1 | /* _GPA */ in CheckPositive()
18 ((pDM_Odm->BoardType & BIT7) >> 7) << 2 | /* _ALNA */ in CheckPositive()
19 ((pDM_Odm->BoardType & BIT6) >> 6) << 3 | /* _APA */ in CheckPositive()
20 ((pDM_Odm->BoardType & BIT2) >> 2) << 4; /* _BT */ in CheckPositive()
24 pDM_Odm->CutVersion << 24 | in CheckPositive()
25 pDM_Odm->SupportPlatform << 16 | in CheckPositive()
26 pDM_Odm->PackageType << 12 | in CheckPositive()
27 pDM_Odm->SupportInterface << 8 | in CheckPositive()
[all …]
H A Dodm_EdcaTurboCheck.c34 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in ODM_EdcaTurboInit() local
35 struct adapter *Adapter = pDM_Odm->Adapter; in ODM_EdcaTurboInit()
37 pDM_Odm->DM_EDCA_Table.bCurrentTurboEDCA = false; in ODM_EdcaTurboInit()
38 pDM_Odm->DM_EDCA_Table.bIsCurRDLState = false; in ODM_EdcaTurboInit()
48 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in odm_EdcaTurboCheck() local
50 if (!(pDM_Odm->SupportAbility & ODM_MAC_EDCA_TURBO)) in odm_EdcaTurboCheck()
53 odm_EdcaTurboCheckCE(pDM_Odm); in odm_EdcaTurboCheck()
58 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in odm_EdcaTurboCheckCE() local
59 struct adapter *Adapter = pDM_Odm->Adapter; in odm_EdcaTurboCheckCE()
77 if (!pDM_Odm->bLinked) { in odm_EdcaTurboCheckCE()
[all …]
H A Dodm_RegConfig8723B.h10 void odm_ConfigRFReg_8723B(struct dm_odm_t *pDM_Odm,
17 void odm_ConfigRF_RadioA_8723B(struct dm_odm_t *pDM_Odm, u32 Addr, u32 Data);
19 void odm_ConfigMAC_8723B(struct dm_odm_t *pDM_Odm, u32 Addr, u8 Data);
21 void odm_ConfigBB_AGC_8723B(struct dm_odm_t *pDM_Odm,
27 void odm_ConfigBB_PHY_REG_PG_8723B(struct dm_odm_t *pDM_Odm, u32 RfPath, u32 Addr,
30 void odm_ConfigBB_PHY_8723B(struct dm_odm_t *pDM_Odm,
36 void odm_ConfigBB_TXPWR_LMT_8723B(struct dm_odm_t *pDM_Odm,
H A Dodm_HWConfig.c10 #define READ_AND_CONFIG_MP(ic, txt) (ODM_ReadAndConfig_MP_##ic##txt(pDM_Odm))
250 struct dm_odm_t *pDM_Odm, struct odm_phy_info *pPhyInfo, struct odm_packet_info *pPktinfo in odm_Process_RSSIForDM() argument
265 pEntry = pDM_Odm->pODM_StaInfo[pPktinfo->station_id]; in odm_Process_RSSIForDM()
274 pDM_Odm->PhyDbgInfo.NumQryBeaconPkt++; in odm_Process_RSSIForDM()
277 pDM_Odm->RxRate = pPktinfo->data_rate; in odm_Process_RSSIForDM()
280 if (pDM_Odm->SupportAbility & ODM_BB_ANT_DIV) { in odm_Process_RSSIForDM()
295 pDM_Odm->RSSI_A = pPhyInfo->rx_mimo_signal_strength[RF_PATH_A]; in odm_Process_RSSIForDM()
296 pDM_Odm->RSSI_B = 0; in odm_Process_RSSIForDM()
298 pDM_Odm->RSSI_A = pPhyInfo->rx_mimo_signal_strength[RF_PATH_A]; in odm_Process_RSSIForDM()
299 pDM_Odm->RSSI_B = pPhyInfo->rx_mimo_signal_strength[RF_PATH_B]; in odm_Process_RSSIForDM()
[all …]
H A Dodm_HWConfig.h65 enum hal_status ODM_ConfigRFWithTxPwrTrackHeaderFile(struct dm_odm_t *pDM_Odm);
68 struct dm_odm_t *pDM_Odm,
74 struct dm_odm_t *pDM_Odm, enum ODM_BB_Config_Type ConfigType
78 struct dm_odm_t *pDM_Odm,
84 s32 odm_signal_scale_mapping(struct dm_odm_t *pDM_Odm, s32 CurrSig);
H A DHalPhyRf_8723B.h22 struct dm_odm_t *pDM_Odm,
29 struct dm_odm_t *pDM_Odm,
44 void ODM_SetIQCbyRFpath(struct dm_odm_t *pDM_Odm, u32 RFpath);
49 void PHY_LCCalibrate_8723B(struct dm_odm_t *pDM_Odm);
H A Dodm.h1108 void ODM_TXPowerTrackingCheck(struct dm_odm_t *pDM_Odm);
1111 struct dm_odm_t *pDM_Odm,
1119 struct dm_odm_t *pDM_Odm,
1125 struct dm_odm_t *pDM_Odm,
1135 void odm_TXPowerTrackingInit(struct dm_odm_t *pDM_Odm);
1137 void ODM_DMInit(struct dm_odm_t *pDM_Odm);
1139 void ODM_DMWatchdog(struct dm_odm_t *pDM_Odm); /* For common use in the future */
1141 void ODM_CmnInfoInit(struct dm_odm_t *pDM_Odm, enum odm_cmninfo_e CmnInfo, u32 Value);
1143 void ODM_CmnInfoHook(struct dm_odm_t *pDM_Odm, enum odm_cmninfo_e CmnInfo, void *pValue);
1146 struct dm_odm_t *pDM_Odm,
[all …]
H A DHalHWImg8723B_BB.h18 struct dm_odm_t *pDM_Odm
27 struct dm_odm_t *pDM_Odm
36 struct dm_odm_t *pDM_Odm
H A DHalHWImg8723B_RF.h18 struct dm_odm_t *pDM_Odm
27 struct dm_odm_t *pDM_Odm
37 struct dm_odm_t *pDM_Odm
H A Dodm_DynamicTxPower.c12 struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; in odm_DynamicTxPowerInit() local
14 struct adapter *Adapter = pDM_Odm->Adapter; in odm_DynamicTxPowerInit()
H A DHalPhyRf.h35 void ConfigureTxpowerTrack(struct dm_odm_t *pDM_Odm, struct txpwrtrack_cfg *pConfig);
38 void ODM_ClearTxPowerTrackingState(struct dm_odm_t *pDM_Odm);
H A Dhal_com_phycfg.c86 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in PHY_GetRateSectionIndexOfTxPowerByRate() local
89 if (pDM_Odm->PhyRegPgVersion == 0) { in PHY_GetRateSectionIndexOfTxPowerByRate()
363 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in PHY_StoreTxPowerByRate() local
365 if (pDM_Odm->PhyRegPgVersion > 0) in PHY_StoreTxPowerByRate()
367 else if (pDM_Odm->PhyRegPgVersion == 0) { in PHY_StoreTxPowerByRate()
489 struct dm_odm_t *pDM_Odm = &pHalData->odmpriv; in PHY_GetTxPowerTrackingOffset() local
492 if (pDM_Odm->RFCalibrateInfo.TxPowerTrackControl == false) in PHY_GetTxPowerTrackingOffset()
496 offset = pDM_Odm->Remnant_CCKSwingIdx; in PHY_GetTxPowerTrackingOffset()
498 offset = pDM_Odm->Remnant_OFDMSwingIdx[RFPath]; in PHY_GetTxPowerTrackingOffset()
H A DHalHWImg8723B_MAC.h18 struct dm_odm_t *pDM_Odm