Home
last modified time | relevance | path

Searched refs:BitShift (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/staging/rtl8723bs/hal/
Drtl8723b_phycfg.c61 u32 OriginalValue, BitShift; in PHY_QueryBBReg_8723B() local
70 BitShift = phy_CalculateBitShift(BitMask); in PHY_QueryBBReg_8723B()
72 return (OriginalValue & BitMask) >> BitShift; in PHY_QueryBBReg_8723B()
103 u32 OriginalValue, BitShift; in PHY_SetBBReg_8723B() local
113 BitShift = phy_CalculateBitShift(BitMask); in PHY_SetBBReg_8723B()
114 Data = ((OriginalValue & (~BitMask)) | ((Data << BitShift) & BitMask)); in PHY_SetBBReg_8723B()
286 u32 Original_Value, BitShift; in PHY_QueryRFReg_8723B() local
293 BitShift = phy_CalculateBitShift(BitMask); in PHY_QueryRFReg_8723B()
295 return (Original_Value & BitMask) >> BitShift; in PHY_QueryRFReg_8723B()
324 u32 Original_Value, BitShift; in PHY_SetRFReg_8723B() local
[all …]
/Linux-v5.10/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_phy.c70 u32 OriginalValue, BitShift, NewValue; in rtl92e_set_bb_reg() local
74 BitShift = _rtl92e_calculate_bit_shift(dwBitMask); in rtl92e_set_bb_reg()
75 NewValue = (OriginalValue & ~dwBitMask) | (dwData << BitShift); in rtl92e_set_bb_reg()
83 u32 OriginalValue, BitShift; in rtl92e_get_bb_reg() local
86 BitShift = _rtl92e_calculate_bit_shift(dwBitMask); in rtl92e_get_bb_reg()
88 return (OriginalValue & dwBitMask) >> BitShift; in rtl92e_get_bb_reg()
203 u32 Original_Value, BitShift, New_Value; in rtl92e_set_rf_reg() local
215 BitShift = _rtl92e_calculate_bit_shift(BitMask); in rtl92e_set_rf_reg()
216 New_Value = (Original_Value & ~BitMask) | (Data << BitShift); in rtl92e_set_rf_reg()
228 BitShift = _rtl92e_calculate_bit_shift(BitMask); in rtl92e_set_rf_reg()
[all …]