Home
last modified time | relevance | path

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

12

/linux-6.15/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); \
78 : "r" (__new), "r"(__ptr), "r"(__old) \
92 __typeof__(ptr) __ptr = (ptr); \
112 : "r" (__new), "r"(__ptr), "r"(__old) \
126 __typeof__(ptr) __ptr = (ptr); \
[all …]
/linux-6.15/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) \
113 : "=a" (__ret), "+m" (*__ptr) \
122 : "=a" (__ret), "+m" (*__ptr) \
167 volatile u8 *__ptr = (volatile u8 *)(_ptr); \
171 [ptr] "+m" (*__ptr), \
183 [ptr] "+m" (*__ptr), \
195 [ptr] "+m" (*__ptr), \
[all …]
H A Duaccess.h177 __chk_user_ptr(__ptr); \
178 __ptr_pu = __ptr; \
187 instrument_put_user(__x, __ptr, sizeof(*(ptr))); \
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); \
253 instrument_put_user(__x, __ptr, size); \
310 __typeof__(ptr) __ptr = (ptr); \
[all …]
H A Dprocessor.h651 unsigned long __ptr = (unsigned long)task_stack_page(task); \
652 __ptr += THREAD_SIZE - TOP_OF_KERNEL_STACK_PADDING; \
653 ((struct pt_regs *)__ptr) - 1; \
/linux-6.15/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-6.15/arch/riscv/include/asm/
H A Dcmpxchg.h68 __typeof__(ptr) __ptr = (ptr); \
70 __typeof__(*(__ptr)) __ret; \
72 switch (sizeof(*__ptr)) { \
76 __ret, __ptr, __new); \
81 __ret, __ptr, __new); \
85 __ret, __ptr, __new); \
89 __ret, __ptr, __new); \
94 (__typeof__(*(__ptr)))__ret; \
215 __typeof__(*(__ptr)) __ret; \
217 switch (sizeof(*__ptr)) { \
[all …]
H A Duaccess.h105 u32 __user *__ptr = (u32 __user *)(ptr); \
116 : "m" (__ptr[__LSW]), "m" (__ptr[__MSW])); \
222 u32 __user *__ptr = (u32 __user *)(ptr); \
233 "=m" (__ptr[__LSW]), \
234 "=m" (__ptr[__MSW]) \
/linux-6.15/include/linux/
H A Doverflow.h98 typeof(var) *__ptr = &(var); \
99 *__ptr = wrapping_add(typeof(var), *__ptr, offset); \
144 typeof(var) *__ptr = &(var); \
145 *__ptr = wrapping_sub(typeof(var), *__ptr, offset); \
H A Dcompiler-gcc.h33 unsigned long __ptr; \
34 __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
35 (typeof(ptr)) (__ptr + (off)); \
H A Dcompiler.h153 ({ unsigned long __ptr; \
154 __ptr = (unsigned long) (ptr); \
155 (typeof(ptr)) (__ptr + (off)); })
H A Drculist.h399 struct list_head *__ptr = (ptr); \
400 struct list_head *__next = READ_ONCE(__ptr->next); \
401 likely(__ptr != __next) ? list_entry_rcu(__next, type, member) : NULL; \
419 struct list_head *__ptr = (ptr); \
420 struct list_head *__next = READ_ONCE(__ptr->next); \
H A Dsocket.h157 struct cmsghdr * __ptr; in __cmsg_nxthdr() local
159 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
160 if ((unsigned long)((char*)(__ptr+1) - (char *) __ctl) > __size) in __cmsg_nxthdr()
163 return __ptr; in __cmsg_nxthdr()
H A Dcleanup.h204 __auto_type __ptr = &(p); \
205 __auto_type __val = *__ptr; \
206 *__ptr = nullvalue; \
H A Dstring.h520 u8 *__ptr = (u8 *)(obj); \
522 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \
538 u8 *__ptr = (u8 *)(obj); \
540 memset(__ptr + offsetof(typeof(*(obj)), member), __val, \
/linux-6.15/scripts/genksyms/
H A Dgenksyms.h75 #define xmalloc(size) ({ void *__ptr = malloc(size); \
76 if(!__ptr && size != 0) { \
80 __ptr; })
/linux-6.15/arch/parisc/include/asm/
H A Duaccess.h116 __typeof__(&*(ptr)) __ptr = ptr; \
117 __typeof__(*(__ptr)) __x = (__typeof__(*(__ptr)))(x); \
118 __put_user_internal(SR_USER, __x, __ptr); \
/linux-6.15/arch/hexagon/include/asm/
H A Dcmpxchg.h56 __typeof__(ptr) __ptr = (ptr); \
69 : "r" (__ptr), "r" (__old), "r" (__new) \
/linux-6.15/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-6.15/tools/testing/selftests/bpf/
H A Dbpf_atomic.h106 typeof(p) __ptr = (p); \
109 VAL = (__unqual_typeof(*(p)))READ_ONCE(*__ptr); \
/linux-6.15/tools/perf/trace/beauty/include/linux/
H A Dsocket.h157 struct cmsghdr * __ptr; in __cmsg_nxthdr() local
159 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
160 if ((unsigned long)((char*)(__ptr+1) - (char *) __ctl) > __size) in __cmsg_nxthdr()
163 return __ptr; in __cmsg_nxthdr()
/linux-6.15/arch/s390/include/asm/
H A Duaccess.h671 __typeof__(ptr) __ptr = (ptr); \
674 BUILD_BUG_ON(sizeof(*(__ptr)) != sizeof(*(__uval))); \
676 __chk_user_ptr(__ptr); \
677 __cmpxchg_user_key((unsigned long)(__ptr), (void *)(__uval), \
678 (old), (new), (key), sizeof(*(__ptr))); \
H A Dcmpxchg.h131 [__ptr] "+Q" (*(ptr)), \
141 [__ptr] "+QS" (*(ptr)), \
/linux-6.15/arch/s390/kernel/
H A Duprobes.c191 __typeof__(ptr) __ptr = (ptr); \
194 if ((u64 __force)__ptr & mask) \
196 else if (put_user(*(input), __ptr)) \
200 (void __force *)__ptr, \
/linux-6.15/drivers/accel/amdxdna/
H A Damdxdna_pci_drv.h21 u8 *__ptr = (u8 *)(ptr); \
23 if (__ptr[__i]) { \
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dsocket_helpers.h22 __auto_type __ptr = &(p); \
23 __auto_type __val = *__ptr; \
24 *__ptr = nullvalue; \

12