Home
last modified time | relevance | path

Searched defs:ptr (Results 1 – 25 of 1914) sorted by relevance

12345678910>>...77

/Linux-v5.4/arch/riscv/include/asm/
Dcmpxchg.h14 #define __xchg_relaxed(ptr, new, size) \ argument
40 #define xchg_relaxed(ptr, x) \ argument
47 #define __xchg_acquire(ptr, new, size) \ argument
75 #define xchg_acquire(ptr, x) \ argument
82 #define __xchg_release(ptr, new, size) \ argument
110 #define xchg_release(ptr, x) \ argument
117 #define __xchg(ptr, new, size) \ argument
143 #define xchg(ptr, x) \ argument
149 #define xchg32(ptr, x) \ argument
155 #define xchg64(ptr, x) \ argument
[all …]
Duaccess.h105 #define __get_user_asm(insn, x, ptr, err) \ argument
132 #define __get_user_8(x, ptr, err) \ argument
135 #define __get_user_8(x, ptr, err) \ argument
191 #define __get_user(x, ptr) \ argument
232 #define get_user(x, ptr) \ argument
241 #define __put_user_asm(insn, x, ptr, err) \ argument
266 #define __put_user_8(x, ptr, err) \ argument
269 #define __put_user_8(x, ptr, err) \ argument
320 #define __put_user(x, ptr) \ argument
360 #define put_user(x, ptr) \ argument
[all …]
/Linux-v5.4/arch/s390/include/asm/
Dbitops.h45 __bitops_word(unsigned long nr, volatile unsigned long *ptr) in __bitops_word()
54 __bitops_byte(unsigned long nr, volatile unsigned long *ptr) in __bitops_byte()
59 static __always_inline void arch_set_bit(unsigned long nr, volatile unsigned long *ptr) in arch_set_bit()
80 static __always_inline void arch_clear_bit(unsigned long nr, volatile unsigned long *ptr) in arch_clear_bit()
102 volatile unsigned long *ptr) in arch_change_bit()
124 volatile unsigned long *ptr) in arch_test_and_set_bit()
135 volatile unsigned long *ptr) in arch_test_and_clear_bit()
146 volatile unsigned long *ptr) in arch_test_and_change_bit()
156 static inline void arch___set_bit(unsigned long nr, volatile unsigned long *ptr) in arch___set_bit()
164 volatile unsigned long *ptr) in arch___clear_bit()
[all …]
/Linux-v5.4/drivers/gpu/drm/radeon/
Datom-bits.h28 static inline uint8_t get_u8(void *bios, int ptr) in get_u8()
32 #define U8(ptr) get_u8(ctx->ctx->bios, (ptr)) argument
33 #define CU8(ptr) get_u8(ctx->bios, (ptr)) argument
34 static inline uint16_t get_u16(void *bios, int ptr) in get_u16()
38 #define U16(ptr) get_u16(ctx->ctx->bios, (ptr)) argument
39 #define CU16(ptr) get_u16(ctx->bios, (ptr)) argument
40 static inline uint32_t get_u32(void *bios, int ptr) in get_u32()
44 #define U32(ptr) get_u32(ctx->ctx->bios, (ptr)) argument
45 #define CU32(ptr) get_u32(ctx->bios, (ptr)) argument
46 #define CSTR(ptr) (((char *)(ctx->bios))+(ptr)) argument
Datom.c183 int *ptr, uint32_t *saved, int print) in atom_get_src_int()
367 static void atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr) in atom_skip_src_int()
403 static uint32_t atom_get_src(atom_exec_context *ctx, uint8_t attr, int *ptr) in atom_get_src()
408 static uint32_t atom_get_src_direct(atom_exec_context *ctx, uint8_t align, int *ptr) in atom_get_src_direct()
435 int *ptr, uint32_t *saved, int print) in atom_get_dst()
443 static void atom_skip_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr) in atom_skip_dst()
451 int *ptr, uint32_t val, uint32_t saved) in atom_put_dst()
586 static void atom_op_add(atom_exec_context *ctx, int *ptr, int arg) in atom_op_add()
600 static void atom_op_and(atom_exec_context *ctx, int *ptr, int arg) in atom_op_and()
614 static void atom_op_beep(atom_exec_context *ctx, int *ptr, int arg) in atom_op_beep()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/include/
Datom-bits.h28 static inline uint8_t get_u8(void *bios, int ptr) in get_u8()
32 #define U8(ptr) get_u8(ctx->ctx->bios, (ptr)) argument
33 #define CU8(ptr) get_u8(ctx->bios, (ptr)) argument
34 static inline uint16_t get_u16(void *bios, int ptr) in get_u16()
38 #define U16(ptr) get_u16(ctx->ctx->bios, (ptr)) argument
39 #define CU16(ptr) get_u16(ctx->bios, (ptr)) argument
40 static inline uint32_t get_u32(void *bios, int ptr) in get_u32()
44 #define U32(ptr) get_u32(ctx->ctx->bios, (ptr)) argument
45 #define CU32(ptr) get_u32(ctx->bios, (ptr)) argument
46 #define CSTR(ptr) (((char *)(ctx->bios))+(ptr)) argument
/Linux-v5.4/include/linux/
Dkmemleak.h38 static inline void kmemleak_alloc_recursive(const void *ptr, size_t size, in kmemleak_alloc_recursive()
46 static inline void kmemleak_free_recursive(const void *ptr, slab_flags_t flags) in kmemleak_free_recursive()
52 static inline void kmemleak_erase(void **ptr) in kmemleak_erase()
62 static inline void kmemleak_alloc(const void *ptr, size_t size, int min_count, in kmemleak_alloc()
66 static inline void kmemleak_alloc_recursive(const void *ptr, size_t size, in kmemleak_alloc_recursive()
71 static inline void kmemleak_alloc_percpu(const void __percpu *ptr, size_t size, in kmemleak_alloc_percpu()
79 static inline void kmemleak_free(const void *ptr) in kmemleak_free()
82 static inline void kmemleak_free_part(const void *ptr, size_t size) in kmemleak_free_part()
85 static inline void kmemleak_free_recursive(const void *ptr, slab_flags_t flags) in kmemleak_free_recursive()
88 static inline void kmemleak_free_percpu(const void __percpu *ptr) in kmemleak_free_percpu()
[all …]
/Linux-v5.4/arch/csky/include/asm/
Duaccess.h56 #define put_user(x, ptr) \ argument
59 #define __put_user(x, ptr) \ argument
64 #define get_user(x, ptr) \ argument
67 #define __get_user(x, ptr) \ argument
70 #define __put_user_nocheck(x, ptr, size) \ argument
81 #define __put_user_check(x, ptr, size) \ argument
91 #define __put_user_size(x, ptr, size, retval) \ argument
120 #define __put_user_asm_b(x, ptr, err) \ argument
138 #define __put_user_asm_h(x, ptr, err) \ argument
156 #define __put_user_asm_w(x, ptr, err) \ argument
[all …]
/Linux-v5.4/arch/arm/include/asm/
Dcmpxchg.h28 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg()
117 #define xchg_relaxed(ptr, x) ({ \ argument
137 #define cmpxchg_local(ptr, o, n) ({ \ argument
144 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
156 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg()
210 #define cmpxchg_relaxed(ptr,o,n) ({ \ argument
217 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
237 #define cmpxchg_local(ptr, o, n) ({ \ argument
244 static inline unsigned long long __cmpxchg64(unsigned long long *ptr, in __cmpxchg64()
269 #define cmpxchg64_relaxed(ptr, o, n) ({ \ argument
[all …]
/Linux-v5.4/arch/parisc/include/asm/
Dcmpxchg.h25 __xchg(unsigned long x, __volatile__ void *ptr, int size) in __xchg()
47 #define xchg(ptr, x) \ argument
60 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg()
73 #define cmpxchg(ptr, o, n) \ argument
83 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
101 #define cmpxchg_local(ptr, o, n) \ argument
105 #define cmpxchg64_local(ptr, o, n) \ argument
111 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
114 #define cmpxchg64(ptr, o, n) __cmpxchg_u64(ptr, o, n) argument
Duaccess.h36 #define LDD_USER(val, ptr) __get_user_asm64(val, ptr) argument
37 #define STD_USER(x, ptr) __put_user_asm64(x, ptr) argument
39 #define LDD_USER(val, ptr) __get_user_asm(val, "ldd", ptr) argument
40 #define STD_USER(x, ptr) __put_user_asm("std", x, ptr) argument
83 #define __get_user_internal(val, ptr) \ argument
98 #define __get_user(val, ptr) \ argument
104 #define __get_user_asm(val, ldx, ptr) \ argument
119 #define __get_user_asm64(val, ptr) \ argument
141 #define __put_user_internal(x, ptr) \ argument
157 #define __put_user(x, ptr) \ argument
[all …]
/Linux-v5.4/arch/arc/include/asm/
Dcmpxchg.h17 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg()
47 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg()
67 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg()
92 #define cmpxchg(ptr, o, n) ({ \ argument
112 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, in __xchg()
134 #define _xchg(ptr, with) ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), \ argument
154 #define xchg(ptr, with) \ argument
167 #define xchg(ptr, with) _xchg(ptr, with) argument
173 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, in __xchg()
201 #define xchg(ptr, with) ({ \ argument
/Linux-v5.4/arch/mips/include/asm/
Dcmpxchg.h81 unsigned long __xchg(volatile void *ptr, unsigned long x, int size) in __xchg()
102 #define xchg(ptr, x) \ argument
157 unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg()
182 #define cmpxchg_local(ptr, old, new) \ argument
189 #define cmpxchg(ptr, old, new) \ argument
201 #define cmpxchg64_local(ptr, o, n) \ argument
207 #define cmpxchg64(ptr, o, n) \ argument
215 # define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
219 static inline unsigned long __cmpxchg64(volatile void *ptr, in __cmpxchg64()
288 # define cmpxchg64(ptr, o, n) ({ \ argument
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Datom.c177 int *ptr, uint32_t *saved, int print) in atom_get_src_int()
361 static void atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr) in atom_skip_src_int()
397 static uint32_t atom_get_src(atom_exec_context *ctx, uint8_t attr, int *ptr) in atom_get_src()
402 static uint32_t atom_get_src_direct(atom_exec_context *ctx, uint8_t align, int *ptr) in atom_get_src_direct()
429 int *ptr, uint32_t *saved, int print) in atom_get_dst()
437 static void atom_skip_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr) in atom_skip_dst()
445 int *ptr, uint32_t val, uint32_t saved) in atom_put_dst()
580 static void atom_op_add(atom_exec_context *ctx, int *ptr, int arg) in atom_op_add()
594 static void atom_op_and(atom_exec_context *ctx, int *ptr, int arg) in atom_op_and()
608 static void atom_op_beep(atom_exec_context *ctx, int *ptr, int arg) in atom_op_beep()
[all …]
/Linux-v5.4/lib/
Dtest_kasan.c32 char *ptr; in kmalloc_oob_right() local
48 char *ptr; in kmalloc_oob_left() local
64 char *ptr; in kmalloc_node_oob_right() local
81 char *ptr; in kmalloc_pagealloc_oob_right() local
100 char *ptr; in kmalloc_pagealloc_uaf() local
116 char *ptr; in kmalloc_pagealloc_invalid_free() local
132 char *ptr; in kmalloc_large_oob_right() local
207 char *ptr; in kmalloc_oob_memset_2() local
223 char *ptr; in kmalloc_oob_memset_4() local
240 char *ptr; in kmalloc_oob_memset_8() local
[all …]
/Linux-v5.4/arch/x86/include/asm/
Dcmpxchg.h42 #define __xchg_op(ptr, arg, op, lock) \ argument
78 #define arch_xchg(ptr, v) __xchg_op((ptr), (v), xchg, "") argument
85 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument
133 #define __cmpxchg(ptr, old, new, size) \ argument
136 #define __sync_cmpxchg(ptr, old, new, size) \ argument
139 #define __cmpxchg_local(ptr, old, new, size) \ argument
148 #define arch_cmpxchg(ptr, old, new) \ argument
151 #define arch_sync_cmpxchg(ptr, old, new) \ argument
154 #define arch_cmpxchg_local(ptr, old, new) \ argument
221 #define __try_cmpxchg(ptr, pold, new, size) \ argument
[all …]
Duaccess.h166 #define get_user(x, ptr) \ argument
180 #define __put_user_x(size, x, ptr, __ret_pu) \ argument
205 #define __put_user_x8(x, ptr, __ret_pu) \ argument
209 #define __put_user_goto_u64(x, ptr, label) \ argument
213 #define __put_user_x8(x, ptr, __ret_pu) __put_user_x(8, x, ptr, __ret_pu) argument
244 #define put_user(x, ptr) \ argument
271 #define __put_user_size(x, ptr, size, label) \ argument
296 #define __put_user_size_ex(x, ptr, size) \ argument
318 #define __get_user_asm_u64(x, ptr, retval, errret) \ argument
338 #define __get_user_asm_ex_u64(x, ptr) (x) = __get_user_bad() argument
[all …]
Dcmpxchg_32.h24 static inline void set_64bit(volatile u64 *ptr, u64 value) in set_64bit()
39 #define arch_cmpxchg64(ptr, o, n) \ argument
42 #define arch_cmpxchg64_local(ptr, o, n) \ argument
47 static inline u64 __cmpxchg64(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg64()
60 static inline u64 __cmpxchg64_local(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg64_local()
79 #define arch_cmpxchg64(ptr, o, n) \ argument
96 #define arch_cmpxchg64_local(ptr, o, n) \ argument
/Linux-v5.4/arch/powerpc/include/asm/
Dcmpxchg.h159 __xchg_local(void *ptr, unsigned long x, unsigned int size) in __xchg_local()
178 __xchg_relaxed(void *ptr, unsigned long x, unsigned int size) in __xchg_relaxed()
195 #define xchg_local(ptr,x) \ argument
202 #define xchg_relaxed(ptr, x) \ argument
403 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg()
423 __cmpxchg_local(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_local()
443 __cmpxchg_relaxed(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_relaxed()
463 __cmpxchg_acquire(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_acquire()
481 #define cmpxchg(ptr, o, n) \ argument
490 #define cmpxchg_local(ptr, o, n) \ argument
[all …]
Duaccess.h88 #define get_user(x, ptr) \ argument
90 #define put_user(x, ptr) \ argument
93 #define __get_user(x, ptr) \ argument
95 #define __put_user(x, ptr) \ argument
98 #define __get_user_inatomic(x, ptr) \ argument
100 #define __put_user_inatomic(x, ptr) \ argument
123 #define __put_user_asm2(x, ptr, retval) \ argument
141 #define __put_user_size(x, ptr, size, retval) \ argument
155 #define __put_user_nocheck(x, ptr, size) \ argument
166 #define __put_user_check(x, ptr, size) \ argument
[all …]
/Linux-v5.4/arch/sparc/include/asm/
Dcmpxchg_32.h18 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, int size) in __xchg()
28 #define xchg(ptr,x) ((__typeof__(*(ptr)))__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 cmpxchg(ptr, o, n) \ argument
67 #define cmpxchg64(ptr, old, new) __cmpxchg_u64(ptr, old, new) argument
75 #define cmpxchg_local(ptr, o, n) \ argument
78 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
Dcmpxchg_64.h55 #define xchg(ptr,x) \ argument
75 unsigned int *ptr = (unsigned int *) (maddr & ~2); in xchg16() local
90 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, in __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 cmpxchg(ptr,o,n) \ argument
184 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
198 #define cmpxchg_local(ptr, o, n) \ argument
201 #define cmpxchg64_local(ptr, o, n) \ argument
206 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
/Linux-v5.4/arch/m68k/include/asm/
Dcmpxchg.h13 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg()
44 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg()
79 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) argument
83 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
121 #define cmpxchg(ptr, o, n) \ argument
124 #define cmpxchg_local(ptr, o, n) \ argument
128 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
136 #define cmpxchg_local(ptr, o, n) \ argument
/Linux-v5.4/arch/xtensa/include/asm/
Dcmpxchg.h74 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg()
83 #define cmpxchg(ptr,o,n) \ argument
92 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
110 #define cmpxchg_local(ptr, o, n) \ argument
113 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
114 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
171 #define xchg(ptr,x) \ argument
174 static inline u32 xchg_small(volatile void *ptr, u32 x, int size) in xchg_small()
205 __xchg(unsigned long x, volatile void * ptr, int size) in __xchg()
/Linux-v5.4/arch/openrisc/include/asm/
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 cmpxchg(ptr, o, n) \ argument
150 static inline unsigned long __xchg(volatile void *ptr, unsigned long with, in __xchg()
164 #define xchg(ptr, with) \ argument

12345678910>>...77