Lines Matching refs:bitmask
12 u32 regaddr, u32 bitmask) in rtl8723_phy_query_bb_reg() argument
18 "regaddr(%#x), bitmask(%#x)\n", regaddr, bitmask); in rtl8723_phy_query_bb_reg()
20 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_query_bb_reg()
21 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8723_phy_query_bb_reg()
24 "BBR MASK=0x%x Addr[0x%x]=0x%x\n", bitmask, in rtl8723_phy_query_bb_reg()
31 u32 bitmask, u32 data) in rtl8723_phy_set_bb_reg() argument
37 "regaddr(%#x), bitmask(%#x), data(%#x)\n", regaddr, bitmask, in rtl8723_phy_set_bb_reg()
40 if (bitmask != MASKDWORD) { in rtl8723_phy_set_bb_reg()
42 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_set_bb_reg()
43 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl8723_phy_set_bb_reg()
50 regaddr, bitmask, data); in rtl8723_phy_set_bb_reg()
54 u32 rtl8723_phy_calculate_bit_shift(u32 bitmask) in rtl8723_phy_calculate_bit_shift() argument
56 u32 i = ffs(bitmask); in rtl8723_phy_calculate_bit_shift()