Home
last modified time | relevance | path

Searched refs:nr (Results 1 – 25 of 1617) sorted by relevance

12345678910>>...65

/linux/arch/m68k/include/asm/
A Dbitops.h59 #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
68 #define __set_bit(nr, vaddr) set_bit(nr, vaddr) argument
99 #define clear_bit(nr, vaddr) bclr_reg_clear_bit(nr, vaddr) argument
101 #define clear_bit(nr, vaddr) bclr_mem_clear_bit(nr, vaddr) argument
103 #define clear_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ argument
108 #define __clear_bit(nr, vaddr) clear_bit(nr, vaddr) argument
143 #define change_bit(nr, vaddr) (__builtin_constant_p(nr) ? \ argument
148 #define __change_bit(nr, vaddr) change_bit(nr, vaddr) argument
[all …]
A Draw_io.h114 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/arch/s390/include/asm/
A Dbitops.h49 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()
190 if (arch_test_bit(nr, ptr)) in arch_test_and_set_bit_lock()
192 return arch_test_and_set_bit(nr, ptr); in arch_test_and_set_bit_lock()
199 arch_clear_bit(nr, ptr); in arch_clear_bit_unlock()
[all …]
A Dfacility.h29 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/drivers/hwmon/
A Df75375s.c46 #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 Demc6w201.c27 #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/arch/x86/include/asm/
A Dbitops.h48 #define CONST_MASK_ADDR(nr, addr) WBYTE_ADDR((void *)(addr) + ((nr)>>3)) argument
49 #define CONST_MASK(nr) (1 << ((nr) & 7)) argument
54 if (__builtin_constant_p(nr)) { in arch_set_bit()
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()
127 : CONST_MASK_ADDR(nr, addr) in arch_change_bit()
[all …]
/linux/arch/sh/include/asm/
A Dbitops-op32.h12 #define BYTE_NUMBER(nr) ((nr ^ BITOP_LE_SWIZZLE) / BITS_PER_BYTE) argument
13 #define BYTE_OFFSET(nr) ((nr ^ BITOP_LE_SWIZZLE) % BITS_PER_BYTE) argument
15 #define BYTE_NUMBER(nr) ((nr) / BITS_PER_BYTE) argument
16 #define BYTE_OFFSET(nr) ((nr) % BITS_PER_BYTE) argument
21 if (__builtin_constant_p(nr)) { in __set_bit()
25 : "i" (BYTE_OFFSET(nr)), "i" (BYTE_NUMBER(nr)) in __set_bit()
42 : "i" (BYTE_OFFSET(nr)), in __clear_bit()
43 "i" (BYTE_NUMBER(nr)) in __clear_bit()
69 : "i" (BYTE_OFFSET(nr)), in __change_bit()
70 "i" (BYTE_NUMBER(nr)) in __change_bit()
[all …]
/linux/net/netrom/
A Dnr_timer.c52 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()
138 nr->vl = nr->vr; in nr_heartbeat_expiry()
153 struct nr_sock *nr = from_timer(nr, t, t2timer); in nr_t2timer_expiry() local
167 struct nr_sock *nr = from_timer(nr, t, t4timer); in nr_t4timer_expiry() local
178 struct nr_sock *nr = from_timer(nr, t, idletimer); in nr_idletimer_expiry() local
207 struct nr_sock *nr = from_timer(nr, t, t1timer); in nr_t1timer_expiry() local
213 if (nr->n2count == nr->n2) { in nr_t1timer_expiry()
223 if (nr->n2count == nr->n2) { in nr_t1timer_expiry()
[all …]
A Dnr_out.c86 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 …]
A Dnr_subr.c54 if (nrom->va != nr) { in nr_frames_acked()
91 if (nr == vc) return 1; in nr_validate_nr()
95 return nr == nrom->vs; in nr_validate_nr()
105 unsigned short vt = (nr->vl + nr->window) % NR_MODULUS; in nr_in_rx_window()
158 *dptr++ = nr->my_id; in nr_write_internal()
162 *dptr++ = nr->window; in nr_write_internal()
179 *dptr++ = nr->your_id; in nr_write_internal()
181 *dptr++ = nr->my_id; in nr_write_internal()
183 *dptr++ = nr->window; in nr_write_internal()
190 *dptr++ = nr->your_id; in nr_write_internal()
[all …]
/linux/arch/alpha/include/asm/
A Dbitops.h32 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 __set_bit()
54 *m |= 1 << (nr & 31); in __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()
90 *m &= ~(1 << (nr & 31)); in __clear_bit()
97 __clear_bit(nr, addr); in __clear_bit_unlock()
126 *m ^= 1 << (nr & 31); in __change_bit()
[all …]
/linux/arch/hexagon/include/asm/
A Dbitops.h43 : "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()
132 test_and_clear_bit(nr, addr); in __clear_bit()
137 test_and_set_bit(nr, addr); in __set_bit()
142 test_and_change_bit(nr, addr); in __change_bit()
168 : "r" (addr[BIT_WORD(nr)]), "r" (nr % BITS_PER_LONG) in __test_bit()
[all …]
/linux/include/asm-generic/bitops/
A Dinstrumented-non-atomic.h27 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in __set_bit()
28 arch___set_bit(nr, addr); in __set_bit()
43 arch___clear_bit(nr, addr); in __clear_bit()
58 arch___change_bit(nr, addr); in __change_bit()
95 __instrument_read_write_bitop(nr, addr); in __test_and_set_bit()
96 return arch___test_and_set_bit(nr, addr); in __test_and_set_bit()
109 __instrument_read_write_bitop(nr, addr); in __test_and_clear_bit()
110 return arch___test_and_clear_bit(nr, addr); in __test_and_clear_bit()
123 __instrument_read_write_bitop(nr, addr); in __test_and_change_bit()
124 return arch___test_and_change_bit(nr, addr); in __test_and_change_bit()
[all …]
A Dnon-atomic.h17 arch___set_bit(unsigned int nr, volatile unsigned long *addr) in arch___set_bit() argument
19 unsigned long mask = BIT_MASK(nr); in arch___set_bit()
20 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in arch___set_bit()
29 unsigned long mask = BIT_MASK(nr); in arch___clear_bit()
30 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in arch___clear_bit()
48 unsigned long mask = BIT_MASK(nr); in arch___change_bit()
49 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in arch___change_bit()
67 unsigned long mask = BIT_MASK(nr); in arch___test_and_set_bit()
88 unsigned long mask = BIT_MASK(nr); in arch___test_and_clear_bit()
101 unsigned long mask = BIT_MASK(nr); in arch___test_and_change_bit()
[all …]
A Dinstrumented-atomic.h26 static inline void set_bit(long nr, volatile unsigned long *addr) in set_bit() argument
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()
70 instrument_atomic_read_write(addr + BIT_WORD(nr), sizeof(long)); in test_and_set_bit()
71 return arch_test_and_set_bit(nr, addr); in test_and_set_bit()
84 return arch_test_and_clear_bit(nr, addr); in test_and_clear_bit()
[all …]
/linux/tools/perf/trace/beauty/
A Dioctl.c41 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/arch/ia64/include/asm/
A Dbitops.h47 bit = 1 << (nr & 31); in set_bit()
67 *((__u32 *) addr + (nr >> 5)) |= (1 << (nr & 31)); in __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 __clear_bit()
169 bit = (1 << (nr & 31)); in change_bit()
189 *((__u32 *) addr + (nr >> 5)) ^= (1 << (nr & 31)); in __change_bit()
208 bit = 1 << (nr & 31); in test_and_set_bit()
239 __u32 m = 1 << (nr & 31); in __test_and_set_bit()
307 bit = (1 << (nr & 31)); in test_and_change_bit()
[all …]
/linux/arch/riscv/include/asm/
A Dbitops.h40 __mask = BIT_MASK(nr); \
43 : "=r" (__res), "+A" (addr[BIT_WORD(nr)]) \
52 : "+A" (addr[BIT_WORD(nr)]) \
53 : "r" (mod(BIT_MASK(nr))) \
58 #define __op_bit(op, mod, nr, addr) \ argument
59 __op_bit_ord(op, mod, nr, addr, )
116 __op_bit(or, __NOP, nr, addr); in set_bit()
130 __op_bit(and, __NOT, nr, addr); in clear_bit()
144 __op_bit(xor, __NOP, nr, addr); in change_bit()
171 __op_bit_ord(and, __NOT, nr, addr, .rl); in clear_bit_unlock()
[all …]
/linux/arch/h8300/include/asm/
A Dbitops.h48 unsigned char bit = nr & 7; \
51 if (__builtin_constant_p(nr)) { \
61 #define __set_bit(nr, addr) set_bit((nr), (addr)) argument
62 #define __clear_bit(nr, addr) clear_bit((nr), (addr)) argument
63 #define __change_bit(nr, addr) change_bit((nr), (addr)) argument
71 unsigned char bit = nr & 7; in test_bit()
74 if (__builtin_constant_p(nr)) { in test_bit()
90 #define __test_bit(nr, addr) test_bit(nr, addr) argument
98 unsigned char bit = nr & 7; \
129 unsigned char bit = nr & 7; \
[all …]
/linux/arch/mips/include/asm/
A Dbitops.h93 int bit = nr % BITS_PER_LONG; in set_bit()
96 __mips_set_bit(nr, addr); in set_bit()
121 int bit = nr % BITS_PER_LONG; in clear_bit()
124 __mips_clear_bit(nr, addr); in clear_bit()
147 clear_bit(nr, addr); in clear_bit_unlock()
162 int bit = nr % BITS_PER_LONG; in change_bit()
165 __mips_change_bit(nr, addr); in change_bit()
184 int bit = nr % BITS_PER_LONG; in test_and_set_bit_lock()
228 int bit = nr % BITS_PER_LONG; in test_and_clear_bit()
265 int bit = nr % BITS_PER_LONG; in test_and_change_bit()
[all …]
/linux/include/uapi/asm-generic/
A Dioctl.h85 #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/net/ncsi/
A Dncsi-rsp.c36 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt()
41 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt()
789 return nrh->handler(nr); in ncsi_rsp_handler_oem()
1166 struct ncsi_request *nr; in ncsi_rcv_rsp() local
1203 if (!nr->used) { in ncsi_rcv_rsp()
1208 nr->rsp = skb; in ncsi_rcv_rsp()
1209 if (!nr->enabled) { in ncsi_rcv_rsp()
1231 nr->snd_seq, in ncsi_rcv_rsp()
1233 &nr->nlhdr, in ncsi_rcv_rsp()
1240 ret = nrh->handler(nr); in ncsi_rcv_rsp()
[all …]
/linux/arch/powerpc/include/asm/
A Dbitops.h89 set_bits(BIT_MASK(nr), addr + BIT_WORD(nr)); in DEFINE_BITOP()
94 clear_bits(BIT_MASK(nr), addr + BIT_WORD(nr)); in arch_clear_bit()
99 clear_bits_unlock(BIT_MASK(nr), addr + BIT_WORD(nr)); in arch_clear_bit_unlock()
104 change_bits(BIT_MASK(nr), addr + BIT_WORD(nr)); in arch_change_bit()
141 return test_and_set_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0; in arch_test_and_set_bit()
147 return test_and_set_bits_lock(BIT_MASK(nr), in arch_test_and_set_bit_lock()
148 addr + BIT_WORD(nr)) != 0; in arch_test_and_set_bit_lock()
154 return test_and_clear_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0; in arch_test_and_clear_bit()
160 return test_and_change_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0; in arch_test_and_change_bit()
169 unsigned long mask = BIT_MASK(nr); in clear_bit_unlock_return_word()
[all …]
/linux/tools/include/asm-generic/bitops/
A Dnon-atomic.h18 unsigned long mask = BIT_MASK(nr); in __set_bit()
19 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __set_bit()
26 unsigned long mask = BIT_MASK(nr); in __clear_bit()
27 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __clear_bit()
43 unsigned long mask = BIT_MASK(nr); in __change_bit()
44 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit()
60 unsigned long mask = BIT_MASK(nr); in __test_and_set_bit()
79 unsigned long mask = BIT_MASK(nr); in __test_and_clear_bit()
88 static inline int __test_and_change_bit(int nr, in __test_and_change_bit() argument
91 unsigned long mask = BIT_MASK(nr); in __test_and_change_bit()
[all …]

Completed in 51 milliseconds

12345678910>>...65