Home
last modified time | relevance | path

Searched refs:BitMask (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/drivers/staging/rtl8723bs/include/
Dhal_intf.h236 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 …]
Dhal_phy_cfg.h28 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);
Dhal_com_phycfg.h61 u32 BitMask);
64 u32 BitMask, u32 Value, u8 *RateIndex,
86 u32 RegAddr, u32 BitMask, u32 Data);
/linux-6.6.21/drivers/staging/rtl8723bs/hal/
Drtl8723b_phycfg.c18 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 …]
Dhal_intf.c301 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()
Dhal_com_phycfg.c83 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 …]
DHalBtcOutSrc.h263 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
Dhal_btcoex.c678 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.6.21/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_phy.c150 u32 RegAddr, u32 BitMask, u32 Data) in rtl92e_set_rf_reg() argument
159 if (BitMask != bMask12Bits) { in rtl92e_set_rf_reg()
162 BitShift = _rtl92e_calculate_bit_shift(BitMask); in rtl92e_set_rf_reg()
163 New_Value = (Original_Value & ~BitMask) | (Data << BitShift); in rtl92e_set_rf_reg()
172 if (BitMask != bMask12Bits) { in rtl92e_set_rf_reg()
175 BitShift = _rtl92e_calculate_bit_shift(BitMask); in rtl92e_set_rf_reg()
176 New_Value = (Original_Value & ~BitMask) | (Data << BitShift); in rtl92e_set_rf_reg()
186 u32 RegAddr, u32 BitMask) in rtl92e_get_rf_reg() argument
200 BitShift = _rtl92e_calculate_bit_shift(BitMask); in rtl92e_get_rf_reg()
201 Readback_Value = (Original_Value & BitMask) >> BitShift; in rtl92e_get_rf_reg()
[all …]
Dr8192E_phy.h32 u32 RegAddr, u32 BitMask, u32 Data);
34 u32 RegAddr, u32 BitMask);