Home
last modified time | relevance | path

Searched refs:__ptr (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v6.6/arch/riscv/include/asm/
Dcmpxchg.h16 __typeof__(ptr) __ptr = (ptr); \
23 : "=r" (__ret), "+A" (*__ptr) \
30 : "=r" (__ret), "+A" (*__ptr) \
49 __typeof__(ptr) __ptr = (ptr); \
57 : "=r" (__ret), "+A" (*__ptr) \
65 : "=r" (__ret), "+A" (*__ptr) \
84 __typeof__(ptr) __ptr = (ptr); \
92 : "=r" (__ret), "+A" (*__ptr) \
100 : "=r" (__ret), "+A" (*__ptr) \
119 __typeof__(ptr) __ptr = (ptr); \
[all …]
Duaccess.h72 u32 __user *__ptr = (u32 __user *)(ptr); \
83 : "m" (__ptr[__LSW]), "m" (__ptr[__MSW])); \
189 u32 __user *__ptr = (u32 __user *)(ptr); \
200 "=m" (__ptr[__LSW]), \
201 "=m" (__ptr[__MSW]) \
/Linux-v6.6/arch/x86/include/asm/
Dcmpxchg.h93 volatile u8 *__ptr = (volatile u8 *)(ptr); \
95 : "=a" (__ret), "+m" (*__ptr) \
102 volatile u16 *__ptr = (volatile u16 *)(ptr); \
104 : "=a" (__ret), "+m" (*__ptr) \
111 volatile u32 *__ptr = (volatile u32 *)(ptr); \
113 : "=a" (__ret), "+m" (*__ptr) \
120 volatile u64 *__ptr = (volatile u64 *)(ptr); \
122 : "=a" (__ret), "+m" (*__ptr) \
167 volatile u8 *__ptr = (volatile u8 *)(_ptr); \
171 [ptr] "+m" (*__ptr), \
[all …]
Duaccess.h176 __typeof__(ptr) __ptr = (ptr); /* eval ptr once */ \
177 __chk_user_ptr(__ptr); \
178 __ptr_pu = __ptr; \
187 instrument_put_user(__x, __ptr, sizeof(*(ptr))); \
235 __typeof__(ptr) __ptr = (ptr); /* eval ptr once */ \
236 __chk_user_ptr(__ptr); \
239 __put_user_goto(__x, __ptr, "b", "iq", label); \
242 __put_user_goto(__x, __ptr, "w", "ir", label); \
245 __put_user_goto(__x, __ptr, "l", "ir", label); \
248 __put_user_goto_u64(__x, __ptr, label); \
[all …]
Dprocessor.h636 unsigned long __ptr = (unsigned long)task_stack_page(task); \
637 __ptr += THREAD_SIZE - TOP_OF_KERNEL_STACK_PADDING; \
638 ((struct pt_regs *)__ptr) - 1; \
Dpgtable.h1414 static inline bool pgdp_maps_userspace(void *__ptr) in pgdp_maps_userspace() argument
1416 unsigned long ptr = (unsigned long)__ptr; in pgdp_maps_userspace()
1439 unsigned long __ptr = (unsigned long)ptr; in ptr_set_bit() local
1441 __ptr |= BIT(bit); in ptr_set_bit()
1442 return (void *)__ptr; in ptr_set_bit()
1446 unsigned long __ptr = (unsigned long)ptr; in ptr_clear_bit() local
1448 __ptr &= ~BIT(bit); in ptr_clear_bit()
1449 return (void *)__ptr; in ptr_clear_bit()
/Linux-v6.6/arch/csky/include/asm/
Dcmpxchg.h12 __typeof__(ptr) __ptr = (ptr); \
19 u32 shif = ((ulong)__ptr & 2) ? 16 : 0; \
21 __ptr = (__typeof__(ptr))((ulong)__ptr & ~2); \
31 "r" (__ptr) \
44 : "r" (__new), "r"(__ptr) \
58 __typeof__(ptr) __ptr = (ptr); \
74 : "r" (__new), "r"(__ptr), "r"(__old) \
88 __typeof__(ptr) __ptr = (ptr); \
105 : "r" (__new), "r"(__ptr), "r"(__old) \
119 __typeof__(ptr) __ptr = (ptr); \
[all …]
/Linux-v6.6/tools/arch/x86/include/asm/
Dcmpxchg.h43 volatile u8 *__ptr = (volatile u8 *)(ptr); \
45 : "=a" (__ret), "+m" (*__ptr) \
52 volatile u16 *__ptr = (volatile u16 *)(ptr); \
54 : "=a" (__ret), "+m" (*__ptr) \
61 volatile u32 *__ptr = (volatile u32 *)(ptr); \
63 : "=a" (__ret), "+m" (*__ptr) \
70 volatile u64 *__ptr = (volatile u64 *)(ptr); \
72 : "=a" (__ret), "+m" (*__ptr) \
/Linux-v6.6/scripts/genksyms/
Dgenksyms.h70 #define xmalloc(size) ({ void *__ptr = malloc(size); \
71 if(!__ptr && size != 0) { \
75 __ptr; })
/Linux-v6.6/include/linux/
Dcompiler-gcc.h33 unsigned long __ptr; \
34 __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
35 (typeof(ptr)) (__ptr + (off)); \
Dcompiler.h167 ({ unsigned long __ptr; \
168 __ptr = (unsigned long) (ptr); \
169 (typeof(ptr)) (__ptr + (off)); })
Dstring.h318 u8 *__ptr = (u8 *)(obj); \
320 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \
336 u8 *__ptr = (u8 *)(obj); \
338 memset(__ptr + offsetof(typeof(*(obj)), member), __val, \
Drculist.h352 struct list_head *__ptr = (ptr); \
353 struct list_head *__next = READ_ONCE(__ptr->next); \
354 likely(__ptr != __next) ? list_entry_rcu(__next, type, member) : NULL; \
372 struct list_head *__ptr = (ptr); \
373 struct list_head *__next = READ_ONCE(__ptr->next); \
Dsocket.h156 struct cmsghdr * __ptr; in __cmsg_nxthdr() local
158 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
159 if ((unsigned long)((char*)(__ptr+1) - (char *) __ctl) > __size) in __cmsg_nxthdr()
162 return __ptr; in __cmsg_nxthdr()
Dcleanup.h43 ({ __auto_type __ptr = (p); (p) = NULL; __ptr; })
/Linux-v6.6/lib/raid6/
Ds390vx.uc60 register addrtype *__ptr asm("1") = (addrtype *) ptr;
63 : : "m" (*__ptr), "a" (__ptr), "i" (x),
70 register addrtype *__ptr asm("1") = (addrtype *) ptr;
73 : "=m" (*__ptr) : "a" (__ptr), "i" (x),
/Linux-v6.6/arch/parisc/include/asm/
Duaccess.h145 __typeof__(&*(ptr)) __ptr = ptr; \
146 __typeof__(*(__ptr)) __x = (__typeof__(*(__ptr)))(x); \
147 __put_user_internal(SR_USER, __x, __ptr); \
/Linux-v6.6/arch/hexagon/include/asm/
Dcmpxchg.h56 __typeof__(ptr) __ptr = (ptr); \
69 : "r" (__ptr), "r" (__old), "r" (__new) \
/Linux-v6.6/drivers/net/ethernet/smsc/
Dsmc91x.h1051 void *__ptr = (p); \
1054 if (__len >= 2 && (unsigned long)__ptr & 2) { \
1056 SMC_outsw(ioaddr, DATA_REG(lp), __ptr, 1); \
1057 __ptr += 2; \
1061 SMC_outsl(__ioaddr, DATA_REG(lp), __ptr, __len>>2); \
1063 __ptr += (__len & ~3); \
1064 SMC_outsw(ioaddr, DATA_REG(lp), __ptr, 1); \
1075 void *__ptr = (p); \
1078 if ((unsigned long)__ptr & 2) { \
1092 __ptr -= 2; \
[all …]
/Linux-v6.6/arch/s390/include/asm/
Duaccess.h591 __typeof__(ptr) __ptr = (ptr); \
594 BUILD_BUG_ON(sizeof(*(__ptr)) != sizeof(*(__uval))); \
596 __chk_user_ptr(__ptr); \
597 __cmpxchg_user_key((unsigned long)(__ptr), (void *)(__uval), \
598 (old), (new), (key), sizeof(*(__ptr))); \
/Linux-v6.6/tools/perf/trace/beauty/include/linux/
Dsocket.h156 struct cmsghdr * __ptr; in __cmsg_nxthdr() local
158 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
159 if ((unsigned long)((char*)(__ptr+1) - (char *) __ctl) > __size) in __cmsg_nxthdr()
162 return __ptr; in __cmsg_nxthdr()
/Linux-v6.6/arch/s390/kernel/
Duprobes.c192 __typeof__(ptr) __ptr = (ptr); \
195 if ((u64 __force)__ptr & mask) \
197 else if (put_user(*(input), __ptr)) \
201 (void __force *)__ptr, \
/Linux-v6.6/arch/arm/include/asm/
Duaccess.h210 #define __put_user_check(__pu_val, __ptr, __err, __s) \ argument
214 register const void __user *__p asm("r0") = __ptr; \
/Linux-v6.6/include/kunit/
Dtest.h809 const typeof(ptr) __ptr = (ptr); \
811 if (!IS_ERR_OR_NULL(__ptr)) \
818 KUNIT_INIT_ASSERT(.text = #ptr, .value = __ptr), \
/Linux-v6.6/arch/riscv/kvm/
Daia_imsic.c241 #define imsic_mrif_atomic_write(__mrif, __ptr, __new_val) \ argument
242 imsic_mrif_atomic_rmw(__mrif, __ptr, __new_val, -1UL)
243 #define imsic_mrif_atomic_read(__mrif, __ptr) \ argument
244 imsic_mrif_atomic_or(__mrif, __ptr, 0)

12