/linux-6.3-rc2/arch/m68k/include/asm/ |
A D | bitops.h | 47 : "di" (nr & 7)); in bset_mem_set_bit() 59 #define set_bit(nr, vaddr) bset_reg_set_bit(nr, vaddr) argument 61 #define set_bit(nr, vaddr) bset_mem_set_bit(nr, vaddr) argument 63 #define set_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ argument 71 set_bit(nr, addr); in arch___set_bit() 102 #define clear_bit(nr, vaddr) bclr_reg_clear_bit(nr, vaddr) argument 104 #define clear_bit(nr, vaddr) bclr_mem_clear_bit(nr, vaddr) argument 106 #define clear_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ argument 145 #define change_bit(nr, vaddr) bchg_reg_change_bit(nr, vaddr) argument 147 #define change_bit(nr, vaddr) bchg_mem_change_bit(nr, vaddr) argument [all …]
|
A D | raw_io.h | 114 if (nr & 15) { in raw_outsb() 122 if (nr >> 4) { in raw_outsb() 153 if (nr & 15) { in raw_insw() 161 if (nr >> 4) { in raw_insw() 193 if (nr & 15) { in raw_outsw() 201 if (nr >> 4) { in raw_outsw() 232 if (nr & 15) { in raw_insl() 240 if (nr >> 4) { in raw_insl() 272 if (nr & 15) { in raw_outsl() 280 if (nr >> 4) { in raw_outsl() [all …]
|
/linux-6.3-rc2/arch/x86/include/asm/ |
A D | bitops.h | 48 #define CONST_MASK_ADDR(nr, addr) WBYTE_ADDR((void *)(addr) + ((nr)>>3)) argument 49 #define CONST_MASK(nr) (1 << ((nr) & 7)) argument 56 : CONST_MASK_ADDR(nr, addr) in arch_set_bit() 57 : "iq" (CONST_MASK(nr)) in arch_set_bit() 76 : CONST_MASK_ADDR(nr, addr) in arch_clear_bit() 77 : "iq" (~CONST_MASK(nr))); in arch_clear_bit() 88 arch_clear_bit(nr, addr); in arch_clear_bit_unlock() 113 arch___clear_bit(nr, addr); in arch___clear_bit_unlock() 128 : "iq" (CONST_MASK(nr))); in arch_change_bit() 239 return __builtin_constant_p(nr) ? constant_test_bit(nr, addr) : in arch_test_bit() [all …]
|
/linux-6.3-rc2/arch/s390/include/asm/ |
A D | bitops.h | 49 addr = (unsigned long)ptr + ((nr ^ (nr & (BITS_PER_LONG - 1))) >> 3); in __bitops_word() 61 unsigned long mask = __bitops_mask(nr); in arch_set_bit() 69 unsigned long mask = __bitops_mask(nr); in arch_clear_bit() 78 unsigned long mask = __bitops_mask(nr); in arch_change_bit() 87 unsigned long mask = __bitops_mask(nr); in arch_test_and_set_bit() 98 unsigned long mask = __bitops_mask(nr); in arch_test_and_clear_bit() 109 unsigned long mask = __bitops_mask(nr); in arch_test_and_change_bit() 185 if (arch_test_bit(nr, ptr)) in arch_test_and_set_bit_lock() 187 return arch_test_and_set_bit(nr, ptr); in arch_test_and_set_bit_lock() 194 arch_clear_bit(nr, ptr); in arch_clear_bit_unlock() [all …]
|
A D | facility.h | 29 if (nr >= MAX_FACILITY_BIT) in __set_facility() 31 ptr[nr >> 3] |= 0x80 >> (nr & 7); in __set_facility() 38 if (nr >= MAX_FACILITY_BIT) in __clear_facility() 40 ptr[nr >> 3] &= ~(0x80 >> (nr & 7)); in __clear_facility() 47 if (nr >= MAX_FACILITY_BIT) in __test_facility() 50 return (*ptr & (0x80 >> (nr & 7))) != 0; in __test_facility() 62 if (__builtin_constant_p(nr) && nr < sizeof(facilities_als) * 8) { in test_facility() 90 unsigned long nr; in __stfle() local 98 nr = 4; /* bytes stored by stfl */ in __stfle() 102 nr = min_t(unsigned long, (nr + 1) * 8, size * 8); in __stfle() [all …]
|
/linux-6.3-rc2/drivers/hwmon/ |
A D | f75375s.c | 46 #define F75375_REG_VOLT(nr) (0x10 + (nr)) argument 50 #define F75375_REG_TEMP(nr) (0x14 + (nr)) argument 71 #define F75375_FAN_CTRL_LINEAR(nr) (4 + nr) argument 73 #define FAN_CTRL_MODE(nr) (4 + ((nr) * 2)) argument 75 #define F75387_FAN_MANU_MODE(nr) ((nr) * 4) argument 187 for (nr = 0; nr < 2; nr++) { in f75375_update_device() 199 for (nr = 0; nr < 4; nr++) { in f75375_update_device() 212 for (nr = 0; nr < 2; nr++) { in f75375_update_device() 226 for (nr = 0; nr < 4; nr++) in f75375_update_device() 763 for (nr = 0; nr < 2; nr++) { in f75375_init() [all …]
|
A D | emc6w201.c | 27 #define EMC6W201_REG_IN(nr) (0x20 + (nr)) argument 28 #define EMC6W201_REG_TEMP(nr) (0x26 + (nr)) argument 29 #define EMC6W201_REG_FAN(nr) (0x2C + (nr) * 2) argument 33 #define EMC6W201_REG_IN_LOW(nr) (0x4A + (nr) * 2) argument 34 #define EMC6W201_REG_IN_HIGH(nr) (0x4B + (nr) * 2) argument 37 #define EMC6W201_REG_FAN_MIN(nr) (0x62 + (nr) * 2) argument 131 for (nr = 0; nr < 6; nr++) { in emc6w201_update_device() 143 for (nr = 0; nr < 6; nr++) { in emc6w201_update_device() 155 for (nr = 0; nr < 5; nr++) { in emc6w201_update_device() 184 int nr = to_sensor_dev_attr_2(devattr)->nr; in in_show() local [all …]
|
/linux-6.3-rc2/arch/sh/include/asm/ |
A D | bitops-op32.h | 14 #define BYTE_NUMBER(nr) ((nr ^ BITOP_LE_SWIZZLE) / BITS_PER_BYTE) argument 15 #define BYTE_OFFSET(nr) ((nr ^ BITOP_LE_SWIZZLE) % BITS_PER_BYTE) argument 17 #define BYTE_NUMBER(nr) ((nr) / BITS_PER_BYTE) argument 18 #define BYTE_OFFSET(nr) ((nr) % BITS_PER_BYTE) argument 24 if (__builtin_constant_p(nr)) { in arch___set_bit() 28 : "i" (BYTE_OFFSET(nr)), "i" (BYTE_NUMBER(nr)) in arch___set_bit() 42 if (__builtin_constant_p(nr)) { in arch___clear_bit() 46 : "i" (BYTE_OFFSET(nr)), in arch___clear_bit() 47 "i" (BYTE_NUMBER(nr)) in arch___clear_bit() 74 : "i" (BYTE_OFFSET(nr)), in arch___change_bit() [all …]
|
/linux-6.3-rc2/include/asm-generic/bitops/ |
A D | instrumented-non-atomic.h | 29 arch___set_bit(nr, addr); in ___set_bit() 45 arch___clear_bit(nr, addr); in ___clear_bit() 61 arch___change_bit(nr, addr); in ___change_bit() 99 __instrument_read_write_bitop(nr, addr); in ___test_and_set_bit() 100 return arch___test_and_set_bit(nr, addr); in ___test_and_set_bit() 114 __instrument_read_write_bitop(nr, addr); in ___test_and_clear_bit() 115 return arch___test_and_clear_bit(nr, addr); in ___test_and_clear_bit() 129 __instrument_read_write_bitop(nr, addr); in ___test_and_change_bit() 130 return arch___test_and_change_bit(nr, addr); in ___test_and_change_bit() 142 return arch_test_bit(nr, addr); in _test_bit() [all …]
|
A D | generic-non-atomic.h | 30 unsigned long mask = BIT_MASK(nr); in generic___set_bit() 31 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___set_bit() 39 unsigned long mask = BIT_MASK(nr); in generic___clear_bit() 40 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___clear_bit() 57 unsigned long mask = BIT_MASK(nr); in generic___change_bit() 58 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___change_bit() 75 unsigned long mask = BIT_MASK(nr); in generic___test_and_set_bit() 95 unsigned long mask = BIT_MASK(nr); in generic___test_and_clear_bit() 107 unsigned long mask = BIT_MASK(nr); in generic___test_and_change_bit() 128 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); in generic_test_bit() [all …]
|
A D | instrumented-atomic.h | 28 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in set_bit() 29 arch_set_bit(nr, addr); in set_bit() 41 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in clear_bit() 42 arch_clear_bit(nr, addr); in clear_bit() 57 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in change_bit() 58 arch_change_bit(nr, addr); in change_bit() 71 instrument_atomic_read_write(addr + BIT_WORD(nr), sizeof(long)); in test_and_set_bit() 72 return arch_test_and_set_bit(nr, addr); in test_and_set_bit() 85 instrument_atomic_read_write(addr + BIT_WORD(nr), sizeof(long)); in test_and_clear_bit() 86 return arch_test_and_clear_bit(nr, addr); in test_and_clear_bit() [all …]
|
A D | le.h | 19 static inline int test_bit_le(int nr, const void *addr) in test_bit_le() argument 21 return test_bit(nr ^ BITOP_LE_SWIZZLE, addr); in test_bit_le() 24 static inline void set_bit_le(int nr, void *addr) in set_bit_le() argument 26 set_bit(nr ^ BITOP_LE_SWIZZLE, addr); in set_bit_le() 29 static inline void clear_bit_le(int nr, void *addr) in clear_bit_le() argument 31 clear_bit(nr ^ BITOP_LE_SWIZZLE, addr); in clear_bit_le() 34 static inline void __set_bit_le(int nr, void *addr) in __set_bit_le() argument 36 __set_bit(nr ^ BITOP_LE_SWIZZLE, addr); in __set_bit_le() 39 static inline void __clear_bit_le(int nr, void *addr) in __clear_bit_le() argument 41 __clear_bit(nr ^ BITOP_LE_SWIZZLE, addr); in __clear_bit_le() [all …]
|
/linux-6.3-rc2/net/netrom/ |
A D | nr_timer.c | 52 sk_reset_timer(sk, &nr->t1timer, jiffies + nr->t1); in nr_start_t1timer() 59 sk_reset_timer(sk, &nr->t2timer, jiffies + nr->t2); in nr_start_t2timer() 66 sk_reset_timer(sk, &nr->t4timer, jiffies + nr->t4); in nr_start_t4timer() 139 nr->vl = nr->vr; in nr_heartbeat_expiry() 154 struct nr_sock *nr = from_timer(nr, t, t2timer); in nr_t2timer_expiry() local 168 struct nr_sock *nr = from_timer(nr, t, t4timer); in nr_t4timer_expiry() local 179 struct nr_sock *nr = from_timer(nr, t, idletimer); in nr_idletimer_expiry() local 208 struct nr_sock *nr = from_timer(nr, t, t1timer); in nr_t1timer_expiry() local 214 if (nr->n2count == nr->n2) { in nr_t1timer_expiry() 224 if (nr->n2count == nr->n2) { in nr_t1timer_expiry() [all …]
|
A D | nr_out.c | 86 skb->data[2] = nr->vs; in nr_send_iframe() 87 skb->data[3] = nr->vr; in nr_send_iframe() 117 nr->vl = nr->vr; in nr_send_nak_frame() 137 start = (skb_peek(&nr->ack_queue) == NULL) ? nr->va : nr->vs; in nr_kick() 138 end = (nr->va + nr->window) % NR_MODULUS; in nr_kick() 143 nr->vs = start; in nr_kick() 168 nr->vs = (nr->vs + 1) % NR_MODULUS; in nr_kick() 178 nr->vl = nr->vr; in nr_kick() 224 nr->condition = 0x00; in nr_establish_data_link() 225 nr->n2count = 0; in nr_establish_data_link() [all …]
|
/linux-6.3-rc2/arch/hexagon/include/asm/ |
A D | bitops.h | 43 : "r" (addr), "r" (nr) in test_and_clear_bit() 67 : "r" (addr), "r" (nr) in test_and_set_bit() 93 : "r" (addr), "r" (nr) in test_and_change_bit() 108 test_and_clear_bit(nr, addr); in clear_bit() 113 test_and_set_bit(nr, addr); in set_bit() 118 test_and_change_bit(nr, addr); in change_bit() 133 test_and_clear_bit(nr, addr); in arch___clear_bit() 139 test_and_set_bit(nr, addr); in arch___set_bit() 145 test_and_change_bit(nr, addr); in arch___change_bit() 175 : "r" (addr[BIT_WORD(nr)]), "r" (nr % BITS_PER_LONG) in arch_test_bit() [all …]
|
/linux-6.3-rc2/arch/alpha/include/asm/ |
A D | bitops.h | 32 int *m = ((int *) addr) + (nr >> 5); in set_bit() 43 :"Ir" (1UL << (nr & 31)), "m" (*m)); in set_bit() 52 int *m = ((int *) addr) + (nr >> 5); in arch___set_bit() 54 *m |= 1 << (nr & 31); in arch___set_bit() 61 int *m = ((int *) addr) + (nr >> 5); in clear_bit() 72 :"Ir" (1UL << (nr & 31)), "m" (*m)); in clear_bit() 79 clear_bit(nr, addr); in clear_bit_unlock() 88 int *m = ((int *) addr) + (nr >> 5); in arch___clear_bit() 90 *m &= ~(1 << (nr & 31)); in arch___clear_bit() 97 arch___clear_bit(nr, addr); in __clear_bit_unlock() [all …]
|
/linux-6.3-rc2/arch/riscv/include/asm/ |
A D | bitops.h | 39 __mask = BIT_MASK(nr); \ 42 : "=r" (__res), "+A" (addr[BIT_WORD(nr)]) \ 51 : "+A" (addr[BIT_WORD(nr)]) \ 52 : "r" (mod(BIT_MASK(nr))) \ 57 #define __op_bit(op, mod, nr, addr) \ argument 58 __op_bit_ord(op, mod, nr, addr, ) 115 __op_bit(or, __NOP, nr, addr); in set_bit() 129 __op_bit(and, __NOT, nr, addr); in clear_bit() 143 __op_bit(xor, __NOP, nr, addr); in change_bit() 170 __op_bit_ord(and, __NOT, nr, addr, .rl); in clear_bit_unlock() [all …]
|
/linux-6.3-rc2/tools/perf/trace/beauty/ |
A D | ioctl.c | 41 if (nr < strarray__ioctl_tty_cmd.nr_entries && strarray__ioctl_tty_cmd.entries[nr] != NULL) in ioctl__scnprintf_tty_cmd() 52 if (nr < strarray__drm_ioctl_cmds.nr_entries && strarray__drm_ioctl_cmds.entries[nr] != NULL) in ioctl__scnprintf_drm_cmd() 63 …if (nr < strarray__sndrv_pcm_ioctl_cmds.nr_entries && strarray__sndrv_pcm_ioctl_cmds.entries[nr] !… in ioctl__scnprintf_sndrv_pcm_cmd() 74 …if (nr < strarray__sndrv_ctl_ioctl_cmds.nr_entries && strarray__sndrv_ctl_ioctl_cmds.entries[nr] !… in ioctl__scnprintf_sndrv_ctl_cmd() 85 if (nr < strarray__kvm_ioctl_cmds.nr_entries && strarray__kvm_ioctl_cmds.entries[nr] != NULL) in ioctl__scnprintf_kvm_cmd() 98 if (nr < s->nr_entries && s->entries[nr] != NULL) in ioctl__scnprintf_vhost_virtio_cmd() 99 return scnprintf(bf, size, "VHOST_%s", s->entries[nr]); in ioctl__scnprintf_vhost_virtio_cmd() 109 if (nr < strarray__perf_ioctl_cmds.nr_entries && strarray__perf_ioctl_cmds.entries[nr] != NULL) in ioctl__scnprintf_perf_cmd() 120 …if (nr < strarray__usbdevfs_ioctl_cmds.nr_entries && strarray__usbdevfs_ioctl_cmds.entries[nr] != … in ioctl__scnprintf_usbdevfs_cmd() 131 nr = _IOC_NR(cmd), in ioctl__scnprintf_cmd() local [all …]
|
/linux-6.3-rc2/arch/ia64/include/asm/ |
A D | bitops.h | 47 bit = 1 << (nr & 31); in set_bit() 67 *((__u32 *) addr + (nr >> 5)) |= (1 << (nr & 31)); in arch___set_bit() 88 mask = ~(1 << (nr & 31)); in clear_bit() 112 mask = ~(1 << (nr & 31)); in clear_bit_unlock() 149 *((__u32 *) addr + (nr >> 5)) &= ~(1 << (nr & 31)); in arch___clear_bit() 169 bit = (1 << (nr & 31)); in change_bit() 189 *((__u32 *) addr + (nr >> 5)) ^= (1 << (nr & 31)); in arch___change_bit() 208 bit = 1 << (nr & 31); in test_and_set_bit() 239 __u32 m = 1 << (nr & 31); in arch___test_and_set_bit() 262 mask = ~(1 << (nr & 31)); in test_and_clear_bit() [all …]
|
/linux-6.3-rc2/include/uapi/asm-generic/ |
A D | ioctl.h | 85 #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) argument 86 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument 87 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument 88 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument 89 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument 90 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument 91 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument 94 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) argument 95 #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) argument 96 #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) argument [all …]
|
/linux-6.3-rc2/arch/mips/include/asm/ |
A D | bitops.h | 91 int bit = nr % BITS_PER_LONG; in set_bit() 94 __mips_set_bit(nr, addr); in set_bit() 119 int bit = nr % BITS_PER_LONG; in clear_bit() 122 __mips_clear_bit(nr, addr); in clear_bit() 145 clear_bit(nr, addr); in clear_bit_unlock() 160 int bit = nr % BITS_PER_LONG; in change_bit() 163 __mips_change_bit(nr, addr); in change_bit() 182 int bit = nr % BITS_PER_LONG; in test_and_set_bit_lock() 226 int bit = nr % BITS_PER_LONG; in test_and_clear_bit() 263 int bit = nr % BITS_PER_LONG; in test_and_change_bit() [all …]
|
/linux-6.3-rc2/tools/include/asm-generic/bitops/ |
A D | non-atomic.h | 17 ___set_bit(unsigned long nr, volatile unsigned long *addr) in ___set_bit() argument 19 unsigned long mask = BIT_MASK(nr); in ___set_bit() 20 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___set_bit() 26 ___clear_bit(unsigned long nr, volatile unsigned long *addr) in ___clear_bit() argument 28 unsigned long mask = BIT_MASK(nr); in ___clear_bit() 29 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___clear_bit() 46 unsigned long mask = BIT_MASK(nr); in ___change_bit() 64 unsigned long mask = BIT_MASK(nr); in ___test_and_set_bit() 84 unsigned long mask = BIT_MASK(nr); in ___test_and_clear_bit() 96 unsigned long mask = BIT_MASK(nr); in ___test_and_change_bit() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | bitops.h | 19 #define BITS_TO_LONGS(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(long)) argument 20 #define BITS_TO_U64(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(u64)) argument 21 #define BITS_TO_U32(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(u32)) argument 22 #define BITS_TO_BYTES(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(char)) argument 53 const##op(nr, addr) : op(nr, addr)) 55 #define __set_bit(nr, addr) bitop(___set_bit, nr, addr) argument 56 #define __clear_bit(nr, addr) bitop(___clear_bit, nr, addr) argument 57 #define __change_bit(nr, addr) bitop(___change_bit, nr, addr) argument 58 #define __test_and_set_bit(nr, addr) bitop(___test_and_set_bit, nr, addr) argument 61 #define test_bit(nr, addr) bitop(_test_bit, nr, addr) argument [all …]
|
/linux-6.3-rc2/tools/include/linux/ |
A D | bitops.h | 18 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(long)) argument 19 #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(u64)) argument 20 #define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(u32)) argument 21 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(char)) argument 34 op(nr, addr) 36 #define __set_bit(nr, addr) bitop(___set_bit, nr, addr) argument 37 #define __clear_bit(nr, addr) bitop(___clear_bit, nr, addr) argument 38 #define __change_bit(nr, addr) bitop(___change_bit, nr, addr) argument 39 #define __test_and_set_bit(nr, addr) bitop(___test_and_set_bit, nr, addr) argument 40 #define __test_and_clear_bit(nr, addr) bitop(___test_and_clear_bit, nr, addr) argument [all …]
|
/linux-6.3-rc2/arch/sparc/include/uapi/asm/ |
A D | ioctl.h | 39 #define _IOC(dir,type,nr,size) \ argument 42 ((nr) << _IOC_NRSHIFT) | \ 45 #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) argument 46 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument 47 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument 48 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument 51 #define _IOC_DIR(nr) \ argument 54 (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) ) 55 #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) argument 56 #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) argument [all …]
|