Home
last modified time | relevance | path

Searched defs:ptr (Results 26 – 50 of 2755) sorted by relevance

12345678910>>...111

/openbmc/linux/arch/sparc/include/asm/
H A Dcmpxchg_32.h18 static __always_inline unsigned long __arch_xchg(unsigned long x, __volatile__ void * ptr, int size) in __arch_xchg()
28 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__arch_xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))… argument
46 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg()
58 #define arch_cmpxchg(ptr, o, n) \ argument
67 #define arch_cmpxchg64(ptr, old, new) __cmpxchg_u64(ptr, old, new) argument
75 #define arch_cmpxchg_local(ptr, o, n) \ argument
78 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
H A Dcmpxchg_64.h55 #define arch_xchg(ptr,x) \ argument
75 unsigned int *ptr = (unsigned int *) (maddr & ~2); in xchg16() local
91 __arch_xchg(unsigned long x, __volatile__ void * ptr, int size) in __arch_xchg()
136 unsigned int *ptr = (unsigned int *) (maddr & ~3); in __cmpxchg_u8() local
157 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg()
171 #define arch_cmpxchg(ptr,o,n) \ argument
184 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
198 #define arch_cmpxchg_local(ptr, o, n) \ argument
201 #define arch_cmpxchg64_local(ptr, o, n) \ argument
206 #define arch_cmpxchg64(ptr, o, n) arch_cmpxchg64_local((ptr), (o), (n)) argument
/openbmc/linux/arch/csky/include/asm/
H A Duaccess.h11 #define __put_user_asm_b(x, ptr, err) \ argument
29 #define __put_user_asm_h(x, ptr, err) \ argument
47 #define __put_user_asm_w(x, ptr, err) \ argument
65 #define __put_user_asm_64(x, ptr, err) \ argument
91 static inline int __put_user_fn(size_t size, void __user *ptr, void *x) in __put_user_fn()
123 #define __get_user_asm_common(x, ptr, ins, err) \ argument
142 #define __get_user_asm_64(x, ptr, err) \ argument
168 static inline int __get_user_fn(size_t size, const void __user *ptr, void *x) in __get_user_fn()
/openbmc/linux/arch/loongarch/include/asm/
H A Duaccess.h45 #define get_user(x, ptr) \ argument
71 #define put_user(x, ptr) \ argument
100 #define __get_user(x, ptr) \ argument
129 #define __put_user(x, ptr) \ argument
143 #define __get_user_common(val, size, ptr) \ argument
154 #define __get_kernel_common(val, size, ptr) __get_user_common(val, size, ptr) argument
156 #define __get_data_asm(val, insn, ptr) \ argument
170 #define __put_user_common(ptr, size) \ argument
181 #define __put_kernel_common(ptr, size) __put_user_common(ptr, size) argument
183 #define __put_data_asm(insn, ptr) \ argument
/openbmc/linux/tools/testing/selftests/mm/
H A Dprotection_keys.c173 u64 *ptr = (u64 *)(c + i); in dump_mem() local
461 int sys_mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, in sys_mprotect_pkey()
587 int mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, in mprotect_pkey()
624 void *ptr; member
631 void record_pkey_malloc(void *ptr, long size, int prot) in record_pkey_malloc()
668 void free_pkey_malloc(void *ptr) in free_pkey_malloc()
698 void *ptr; in malloc_pkey_with_mprotect() local
719 void *ptr; in malloc_pkey_anon_huge() local
799 void *ptr; in malloc_pkey_hugetlb() local
820 void *ptr; in malloc_pkey_mmap_dax() local
[all …]
/openbmc/linux/arch/ia64/include/uapi/asm/
H A Dcmpxchg.h26 #define __arch_xchg(x, ptr, size) \ argument
53 #define xchg(ptr, x) \ argument
69 #define ia64_cmpxchg(sem, ptr, old, new, size) \ argument
113 #define cmpxchg_acq(ptr, o, n) \ argument
115 #define cmpxchg_rel(ptr, o, n) \ argument
129 #define cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) argument
130 #define cmpxchg64(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) argument
/openbmc/linux/arch/xtensa/include/asm/
H A Dcmpxchg.h74 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg()
83 #define arch_cmpxchg(ptr,o,n) \ argument
92 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
110 #define arch_cmpxchg_local(ptr, o, n) \ argument
113 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
114 #define arch_cmpxchg64(ptr, o, n) arch_cmpxchg64_local((ptr), (o), (n)) argument
172 #define arch_xchg(ptr,x) \ argument
175 static inline u32 xchg_small(volatile void *ptr, u32 x, int size) in xchg_small()
206 __arch_xchg(unsigned long x, volatile void * ptr, int size) in __arch_xchg()
H A Duaccess.h38 #define put_user(x, ptr) __put_user_check((x), (ptr), sizeof(*(ptr))) argument
39 #define get_user(x, ptr) __get_user_check((x), (ptr), sizeof(*(ptr))) argument
47 #define __put_user(x, ptr) __put_user_nocheck((x), (ptr), sizeof(*(ptr))) argument
48 #define __get_user(x, ptr) __get_user_nocheck((x), (ptr), sizeof(*(ptr))) argument
53 #define __put_user_nocheck(x, ptr, size) \ argument
60 #define __put_user_check(x, ptr, size) \ argument
69 #define __put_user_size(x, ptr, size, retval) \ argument
149 #define __get_user_nocheck(x, ptr, size) \ argument
156 #define __get_user_check(x, ptr, size) \ argument
169 #define __get_user_size(x, ptr, size, retval) \ argument
/openbmc/linux/arch/arc/include/asm/
H A Dcmpxchg.h21 #define __cmpxchg(ptr, old, new) \ argument
41 #define arch_cmpxchg_relaxed(ptr, old, new) \ argument
60 #define arch_cmpxchg(ptr, old, new) \ argument
88 #define __arch_xchg(ptr, val) \ argument
98 #define arch_xchg_relaxed(ptr, val) \ argument
122 #define arch_xchg(ptr, val) \ argument
/openbmc/linux/mm/kasan/
H A Dkasan_test.c161 char *ptr; in kmalloc_oob_right() local
190 char *ptr; in kmalloc_oob_left() local
203 char *ptr; in kmalloc_node_oob_right() local
222 char *ptr; in kmalloc_pagealloc_oob_right() local
238 char *ptr; in kmalloc_pagealloc_uaf() local
252 char *ptr; in kmalloc_pagealloc_invalid_free() local
265 char *ptr; in pagealloc_oob_right() local
287 char *ptr; in pagealloc_uaf() local
301 char *ptr; in kmalloc_large_oob_right() local
494 char *ptr; in kmalloc_oob_memset_2() local
[all …]
/openbmc/linux/tools/testing/selftests/arm64/pauth/
H A Dhelper.c6 size_t keyia_sign(size_t ptr) in keyia_sign()
12 size_t keyib_sign(size_t ptr) in keyib_sign()
18 size_t keyda_sign(size_t ptr) in keyda_sign()
24 size_t keydb_sign(size_t ptr) in keydb_sign()
30 size_t keyg_sign(size_t ptr) in keyg_sign()
/openbmc/linux/arch/openrisc/include/asm/
H A Duaccess.h45 #define get_user(x, ptr) \ argument
47 #define put_user(x, ptr) \ argument
50 #define __get_user(x, ptr) \ argument
52 #define __put_user(x, ptr) \ argument
57 #define __put_user_nocheck(x, ptr, size) \ argument
64 #define __put_user_check(x, ptr, size) \ argument
73 #define __put_user_size(x, ptr, size, retval) \ argument
129 #define __get_user_nocheck(x, ptr, size) \ argument
136 #define __get_user_check(x, ptr, size) \ argument
149 #define __get_user_size(x, ptr, size, retval) \ argument
H A Dcmpxchg.h25 static inline unsigned long cmpxchg_u32(volatile void *ptr, in cmpxchg_u32()
44 static inline unsigned long xchg_u32(volatile void *ptr, in xchg_u32()
59 static inline u32 cmpxchg_small(volatile void *ptr, u32 old, u32 new, in cmpxchg_small()
92 static inline u32 xchg_small(volatile void *ptr, u32 x, int size) in xchg_small()
121 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg()
135 #define arch_cmpxchg(ptr, o, n) \ argument
151 __arch_xchg(volatile void *ptr, unsigned long with, int size) in __arch_xchg()
164 #define arch_xchg(ptr, with) \ argument
/openbmc/linux/net/bluetooth/
H A Deir.c16 u8 eir_append_local_name(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in eir_append_local_name()
49 u8 eir_append_appearance(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in eir_append_appearance()
69 u8 *ptr = data, *uuids_start = NULL; in create_uuid16_list() local
111 u8 *ptr = data, *uuids_start = NULL; in create_uuid32_list() local
144 u8 *ptr = data, *uuids_start = NULL; in create_uuid128_list() local
177 u8 *ptr = data; in eir_create() local
224 u8 eir_create_per_adv_data(struct hci_dev *hdev, u8 instance, u8 *ptr) in eir_create_per_adv_data()
245 u8 eir_create_adv_data(struct hci_dev *hdev, u8 instance, u8 *ptr) in eir_create_adv_data()
332 static u8 create_default_scan_rsp(struct hci_dev *hdev, u8 *ptr) in create_default_scan_rsp()
342 u8 eir_create_scan_rsp(struct hci_dev *hdev, u8 instance, u8 *ptr) in eir_create_scan_rsp()
/openbmc/linux/arch/riscv/include/asm/
H A Duaccess.h53 #define __get_user_asm(insn, x, ptr, err) \ argument
67 #define __get_user_8(x, ptr, err) \ argument
70 #define __get_user_8(x, ptr, err) \ argument
131 #define __get_user(x, ptr) \ argument
162 #define get_user(x, ptr) \ argument
171 #define __put_user_asm(insn, x, ptr, err) \ argument
184 #define __put_user_8(x, ptr, err) \ argument
187 #define __put_user_8(x, ptr, err) \ argument
247 #define __put_user(x, ptr) \ argument
278 #define put_user(x, ptr) \ argument
/openbmc/linux/arch/m68k/include/asm/
H A Dcmpxchg.h12 static inline unsigned long __arch_xchg(unsigned long x, volatile void * ptr, int size) in __arch_xchg()
43 static inline unsigned long __arch_xchg(unsigned long x, volatile void * ptr, int size) in __arch_xchg()
78 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__arch_xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))… argument
82 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
120 #define arch_cmpxchg(ptr, o, n) \ argument
123 #define arch_cmpxchg_local(ptr, o, n) \ argument
127 #define arch_cmpxchg64(ptr, o, n) arch_cmpxchg64_local((ptr), (o), (n)) argument
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Ddynptr_success.c40 struct bpf_dynptr ptr; in test_read_write() local
70 struct bpf_dynptr ptr; in test_dynptr_data() local
125 struct bpf_dynptr *ptr = (struct bpf_dynptr *)data; in ringbuf_callback() local
139 struct bpf_dynptr ptr; in test_ringbuf() local
173 struct bpf_dynptr ptr; in test_skb_readonly() local
194 struct bpf_dynptr ptr; in test_dynptr_skb_data() local
215 struct bpf_dynptr ptr; in test_adjust() local
268 struct bpf_dynptr ptr; in test_adjust_err() local
326 struct bpf_dynptr ptr; in test_zero_size_dynptr() local
513 struct bpf_dynptr ptr; in test_dynptr_skb_no_buff() local
[all …]
/openbmc/linux/arch/arm64/include/asm/
H A Dcompiler.h11 #define xpaclri(ptr) \ argument
24 #define ptrauth_strip_kernel_insn_pac(ptr) xpaclri(ptr) argument
26 #define ptrauth_strip_kernel_insn_pac(ptr) (ptr) argument
30 #define ptrauth_strip_user_insn_pac(ptr) xpaclri(ptr) argument
32 #define ptrauth_strip_user_insn_pac(ptr) (ptr) argument
/openbmc/linux/include/linux/
H A Derr.h49 static inline long __must_check PTR_ERR(__force const void *ptr) in PTR_ERR()
59 static inline bool __must_check IS_ERR(__force const void *ptr) in IS_ERR()
70 static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr) in IS_ERR_OR_NULL()
82 static inline void * __must_check ERR_CAST(__force const void *ptr) in ERR_CAST()
105 static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr) in PTR_ERR_OR_ZERO()
/openbmc/linux/tools/include/linux/
H A Derr.h40 static inline long __must_check PTR_ERR(__force const void *ptr) in PTR_ERR()
45 static inline bool __must_check IS_ERR(__force const void *ptr) in IS_ERR()
50 static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr) in IS_ERR_OR_NULL()
55 static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr) in PTR_ERR_OR_ZERO()
70 static inline void * __must_check ERR_CAST(__force const void *ptr) in ERR_CAST()
/openbmc/linux/arch/sh/include/asm/
H A Duaccess.h20 #define put_user(x,ptr) __put_user_check((x), (ptr), sizeof(*(ptr))) argument
21 #define get_user(x,ptr) __get_user_check((x), (ptr), sizeof(*(ptr))) argument
28 #define __put_user(x,ptr) __put_user_nocheck((x), (ptr), sizeof(*(ptr))) argument
29 #define __get_user(x,ptr) __get_user_nocheck((x), (ptr), sizeof(*(ptr))) argument
34 #define __get_user_nocheck(x,ptr,size) \ argument
45 #define __get_user_check(x,ptr,size) \ argument
56 #define __put_user_nocheck(x,ptr,size) \ argument
66 #define __put_user_check(x,ptr,size) \ argument
/openbmc/linux/arch/x86/include/asm/
H A Duaccess.h76 #define do_get_user_call(fn,x,ptr) \ argument
108 #define get_user(x,ptr) ({ might_fault(); do_get_user_call(get_user,x,ptr); }) argument
131 #define __get_user(x,ptr) do_get_user_call(get_user_nocheck,x,ptr) argument
145 #define __put_user_goto_u64(x, ptr, label) \ argument
170 #define do_put_user_call(fn,x,ptr) \ argument
208 #define put_user(x, ptr) ({ might_fault(); do_put_user_call(put_user,x,ptr); }) argument
230 #define __put_user(x, ptr) do_put_user_call(put_user_nocheck,x,ptr) argument
232 #define __put_user_size(x, ptr, size, label) \ argument
259 #define __get_user_asm_u64(x, ptr, label) do { \ argument
268 #define __get_user_asm_u64(x, ptr, label) \ argument
[all …]
/openbmc/linux/arch/nios2/include/asm/
H A Duaccess.h86 #define __get_user_8(val, ptr, err) do { \ argument
96 #define __get_user_common(val, size, ptr, err) \ argument
117 #define __get_user(x, ptr) \ argument
125 #define get_user(x, ptr) \ argument
135 #define __put_user_asm(val, insn, ptr, err) \ argument
173 #define __put_user(x, ptr) \ argument
180 #define put_user(x, ptr) \ argument
/openbmc/linux/arch/ia64/include/asm/
H A Duaccess.h68 #define put_user(x, ptr) __put_user_check((__typeof__(*(ptr))) (x), (ptr), sizeof(*(ptr))) argument
69 #define get_user(x, ptr) __get_user_check((x), (ptr), sizeof(*(ptr))) argument
76 #define __put_user(x, ptr) __put_user_nocheck((__typeof__(*(ptr))) (x), (ptr), sizeof(*(ptr))) argument
77 #define __get_user(x, ptr) __get_user_nocheck((x), (ptr), sizeof(*(ptr))) argument
136 #define __do_get_user(check, x, ptr, size) \ argument
154 #define __get_user_nocheck(x, ptr, size) __do_get_user(0, x, ptr, size) argument
155 #define __get_user_check(x, ptr, size) __do_get_user(1, x, ptr, size) argument
163 #define __do_put_user(check, x, ptr, size) \ argument
181 #define __put_user_nocheck(x, ptr, size) __do_put_user(0, x, ptr, size) argument
182 #define __put_user_check(x, ptr, size) __do_put_user(1, x, ptr, size) argument
[all …]
/openbmc/linux/tools/include/linux/unaligned/
H A Dpacked_struct.h13 const struct __una_u16 *ptr = (const struct __una_u16 *)p; in __get_unaligned_cpu16() local
19 const struct __una_u32 *ptr = (const struct __una_u32 *)p; in __get_unaligned_cpu32() local
25 const struct __una_u64 *ptr = (const struct __una_u64 *)p; in __get_unaligned_cpu64() local
31 struct __una_u16 *ptr = (struct __una_u16 *)p; in __put_unaligned_cpu16() local
37 struct __una_u32 *ptr = (struct __una_u32 *)p; in __put_unaligned_cpu32() local
43 struct __una_u64 *ptr = (struct __una_u64 *)p; in __put_unaligned_cpu64() local

12345678910>>...111