Home
last modified time | relevance | path

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

12

/linux/arch/csky/include/asm/
H A Dcmpxchg.h13 __typeof__(ptr) __ptr = (ptr); \
20 u32 shif = ((ulong)__ptr & 2) ? 16 : 0; \
22 __ptr = (__typeof__(ptr))((ulong)__ptr & ~2); \
32 "r" (__ptr) \
45 : "r" (__new), "r"(__ptr) \
59 __typeof__(ptr) __ptr = (ptr); \
66 …__ret = (__typeof__(*(ptr)))cmpxchg_emu_u8((volatile u8 *)__ptr, (uintptr_t)__old, (uintptr_t)__ne…
78 : "r" (__new), "r"(__ptr), "r"(__old) \
92 __typeof__(ptr) __ptr = (ptr); \
99 …__ret = (__typeof__(*(ptr)))cmpxchg_emu_u8((volatile u8 *)__ptr, (uintptr_t)__old, (uintptr_t)__ne…
[all …]
/linux/arch/x86/include/asm/
H A 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); \
170 [ptr] "+m" (*__ptr), \
[all …]
H A 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 …]
H A Dprocessor.h650 unsigned long __ptr = (unsigned long)task_stack_page(task); \
651 __ptr += THREAD_SIZE - TOP_OF_KERNEL_STACK_PADDING; \
652 ((struct pt_regs *)__ptr) - 1; \
H A Dpgtable.h1400 static inline bool pgdp_maps_userspace(void *__ptr) in pgdp_maps_userspace() argument
1402 unsigned long ptr = (unsigned long)__ptr; in pgdp_maps_userspace()
1422 unsigned long __ptr = (unsigned long)ptr; in ptr_set_bit() local
1424 __ptr |= BIT(bit); in ptr_set_bit()
1425 return (void *)__ptr; in ptr_set_bit()
1429 unsigned long __ptr = (unsigned long)ptr; in ptr_clear_bit() local
1431 __ptr &= ~BIT(bit); in ptr_clear_bit()
1432 return (void *)__ptr; in ptr_clear_bit()
/linux/arch/riscv/include/asm/
H A Dcmpxchg.h71 __typeof__(ptr) __ptr = (ptr); \
72 __typeof__(*(__ptr)) __new = (new); \
73 __typeof__(*(__ptr)) __ret; \
75 switch (sizeof(*__ptr)) { \
79 __ret, __ptr, __new); \
84 __ret, __ptr, __new); \
88 __ret, __ptr, __new); \
92 __ret, __ptr, __new); \
97 (__typeof__(*(__ptr)))__ret; \
217 __typeof__(ptr) __ptr = (ptr); \
[all …]
H A Duaccess.h141 u32 __user *__ptr = (u32 __user *)(ptr); \
151 : "m" (__ptr[__LSW]), "m" (__ptr[__MSW]) \
159 u32 __user *__ptr = (u32 __user *)(ptr); \
171 : "m" (__ptr[__LSW]), "m" (__ptr[__MSW])); \
305 u32 __user *__ptr = (u32 __user *)(ptr); \
315 "m" (__ptr[__LSW]), \
316 "m" (__ptr[__MSW]) : : label); \
/linux/tools/arch/x86/include/asm/
H A 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/arch/loongarch/include/asm/
H A Duaccess.h184 u32 __user *__ptr = (u32 __user *)(ptr); \
195 : "m" (__ptr[__LSW]), "m" (__ptr[__MSW])); \
232 u32 __user *__ptr = (u32 __user *)(ptr); \
244 "=m" (__ptr[__LSW]), \
245 "=m" (__ptr[__MSW]) \
H A Dcmpxchg.h256 volatile u64 *__ptr = (volatile u64 *)(ptr); \
275 : "r" (__ptr), \
276 "ZC" (__ptr[0]), "m" (__ptr[1]), \
/linux/include/linux/
H A Dcompiler-gcc.h33 unsigned long __ptr; \
34 __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
35 (typeof(ptr)) (__ptr + (off)); \
H A Doverflow.h92 typeof(var) *__ptr = &(var); \
93 *__ptr = wrapping_add(typeof(var), *__ptr, offset); \
138 typeof(var) *__ptr = &(var); \
139 *__ptr = wrapping_sub(typeof(var), *__ptr, offset); \
H A Dcompiler.h153 ({ unsigned long __ptr; \
154 __ptr = (unsigned long) (ptr); \
155 (typeof(ptr)) (__ptr + (off)); })
H A Drculist.h409 struct list_head *__ptr = (ptr); \
410 struct list_head *__next = READ_ONCE(__ptr->next); \
411 likely(__ptr != __next) ? list_entry_rcu(__next, type, member) : NULL; \
429 struct list_head *__ptr = (ptr); \
430 struct list_head *__next = READ_ONCE(__ptr->next); \
H A Dsocket.h172 struct cmsghdr * __ptr; in __cmsg_nxthdr() local
174 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
175 if ((unsigned long)((char*)(__ptr+1) - (char *) __ctl) > __size) in __cmsg_nxthdr()
178 return __ptr; in __cmsg_nxthdr()
H A Dstring.h514 u8 *__ptr = (u8 *)(obj); \
516 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \
532 u8 *__ptr = (u8 *)(obj); \
534 memset(__ptr + offsetof(typeof(*(obj)), member), __val, \
H A Dcleanup.h217 auto __ptr = &(p); \
218 auto __val = *__ptr; \
219 *__ptr = nullvalue; \
/linux/scripts/genksyms/
H A Dgenksyms.h75 #define xmalloc(size) ({ void *__ptr = malloc(size); \
76 if(!__ptr && size != 0) { \
80 __ptr; })
/linux/arch/parisc/include/asm/
H A Duaccess.h131 __typeof__(&*(ptr)) __ptr = ptr; \
132 __typeof__(*(__ptr)) __x = (__typeof__(*(__ptr)))(x); \
133 __put_user_internal(SR_USER, __x, __ptr); \
/linux/arch/hexagon/include/asm/
H A Dcmpxchg.h56 __typeof__(ptr) __ptr = (ptr); \
69 : "r" (__ptr), "r" (__old), "r" (__new) \
/linux/drivers/net/ethernet/smsc/
H A Dsmc91x.h1032 void *__ptr = (p); \
1035 if (__len >= 2 && (unsigned long)__ptr & 2) { \
1037 SMC_outsw(ioaddr, DATA_REG(lp), __ptr, 1); \
1038 __ptr += 2; \
1042 SMC_outsl(__ioaddr, DATA_REG(lp), __ptr, __len>>2); \
1044 __ptr += (__len & ~3); \
1045 SMC_outsw(ioaddr, DATA_REG(lp), __ptr, 1); \
1056 void *__ptr = (p); \
1059 if ((unsigned long)__ptr & 2) { \
1073 __ptr -= 2; \
[all …]
/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h172 struct cmsghdr * __ptr; in __cmsg_nxthdr() local
174 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
175 if ((unsigned long)((char*)(__ptr+1) - (char *) __ctl) > __size) in __cmsg_nxthdr()
178 return __ptr; in __cmsg_nxthdr()
/linux/tools/testing/selftests/bpf/
H A Dbpf_atomic.h106 typeof(p) __ptr = (p); \
109 VAL = (__unqual_typeof(*(p)))READ_ONCE(*__ptr); \
/linux/arch/s390/kernel/
H A Duprobes.c185 __typeof__(ptr) __ptr = (ptr); \
188 if ((u64 __force)__ptr & mask) \
190 else if (put_user(*(input), __ptr)) \
194 (void __force *)__ptr, \
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsocket_helpers.h28 auto __ptr = &(p); \
29 auto __val = *__ptr; \
30 *__ptr = nullvalue; \

12