Home
last modified time | relevance | path

Searched refs:bit_mask (Results 1 – 25 of 34) sorted by relevance

12

/drivers/net/ethernet/altera/
Daltera_utils.c20 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_set_bit() argument
23 value |= bit_mask; in tse_set_bit()
27 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_clear_bit() argument
30 value &= ~bit_mask; in tse_clear_bit()
34 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_bit_is_set() argument
37 return (value & bit_mask) ? 1 : 0; in tse_bit_is_set()
40 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_bit_is_clear() argument
43 return (value & bit_mask) ? 0 : 1; in tse_bit_is_clear()
Daltera_utils.h22 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
23 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
24 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask);
25 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask);
/drivers/net/wireless/rt2x00/
Drt2x00reg.h160 u8 bit_mask; member
165 u16 bit_mask; member
170 u32 bit_mask; member
249 *(__reg) &= ~((__field).bit_mask); \
252 ((__field).bit_mask); \
258 ((__reg) & ((__field).bit_mask)) >> \
Drt73usb.c317 field.bit_mask = 0x7 << field.bit_offset; in rt73usb_config_shared_key()
324 field.bit_mask = 0x7 << field.bit_offset; in rt73usb_config_shared_key()
2265 field.bit_mask = 0xffff << field.bit_offset; in rt73usb_conf_tx()
2273 field.bit_mask = 0xf << field.bit_offset; in rt73usb_conf_tx()
/drivers/hid/
Dhid-prodikeys.c313 u32 bit_mask; in pcmidi_handle_report1() local
315 bit_mask = data[1]; in pcmidi_handle_report1()
316 bit_mask = (bit_mask << 8) | data[2]; in pcmidi_handle_report1()
317 bit_mask = (bit_mask << 8) | data[3]; in pcmidi_handle_report1()
322 if (pm->midi_mode && bit_mask == 0x004000) { in pcmidi_handle_report1()
332 else if (pm->midi_mode && bit_mask == 0x000004) { in pcmidi_handle_report1()
389 u32 bit_mask; in pcmidi_handle_report4() local
392 bit_mask = data[1]; in pcmidi_handle_report4()
393 bit_mask = (bit_mask << 8) | data[2]; in pcmidi_handle_report4()
394 bit_mask = (bit_mask << 8) | data[3]; in pcmidi_handle_report4()
[all …]
/drivers/mfd/
Dadp5520.c71 uint8_t bit_mask) in __adp5520_ack_bits() argument
82 reg_val |= bit_mask; in __adp5520_ack_bits()
102 int adp5520_set_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_set_bits() argument
112 if (!ret && ((reg_val & bit_mask) != bit_mask)) { in adp5520_set_bits()
113 reg_val |= bit_mask; in adp5520_set_bits()
122 int adp5520_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_clr_bits() argument
132 if (!ret && (reg_val & bit_mask)) { in adp5520_clr_bits()
133 reg_val &= ~bit_mask; in adp5520_clr_bits()
Dda903x.c173 int da903x_set_bits(struct device *dev, int reg, uint8_t bit_mask) in da903x_set_bits() argument
185 if ((reg_val & bit_mask) != bit_mask) { in da903x_set_bits()
186 reg_val |= bit_mask; in da903x_set_bits()
195 int da903x_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in da903x_clr_bits() argument
207 if (reg_val & bit_mask) { in da903x_clr_bits()
208 reg_val &= ~bit_mask; in da903x_clr_bits()
Dtwl6030-irq.c244 int twl6030_interrupt_unmask(u8 bit_mask, u8 offset) in twl6030_interrupt_unmask() argument
251 unmask_value &= (~(bit_mask)); in twl6030_interrupt_unmask()
258 int twl6030_interrupt_mask(u8 bit_mask, u8 offset) in twl6030_interrupt_mask() argument
265 mask_value |= (bit_mask); in twl6030_interrupt_mask()
Dtps6586x.c180 int tps6586x_set_bits(struct device *dev, int reg, uint8_t bit_mask) in tps6586x_set_bits() argument
184 return regmap_update_bits(tps6586x->regmap, reg, bit_mask, bit_mask); in tps6586x_set_bits()
188 int tps6586x_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in tps6586x_clr_bits() argument
192 return regmap_update_bits(tps6586x->regmap, reg, bit_mask, 0); in tps6586x_clr_bits()
/drivers/net/wireless/rtlwifi/btcoexist/
Dhalbtcoutsrc.c508 u32 bit_mask, u8 data) in halbtc_bitmask_write_1byte() argument
515 if (bit_mask != MASKDWORD) {/*if not "double word" write*/ in halbtc_bitmask_write_1byte()
518 if ((bit_mask>>i) & 0x1) in halbtc_bitmask_write_1byte()
522 data = (original_value & (~bit_mask)) | in halbtc_bitmask_write_1byte()
523 ((data << bit_shift) & bit_mask); in halbtc_bitmask_write_1byte()
545 static void halbtc_set_bbreg(void *bt_context, u32 reg_addr, u32 bit_mask, in halbtc_set_bbreg() argument
551 rtl_set_bbreg(rtlpriv->mac80211.hw, reg_addr, bit_mask, data); in halbtc_set_bbreg()
554 static u32 halbtc_get_bbreg(void *bt_context, u32 reg_addr, u32 bit_mask) in halbtc_get_bbreg() argument
559 return rtl_get_bbreg(rtlpriv->mac80211.hw, reg_addr, bit_mask); in halbtc_get_bbreg()
563 u32 bit_mask, u32 data) in halbtc_set_rfreg() argument
[all …]
Dhalbtcoutsrc.h362 u32 bit_mask, u8 data1b);
369 u8 bit_mask, u8 data);
372 u32 bit_mask, u32 data);
375 u32 bit_mask);
378 u32 bit_mask, u32 data);
381 u32 reg_addr, u32 bit_mask);
/drivers/staging/comedi/drivers/
Dni_tio_internal.h192 register_index, unsigned bit_mask, in ni_tio_set_bits_transient() argument
201 counter_dev->regs[register_index] &= ~bit_mask; in ni_tio_set_bits_transient()
202 counter_dev->regs[register_index] |= (bit_values & bit_mask); in ni_tio_set_bits_transient()
216 unsigned bit_mask, unsigned bit_values) in ni_tio_set_bits() argument
218 ni_tio_set_bits_transient(counter, register_index, bit_mask, bit_values, in ni_tio_set_bits()
Dni_mio_common.c637 unsigned bit_mask, unsigned bit_values) in ni_set_bitfield() argument
645 devpriv->int_a_enable_reg &= ~bit_mask; in ni_set_bitfield()
646 devpriv->int_a_enable_reg |= bit_values & bit_mask; in ni_set_bitfield()
651 devpriv->int_b_enable_reg &= ~bit_mask; in ni_set_bitfield()
652 devpriv->int_b_enable_reg |= bit_values & bit_mask; in ni_set_bitfield()
657 devpriv->io_bidirection_pin_reg &= ~bit_mask; in ni_set_bitfield()
658 devpriv->io_bidirection_pin_reg |= bit_values & bit_mask; in ni_set_bitfield()
663 devpriv->ai_ao_select_reg &= ~bit_mask; in ni_set_bitfield()
664 devpriv->ai_ao_select_reg |= bit_values & bit_mask; in ni_set_bitfield()
668 devpriv->g0_g1_select_reg &= ~bit_mask; in ni_set_bitfield()
[all …]
/drivers/staging/rtl8188eu/include/
Dphy.h15 u32 reg_addr, u32 bit_mask);
17 u32 reg_addr, u32 bit_mask, u32 data);
/drivers/gpio/
Dgpio-twl4030.c413 u8 bit_mask; in gpio_twl4030_pulls() local
416 for (bit_mask = 0, j = 0; j < 8; j += 2, gpio_bit <<= 1) { in gpio_twl4030_pulls()
418 bit_mask |= 1 << (j + 1); in gpio_twl4030_pulls()
420 bit_mask |= 1 << (j + 0); in gpio_twl4030_pulls()
422 message[i] = bit_mask; in gpio_twl4030_pulls()
/drivers/video/backlight/
Dadp8860_bl.c139 static int adp8860_set_bits(struct i2c_client *client, int reg, uint8_t bit_mask) in adp8860_set_bits() argument
149 if (!ret && ((reg_val & bit_mask) != bit_mask)) { in adp8860_set_bits()
150 reg_val |= bit_mask; in adp8860_set_bits()
158 static int adp8860_clr_bits(struct i2c_client *client, int reg, uint8_t bit_mask) in adp8860_clr_bits() argument
168 if (!ret && (reg_val & bit_mask)) { in adp8860_clr_bits()
169 reg_val &= ~bit_mask; in adp8860_clr_bits()
Dadp8870_bl.c154 static int adp8870_set_bits(struct i2c_client *client, int reg, uint8_t bit_mask) in adp8870_set_bits() argument
164 if (!ret && ((reg_val & bit_mask) != bit_mask)) { in adp8870_set_bits()
165 reg_val |= bit_mask; in adp8870_set_bits()
173 static int adp8870_clr_bits(struct i2c_client *client, int reg, uint8_t bit_mask) in adp8870_clr_bits() argument
183 if (!ret && (reg_val & bit_mask)) { in adp8870_clr_bits()
184 reg_val &= ~bit_mask; in adp8870_clr_bits()
/drivers/video/fbdev/core/
Dsysimgblt.c191 u32 bit_mask, end_mask, eorx, shift; in fast_imageblit() local
217 bit_mask = (1 << ppw) - 1; in fast_imageblit()
228 end_mask = tab[(*src >> shift) & bit_mask]; in fast_imageblit()
Dcfbimgblt.c221 u32 bit_mask, end_mask, eorx, shift; in fast_imageblit() local
247 bit_mask = (1 << ppw) - 1; in fast_imageblit()
256 end_mask = tab[(*src >> shift) & bit_mask]; in fast_imageblit()
/drivers/net/can/
Dti_hecc.c272 u32 bit_mask) in hecc_set_bit() argument
274 hecc_write(priv, reg, hecc_read(priv, reg) | bit_mask); in hecc_set_bit()
278 u32 bit_mask) in hecc_clear_bit() argument
280 hecc_write(priv, reg, hecc_read(priv, reg) & ~bit_mask); in hecc_clear_bit()
283 static inline u32 hecc_get_bit(struct ti_hecc_priv *priv, int reg, u32 bit_mask) in hecc_get_bit() argument
285 return (hecc_read(priv, reg) & bit_mask) ? 1 : 0; in hecc_get_bit()
/drivers/staging/rtl8192u/
Dr8192U_dm.c1661 u32 bit_mask = 0x7f; //Bit0~ Bit6 in dm_bb_initialgain_restore() local
1669 rtl8192_setBBreg(dev, rOFDM0_XAAGCCore1, bit_mask, (u32)priv->initgain_backup.xaagccore1); in dm_bb_initialgain_restore()
1670 rtl8192_setBBreg(dev, rOFDM0_XBAGCCore1, bit_mask, (u32)priv->initgain_backup.xbagccore1); in dm_bb_initialgain_restore()
1671 rtl8192_setBBreg(dev, rOFDM0_XCAGCCore1, bit_mask, (u32)priv->initgain_backup.xcagccore1); in dm_bb_initialgain_restore()
1672 rtl8192_setBBreg(dev, rOFDM0_XDAGCCore1, bit_mask, (u32)priv->initgain_backup.xdagccore1); in dm_bb_initialgain_restore()
1673 bit_mask = bMaskByte2; in dm_bb_initialgain_restore()
1674 rtl8192_setBBreg(dev, rCCK0_CCA, bit_mask, (u32)priv->initgain_backup.cca); in dm_bb_initialgain_restore()
1704 u32 bit_mask = bMaskByte0; //Bit0~ Bit6 in dm_bb_initialgain_backup() local
1711 priv->initgain_backup.xaagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XAAGCCore1, bit_mask); in dm_bb_initialgain_backup()
1712 priv->initgain_backup.xbagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XBAGCCore1, bit_mask); in dm_bb_initialgain_backup()
[all …]
/drivers/staging/rtl8192e/rtl8192e/
Drtl_dm.c1605 u32 bit_mask = 0x7f; in dm_bb_initialgain_restore() local
1611 rtl8192_setBBreg(dev, rOFDM0_XAAGCCore1, bit_mask, (u32)priv->initgain_backup.xaagccore1); in dm_bb_initialgain_restore()
1612 rtl8192_setBBreg(dev, rOFDM0_XBAGCCore1, bit_mask, (u32)priv->initgain_backup.xbagccore1); in dm_bb_initialgain_restore()
1613 rtl8192_setBBreg(dev, rOFDM0_XCAGCCore1, bit_mask, (u32)priv->initgain_backup.xcagccore1); in dm_bb_initialgain_restore()
1614 rtl8192_setBBreg(dev, rOFDM0_XDAGCCore1, bit_mask, (u32)priv->initgain_backup.xdagccore1); in dm_bb_initialgain_restore()
1615 bit_mask = bMaskByte2; in dm_bb_initialgain_restore()
1616 rtl8192_setBBreg(dev, rCCK0_CCA, bit_mask, (u32)priv->initgain_backup.cca); in dm_bb_initialgain_restore()
1642 u32 bit_mask = bMaskByte0; in dm_bb_initialgain_backup() local
1648 priv->initgain_backup.xaagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XAAGCCore1, bit_mask); in dm_bb_initialgain_backup()
1649 priv->initgain_backup.xbagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XBAGCCore1, bit_mask); in dm_bb_initialgain_backup()
[all …]
/drivers/clk/bcm/
Dclk-kona.c206 u32 bit_mask = 1 << bit; in __ccu_wait_bit() local
213 bit_val = (val & bit_mask) != 0; in __ccu_wait_bit()
372 u32 bit_mask; in __is_clk_gate_enabled() local
379 bit_mask = 1 << gate->status_bit; in __is_clk_gate_enabled()
382 return (reg_val & bit_mask) != 0; in __is_clk_gate_enabled()
/drivers/staging/rtl8188eu/hal/
Dphy.c130 u32 reg_addr, u32 bit_mask) in phy_query_rf_reg() argument
135 bit_shift = cal_bit_shift(bit_mask); in phy_query_rf_reg()
136 readback_value = (original_value & bit_mask) >> bit_shift; in phy_query_rf_reg()
141 u32 reg_addr, u32 bit_mask, u32 data) in phy_set_rf_reg() argument
146 if (bit_mask != bRFRegOffsetMask) { in phy_set_rf_reg()
148 bit_shift = cal_bit_shift(bit_mask); in phy_set_rf_reg()
149 data = ((original_value & (~bit_mask)) | (data << bit_shift)); in phy_set_rf_reg()
Dbb_cfg.c555 static void rtl_addr_delay(struct adapter *adapt, u32 addr, u32 bit_mask ,u32 data) in rtl_addr_delay() argument
570 store_pwrindex_offset(adapt, addr, bit_mask, data); in rtl_addr_delay()

12