Home
last modified time | relevance | path

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

/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 Dprocessor.h656 unsigned long __ptr = (unsigned long)task_stack_page(task); \
657 __ptr += THREAD_SIZE - TOP_OF_KERNEL_STACK_PADDING; \
658 ((struct pt_regs *)__ptr) - 1; \
H A Dpgtable.h1404 static inline bool pgdp_maps_userspace(void *__ptr)
1406 unsigned long ptr = (unsigned long)__ptr;
1426 unsigned long __ptr = (unsigned long)ptr;
1428 __ptr |= BIT(bit); in kernel_to_user_pgdp()
1429 return (void *)__ptr; in kernel_to_user_pgdp()
1433 unsigned long __ptr = (unsigned long)ptr; in user_to_kernel_pgdp()
1435 __ptr &= ~BIT(bit); in user_to_kernel_pgdp()
1436 return (void *)__ptr;
1392 pgdp_maps_userspace(void * __ptr) pgdp_maps_userspace() argument
1414 unsigned long __ptr = (unsigned long)ptr; ptr_set_bit() local
1421 unsigned long __ptr = (unsigned long)ptr; ptr_clear_bit() local
/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/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/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/scripts/genksyms/
H A Dgenksyms.h75 #define xmalloc(size) ({ void *__ptr = malloc(size); \
76 if(!__ptr && size != 0) { \
80 __ptr; })
/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 Drculist.h438 struct list_head *__ptr = (ptr); \
439 struct list_head *__next = READ_ONCE(__ptr->next); \
440 likely(__ptr != __next) ? list_entry_rcu(__next, type, member) : NULL; \
458 struct list_head *__ptr = (ptr); \
459 struct list_head *__next = READ_ONCE(__ptr->next); \
/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.h171 struct cmsghdr * __ptr; in __cmsg_nxthdr()
173 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
174 if ((unsigned long)((char*)(__ptr+1) - (char *) __ctl) > __size) in __cmsg_nxthdr()
177 return __ptr; in __cmsg_nxthdr()
172 struct cmsghdr * __ptr; __cmsg_nxthdr() local
/linux/tools/testing/selftests/bpf/
H A Dbpf_atomic.h
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsocket_helpers.h28 auto __ptr = &(p); \
29 auto __val = *__ptr; \
30 *__ptr = nullvalue; \
/linux/arch/s390/include/asm/
H A Dcmpxchg.h129 " cs %[__old],%[__new],%[__ptr]" \
131 [__ptr] "+Q" (*(ptr)), \
139 " csg %[__old],%[__new],%[__ptr]" \
141 [__ptr] "+QS" (*(ptr)), \
/linux/arch/riscv/kvm/
H A Daia_imsic.c243 #define imsic_mrif_atomic_write(__mrif, __ptr, __new_val) \ argument
244 imsic_mrif_atomic_rmw(__mrif, __ptr, __new_val, -1UL)
245 #define imsic_mrif_atomic_read(__mrif, __ptr) \ argument
246 imsic_mrif_atomic_or(__mrif, __ptr, 0)
/linux/include/kunit/
H A Dtest.h967 const typeof(ptr) __ptr = (ptr); \
970 if (!IS_ERR_OR_NULL(__ptr)) \
977 KUNIT_INIT_ASSERT(.text = #ptr, .value = __ptr), \
/linux/tools/objtool/
H A Delf.c
/linux/sound/core/
H A Dpcm_native.c3110 #define snd_pcm_sync_ptr_get_user(__f, __c, __ptr) ({ \
3113 typeof(*(__ptr)) __user *__src = (__ptr); \
3127 #define snd_pcm_sync_ptr_put_user(__s, __c, __ptr) ({ \
3130 typeof(*(__ptr)) __user *__src = (__ptr); \
3100 snd_pcm_sync_ptr_get_user(__f,__c,__ptr) global() argument
3117 snd_pcm_sync_ptr_put_user(__s,__c,__ptr) global() argument
/linux/drivers/media/i2c/ccs/
H A Dccs-core.c94 unsigned int offset, void **__ptr) in ccs_limit_ptr() argument
108 *__ptr = sensor->ccs_limits + ccs_limit_offsets[limit].lim + offset; in ccs_limit_ptr()