/linux-3.4.99/drivers/net/wireless/rt2x00/ |
D | rt2x00reg.h | 162 u8 bit_mask; member 167 u16 bit_mask; member 172 u32 bit_mask; member 251 *(__reg) &= ~((__field).bit_mask); \ 254 ((__field).bit_mask); \ 260 ((__reg) & ((__field).bit_mask)) >> \
|
/linux-3.4.99/drivers/mfd/ |
D | adp5520.c | 72 uint8_t bit_mask) in __adp5520_ack_bits() argument 83 reg_val |= bit_mask; in __adp5520_ack_bits() 103 int adp5520_set_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_set_bits() argument 113 if (!ret && ((reg_val & bit_mask) != bit_mask)) { in adp5520_set_bits() 114 reg_val |= bit_mask; in adp5520_set_bits() 123 int adp5520_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_clr_bits() argument 133 if (!ret && (reg_val & bit_mask)) { in adp5520_clr_bits() 134 reg_val &= ~bit_mask; in adp5520_clr_bits()
|
D | da903x.c | 173 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()
|
D | twl6030-irq.c | 251 int twl6030_interrupt_unmask(u8 bit_mask, u8 offset) in twl6030_interrupt_unmask() argument 257 unmask_value &= (~(bit_mask)); in twl6030_interrupt_unmask() 264 int twl6030_interrupt_mask(u8 bit_mask, u8 offset) in twl6030_interrupt_mask() argument 270 mask_value |= (bit_mask); in twl6030_interrupt_mask()
|
D | tps6586x.c | 188 int tps6586x_set_bits(struct device *dev, int reg, uint8_t bit_mask) in tps6586x_set_bits() argument 200 if ((reg_val & bit_mask) != bit_mask) { in tps6586x_set_bits() 201 reg_val |= bit_mask; in tps6586x_set_bits() 210 int tps6586x_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in tps6586x_clr_bits() argument 222 if (reg_val & bit_mask) { in tps6586x_clr_bits() 223 reg_val &= ~bit_mask; in tps6586x_clr_bits()
|
/linux-3.4.99/drivers/hid/ |
D | hid-prodikeys.c | 314 u32 bit_mask; in pcmidi_handle_report1() local 316 bit_mask = data[1]; in pcmidi_handle_report1() 317 bit_mask = (bit_mask << 8) | data[2]; in pcmidi_handle_report1() 318 bit_mask = (bit_mask << 8) | data[3]; in pcmidi_handle_report1() 323 if (pm->midi_mode && bit_mask == 0x004000) { in pcmidi_handle_report1() 333 else if (pm->midi_mode && bit_mask == 0x000004) { in pcmidi_handle_report1() 390 u32 bit_mask; in pcmidi_handle_report4() local 393 bit_mask = data[1]; in pcmidi_handle_report4() 394 bit_mask = (bit_mask << 8) | data[2]; in pcmidi_handle_report4() 395 bit_mask = (bit_mask << 8) | data[3]; in pcmidi_handle_report4() [all …]
|
/linux-3.4.99/include/linux/mfd/ |
D | rc5t583.h | 301 unsigned int bit_mask) in rc5t583_set_bits() argument 304 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, bit_mask); in rc5t583_set_bits() 308 unsigned int bit_mask) in rc5t583_clear_bits() argument 311 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, 0); in rc5t583_clear_bits()
|
D | tps6586x.h | 89 extern int tps6586x_set_bits(struct device *dev, int reg, uint8_t bit_mask); 90 extern int tps6586x_clr_bits(struct device *dev, int reg, uint8_t bit_mask);
|
D | da903x.h | 245 extern int da903x_set_bits(struct device *dev, int reg, uint8_t bit_mask); 246 extern int da903x_clr_bits(struct device *dev, int reg, uint8_t bit_mask);
|
D | adp5520.h | 290 extern int adp5520_clr_bits(struct device *dev, int reg, uint8_t bit_mask); 291 extern int adp5520_set_bits(struct device *dev, int reg, uint8_t bit_mask);
|
/linux-3.4.99/arch/arm/plat-samsung/ |
D | clock-clksrc.c | 31 static inline u32 bit_mask(u32 shift, u32 nr_bits) in bit_mask() function 43 u32 mask = bit_mask(sclk->reg_div.shift, sclk->reg_div.size); in s3c_getrate_clksrc() 58 u32 mask = bit_mask(sclk->reg_div.shift, sclk->reg_div.size); in s3c_setrate_clksrc() 79 u32 mask = bit_mask(sclk->reg_src.shift, sclk->reg_src.size); in s3c_setparent_clksrc() 133 u32 mask = bit_mask(clk->reg_src.shift, clk->reg_src.size); in s3c_set_clksrc()
|
/linux-3.4.99/drivers/staging/comedi/drivers/ |
D | ni_tio_internal.h | 732 register_index, unsigned bit_mask, in ni_tio_set_bits_transient() argument 741 counter_dev->regs[register_index] &= ~bit_mask; in ni_tio_set_bits_transient() 742 counter_dev->regs[register_index] |= (bit_values & bit_mask); in ni_tio_set_bits_transient() 755 unsigned bit_mask, unsigned bit_values) in ni_tio_set_bits() argument 757 ni_tio_set_bits_transient(counter, register_index, bit_mask, bit_values, in ni_tio_set_bits()
|
/linux-3.4.99/arch/x86/include/asm/ |
D | hpet.h | 98 extern int hpet_mask_rtc_irq_bit(unsigned long bit_mask); 99 extern int hpet_set_rtc_irq_bit(unsigned long bit_mask);
|
/linux-3.4.99/include/linux/mfd/da9052/ |
D | da9052.h | 118 unsigned char bit_mask, in da9052_reg_update() argument 121 return regmap_update_bits(da9052->regmap, reg, bit_mask, reg_val); in da9052_reg_update()
|
/linux-3.4.99/drivers/gpio/ |
D | gpio-twl4030.c | 363 u8 bit_mask; in gpio_twl4030_pulls() local 366 for (bit_mask = 0, j = 0; j < 8; j += 2, gpio_bit <<= 1) { in gpio_twl4030_pulls() 368 bit_mask |= 1 << (j + 1); in gpio_twl4030_pulls() 370 bit_mask |= 1 << (j + 0); in gpio_twl4030_pulls() 372 message[i] = bit_mask; in gpio_twl4030_pulls()
|
/linux-3.4.99/drivers/video/backlight/ |
D | adp8860_bl.c | 139 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()
|
D | adp8870_bl.c | 153 static int adp8870_set_bits(struct i2c_client *client, int reg, uint8_t bit_mask) in adp8870_set_bits() argument 163 if (!ret && ((reg_val & bit_mask) != bit_mask)) { in adp8870_set_bits() 164 reg_val |= bit_mask; in adp8870_set_bits() 172 static int adp8870_clr_bits(struct i2c_client *client, int reg, uint8_t bit_mask) in adp8870_clr_bits() argument 182 if (!ret && (reg_val & bit_mask)) { in adp8870_clr_bits() 183 reg_val &= ~bit_mask; in adp8870_clr_bits()
|
/linux-3.4.99/drivers/video/ |
D | sysimgblt.c | 191 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()
|
D | cfbimgblt.c | 221 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()
|
/linux-3.4.99/arch/x86/kernel/ |
D | hpet.c | 1067 int hpet_mask_rtc_irq_bit(unsigned long bit_mask) in hpet_mask_rtc_irq_bit() argument 1072 hpet_rtc_flags &= ~bit_mask; in hpet_mask_rtc_irq_bit() 1080 int hpet_set_rtc_irq_bit(unsigned long bit_mask) in hpet_set_rtc_irq_bit() argument 1087 hpet_rtc_flags |= bit_mask; in hpet_set_rtc_irq_bit() 1089 if ((bit_mask & RTC_UIE) && !(oldbits & RTC_UIE)) in hpet_set_rtc_irq_bit()
|
/linux-3.4.99/drivers/net/can/ |
D | ti_hecc.c | 272 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()
|
/linux-3.4.99/drivers/i2c/busses/ |
D | i2c-intel-mid.c | 621 u32 bit_mask; in intel_mid_i2c_setup() local 672 bit_mask = IC_TAR_SPECIAL | IC_TAR_GC_OR_START; in intel_mid_i2c_setup() 674 if ((reg & bit_mask) != 0x0) { in intel_mid_i2c_setup() 677 writel(reg & ~bit_mask, i2c->base + IC_TAR); in intel_mid_i2c_setup()
|
/linux-3.4.99/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_dm.c | 1598 u32 bit_mask = 0x7f; in dm_bb_initialgain_restore() local 1604 rtl8192_setBBreg(dev, rOFDM0_XAAGCCore1, bit_mask, (u32)priv->initgain_backup.xaagccore1); in dm_bb_initialgain_restore() 1605 rtl8192_setBBreg(dev, rOFDM0_XBAGCCore1, bit_mask, (u32)priv->initgain_backup.xbagccore1); in dm_bb_initialgain_restore() 1606 rtl8192_setBBreg(dev, rOFDM0_XCAGCCore1, bit_mask, (u32)priv->initgain_backup.xcagccore1); in dm_bb_initialgain_restore() 1607 rtl8192_setBBreg(dev, rOFDM0_XDAGCCore1, bit_mask, (u32)priv->initgain_backup.xdagccore1); in dm_bb_initialgain_restore() 1608 bit_mask = bMaskByte2; in dm_bb_initialgain_restore() 1609 rtl8192_setBBreg(dev, rCCK0_CCA, bit_mask, (u32)priv->initgain_backup.cca); in dm_bb_initialgain_restore() 1635 u32 bit_mask = bMaskByte0; in dm_bb_initialgain_backup() local 1641 priv->initgain_backup.xaagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XAAGCCore1, bit_mask); in dm_bb_initialgain_backup() 1642 priv->initgain_backup.xbagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XBAGCCore1, bit_mask); in dm_bb_initialgain_backup() [all …]
|
/linux-3.4.99/include/scsi/ |
D | osd_protocol.h | 624 u16 bit_mask) in osd_sec_set_caps() argument 631 put_unaligned_le16(bit_mask, &cap->permissions_bit_mask); in osd_sec_set_caps()
|
/linux-3.4.99/drivers/staging/rtl8192u/ |
D | r8192U_dm.c | 1762 u32 bit_mask = 0x7f; //Bit0~ Bit6 in dm_bb_initialgain_restore() local 1770 rtl8192_setBBreg(dev, rOFDM0_XAAGCCore1, bit_mask, (u32)priv->initgain_backup.xaagccore1); in dm_bb_initialgain_restore() 1771 rtl8192_setBBreg(dev, rOFDM0_XBAGCCore1, bit_mask, (u32)priv->initgain_backup.xbagccore1); in dm_bb_initialgain_restore() 1772 rtl8192_setBBreg(dev, rOFDM0_XCAGCCore1, bit_mask, (u32)priv->initgain_backup.xcagccore1); in dm_bb_initialgain_restore() 1773 rtl8192_setBBreg(dev, rOFDM0_XDAGCCore1, bit_mask, (u32)priv->initgain_backup.xdagccore1); in dm_bb_initialgain_restore() 1774 bit_mask = bMaskByte2; in dm_bb_initialgain_restore() 1775 rtl8192_setBBreg(dev, rCCK0_CCA, bit_mask, (u32)priv->initgain_backup.cca); in dm_bb_initialgain_restore() 1805 u32 bit_mask = bMaskByte0; //Bit0~ Bit6 in dm_bb_initialgain_backup() local 1812 priv->initgain_backup.xaagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XAAGCCore1, bit_mask); in dm_bb_initialgain_backup() 1813 priv->initgain_backup.xbagccore1 = (u8)rtl8192_QueryBBReg(dev, rOFDM0_XBAGCCore1, bit_mask); in dm_bb_initialgain_backup() [all …]
|