Searched refs:BitShift (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_phycfg.c | 61 u32 ReturnValue = 0, OriginalValue, BitShift; in PHY_QueryBBReg_8723B() local 70 BitShift = phy_CalculateBitShift(BitMask); in PHY_QueryBBReg_8723B() 71 ReturnValue = (OriginalValue & BitMask) >> BitShift; in PHY_QueryBBReg_8723B() 104 u32 OriginalValue, BitShift; in PHY_SetBBReg_8723B() local 114 BitShift = phy_CalculateBitShift(BitMask); in PHY_SetBBReg_8723B() 115 Data = ((OriginalValue & (~BitMask)) | ((Data << BitShift) & BitMask)); in PHY_SetBBReg_8723B() 287 u32 Original_Value, Readback_Value, BitShift; in PHY_QueryRFReg_8723B() local 295 BitShift = phy_CalculateBitShift(BitMask); in PHY_QueryRFReg_8723B() 296 Readback_Value = (Original_Value & BitMask) >> BitShift; in PHY_QueryRFReg_8723B() 327 u32 Original_Value, BitShift; in PHY_SetRFReg_8723B() local [all …]
|
/Linux-v4.19/drivers/staging/rtl8192e/rtl8192e/ |
D | r8192E_phy.c | 79 u32 OriginalValue, BitShift, NewValue; in rtl92e_set_bb_reg() local 83 BitShift = _rtl92e_calculate_bit_shift(dwBitMask); in rtl92e_set_bb_reg() 85 (dwData << BitShift)); in rtl92e_set_bb_reg() 93 u32 OriginalValue, BitShift; in rtl92e_get_bb_reg() local 96 BitShift = _rtl92e_calculate_bit_shift(dwBitMask); in rtl92e_get_bb_reg() 98 return (OriginalValue & dwBitMask) >> BitShift; in rtl92e_get_bb_reg() 213 u32 Original_Value, BitShift, New_Value; in rtl92e_set_rf_reg() local 225 BitShift = _rtl92e_calculate_bit_shift(BitMask); in rtl92e_set_rf_reg() 227 (Data << BitShift)); in rtl92e_set_rf_reg() 239 BitShift = _rtl92e_calculate_bit_shift(BitMask); in rtl92e_set_rf_reg() [all …]
|