Home
last modified time | relevance | path

Searched refs:bitnum (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/include/linux/
H A Dbit_spinlock.h16 static inline void bit_spin_lock(int bitnum, unsigned long *addr) in bit_spin_lock() argument
27 while (unlikely(test_and_set_bit_lock(bitnum, addr))) { in bit_spin_lock()
31 } while (test_bit(bitnum, addr)); in bit_spin_lock()
41 static inline int bit_spin_trylock(int bitnum, unsigned long *addr) in bit_spin_trylock() argument
45 if (unlikely(test_and_set_bit_lock(bitnum, addr))) { in bit_spin_trylock()
57 static inline void bit_spin_unlock(int bitnum, unsigned long *addr) in bit_spin_unlock() argument
60 BUG_ON(!test_bit(bitnum, addr)); in bit_spin_unlock()
63 clear_bit_unlock(bitnum, addr); in bit_spin_unlock()
74 static inline void __bit_spin_unlock(int bitnum, unsigned long *addr) in __bit_spin_unlock() argument
77 BUG_ON(!test_bit(bitnum, addr)); in __bit_spin_unlock()
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_ecc.c149 uint32_t byteoffs, bitnum; in nand_correct_data() local
161 bitnum = (s2 >> 5) & 0x04; in nand_correct_data()
162 bitnum |= (s2 >> 4) & 0x02; in nand_correct_data()
163 bitnum |= (s2 >> 3) & 0x01; in nand_correct_data()
165 dat[byteoffs] ^= (1 << bitnum); in nand_correct_data()
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A Dtimer.c59 s8 bitnum = p[offset]; in tulip_media_task() local
72 csr12, (bitnum >> 1) & 7, in tulip_media_task()
73 (csr12 & (1 << ((bitnum >> 1) & 7))) != 0, in tulip_media_task()
74 (bitnum >= 0)); in tulip_media_task()
76 if ((bitnum < 0) != in tulip_media_task()
77 ((csr12 & (1 << ((bitnum >> 1) & 7))) != 0)) { in tulip_media_task()
/openbmc/linux/fs/unicode/
H A Dmkutf8data.c369 unsigned char bitnum; member
389 if (*key & (1 << (node->bitnum & 7))) { in lookup()
441 node->bitnum, node->nextbyte, in tree_walk()
449 bitmask = 1 << node->bitnum; in tree_walk()
495 int bitnum; in alloc_node() local
510 bitnum = parent->bitnum; in alloc_node()
511 if ((bitnum & 7) == 0) { in alloc_node()
512 node->bitnum = bitnum + 7 + 8; in alloc_node()
515 node->bitnum = bitnum - 1; in alloc_node()
519 node->bitnum = 7; in alloc_node()
[all …]
/openbmc/linux/drivers/video/fbdev/core/
H A Dsvgalib.c26 u8 regval, bitval, bitnum; in svga_wcrt_multi() local
30 bitnum = regset->lowbit; in svga_wcrt_multi()
31 while (bitnum <= regset->highbit) { in svga_wcrt_multi()
32 bitval = 1 << bitnum; in svga_wcrt_multi()
35 bitnum ++; in svga_wcrt_multi()
46 u8 regval, bitval, bitnum; in svga_wseq_multi() local
50 bitnum = regset->lowbit; in svga_wseq_multi()
51 while (bitnum <= regset->highbit) { in svga_wseq_multi()
52 bitval = 1 << bitnum; in svga_wseq_multi()
55 bitnum ++; in svga_wseq_multi()
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Dpll.c187 static int wait_for_bit_change(void __iomem *reg, int bitnum, int value) in wait_for_bit_change() argument
196 if (FLD_GET(readl_relaxed(reg), bitnum, bitnum) == value) in wait_for_bit_change()
203 if (FLD_GET(readl_relaxed(reg), bitnum, bitnum) == value) in wait_for_bit_change()
H A Ddsi.c492 const struct dsi_reg idx, int bitnum, int value) in wait_for_bit_change() argument
501 if (REG_GET(dsidev, idx, bitnum, bitnum) == value) in wait_for_bit_change()
508 if (REG_GET(dsidev, idx, bitnum, bitnum) == value) in wait_for_bit_change()
/openbmc/linux/drivers/iio/accel/
H A Dmma9551.c188 int bitnum; in mma9551_config_incli_event() local
193 bitnum = 7 + 8 * MMA9551_TILT_YZ_ANG_REG; in mma9551_config_incli_event()
196 bitnum = 7 + 8 * MMA9551_TILT_XZ_ANG_REG; in mma9551_config_incli_event()
199 bitnum = 7 + 8 * MMA9551_TILT_XY_ANG_REG; in mma9551_config_incli_event()
212 MMA9551_APPID_TILT, bitnum, 0); in mma9551_config_incli_event()
H A Dmma9553.c335 u8 bitnum = 0, appid = MMA9551_APPID_PEDOMETER; in mma9553_conf_gpio() local
350 bitnum = MMA9553_STATUS_TO_BITNUM(MMA9553_MASK_STATUS_MRGFL); in mma9553_conf_gpio()
352 bitnum = MMA9553_STATUS_TO_BITNUM(MMA9553_MASK_STATUS_STEPCHG); in mma9553_conf_gpio()
354 bitnum = MMA9553_STATUS_TO_BITNUM(MMA9553_MASK_STATUS_ACTCHG); in mma9553_conf_gpio()
358 if (data->gpio_bitnum == bitnum) in mma9553_conf_gpio()
370 bitnum, MMA9553_DEFAULT_GPIO_POLARITY); in mma9553_conf_gpio()
373 data->gpio_bitnum = bitnum; in mma9553_conf_gpio()
H A Dmma9551_core.h62 u8 app_id, u8 bitnum, int polarity);
H A Dmma9551_core.c538 u8 app_id, u8 bitnum, int polarity) in mma9551_gpio_config() argument
562 reg + 1, bitnum); in mma9551_gpio_config()
/openbmc/linux/drivers/gpu/drm/omapdrm/dss/
H A Dpll.c329 static int wait_for_bit_change(void __iomem *reg, int bitnum, int value) in wait_for_bit_change() argument
338 if (FLD_GET(readl_relaxed(reg), bitnum, bitnum) == value) in wait_for_bit_change()
345 if (FLD_GET(readl_relaxed(reg), bitnum, bitnum) == value) in wait_for_bit_change()
H A Ddsi.c137 int bitnum, int value) in wait_for_bit_change() argument
146 if (REG_GET(dsi, idx, bitnum, bitnum) == value) in wait_for_bit_change()
153 if (REG_GET(dsi, idx, bitnum, bitnum) == value) in wait_for_bit_change()
/openbmc/linux/arch/um/include/asm/
H A Dcpufeature.h111 [bitnum] "i" (1 << (bit & 7)), in _static_cpu_has()
/openbmc/linux/arch/x86/include/asm/
H A Dcpufeature.h184 [bitnum] "i" (1 << (bit & 7)), in _static_cpu_has()
/openbmc/linux/drivers/pinctrl/nuvoton/
H A Dpinctrl-wpcm450.c113 static int wpcm450_irq_bitnum_to_gpio(struct wpcm450_gpio *gpio, int bitnum) in wpcm450_irq_bitnum_to_gpio() argument
117 if (bitnum < bank->first_irq_bit) in wpcm450_irq_bitnum_to_gpio()
120 if (bitnum - bank->first_irq_bit > bank->num_irqs) in wpcm450_irq_bitnum_to_gpio()
123 return bitnum - bank->first_irq_bit + bank->first_irq_gpio; in wpcm450_irq_bitnum_to_gpio()
/openbmc/linux/drivers/video/fbdev/
H A Dbroadsheetfb.c364 u16 reg, int bitnum, int val, in broadsheet_spiflash_wait_for_bit() argument
371 if (((tmp >> bitnum) & 1) == val) in broadsheet_spiflash_wait_for_bit()
/openbmc/linux/drivers/net/usb/
H A Dsmsc95xx.c506 u32 bitnum = smsc95xx_hash(ha->addr); in smsc95xx_set_multicast() local
507 u32 mask = 0x01 << (bitnum & 0x1F); in smsc95xx_set_multicast()
508 if (bitnum & 0x20) in smsc95xx_set_multicast()
H A Dsmsc75xx.c573 u32 bitnum = smsc75xx_hash(ha->addr); in smsc75xx_set_multicast() local
574 pdata->multicast_hash_table[bitnum / 32] |= in smsc75xx_set_multicast()
575 (1 << (bitnum % 32)); in smsc75xx_set_multicast()
H A Dlan78xx.c1319 u32 bitnum = lan78xx_hash(ha->addr); in lan78xx_set_multicast() local
1321 pdata->mchash_table[bitnum / 32] |= in lan78xx_set_multicast()
1322 (1 << (bitnum % 32)); in lan78xx_set_multicast()
/openbmc/linux/drivers/net/ethernet/smsc/
H A Dsmsc911x.c1874 unsigned int bitnum = smsc911x_hash(ha->addr); in smsc911x_set_multicast_list() local
1875 unsigned int mask = 0x01 << (bitnum & 0x1F); in smsc911x_set_multicast_list()
1877 if (bitnum & 0x20) in smsc911x_set_multicast_list()
/openbmc/qemu/target/m68k/
H A Dtranslate.c2090 int bitnum; in DISAS_INSN() local
2100 bitnum = read_im16(env, s); in DISAS_INSN()
2102 if (bitnum & 0xfe00) { in DISAS_INSN()
2107 if (bitnum & 0xff00) { in DISAS_INSN()
2117 bitnum &= 7; in DISAS_INSN()
2119 bitnum &= 31; in DISAS_INSN()
2120 mask = 1 << bitnum; in DISAS_INSN()
/openbmc/linux/drivers/net/ethernet/agere/
H A Det131x.c1298 u16 bitnum, in et1310_phy_read_mii_bit() argument
1302 u16 mask = 1 << bitnum; in et1310_phy_read_mii_bit()
1306 *value = (reg & mask) >> bitnum; in et1310_phy_read_mii_bit()
/openbmc/linux/drivers/net/ethernet/microchip/
H A Dlan743x_main.c1636 u32 bitnum = (ether_crc(ETH_ALEN, ha->addr) >> in lan743x_rfe_set_multicast() local
1638 hash_table[bitnum / 32] |= (1 << (bitnum % 32)); in lan743x_rfe_set_multicast()