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); \
171 [ptr] "+m" (*__ptr), \
[all …]
H A Dprocessor.h660 unsigned long __ptr = (unsigned long)task_stack_page(task); \
661 __ptr += THREAD_SIZE - TOP_OF_KERNEL_STACK_PADDING; \
662 ((struct pt_regs *)__ptr) - 1; \
/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.h68 __typeof__(ptr) __ptr = (ptr); \
69 __typeof__(*(__ptr)) __new = (new); \
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; \
212 __typeof__(ptr) __ptr = (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/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.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 Dcleanup.h204 __auto_type __ptr = &(p); \
205 __auto_type __val = *__ptr; \
206 *__ptr = nullvalue; \
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 Dstring.h512 u8 *__ptr = (u8 *)(obj); \
514 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \
530 u8 *__ptr = (u8 *)(obj); \
532 memset(__ptr + offsetof(typeof(*(obj)), member), __val, \
/linux/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/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.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/arch/s390/include/asm/
H A Duaccess.h701 __typeof__(ptr) __ptr = (ptr); \
704 BUILD_BUG_ON(sizeof(*(__ptr)) != sizeof(*(__uval))); \
706 __chk_user_ptr(__ptr); \
707 __cmpxchg_user_key((unsigned long)(__ptr), (void *)(__uval), \
708 (old), (new), (key), sizeof(*(__ptr))); \
/linux/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/drivers/accel/amdxdna/
H A Damdxdna_pci_drv.h21 u8 *__ptr = (u8 *)(ptr); \
23 if (__ptr[__i]) { \
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsocket_helpers.h22 __auto_type __ptr = &(p); \
23 __auto_type __val = *__ptr; \
24 *__ptr = nullvalue; \
/linux/arch/riscv/kvm/
H A Daia_imsic.c242 #define imsic_mrif_atomic_write(__mrif, __ptr, __new_val) \ argument
243 imsic_mrif_atomic_rmw(__mrif, __ptr, __new_val, -1UL)
244 #define imsic_mrif_atomic_read(__mrif, __ptr) \ argument
245 imsic_mrif_atomic_or(__mrif, __ptr, 0)
/linux/arch/arm/include/asm/
H A Duaccess.h234 #define __put_user_check(__pu_val, __ptr, __err, __s) \ argument
238 register const void __user *__p asm("r0") = __ptr; \
/linux/tools/objtool/
H A Delf.c66 typeof(ptr) __ptr = (ptr); \
67 __ptr ? container_of(__ptr, type, member) : NULL; \
/linux/drivers/net/wireless/realtek/rtw89/
H A Drtw8852a_rfk.c2904 s8 *__ptr = (ptr); \ in _tssi_set_tmeter_tbl()
2908 __v = (__ptr[__idx + __i]); \ in _tssi_set_tmeter_tbl()
H A Drtw8852b_rfk.c2793 s8 *__ptr = (ptr); \ in _tssi_set_tmeter_tbl()
2797 __v = (__ptr[__idx + __i]); \ in _tssi_set_tmeter_tbl()
H A Drtw8852bt_rfk.c2889 s8 *__ptr = (ptr); \ in _tssi_set_tmeter_tbl()
2893 __v = (__ptr[__idx + __i]); \ in _tssi_set_tmeter_tbl()