Lines Matching refs:bitmask

41 static u32 _rtl92ee_phy_calculate_bit_shift(u32 bitmask);
63 u32 rtl92ee_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask) in rtl92ee_phy_query_bb_reg() argument
69 "regaddr(%#x), bitmask(%#x)\n", regaddr, bitmask); in rtl92ee_phy_query_bb_reg()
71 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_query_bb_reg()
72 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92ee_phy_query_bb_reg()
76 bitmask, regaddr, originalvalue); in rtl92ee_phy_query_bb_reg()
82 u32 bitmask, u32 data) in rtl92ee_phy_set_bb_reg() argument
89 regaddr, bitmask, data); in rtl92ee_phy_set_bb_reg()
91 if (bitmask != MASKDWORD) { in rtl92ee_phy_set_bb_reg()
93 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_set_bb_reg()
94 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92ee_phy_set_bb_reg()
101 regaddr, bitmask, data); in rtl92ee_phy_set_bb_reg()
105 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92ee_phy_query_rf_reg() argument
113 regaddr, rfpath, bitmask); in rtl92ee_phy_query_rf_reg()
118 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_query_rf_reg()
119 readback_value = (original_value & bitmask) >> bitshift; in rtl92ee_phy_query_rf_reg()
125 regaddr, rfpath, bitmask, original_value); in rtl92ee_phy_query_rf_reg()
132 u32 addr, u32 bitmask, u32 data) in rtl92ee_phy_set_rf_reg() argument
140 addr, bitmask, data, rfpath); in rtl92ee_phy_set_rf_reg()
144 if (bitmask != RFREG_OFFSET_MASK) { in rtl92ee_phy_set_rf_reg()
146 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_set_rf_reg()
147 data = (original_value & (~bitmask)) | (data << bitshift); in rtl92ee_phy_set_rf_reg()
156 addr, bitmask, data, rfpath); in rtl92ee_phy_set_rf_reg()
229 static u32 _rtl92ee_phy_calculate_bit_shift(u32 bitmask) in _rtl92ee_phy_calculate_bit_shift() argument
234 if (((bitmask >> i) & 0x1) == 1) in _rtl92ee_phy_calculate_bit_shift()
864 u32 bitmask, u32 data) in _rtl92ee_store_tx_power_by_rate() argument