Lines Matching refs:addr

46  * passing a bitmap from .bss or .data (-> `!!addr` is always true).
48 #define bitop(op, nr, addr) \
50 __builtin_constant_p((uintptr_t)(addr) != (uintptr_t)NULL) && \
51 (uintptr_t)(addr) != (uintptr_t)NULL && \
52 __builtin_constant_p(*(const unsigned long *)(addr))) ? \
53 const##op(nr, addr) : op(nr, addr))
55 #define __set_bit(nr, addr) bitop(___set_bit, nr, addr)
56 #define __clear_bit(nr, addr) bitop(___clear_bit, nr, addr)
57 #define __change_bit(nr, addr) bitop(___change_bit, nr, addr)
58 #define __test_and_set_bit(nr, addr) bitop(___test_and_set_bit, nr, addr)
59 #define __test_and_clear_bit(nr, addr) bitop(___test_and_clear_bit, nr, addr)
60 #define __test_and_change_bit(nr, addr) bitop(___test_and_change_bit, nr, addr)
61 #define test_bit(nr, addr) bitop(_test_bit, nr, addr)
62 #define test_bit_acquire(nr, addr) bitop(_test_bit_acquire, nr, addr)
272 * @addr: the address to start counting from
275 static __always_inline void assign_bit(long nr, volatile unsigned long *addr,
279 set_bit(nr, addr);
281 clear_bit(nr, addr);
284 static __always_inline void __assign_bit(long nr, volatile unsigned long *addr,
288 __set_bit(nr, addr);
290 __clear_bit(nr, addr);
296 * @addr: the address of the pointer variable
302 #define __ptr_set_bit(nr, addr) \
304 typecheck_pointer(*(addr)); \
305 __set_bit(nr, (unsigned long *)(addr)); \
311 * @addr: the address of the pointer variable
317 #define __ptr_clear_bit(nr, addr) \
319 typecheck_pointer(*(addr)); \
320 __clear_bit(nr, (unsigned long *)(addr)); \
326 * @addr: the address of the pointer variable
336 #define __ptr_test_bit(nr, addr) \
338 typecheck_pointer(*(addr)); \
339 test_bit(nr, (unsigned long *)(addr)); \