Home
last modified time | relevance | path

Searched refs:BIT_WORD (Results 1 – 25 of 95) sorted by relevance

1234

/linux-6.3-rc2/include/asm-generic/bitops/
A Dinstrumented-non-atomic.h28 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in ___set_bit()
44 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in ___clear_bit()
60 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in ___change_bit()
77 kcsan_check_read(addr + BIT_WORD(nr), sizeof(long)); in __instrument_read_write_bitop()
82 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in __instrument_read_write_bitop()
84 instrument_read_write(addr + BIT_WORD(nr), sizeof(long)); in __instrument_read_write_bitop()
141 instrument_atomic_read(addr + BIT_WORD(nr), sizeof(long)); in _test_bit()
153 instrument_atomic_read(addr + BIT_WORD(nr), sizeof(long)); in _test_bit_acquire()
A Dgeneric-non-atomic.h31 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___set_bit()
40 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___clear_bit()
58 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___change_bit()
76 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___test_and_set_bit()
96 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___test_and_clear_bit()
108 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___test_and_change_bit()
128 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); in generic_test_bit()
139 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic_test_bit_acquire()
168 const unsigned long *p = (const unsigned long *)addr + BIT_WORD(nr); in const_test_bit()
A Dinstrumented-atomic.h28 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in set_bit()
41 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in clear_bit()
57 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in change_bit()
71 instrument_atomic_read_write(addr + BIT_WORD(nr), sizeof(long)); in test_and_set_bit()
85 instrument_atomic_read_write(addr + BIT_WORD(nr), sizeof(long)); in test_and_clear_bit()
99 instrument_atomic_read_write(addr + BIT_WORD(nr), sizeof(long)); in test_and_change_bit()
A Datomic.h17 p += BIT_WORD(nr); in arch_set_bit()
24 p += BIT_WORD(nr); in arch_clear_bit()
31 p += BIT_WORD(nr); in arch_change_bit()
41 p += BIT_WORD(nr); in arch_test_and_set_bit()
52 p += BIT_WORD(nr); in arch_test_and_clear_bit()
63 p += BIT_WORD(nr); in arch_test_and_change_bit()
A Dinstrumented-lock.h26 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in clear_bit_unlock()
42 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in __clear_bit_unlock()
57 instrument_atomic_read_write(addr + BIT_WORD(nr), sizeof(long)); in test_and_set_bit_lock()
77 instrument_atomic_write(addr + BIT_WORD(nr), sizeof(long)); in clear_bit_unlock_is_negative_byte()
A Dlock.h24 p += BIT_WORD(nr); in arch_test_and_set_bit_lock()
43 p += BIT_WORD(nr); in arch_clear_bit_unlock()
63 p += BIT_WORD(nr); in arch___clear_bit_unlock()
85 p += BIT_WORD(nr); in arch_clear_bit_unlock_is_negative_byte()
/linux-6.3-rc2/tools/include/asm-generic/bitops/
A Dnon-atomic.h20 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___set_bit()
29 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___clear_bit()
47 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___change_bit()
65 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___test_and_set_bit()
85 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___test_and_clear_bit()
97 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___test_and_change_bit()
112 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); in _test_bit()
/linux-6.3-rc2/arch/openrisc/include/asm/bitops/
A Datomic.h15 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in set_bit()
32 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in clear_bit()
49 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in change_bit()
66 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in test_and_set_bit()
86 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in test_and_clear_bit()
106 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in test_and_change_bit()
/linux-6.3-rc2/arch/sh/include/asm/
A Dbitops-op32.h33 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in arch___set_bit()
52 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in arch___clear_bit()
80 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in arch___change_bit()
99 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in arch___test_and_set_bit()
119 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in arch___test_and_clear_bit()
131 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in arch___test_and_change_bit()
/linux-6.3-rc2/arch/mips/lib/
A Dbitops.c23 volatile unsigned long *a = &addr[BIT_WORD(nr)]; in __mips_set_bit()
44 volatile unsigned long *a = &addr[BIT_WORD(nr)]; in __mips_clear_bit()
65 volatile unsigned long *a = &addr[BIT_WORD(nr)]; in __mips_change_bit()
87 volatile unsigned long *a = &addr[BIT_WORD(nr)]; in __mips_test_and_set_bit_lock()
111 volatile unsigned long *a = &addr[BIT_WORD(nr)]; in __mips_test_and_clear_bit()
135 volatile unsigned long *a = &addr[BIT_WORD(nr)]; in __mips_test_and_change_bit()
/linux-6.3-rc2/arch/powerpc/include/asm/
A Dbitops.h131 set_bits(BIT_MASK(nr), addr + BIT_WORD(nr)); in DEFINE_CLROP()
136 clear_bits(BIT_MASK(nr), addr + BIT_WORD(nr)); in arch_clear_bit()
141 clear_bits_unlock(BIT_MASK(nr), addr + BIT_WORD(nr)); in arch_clear_bit_unlock()
146 change_bits(BIT_MASK(nr), addr + BIT_WORD(nr)); in arch_change_bit()
214 return test_and_set_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0; in arch_test_and_set_bit()
221 addr + BIT_WORD(nr)) != 0; in arch_test_and_set_bit_lock()
227 return test_and_clear_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0; in arch_test_and_clear_bit()
233 return test_and_change_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0; in arch_test_and_change_bit()
241 unsigned long *p = (unsigned long *)addr + BIT_WORD(nr); in clear_bit_unlock_return_word()
/linux-6.3-rc2/arch/parisc/include/asm/
A Dbitops.h26 addr += BIT_WORD(nr); in set_bit()
37 addr += BIT_WORD(nr); in clear_bit()
48 addr += BIT_WORD(nr); in change_bit()
61 addr += BIT_WORD(nr); in test_and_set_bit()
79 addr += BIT_WORD(nr); in test_and_clear_bit()
96 addr += BIT_WORD(nr); in test_and_change_bit()
/linux-6.3-rc2/arch/arm/include/asm/
A Dbitops.h41 p += BIT_WORD(bit); in ____atomic_set_bit()
53 p += BIT_WORD(bit); in ____atomic_clear_bit()
65 p += BIT_WORD(bit); in ____atomic_change_bit()
79 p += BIT_WORD(bit); in ____atomic_test_and_set_bit()
96 p += BIT_WORD(bit); in ____atomic_test_and_clear_bit()
113 p += BIT_WORD(bit); in ____atomic_test_and_change_bit()
/linux-6.3-rc2/arch/mips/include/asm/
A Dbitops.h90 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in set_bit()
118 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in clear_bit()
159 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in change_bit()
181 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in test_and_set_bit_lock()
225 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in test_and_clear_bit()
262 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in test_and_change_bit()
/linux-6.3-rc2/net/rfkill/
A Dinput.c278 .keybit = { [BIT_WORD(KEY_WLAN)] = BIT_MASK(KEY_WLAN) },
283 .keybit = { [BIT_WORD(KEY_BLUETOOTH)] = BIT_MASK(KEY_BLUETOOTH) },
288 .keybit = { [BIT_WORD(KEY_UWB)] = BIT_MASK(KEY_UWB) },
293 .keybit = { [BIT_WORD(KEY_WIMAX)] = BIT_MASK(KEY_WIMAX) },
298 .keybit = { [BIT_WORD(KEY_RFKILL)] = BIT_MASK(KEY_RFKILL) },
303 .swbit = { [BIT_WORD(SW_RFKILL_ALL)] = BIT_MASK(SW_RFKILL_ALL) },
/linux-6.3-rc2/tools/include/asm-generic/
A Datomic-gcc.h78 addr += BIT_WORD(nr); in test_and_set_bit()
89 addr += BIT_WORD(nr); in test_and_clear_bit()
/linux-6.3-rc2/drivers/input/joystick/
A Dspaceball.c223 input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_9); in spaceball_connect()
224 input_dev->keybit[BIT_WORD(BTN_A)] |= BIT_MASK(BTN_A) | in spaceball_connect()
229 input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_2) | in spaceball_connect()
235 input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_1) | in spaceball_connect()
A Da3d.c314 input_dev->keybit[BIT_WORD(BTN_MOUSE)] |= BIT_MASK(BTN_RIGHT) | in a3d_connect()
317 input_dev->keybit[BIT_WORD(BTN_JOYSTICK)] |= in a3d_connect()
337 input_dev->keybit[BIT_WORD(BTN_MOUSE)] |= BIT_MASK(BTN_RIGHT) | in a3d_connect()
/linux-6.3-rc2/drivers/input/mouse/
A Dtouchkit_ps2.c75 dev->keybit[BIT_WORD(BTN_MOUSE)] = 0; in touchkit_ps2_detect()
76 dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); in touchkit_ps2_detect()
/linux-6.3-rc2/arch/hexagon/include/asm/
A Dbitops.h175 : "r" (addr[BIT_WORD(nr)]), "r" (nr % BITS_PER_LONG) in arch_test_bit()
190 : "r" (addr[BIT_WORD(nr)]), "r" (nr % BITS_PER_LONG) in arch_test_bit_acquire()
/linux-6.3-rc2/arch/riscv/include/asm/
A Dbitops.h42 : "=r" (__res), "+A" (addr[BIT_WORD(nr)]) \
51 : "+A" (addr[BIT_WORD(nr)]) \
/linux-6.3-rc2/tools/testing/radix-tree/
A Dbitmap.c7 unsigned long *p = map + BIT_WORD(start); in bitmap_clear()
/linux-6.3-rc2/drivers/input/tablet/
A Dkbtab.c154 input_dev->keybit[BIT_WORD(BTN_LEFT)] |= in kbtab_probe()
156 input_dev->keybit[BIT_WORD(BTN_DIGI)] |= in kbtab_probe()
/linux-6.3-rc2/tools/include/linux/
A Dbits.h10 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) macro
/linux-6.3-rc2/include/linux/
A Dbits.h10 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) macro

Completed in 26 milliseconds

1234