Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/linux/
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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
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()
/kernel/linux/linux-5.10/fs/unicode/
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 …]
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
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()
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/
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()
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()
/kernel/linux/linux-5.10/drivers/iio/accel/
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()
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()
Dmma9551_core.h62 u8 app_id, u8 bitnum, int polarity);
Dmma9551_core.c532 u8 app_id, u8 bitnum, int polarity) in mma9551_gpio_config() argument
556 reg + 1, bitnum); in mma9551_gpio_config()
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/
Dpll.c323 static int wait_for_bit_change(void __iomem *reg, int bitnum, int value) in wait_for_bit_change() argument
332 if (FLD_GET(readl_relaxed(reg), bitnum, bitnum) == value) in wait_for_bit_change()
339 if (FLD_GET(readl_relaxed(reg), bitnum, bitnum) == value) in wait_for_bit_change()
Ddsi.c490 int bitnum, int value) in wait_for_bit_change() argument
499 if (REG_GET(dsi, idx, bitnum, bitnum) == value) in wait_for_bit_change()
506 if (REG_GET(dsi, idx, bitnum, bitnum) == value) in wait_for_bit_change()
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/
Dmdfld_dsi_output.h69 #define REG_BIT_WAIT(reg, val, bitnum) \ argument
70 REGISTER_FLD_WAIT(dev, reg, val, bitnum, bitnum)
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dcpufeature.h185 [bitnum] "i" (1 << (bit & 7)), in _static_cpu_has()
/kernel/linux/linux-5.10/drivers/video/fbdev/
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()
/kernel/linux/linux-5.10/drivers/net/usb/
Dsmsc95xx.c500 u32 bitnum = smsc95xx_hash(ha->addr); in smsc95xx_set_multicast() local
501 u32 mask = 0x01 << (bitnum & 0x1F); in smsc95xx_set_multicast()
502 if (bitnum & 0x20) in smsc95xx_set_multicast()
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()
Dlan78xx.c1109 u32 bitnum = lan78xx_hash(ha->addr); in lan78xx_set_multicast() local
1111 pdata->mchash_table[bitnum / 32] |= in lan78xx_set_multicast()
1112 (1 << (bitnum % 32)); in lan78xx_set_multicast()
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/
Dsmsc911x.c1864 unsigned int bitnum = smsc911x_hash(ha->addr); in smsc911x_set_multicast_list() local
1865 unsigned int mask = 0x01 << (bitnum & 0x1F); in smsc911x_set_multicast_list()
1867 if (bitnum & 0x20) in smsc911x_set_multicast_list()
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/
Dlan743x_main.c1149 u32 bitnum = (ether_crc(ETH_ALEN, ha->addr) >> in lan743x_rfe_set_multicast() local
1151 hash_table[bitnum / 32] |= (1 << (bitnum % 32)); in lan743x_rfe_set_multicast()
/kernel/linux/linux-5.10/drivers/net/ethernet/agere/
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()