/drivers/net/ethernet/brocade/bna/ |
D | bna.h | 122 #define is_xxx_enable(mode, bitmask, xxx) ((bitmask & xxx) && (mode & xxx)) argument 124 #define is_xxx_disable(mode, bitmask, xxx) ((bitmask & xxx) && !(mode & xxx)) argument 126 #define xxx_enable(mode, bitmask, xxx) \ argument 128 bitmask |= xxx; \ 132 #define xxx_disable(mode, bitmask, xxx) \ argument 134 bitmask |= xxx; \ 138 #define xxx_inactive(mode, bitmask, xxx) \ argument 140 bitmask &= ~xxx; \ 144 #define is_promisc_enable(mode, bitmask) \ argument 145 is_xxx_enable(mode, bitmask, BNA_RXMODE_PROMISC) [all …]
|
/drivers/hwmon/ |
D | asc7621.c | 850 PREAD(in0_alarm, 0, PRI_HIGH, 0x41, 0, 0x01, 0, bitmask), 851 PREAD(in1_alarm, 1, PRI_HIGH, 0x41, 0, 0x01, 1, bitmask), 852 PREAD(in2_alarm, 2, PRI_HIGH, 0x41, 0, 0x01, 2, bitmask), 853 PREAD(in3_alarm, 3, PRI_HIGH, 0x41, 0, 0x01, 3, bitmask), 854 PREAD(in4_alarm, 4, PRI_HIGH, 0x42, 0, 0x01, 0, bitmask), 866 PREAD(fan1_alarm, 0, PRI_HIGH, 0x42, 0, 0x01, 2, bitmask), 867 PREAD(fan2_alarm, 1, PRI_HIGH, 0x42, 0, 0x01, 3, bitmask), 868 PREAD(fan3_alarm, 2, PRI_HIGH, 0x42, 0, 0x01, 4, bitmask), 869 PREAD(fan4_alarm, 3, PRI_HIGH, 0x42, 0, 0x01, 5, bitmask), 890 PREAD(temp1_alarm, 0, PRI_HIGH, 0x41, 0, 0x01, 4, bitmask), [all …]
|
/drivers/staging/rtl8192u/ |
D | r819xU_phy.c | 47 static u32 rtl8192_CalculateBitShift(u32 bitmask) in rtl8192_CalculateBitShift() argument 51 i = ffs(bitmask) - 1; in rtl8192_CalculateBitShift() 89 void rtl8192_setBBreg(struct net_device *dev, u32 reg_addr, u32 bitmask, in rtl8192_setBBreg() argument 95 if (bitmask != bMaskDWord) { in rtl8192_setBBreg() 97 bitshift = rtl8192_CalculateBitShift(bitmask); in rtl8192_setBBreg() 98 reg &= ~bitmask; in rtl8192_setBBreg() 115 u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, u32 bitmask) in rtl8192_QueryBBReg() argument 120 bitshift = rtl8192_CalculateBitShift(bitmask); in rtl8192_QueryBBReg() 122 return (reg & bitmask) >> bitshift; in rtl8192_QueryBBReg() 297 u32 reg_addr, u32 bitmask, u32 data) in rtl8192_phy_SetRFReg() argument [all …]
|
D | r819xU_phy.h | 62 u32 bitmask, u32 data); 63 u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, u32 bitmask); 65 u32 reg_addr, u32 bitmask, u32 data); 67 u32 reg_addr, u32 bitmask);
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | phy.h | 82 u32 rtl92c_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask); 83 void rtl92c_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, 86 u32 regaddr, u32 bitmask); 88 u32 regaddr, u32 bitmask, u32 data); 123 u32 _rtl92c_phy_calculate_bit_shift(u32 bitmask); 130 u32 regaddr, u32 bitmask, u32 data);
|
D | phy.c | 48 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92c_phy_query_rf_reg() argument 56 regaddr, rfpath, bitmask); in rtl92c_phy_query_rf_reg() 68 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_query_rf_reg() 69 readback_value = (original_value & bitmask) >> bitshift; in rtl92c_phy_query_rf_reg() 75 regaddr, rfpath, bitmask, original_value); in rtl92c_phy_query_rf_reg() 122 u32 regaddr, u32 bitmask, u32 data) in rtl92ce_phy_set_rf_reg() argument 130 regaddr, bitmask, data, rfpath); in rtl92ce_phy_set_rf_reg() 135 if (bitmask != RFREG_OFFSET_MASK) { in rtl92ce_phy_set_rf_reg() 139 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg() 141 ((original_value & (~bitmask)) | in rtl92ce_phy_set_rf_reg() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | phy.c | 45 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92cu_phy_query_rf_reg() argument 53 regaddr, rfpath, bitmask); in rtl92cu_phy_query_rf_reg() 61 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_query_rf_reg() 62 readback_value = (original_value & bitmask) >> bitshift; in rtl92cu_phy_query_rf_reg() 65 regaddr, rfpath, bitmask, original_value); in rtl92cu_phy_query_rf_reg() 71 u32 regaddr, u32 bitmask, u32 data) in rtl92cu_phy_set_rf_reg() argument 79 regaddr, bitmask, data, rfpath); in rtl92cu_phy_set_rf_reg() 81 if (bitmask != RFREG_OFFSET_MASK) { in rtl92cu_phy_set_rf_reg() 85 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg() 87 ((original_value & (~bitmask)) | in rtl92cu_phy_set_rf_reg() [all …]
|
D | sw.h | 46 u32 regaddr, u32 bitmask, u32 data); 50 enum radio_path rfpath, u32 regaddr, u32 bitmask);
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
D | phy_common.c | 34 u32 regaddr, u32 bitmask) in rtl8723_phy_query_bb_reg() argument 40 "regaddr(%#x), bitmask(%#x)\n", regaddr, bitmask); in rtl8723_phy_query_bb_reg() 42 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_query_bb_reg() 43 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8723_phy_query_bb_reg() 46 "BBR MASK=0x%x Addr[0x%x]=0x%x\n", bitmask, in rtl8723_phy_query_bb_reg() 53 u32 bitmask, u32 data) in rtl8723_phy_set_bb_reg() argument 59 "regaddr(%#x), bitmask(%#x), data(%#x)\n", regaddr, bitmask, in rtl8723_phy_set_bb_reg() 62 if (bitmask != MASKDWORD) { in rtl8723_phy_set_bb_reg() 64 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_set_bb_reg() 65 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl8723_phy_set_bb_reg() [all …]
|
D | phy_common.h | 49 u32 regaddr, u32 bitmask); 51 u32 bitmask, u32 data); 52 u32 rtl8723_phy_calculate_bit_shift(u32 bitmask);
|
/drivers/media/radio/ |
D | radio-zoltrix.c | 110 unsigned long long bitmask, f, m; in zoltrix_s_frequency() local 122 bitmask = 0xc480402c10080000ull; in zoltrix_s_frequency() 132 bitmask = (bitmask ^ ((f & 0xff) << 47) ^ ((f & 0xff00) << 30) ^ (stereo << 31)); in zoltrix_s_frequency() 134 if ((bitmask & 0x8000000000000000ull) != 0) { in zoltrix_s_frequency() 149 bitmask *= 2; in zoltrix_s_frequency()
|
/drivers/input/joystick/ |
D | twidjoy.c | 69 int bitmask; member 111 for (bp = twidjoy_buttons; bp->bitmask; bp++) { in twidjoy_process_packet() 112 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet() 115 for (i = 0; i < bp->bitmask; i++) in twidjoy_process_packet() 209 for (bp = twidjoy_buttons; bp->bitmask; bp++) in twidjoy_connect() 210 for (i = 0; i < bp->bitmask; i++) in twidjoy_connect()
|
/drivers/staging/rtl8712/ |
D | rtl871x_mp.c | 209 static u32 bitshift(u32 bitmask) in bitshift() argument 214 if (((bitmask >> i) & 0x1) == 1) in bitshift() 219 static u32 get_bb_reg(struct _adapter *pAdapter, u16 offset, u32 bitmask) in get_bb_reg() argument 224 bit_shift = bitshift(bitmask); in get_bb_reg() 225 return (org_value & bitmask) >> bit_shift; in get_bb_reg() 230 u32 bitmask, in set_bb_reg() argument 235 if (bitmask != bMaskDWord) { in set_bb_reg() 237 bit_shift = bitshift(bitmask); in set_bb_reg() 238 new_value = ((org_value & (~bitmask)) | (value << bit_shift)); in set_bb_reg() 246 u32 bitmask) in get_rf_reg() argument [all …]
|
D | rtl871x_mp.h | 261 u32 r8712_get_bb_reg(struct _adapter *Adapter, u16 offset, u32 bitmask); 263 u32 bitmask, u32 value); 265 u32 bitmask); 267 u32 bitmask, u32 value);
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | phy.h | 77 u32 rtl92s_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask); 78 void rtl92s_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, 82 u32 regaddr, u32 bitmask); 84 u32 regaddr, u32 bitmask, u32 data);
|
D | phy.c | 43 static u32 _rtl92s_phy_calculate_bit_shift(u32 bitmask) in _rtl92s_phy_calculate_bit_shift() argument 48 if (((bitmask >> i) & 0x1) == 1) in _rtl92s_phy_calculate_bit_shift() 55 u32 rtl92s_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask) in rtl92s_phy_query_bb_reg() argument 61 regaddr, bitmask); in rtl92s_phy_query_bb_reg() 64 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_bb_reg() 65 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92s_phy_query_bb_reg() 68 bitmask, regaddr, originalvalue); in rtl92s_phy_query_bb_reg() 74 void rtl92s_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, in rtl92s_phy_set_bb_reg() argument 82 regaddr, bitmask, data); in rtl92s_phy_set_bb_reg() 84 if (bitmask != MASKDWORD) { in rtl92s_phy_set_bb_reg() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | phy.h | 120 u32 regaddr, u32 bitmask); 122 u32 regaddr, u32 bitmask, u32 data); 125 u32 bitmask); 128 u32 bitmask, u32 data);
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | phy.h | 129 u32 regaddr, u32 bitmask); 131 u32 regaddr, u32 bitmask, u32 data); 134 u32 bitmask); 137 u32 bitmask, u32 data);
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
D | phy_common.h | 189 u32 regaddr, u32 bitmask); 191 u32 regaddr, u32 bitmask, u32 data); 194 u32 bitmask); 225 u32 _rtl92c_phy_calculate_bit_shift(u32 bitmask); 250 u32 regaddr, u32 bitmask,
|
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | phy.h | 201 u32 regaddr, u32 bitmask); 203 u32 regaddr, u32 bitmask, u32 data); 206 u32 bitmask); 209 u32 bitmask, u32 data);
|
D | phy.c | 41 static u32 _rtl88e_phy_calculate_bit_shift(u32 bitmask); 63 u32 rtl88e_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask) in rtl88e_phy_query_bb_reg() argument 69 "regaddr(%#x), bitmask(%#x)\n", regaddr, bitmask); in rtl88e_phy_query_bb_reg() 71 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_query_bb_reg() 72 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl88e_phy_query_bb_reg() 75 "BBR MASK=0x%x Addr[0x%x]=0x%x\n", bitmask, in rtl88e_phy_query_bb_reg() 83 u32 regaddr, u32 bitmask, u32 data) in rtl88e_phy_set_bb_reg() argument 90 regaddr, bitmask, data); in rtl88e_phy_set_bb_reg() 92 if (bitmask != MASKDWORD) { in rtl88e_phy_set_bb_reg() 94 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_set_bb_reg() [all …]
|
/drivers/pinctrl/nomadik/ |
D | pinctrl-nomadik.c | 665 u32 bitmask = nmk_gpio_get_bitmask(gpio); in __nmk_gpio_irq_modify() local 684 if (nmk_chip->edge_rising & bitmask) { in __nmk_gpio_irq_modify() 686 *rimscval |= bitmask; in __nmk_gpio_irq_modify() 688 *rimscval &= ~bitmask; in __nmk_gpio_irq_modify() 691 if (nmk_chip->edge_falling & bitmask) { in __nmk_gpio_irq_modify() 693 *fimscval |= bitmask; in __nmk_gpio_irq_modify() 695 *fimscval &= ~bitmask; in __nmk_gpio_irq_modify() 720 u32 bitmask; in nmk_gpio_irq_maskunmask() local 723 bitmask = nmk_gpio_get_bitmask(d->hwirq); in nmk_gpio_irq_maskunmask() 733 if (!(nmk_chip->real_wake & bitmask)) in nmk_gpio_irq_maskunmask() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | phy.h | 209 u32 regaddr, u32 bitmask); 211 u32 regaddr, u32 bitmask, u32 data); 214 u32 bitmask); 217 u32 bitmask, u32 data);
|
/drivers/tty/serial/ |
D | sccnxp.c | 341 u8 bitmask; in sccnxp_set_bit() local 345 bitmask = 1 << MCTRL_OBIT(s->pdata.mctrl_cfg[port->line], sig); in sccnxp_set_bit() 347 sccnxp_write(port, SCCNXP_SOP_REG, bitmask); in sccnxp_set_bit() 349 sccnxp_write(port, SCCNXP_ROP_REG, bitmask); in sccnxp_set_bit() 554 u8 bitmask, ipr; in sccnxp_get_mctrl() local 567 bitmask = 1 << MCTRL_IBIT(s->pdata.mctrl_cfg[port->line], in sccnxp_get_mctrl() 570 mctrl |= (ipr & bitmask) ? TIOCM_DSR : 0; in sccnxp_get_mctrl() 573 bitmask = 1 << MCTRL_IBIT(s->pdata.mctrl_cfg[port->line], in sccnxp_get_mctrl() 576 mctrl |= (ipr & bitmask) ? TIOCM_CTS : 0; in sccnxp_get_mctrl() 579 bitmask = 1 << MCTRL_IBIT(s->pdata.mctrl_cfg[port->line], in sccnxp_get_mctrl() [all …]
|
/drivers/video/fbdev/ |
D | arcfb.c | 254 unsigned char bitmask, rightshift; in arcfb_lcd_update_page() local 267 bitmask=1; in arcfb_lcd_update_page() 273 val |= (*(src + (i*linesize)) & bitmask) in arcfb_lcd_update_page() 276 val |= (*(src + (i*linesize)) & bitmask) in arcfb_lcd_update_page() 282 if (bitmask == 0x80) { in arcfb_lcd_update_page() 283 bitmask = 1; in arcfb_lcd_update_page() 287 bitmask <<= 1; in arcfb_lcd_update_page()
|