Home
last modified time | relevance | path

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

12345678910>>...42

/linux/tools/testing/selftests/bpf/progs/
H A Ddynptr_fail.c18 struct bpf_dynptr ptr; member
62 static int get_map_val_dynptr(struct bpf_dynptr *ptr) in get_map_val_dynptr() argument
84 struct bpf_dynptr ptr = {}; in ringbuf_missing_release1() local
119 struct bpf_dynptr ptr; in missing_release_callback_fn() local
142 struct bpf_dynptr ptr; in ringbuf_release_uninit_dynptr() local
155 struct bpf_dynptr ptr; in use_after_invalid() local
175 struct bpf_dynptr ptr; ringbuf_invalid_api() local
198 struct bpf_dynptr ptr; add_dynptr_to_map1() local
234 struct bpf_dynptr ptr; data_slice_out_of_bounds_ringbuf() local
256 struct bpf_dynptr ptr; data_slice_out_of_bounds_skb() local
277 struct bpf_dynptr ptr; data_slice_out_of_bounds_map_value() local
297 struct bpf_dynptr ptr; data_slice_use_after_release1() local
361 struct bpf_dynptr ptr; data_slice_missing_null_check1() local
382 struct bpf_dynptr ptr; data_slice_missing_null_check2() local
404 struct bpf_dynptr ptr; invalid_helper1() local
419 struct bpf_dynptr ptr; invalid_helper2() local
434 struct bpf_dynptr ptr; invalid_write1() local
457 struct bpf_dynptr ptr; invalid_write2() local
481 struct bpf_dynptr ptr; invalid_write3() local
513 struct bpf_dynptr ptr; invalid_write4() local
545 struct bpf_dynptr ptr; invalid_read1() local
562 struct bpf_dynptr ptr; invalid_read2() local
605 struct bpf_dynptr ptr; invalid_read4() local
621 struct bpf_dynptr ptr; invalid_offset() local
636 struct bpf_dynptr ptr; release_twice() local
663 struct bpf_dynptr ptr; release_twice_callback() local
679 struct bpf_dynptr ptr; dynptr_from_mem_invalid_api() local
933 struct bpf_dynptr ptr; dynptr_overwrite_unref() local
950 struct bpf_dynptr ptr; dynptr_invalidate_slice_reinit() local
971 struct bpf_dynptr ptr; dynptr_invalidate_slice_or_null() local
1042 struct bpf_dynptr ptr; dynptr_overwrite_ref() local
1059 struct bpf_dynptr ptr; dynptr_read_into_slot() member
1076 struct bpf_dynptr ptr; skb_invalid_slice_write() local
1097 struct bpf_dynptr ptr; skb_invalid_data_slice1() local
1123 struct bpf_dynptr ptr; skb_invalid_data_slice2() local
1150 struct bpf_dynptr ptr; skb_invalid_data_slice3() local
1176 struct bpf_dynptr ptr; skb_invalid_data_slice4() local
1200 struct bpf_dynptr ptr; xdp_invalid_data_slice1() local
1225 struct bpf_dynptr ptr; xdp_invalid_data_slice2() local
1250 struct bpf_dynptr ptr; skb_invalid_ctx() local
1262 struct bpf_dynptr ptr; BPF_PROG() local
1274 struct bpf_dynptr ptr; BPF_PROG() local
1289 struct bpf_dynptr ptr; uninit_write_into_slot() member
1304 struct bpf_dynptr ptr; xdp_invalid_ctx() local
1318 struct bpf_dynptr ptr; dynptr_slice_var_len1() local
1338 struct bpf_dynptr ptr; dynptr_slice_var_len2() local
1368 struct bpf_dynptr ptr; invalid_data_slices() local
1394 struct bpf_dynptr ptr; invalid_slice_rdwr_rdonly() local
1413 struct bpf_dynptr ptr = {}; dynptr_adjust_invalid() local
1426 struct bpf_dynptr ptr = {}; dynptr_is_null_invalid() local
1439 struct bpf_dynptr ptr = {}; dynptr_is_rdonly_invalid() local
1452 struct bpf_dynptr ptr = {}; dynptr_size_invalid() local
1500 struct bpf_dynptr ptr; clone_invalidate1() local
1520 struct bpf_dynptr ptr; clone_invalidate2() local
1541 struct bpf_dynptr ptr; clone_invalidate3() local
1567 struct bpf_dynptr ptr; clone_invalidate4() local
1593 struct bpf_dynptr ptr; clone_invalidate5() local
1619 struct bpf_dynptr ptr; clone_invalidate6() local
1649 struct bpf_dynptr ptr; clone_skb_packet_data() local
1675 struct bpf_dynptr ptr; clone_xdp_packet_data() local
1700 struct bpf_dynptr ptr; test_dynptr_skb_small_buff() local
[all...]
H A Ddynptr_success.c42 struct bpf_dynptr ptr; in test_read_write() local
72 struct bpf_dynptr ptr; in test_dynptr_data() local
127 struct bpf_dynptr *ptr = (struct bpf_dynptr *)data; ringbuf_callback() local
141 struct bpf_dynptr ptr; test_ringbuf() local
175 struct bpf_dynptr ptr; test_skb_readonly() local
196 struct bpf_dynptr ptr; test_dynptr_skb_data() local
217 struct bpf_dynptr ptr; test_adjust() local
270 struct bpf_dynptr ptr; test_adjust_err() local
328 struct bpf_dynptr ptr; test_zero_size_dynptr() local
515 struct bpf_dynptr ptr; test_dynptr_skb_no_buff() local
532 struct bpf_dynptr ptr; test_dynptr_skb_strcmp() local
554 struct bpf_dynptr ptr; BPF_PROG() local
694 struct bpf_dynptr ptr; test_dynptr_memset_zero() local
711 struct bpf_dynptr ptr; test_dynptr_memset_notzero() local
730 struct bpf_dynptr ptr; test_dynptr_memset_zero_offset() local
746 struct bpf_dynptr ptr; test_dynptr_memset_zero_adjusted() local
762 struct bpf_dynptr ptr; test_dynptr_memset_overflow() local
777 struct bpf_dynptr ptr; test_dynptr_memset_overflow_offset() local
791 struct bpf_dynptr ptr; test_dynptr_memset_readonly() local
881 test_dynptr_probe(void * ptr,bpf_read_dynptr_fn_t bpf_read_dynptr_fn) test_dynptr_probe() argument
910 test_dynptr_probe_str(void * ptr,bpf_read_dynptr_fn_t bpf_read_dynptr_fn) test_dynptr_probe_str() argument
940 test_dynptr_probe_xdp(struct xdp_md * xdp,void * ptr,bpf_read_dynptr_fn_t bpf_read_dynptr_fn) test_dynptr_probe_xdp() argument
968 test_dynptr_probe_str_xdp(struct xdp_md * xdp,void * ptr,bpf_read_dynptr_fn_t bpf_read_dynptr_fn) test_dynptr_probe_str_xdp() argument
[all...]
/linux/include/linux/
H A Dkmemleak.h39 static inline void kmemleak_alloc_recursive(const void *ptr, size_t size, in kmemleak_alloc_recursive()
47 static inline void kmemleak_free_recursive(const void *ptr, slab_flags_t flags) in kmemleak_free_recursive()
53 static inline void kmemleak_erase(void **ptr) in kmemleak_erase()
63 static inline void kmemleak_alloc(const void *ptr, size_t size, int min_count, in kmemleak_alloc()
67 static inline void kmemleak_alloc_recursive(const void *ptr, size_t size, in kmemleak_alloc_recursive()
72 static inline void kmemleak_alloc_percpu(const void __percpu *ptr, size_t size, in kmemleak_alloc_percpu()
80 static inline void kmemleak_free(const void *ptr) in kmemleak_free()
83 static inline void kmemleak_free_part(const void *ptr, size_t size) in kmemleak_free_part()
86 static inline void kmemleak_free_recursive(const void *ptr, slab_flags_t flags) in kmemleak_free_recursive()
89 static inline void kmemleak_free_percpu(const void __percpu *ptr) in kmemleak_free_percpu()
[all …]
/linux/drivers/gpu/drm/radeon/
H A 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
H A Datom.c181 int *ptr, uint32_t *saved, int print) in atom_get_src_int()
371 static void atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr) in atom_skip_src_int()
407 static uint32_t atom_get_src(atom_exec_context *ctx, uint8_t attr, int *ptr) in atom_get_src()
412 static uint32_t atom_get_src_direct(atom_exec_context *ctx, uint8_t align, int *ptr) in atom_get_src_direct()
439 int *ptr, uint32_t *saved, int print) in atom_get_dst()
447 static void atom_skip_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr) in atom_skip_dst()
455 int *ptr, uint32_t val, uint32_t saved) in atom_put_dst()
598 static void atom_op_add(atom_exec_context *ctx, int *ptr, int arg) in atom_op_add()
612 static void atom_op_and(atom_exec_context *ctx, int *ptr, int arg) in atom_op_and()
626 static void atom_op_beep(atom_exec_context *ctx, int *ptr, int arg) in atom_op_beep()
[all …]
/linux/drivers/gpu/drm/amd/include/
H A 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/tools/testing/selftests/mm/
H A Dmseal_test.c65 static int sys_mprotect(void *ptr, size_t size, unsigned long prot) in sys_mprotect()
74 static int sys_mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, in sys_mprotect_pkey()
84 static int sys_munmap(void *ptr, size_t size) in sys_munmap()
172 void *ptr; in setup_single_address() local
180 void *ptr; in setup_single_address_rw() local
187 static int clean_single_address(void *ptr, int size) in clean_single_address()
194 static int seal_single_address(void *ptr, int size) in seal_single_address()
204 void *ptr; in seal_support() local
232 void *ptr; in test_seal_addseal() local
248 void *ptr; in test_seal_unmapped_start() local
[all …]
H A Dguard-regions.c136 try_access_buf(char * ptr,bool write) try_access_buf() argument
157 try_read_buf(char * ptr) try_read_buf() argument
163 try_write_buf(char * ptr) try_write_buf() argument
172 try_read_write_buf(char * ptr) try_read_write_buf() argument
213 set_pattern(char * ptr,size_t num_pages,size_t page_size) set_pattern() argument
228 check_pattern_offset(char * ptr,size_t num_pages,size_t page_size,size_t pgoff) check_pattern_offset() argument
246 check_pattern(char * ptr,size_t num_pages,size_t page_size) check_pattern() argument
278 char *ptr, *ptr2; local_fs_has_sane_mmap() local
350 char *ptr; TEST_F() local
443 char *ptr_region, *ptr, *ptr1, *ptr2, *ptr3; TEST_F() local
667 char *ptr, *ptr_new1, *ptr_new2; TEST_F() local
705 char *ptr; TEST_F() local
753 char *ptr, *ptr_new; TEST_F() local
884 char *ptr; TEST_F() local
945 char *ptr; TEST_F() local
1018 char *ptr, *ptr_new; TEST_F() local
1064 char *ptr, *ptr_new; TEST_F() local
1126 char *ptr; TEST_F() local
1190 char *ptr; TEST_F() local
1245 char *ptr; TEST_F() local
1319 char *ptr; TEST_F() local
1372 char *ptr; TEST_F() local
1411 char *ptr; TEST_F() local
1437 char *ptr; TEST_F() local
1484 char *ptr; TEST_F() local
1555 char *ptr; TEST_F() local
1631 char *ptr = &ptr_shared[i * page_size]; TEST_F() local
1645 char *ptr = &ptr_private[i * page_size]; TEST_F() local
1683 char *ptr = &ptr_private[i * page_size]; TEST_F() local
1708 char *ptr = &ptr_private[i * page_size]; TEST_F() local
1731 char *ptr = &ptr_private[i * page_size]; TEST_F() local
1756 char *ptr; TEST_F() local
1804 char *ptr; TEST_F() local
1856 char *ptr; TEST_F() local
1913 char *ptr; TEST_F() local
1977 char *ptr; TEST_F() local
2048 char *ptr; TEST_F() local
2095 char *ptr; TEST_F() local
2149 char *ptr; TEST_F() local
2195 char *ptr; TEST_F() local
2259 char *ptr, *ptr2; TEST_F() local
[all...]
H A Dprotection_keys.c57 read_ptr(int * ptr) read_ptr() argument
179 u64 *ptr = (u64 *)(c + i); dump_mem() local
554 mprotect_pkey(void * ptr,size_t size,unsigned long orig_prot,unsigned long pkey) mprotect_pkey() argument
589 void *ptr; global() member
596 record_pkey_malloc(void * ptr,long size,int prot) record_pkey_malloc() argument
633 free_pkey_malloc(void * ptr) free_pkey_malloc() argument
662 void *ptr; malloc_pkey_with_mprotect() local
683 void *ptr; malloc_pkey_anon_huge() local
763 void *ptr; malloc_pkey_hugetlb() local
892 test_pkey_alloc_free_attach_pkey0(int * ptr,u16 pkey) test_pkey_alloc_free_attach_pkey0() argument
944 test_read_of_write_disabled_region(int * ptr,u16 pkey) test_read_of_write_disabled_region() argument
954 test_read_of_access_disabled_region(int * ptr,u16 pkey) test_read_of_access_disabled_region() argument
966 test_read_of_access_disabled_region_with_page_already_mapped(int * ptr,u16 pkey) test_read_of_access_disabled_region_with_page_already_mapped() argument
983 test_write_of_write_disabled_region_with_page_already_mapped(int * ptr,u16 pkey) test_write_of_write_disabled_region_with_page_already_mapped() argument
994 test_write_of_write_disabled_region(int * ptr,u16 pkey) test_write_of_write_disabled_region() argument
1001 test_write_of_access_disabled_region(int * ptr,u16 pkey) test_write_of_access_disabled_region() argument
1009 test_write_of_access_disabled_region_with_page_already_mapped(int * ptr,u16 pkey) test_write_of_access_disabled_region_with_page_already_mapped() argument
1020 test_kernel_write_of_access_disabled_region(int * ptr,u16 pkey) test_kernel_write_of_access_disabled_region() argument
1033 test_kernel_write_of_write_disabled_region(int * ptr,u16 pkey) test_kernel_write_of_write_disabled_region() argument
1046 test_kernel_gup_of_access_disabled_region(int * ptr,u16 pkey) test_kernel_gup_of_access_disabled_region() argument
1068 test_kernel_gup_write_to_write_disabled_region(int * ptr,u16 pkey) test_kernel_gup_write_to_write_disabled_region() argument
1086 test_pkey_syscalls_on_non_allocated_pkey(int * ptr,u16 pkey) test_pkey_syscalls_on_non_allocated_pkey() argument
1109 test_pkey_syscalls_bad_args(int * ptr,u16 pkey) test_pkey_syscalls_bad_args() argument
1135 test_pkey_alloc_exhaust(int * ptr,u16 pkey) test_pkey_alloc_exhaust() argument
1241 test_pkey_init_state(int * ptr,u16 pkey) test_pkey_init_state() argument
1279 test_mprotect_with_pkey_0(int * ptr,u16 pkey) test_mprotect_with_pkey_0() argument
1303 test_ptrace_of_child(int * ptr,u16 pkey) test_ptrace_of_child() argument
1400 test_executing_on_unreadable_memory(int * ptr,u16 pkey) test_executing_on_unreadable_memory() argument
1432 test_implicit_mprotect_exec_only_memory(int * ptr,u16 pkey) test_implicit_mprotect_exec_only_memory() argument
1481 test_ptrace_modifies_pkru(int * ptr,u16 pkey) test_ptrace_modifies_pkru() argument
1604 test_ptrace_modifies_pkru(int * ptr,u16 pkey) test_ptrace_modifies_pkru() argument
1681 test_mprotect_pkey_on_unsupported_cpu(int * ptr,u16 pkey) test_mprotect_pkey_on_unsupported_cpu() argument
1723 int *ptr; run_tests_once() local
1773 int *ptr; main() local
[all...]
H A Dmigration.c66 migrate(uint64_t * ptr,int n1,int n2) migrate() argument
105 access_mem(void * ptr) access_mem() argument
126 uint64_t *ptr; global() variable
152 uint64_t *ptr; global() variable
186 uint64_t *ptr; global() variable
218 uint64_t *ptr; global() variable
258 uint64_t *ptr; global() variable
284 uint64_t *ptr; global() variable
[all...]
/linux/arch/x86/include/asm/
H A 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
217 #define __try_cmpxchg(ptr, pold, new, size) \ argument
[all …]
/linux/include/rdma/
H A Diba.h12 static inline u32 _iba_get8(const u8 *ptr) in _iba_get8()
17 static inline void _iba_set8(u8 *ptr, u32 mask, u32 prep_value) in _iba_set8()
22 static inline u16 _iba_get16(const __be16 *ptr) in _iba_get16()
27 static inline void _iba_set16(__be16 *ptr, u16 mask, u16 prep_value) in _iba_set16()
32 static inline u32 _iba_get32(const __be32 *ptr) in _iba_get32()
37 static inline void _iba_set32(__be32 *ptr, u32 mask, u32 prep_value) in _iba_set32()
42 static inline u64 _iba_get64(const __be64 *ptr) in _iba_get64()
51 static inline void _iba_set64(__be64 *ptr, u64 mask, u64 prep_value) in _iba_set64()
56 #define _IBA_SET(field_struct, field_offset, field_mask, num_bits, ptr, value) \ argument
62 #define IBA_SET(field, ptr, value) _IBA_SET(field, ptr, value) argument
[all …]
/linux/drivers/media/pci/zoran/
H A Dzr36050.c41 static u8 zr36050_read(struct zr36050 *ptr, u16 reg) in zr36050_read()
57 static void zr36050_write(struct zr36050 *ptr, u16 reg, u8 value) in zr36050_write()
72 static u8 zr36050_read_status1(struct zr36050 *ptr) in zr36050_read_status1()
81 static u16 zr36050_read_scalefactor(struct zr36050 *ptr) in zr36050_read_scalefactor()
97 static void zr36050_wait_end(struct zr36050 *ptr) in zr36050_wait_end()
118 static int zr36050_basic_test(struct zr36050 *ptr) in zr36050_basic_test()
154 static int zr36050_pushit(struct zr36050 *ptr, u16 startreg, u16 len, const char *data) in zr36050_pushit()
282 static int zr36050_set_sof(struct zr36050 *ptr) in zr36050_set_sof()
317 static int zr36050_set_sos(struct zr36050 *ptr) in zr36050_set_sos()
345 static int zr36050_set_dri(struct zr36050 *ptr) in zr36050_set_dri()
[all …]
H A Dzr36060.c41 static u8 zr36060_read(struct zr36060 *ptr, u16 reg) in zr36060_read()
55 static void zr36060_write(struct zr36060 *ptr, u16 reg, u8 value) in zr36060_write()
75 static u8 zr36060_read_status(struct zr36060 *ptr) in zr36060_read_status()
84 static u16 zr36060_read_scalefactor(struct zr36060 *ptr) in zr36060_read_scalefactor()
95 static void zr36060_wait_end(struct zr36060 *ptr) in zr36060_wait_end()
112 static int zr36060_basic_test(struct zr36060 *ptr) in zr36060_basic_test()
132 static int zr36060_pushit(struct zr36060 *ptr, u16 startreg, u16 len, const char *data) in zr36060_pushit()
250 static int zr36060_set_sof(struct zr36060 *ptr) in zr36060_set_sof()
279 static int zr36060_set_sos(struct zr36060 *ptr) in zr36060_set_sos()
305 static int zr36060_set_dri(struct zr36060 *ptr) in zr36060_set_dri()
[all …]
H A Dzr36016.c33 static u8 zr36016_read(struct zr36016 *ptr, u16 reg) in zr36016_read()
49 static void zr36016_write(struct zr36016 *ptr, u16 reg, u8 value) in zr36016_write()
68 static u8 zr36016_readi(struct zr36016 *ptr, u16 reg) in zr36016_readi()
86 static void zr36016_writei(struct zr36016 *ptr, u16 reg, u8 value) in zr36016_writei()
105 static u8 zr36016_read_version(struct zr36016 *ptr) in zr36016_read_version()
116 static int zr36016_basic_test(struct zr36016 *ptr) in zr36016_basic_test()
154 static void zr36016_init(struct zr36016 *ptr) in zr36016_init()
198 struct zr36016 *ptr = (struct zr36016 *)codec->data; in zr36016_set_mode() local
216 struct zr36016 *ptr = (struct zr36016 *)codec->data; in zr36016_set_video() local
257 struct zr36016 *ptr = (struct zr36016 *)codec->data; in zr36016_control() local
[all …]
/linux/arch/riscv/include/asm/
H A Dcmpxchg.h68 #define _arch_xchg(ptr, new, sc_sfx, swap_sfx, prepend, \ argument
100 #define arch_xchg_relaxed(ptr, x) \ argument
103 #define arch_xchg_acquire(ptr, x) \ argument
107 #define arch_xchg_release(ptr, x) \ argument
110 #define arch_xchg(ptr, x) \ argument
113 #define xchg32(ptr, x) \ argument
119 #define xchg64(ptr, x) \ argument
213 #define _arch_cmpxchg(ptr, old, new, sc_sfx, cas_sfx, \ argument
264 #define arch_cmpxchg_relaxed(ptr, o, n) \ argument
270 #define arch_cmpxchg_acquire(ptr, o, n) \ argument
[all …]
/linux/arch/mips/include/asm/
H A Dcmpxchg.h71 unsigned long __arch_xchg(volatile void *ptr, unsigned long x, int size) in __arch_xchg()
92 #define arch_xchg(ptr, x) \ argument
152 unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg()
177 #define arch_cmpxchg_local(ptr, old, new) \ argument
184 #define arch_cmpxchg(ptr, old, new) \ argument
210 #define arch_cmpxchg64_local(ptr, o, n) \ argument
216 #define arch_cmpxchg64(ptr, o, n) \ argument
224 # define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
228 static inline unsigned long __cmpxchg64(volatile void *ptr, in __cmpxchg64()
299 # define arch_cmpxchg64(ptr, o, n) ({ \ argument
[all …]
/linux/arch/arm/include/asm/
H A Dcmpxchg.h30 __arch_xchg(unsigned long x, volatile void *ptr, int size) in __arch_xchg()
119 #define arch_xchg_relaxed(ptr, x) ({ \ argument
139 #define arch_cmpxchg_local(ptr, o, n) ({ \ argument
146 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
158 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg()
216 #define arch_cmpxchg_relaxed(ptr,o,n) ({ \ argument
223 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
243 #define arch_cmpxchg_local(ptr, o, n) ({ \ argument
250 static inline unsigned long long __cmpxchg64(unsigned long long *ptr, in __cmpxchg64()
275 #define arch_cmpxchg64_relaxed(ptr, o, n) ({ \ argument
[all …]
/linux/arch/loongarch/include/asm/
H A Dcmpxchg.h42 static inline unsigned int __xchg_small(volatile void *ptr, unsigned int val, in __xchg_small()
82 __arch_xchg(volatile void *ptr, unsigned long x, int size) in __arch_xchg()
112 #define arch_xchg(ptr, x) \ argument
141 static inline unsigned int __cmpxchg_small(volatile void *ptr, unsigned int old, in __cmpxchg_small()
190 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) in __cmpxchg()
212 #define arch_cmpxchg_local(ptr, old, new) \ argument
219 #define arch_cmpxchg(ptr, old, new) \ argument
229 #define arch_cmpxchg64_local(ptr, o, n) \ argument
235 #define arch_cmpxchg64(ptr, o, n) \ argument
253 #define __arch_cmpxchg128(ptr, old, new, llsc_mb) \ argument
[all …]
/linux/arch/parisc/include/asm/
H A Dcmpxchg.h25 __arch_xchg(unsigned long x, volatile void *ptr, int size) in __arch_xchg()
47 #define arch_xchg(ptr, x) \ argument
67 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg()
79 #define arch_cmpxchg(ptr, o, n) \ argument
89 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
107 #define arch_cmpxchg_local(ptr, o, n) \ argument
111 #define arch_cmpxchg64_local(ptr, o, n) \ argument
117 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
120 #define arch_cmpxchg64(ptr, o, n) __cmpxchg_u64(ptr, o, n) argument
/linux/arch/csky/include/asm/
H A Dcmpxchg.h11 #define __xchg_relaxed(new, ptr, size) \ argument
54 #define arch_xchg_relaxed(ptr, x) \ argument
57 #define __cmpxchg_relaxed(ptr, old, new, size) \ argument
87 #define arch_cmpxchg_relaxed(ptr, o, n) \ argument
90 #define __cmpxchg_acquire(ptr, old, new, size) \ argument
121 #define arch_cmpxchg_acquire(ptr, o, n) \ argument
124 #define __cmpxchg(ptr, old, new, size) \ argument
156 #define arch_cmpxchg(ptr, o, n) \ argument
159 #define arch_cmpxchg_local(ptr, o, n) \ argument
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()
/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
47 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg()
56 #define arch_cmpxchg(ptr, o, n) \ argument
65 #define arch_cmpxchg64(ptr, old, new) __cmpxchg_u64(ptr, old, new) argument
73 #define arch_cmpxchg_local(ptr, o, n) \ argument
76 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
/linux/tools/testing/selftests/bpf/
H A Dbpf_arena_common.h
/linux/arch/xtensa/include/asm/
H A Dcmpxchg.h75 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg()
85 #define arch_cmpxchg(ptr,o,n) \ argument
94 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
112 #define arch_cmpxchg_local(ptr, o, n) \ argument
115 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
116 #define arch_cmpxchg64(ptr, o, n) arch_cmpxchg64_local((ptr), (o), (n)) argument
174 #define arch_xchg(ptr,x) \ argument
177 static inline u32 xchg_small(volatile void *ptr, u32 x, int size) in xchg_small()
208 __arch_xchg(unsigned long x, volatile void * ptr, int size) in __arch_xchg()

12345678910>>...42