Home
last modified time | relevance | path

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

1234

/Linux-v6.6/include/asm-generic/bitops/
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()
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()
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()
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()
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()
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-v6.6/tools/include/asm-generic/bitops/
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-v6.6/arch/openrisc/include/asm/bitops/
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-v6.6/arch/sh/include/asm/
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-v6.6/arch/mips/lib/
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-v6.6/arch/powerpc/include/asm/
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-v6.6/arch/parisc/include/asm/
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-v6.6/arch/arm/include/asm/
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-v6.6/arch/mips/include/asm/
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-v6.6/net/rfkill/
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-v6.6/drivers/firmware/efi/libstub/
Dbitmap.c5 unsigned long *p = map + BIT_WORD(start); in __bitmap_set()
25 unsigned long *p = map + BIT_WORD(start); in __bitmap_clear()
/Linux-v6.6/tools/include/asm-generic/
Datomic-gcc.h78 addr += BIT_WORD(nr); in test_and_set_bit()
89 addr += BIT_WORD(nr); in test_and_clear_bit()
/Linux-v6.6/drivers/input/joystick/
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()
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-v6.6/drivers/input/mouse/
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-v6.6/arch/hexagon/include/asm/
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-v6.6/arch/riscv/include/asm/
Dbitops.h42 : "=r" (__res), "+A" (addr[BIT_WORD(nr)]) \
51 : "+A" (addr[BIT_WORD(nr)]) \
/Linux-v6.6/tools/testing/radix-tree/
Dbitmap.c7 unsigned long *p = map + BIT_WORD(start); in bitmap_clear()
/Linux-v6.6/drivers/input/tablet/
Dkbtab.c154 input_dev->keybit[BIT_WORD(BTN_LEFT)] |= in kbtab_probe()
156 input_dev->keybit[BIT_WORD(BTN_DIGI)] |= in kbtab_probe()
/Linux-v6.6/drivers/input/misc/
Dpowermate.c371 input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); in powermate_probe()
372 input_dev->relbit[BIT_WORD(REL_DIAL)] = BIT_MASK(REL_DIAL); in powermate_probe()
373 input_dev->mscbit[BIT_WORD(MSC_PULSELED)] = BIT_MASK(MSC_PULSELED); in powermate_probe()

1234