Home
last modified time | relevance | path

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

/linux/include/linux/
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()
77 BUG_ON(!test_bit(bitnum, addr)); in __bit_spin_unlock()
80 __clear_bit_unlock(bitnum, addr); in __bit_spin_unlock()
[all …]
/linux/drivers/net/ethernet/dec/tulip/
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()
/linux/fs/unicode/
A Dmkutf8data.c369 unsigned char bitnum; member
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()
766 bitmask = 1 << node->bitnum; in prune()
1098 while (n->bitnum != node->bitnum) { in size_nodes()
1099 nbit = 1 << n->bitnum; in size_nodes()
[all …]
/linux/drivers/video/fbdev/core/
A Dsvgalib.c25 u8 regval, bitval, bitnum; in svga_wcrt_multi() local
29 bitnum = regset->lowbit; in svga_wcrt_multi()
30 while (bitnum <= regset->highbit) { in svga_wcrt_multi()
31 bitval = 1 << bitnum; in svga_wcrt_multi()
34 bitnum ++; in svga_wcrt_multi()
45 u8 regval, bitval, bitnum; in svga_wseq_multi() local
49 bitnum = regset->lowbit; in svga_wseq_multi()
50 while (bitnum <= regset->highbit) { in svga_wseq_multi()
51 bitval = 1 << bitnum; in svga_wseq_multi()
54 bitnum ++; in svga_wseq_multi()
/linux/drivers/video/fbdev/omap2/omapfb/dss/
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()
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()
/linux/drivers/iio/accel/
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()
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()
A Dmma9551_core.h62 u8 app_id, u8 bitnum, int polarity);
A Dmma9551_core.c532 u8 app_id, u8 bitnum, int polarity) in mma9551_gpio_config() argument
556 reg + 1, bitnum); in mma9551_gpio_config()
/linux/drivers/gpu/drm/omapdrm/dss/
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()
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()
/linux/arch/um/include/asm/
A Dcpufeature.h125 [bitnum] "i" (1 << (bit & 7)), in _static_cpu_has()
/linux/arch/x86/include/asm/
A Dcpufeature.h193 [bitnum] "i" (1 << (bit & 7)), in _static_cpu_has()
/linux/drivers/video/fbdev/
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()
/linux/drivers/net/usb/
A Dsmsc95xx.c485 u32 bitnum = smsc95xx_hash(ha->addr); in smsc95xx_set_multicast() local
486 u32 mask = 0x01 << (bitnum & 0x1F); in smsc95xx_set_multicast()
487 if (bitnum & 0x20) in smsc95xx_set_multicast()
A Dsmsc75xx.c571 u32 bitnum = smsc75xx_hash(ha->addr); in smsc75xx_set_multicast() local
572 pdata->multicast_hash_table[bitnum / 32] |= in smsc75xx_set_multicast()
573 (1 << (bitnum % 32)); in smsc75xx_set_multicast()
A Dlan78xx.c1155 u32 bitnum = lan78xx_hash(ha->addr); in lan78xx_set_multicast() local
1157 pdata->mchash_table[bitnum / 32] |= in lan78xx_set_multicast()
1158 (1 << (bitnum % 32)); in lan78xx_set_multicast()
/linux/drivers/net/ethernet/smsc/
A Dsmsc911x.c1872 unsigned int bitnum = smsc911x_hash(ha->addr); in smsc911x_set_multicast_list() local
1873 unsigned int mask = 0x01 << (bitnum & 0x1F); in smsc911x_set_multicast_list()
1875 if (bitnum & 0x20) in smsc911x_set_multicast_list()
/linux/drivers/net/ethernet/microchip/
A Dlan743x_main.c1122 u32 bitnum = (ether_crc(ETH_ALEN, ha->addr) >> in lan743x_rfe_set_multicast() local
1124 hash_table[bitnum / 32] |= (1 << (bitnum % 32)); in lan743x_rfe_set_multicast()
/linux/drivers/net/ethernet/agere/
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()

Completed in 72 milliseconds