Home
last modified time | relevance | path

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

/linux-6.12.1/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);
328 u32 rtw_hal_read_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask);
329 void rtw_hal_write_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data);
330 u32 rtw_hal_read_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask);
331 void rtw_hal_write_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data);
333 #define PHY_QueryBBReg(Adapter, RegAddr, BitMask) rtw_hal_read_bbreg((Adapter), (RegAddr), (BitMask argument
334 #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.12.1/drivers/staging/rtl8723bs/hal/
Drtl8723b_phycfg.c17 static u32 phy_CalculateBitShift(u32 BitMask) in phy_CalculateBitShift() argument
22 if (((BitMask>>i) & 0x1) == 1) in phy_CalculateBitShift()
41 u32 PHY_QueryBBReg_8723B(struct adapter *Adapter, u32 RegAddr, u32 BitMask) in PHY_QueryBBReg_8723B() argument
46 BitShift = phy_CalculateBitShift(BitMask); in PHY_QueryBBReg_8723B()
48 return (OriginalValue & BitMask) >> BitShift; in PHY_QueryBBReg_8723B()
69 u32 BitMask, in PHY_SetBBReg_8723B() argument
76 if (BitMask != bMaskDWord) { /* if not "double word" write */ in PHY_SetBBReg_8723B()
78 BitShift = phy_CalculateBitShift(BitMask); in PHY_SetBBReg_8723B()
79 Data = ((OriginalValue & (~BitMask)) | ((Data << BitShift) & BitMask)); in PHY_SetBBReg_8723B()
231 u32 BitMask in PHY_QueryRFReg_8723B() argument
[all …]
Dhal_intf.c294 u32 rtw_hal_read_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask) in rtw_hal_read_bbreg() argument
299 data = padapter->HalFunc.read_bbreg(padapter, RegAddr, BitMask); in rtw_hal_read_bbreg()
302 void rtw_hal_write_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data) in rtw_hal_write_bbreg() argument
305 padapter->HalFunc.write_bbreg(padapter, RegAddr, BitMask, Data); in rtw_hal_write_bbreg()
308 u32 rtw_hal_read_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask) in rtw_hal_read_rfreg() argument
313 data = padapter->HalFunc.read_rfreg(padapter, eRFPath, RegAddr, BitMask); in rtw_hal_read_rfreg()
316 void rtw_hal_write_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data) in rtw_hal_write_rfreg() argument
319 padapter->HalFunc.write_rfreg(padapter, eRFPath, RegAddr, BitMask, Data); in rtw_hal_write_rfreg()
Dhal_com_phycfg.c82 struct adapter *padapter, u32 RegAddr, u32 BitMask in PHY_GetRateSectionIndexOfTxPowerByRate() argument
101 if (BitMask == bMaskH3Bytes) in PHY_GetRateSectionIndexOfTxPowerByRate()
103 else if (BitMask == 0x000000ff) in PHY_GetRateSectionIndexOfTxPowerByRate()
140 u32 BitMask, in PHY_GetRateValuesOfTxPowerByRate() argument
184 if (BitMask == 0xffffff00) { in PHY_GetRateValuesOfTxPowerByRate()
193 } else if (BitMask == 0x000000ff) { in PHY_GetRateValuesOfTxPowerByRate()
318 u32 RegAddr, u32 BitMask, u32 Data) in PHY_StoreTxPowerByRateNew() argument
324 …PHY_GetRateValuesOfTxPowerByRate(padapter, RegAddr, BitMask, Data, rateIndex, PwrByRateVal, &rateN… in PHY_StoreTxPowerByRateNew()
335 struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data in PHY_StoreTxPowerByRateOld() argument
339 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.c677 static void halbtcoutsrc_SetBbReg(void *pBtcContext, u32 RegAddr, u32 BitMask, u32 Data) in halbtcoutsrc_SetBbReg() argument
686 PHY_SetBBReg(padapter, RegAddr, BitMask, Data); in halbtcoutsrc_SetBbReg()
690 static u32 halbtcoutsrc_GetBbReg(void *pBtcContext, u32 RegAddr, u32 BitMask) in halbtcoutsrc_GetBbReg() argument
699 return PHY_QueryBBReg(padapter, RegAddr, BitMask); in halbtcoutsrc_GetBbReg()
702 static void halbtcoutsrc_SetRfReg(void *pBtcContext, u8 eRFPath, u32 RegAddr, u32 BitMask, u32 Data) in halbtcoutsrc_SetRfReg() argument
711 PHY_SetRFReg(padapter, eRFPath, RegAddr, BitMask, Data); in halbtcoutsrc_SetRfReg()
714 static u32 halbtcoutsrc_GetRfReg(void *pBtcContext, u8 eRFPath, u32 RegAddr, u32 BitMask) in halbtcoutsrc_GetRfReg() argument
723 return PHY_QueryRFReg(padapter, eRFPath, RegAddr, BitMask); in halbtcoutsrc_GetRfReg()
/linux-6.12.1/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.h30 u32 RegAddr, u32 BitMask, u32 Data);
32 u32 RegAddr, u32 BitMask);