/linux-6.1.9/drivers/staging/r8188eu/hal/ |
D | rtl8188e_phycfg.c | 41 u32 BitMask in rtl8188e_PHY_QueryBBReg() argument 51 BitShift = phy_calculate_bit_shift(BitMask); in rtl8188e_PHY_QueryBBReg() 52 ReturnValue = (OriginalValue & BitMask) >> BitShift; in rtl8188e_PHY_QueryBBReg() 74 void rtl8188e_PHY_SetBBReg(struct adapter *Adapter, u32 RegAddr, u32 BitMask, u32 Data) in rtl8188e_PHY_SetBBReg() argument 79 if (BitMask != bMaskDWord) { /* if not "double word" write */ in rtl8188e_PHY_SetBBReg() 84 BitShift = phy_calculate_bit_shift(BitMask); in rtl8188e_PHY_SetBBReg() 85 Data = ((OriginalValue & (~BitMask)) | (Data << BitShift)); in rtl8188e_PHY_SetBBReg() 250 u32 rtl8188e_PHY_QueryRFReg(struct adapter *Adapter, u32 RegAddr, u32 BitMask) in rtl8188e_PHY_QueryRFReg() argument 256 BitShift = phy_calculate_bit_shift(BitMask); in rtl8188e_PHY_QueryRFReg() 257 Readback_Value = (Original_Value & BitMask) >> BitShift; in rtl8188e_PHY_QueryRFReg() [all …]
|
/linux-6.1.9/drivers/staging/rtl8723bs/include/ |
D | hal_intf.h | 236 u32 (*read_bbreg)(struct adapter *padapter, u32 RegAddr, u32 BitMask); 237 void (*write_bbreg)(struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data); 238 u32 (*read_rfreg)(struct adapter *padapter, u8 eRFPath, u32 RegAddr, u32 BitMask); 239 void (*write_rfreg)(struct adapter *padapter, u8 eRFPath, u32 RegAddr, u32 BitMask, u32 Data); 329 u32 rtw_hal_read_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask); 330 void rtw_hal_write_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data); 331 u32 rtw_hal_read_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask); 332 void rtw_hal_write_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data); 334 #define PHY_QueryBBReg(Adapter, RegAddr, BitMask) rtw_hal_read_bbreg((Adapter), (RegAddr), (BitMask… argument 335 #define PHY_SetBBReg(Adapter, RegAddr, BitMask, Data) rtw_hal_write_bbreg((Adapter), (RegAddr), (Bi… argument [all …]
|
D | hal_phy_cfg.h | 28 u32 PHY_QueryBBReg_8723B(struct adapter *Adapter, u32 RegAddr, u32 BitMask); 31 u32 BitMask, u32 Data); 34 u32 RegAddr, u32 BitMask); 37 u32 RegAddr, u32 BitMask, u32 Data);
|
D | hal_com_phycfg.h | 61 u32 BitMask); 64 u32 BitMask, u32 Value, u8 *RateIndex, 86 u32 RegAddr, u32 BitMask, u32 Data);
|
/linux-6.1.9/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_phycfg.c | 18 static u32 phy_CalculateBitShift(u32 BitMask) in phy_CalculateBitShift() argument 23 if (((BitMask>>i) & 0x1) == 1) in phy_CalculateBitShift() 42 u32 PHY_QueryBBReg_8723B(struct adapter *Adapter, u32 RegAddr, u32 BitMask) in PHY_QueryBBReg_8723B() argument 47 BitShift = phy_CalculateBitShift(BitMask); in PHY_QueryBBReg_8723B() 49 return (OriginalValue & BitMask) >> BitShift; in PHY_QueryBBReg_8723B() 70 u32 BitMask, in PHY_SetBBReg_8723B() argument 77 if (BitMask != bMaskDWord) { /* if not "double word" write */ in PHY_SetBBReg_8723B() 79 BitShift = phy_CalculateBitShift(BitMask); in PHY_SetBBReg_8723B() 80 Data = ((OriginalValue & (~BitMask)) | ((Data << BitShift) & BitMask)); in PHY_SetBBReg_8723B() 232 u32 BitMask in PHY_QueryRFReg_8723B() argument [all …]
|
D | hal_intf.c | 301 u32 rtw_hal_read_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask) in rtw_hal_read_bbreg() argument 306 data = padapter->HalFunc.read_bbreg(padapter, RegAddr, BitMask); in rtw_hal_read_bbreg() 309 void rtw_hal_write_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data) in rtw_hal_write_bbreg() argument 312 padapter->HalFunc.write_bbreg(padapter, RegAddr, BitMask, Data); in rtw_hal_write_bbreg() 315 u32 rtw_hal_read_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask) in rtw_hal_read_rfreg() argument 320 data = padapter->HalFunc.read_rfreg(padapter, eRFPath, RegAddr, BitMask); in rtw_hal_read_rfreg() 323 void rtw_hal_write_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data) in rtw_hal_write_rfreg() argument 326 padapter->HalFunc.write_rfreg(padapter, eRFPath, RegAddr, BitMask, Data); in rtw_hal_write_rfreg()
|
D | hal_com_phycfg.c | 83 struct adapter *padapter, u32 RegAddr, u32 BitMask in PHY_GetRateSectionIndexOfTxPowerByRate() argument 102 if (BitMask == bMaskH3Bytes) in PHY_GetRateSectionIndexOfTxPowerByRate() 104 else if (BitMask == 0x000000ff) in PHY_GetRateSectionIndexOfTxPowerByRate() 141 u32 BitMask, in PHY_GetRateValuesOfTxPowerByRate() argument 185 if (BitMask == 0xffffff00) { in PHY_GetRateValuesOfTxPowerByRate() 194 } else if (BitMask == 0x000000ff) { in PHY_GetRateValuesOfTxPowerByRate() 319 u32 RegAddr, u32 BitMask, u32 Data) in PHY_StoreTxPowerByRateNew() argument 325 …PHY_GetRateValuesOfTxPowerByRate(padapter, RegAddr, BitMask, Data, rateIndex, PwrByRateVal, &rateN… in PHY_StoreTxPowerByRateNew() 336 struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data in PHY_StoreTxPowerByRateOld() argument 340 u8 index = PHY_GetRateSectionIndexOfTxPowerByRate(padapter, RegAddr, BitMask); in PHY_StoreTxPowerByRateOld() [all …]
|
D | HalBtcOutSrc.h | 263 void *pBtcContext, u32 RegAddr, u32 BitMask, u32 Data 265 typedef u32 (*BFP_BTC_GET_BB_REG)(void *pBtcContext, u32 RegAddr, u32 BitMask); 267 void *pBtcContext, u8 eRFPath, u32 RegAddr, u32 BitMask, u32 Data 270 void *pBtcContext, u8 eRFPath, u32 RegAddr, u32 BitMask
|
D | hal_btcoex.c | 678 static void halbtcoutsrc_SetBbReg(void *pBtcContext, u32 RegAddr, u32 BitMask, u32 Data) in halbtcoutsrc_SetBbReg() argument 687 PHY_SetBBReg(padapter, RegAddr, BitMask, Data); in halbtcoutsrc_SetBbReg() 691 static u32 halbtcoutsrc_GetBbReg(void *pBtcContext, u32 RegAddr, u32 BitMask) in halbtcoutsrc_GetBbReg() argument 700 return PHY_QueryBBReg(padapter, RegAddr, BitMask); in halbtcoutsrc_GetBbReg() 703 static void halbtcoutsrc_SetRfReg(void *pBtcContext, u8 eRFPath, u32 RegAddr, u32 BitMask, u32 Data) in halbtcoutsrc_SetRfReg() argument 712 PHY_SetRFReg(padapter, eRFPath, RegAddr, BitMask, Data); in halbtcoutsrc_SetRfReg() 715 static u32 halbtcoutsrc_GetRfReg(void *pBtcContext, u8 eRFPath, u32 RegAddr, u32 BitMask) in halbtcoutsrc_GetRfReg() argument 724 return PHY_QueryRFReg(padapter, eRFPath, RegAddr, BitMask); in halbtcoutsrc_GetRfReg()
|
/linux-6.1.9/drivers/staging/rtl8192e/rtl8192e/ |
D | r8192E_phy.c | 196 u32 RegAddr, u32 BitMask, u32 Data) in rtl92e_set_rf_reg() argument 207 if (BitMask != bMask12Bits) { in rtl92e_set_rf_reg() 210 BitShift = _rtl92e_calculate_bit_shift(BitMask); in rtl92e_set_rf_reg() 211 New_Value = (Original_Value & ~BitMask) | (Data << BitShift); in rtl92e_set_rf_reg() 220 if (BitMask != bMask12Bits) { in rtl92e_set_rf_reg() 223 BitShift = _rtl92e_calculate_bit_shift(BitMask); in rtl92e_set_rf_reg() 224 New_Value = (Original_Value & ~BitMask) | (Data << BitShift); in rtl92e_set_rf_reg() 233 u32 RegAddr, u32 BitMask) in rtl92e_get_rf_reg() argument 249 BitShift = _rtl92e_calculate_bit_shift(BitMask); in rtl92e_get_rf_reg() 250 Readback_Value = (Original_Value & BitMask) >> BitShift; in rtl92e_get_rf_reg() [all …]
|
D | r8192E_phy.h | 63 u32 RegAddr, u32 BitMask, u32 Data); 65 u32 RegAddr, u32 BitMask);
|