/linux/tools/testing/selftests/bpf/progs/ |
H A D | dynptr_fail.c | 18 struct bpf_dynptr ptr; member 62 static int get_map_val_dynptr(struct bpf_dynptr *ptr) in get_map_val_dynptr() 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; in ringbuf_invalid_api() local 198 struct bpf_dynptr ptr; in add_dynptr_to_map1() local 234 struct bpf_dynptr ptr; in data_slice_out_of_bounds_ringbuf() local 256 struct bpf_dynptr ptr; in data_slice_out_of_bounds_skb() local [all …]
|
H A D | dynptr_success.c | 41 struct bpf_dynptr ptr; test_read_write() local 71 struct bpf_dynptr ptr; test_dynptr_data() local 126 struct bpf_dynptr *ptr = (struct bpf_dynptr *)data; ringbuf_callback() local 140 struct bpf_dynptr ptr; test_ringbuf() local 174 struct bpf_dynptr ptr; test_skb_readonly() local 195 struct bpf_dynptr ptr; test_dynptr_skb_data() local 216 struct bpf_dynptr ptr; test_adjust() local 269 struct bpf_dynptr ptr; test_adjust_err() local 327 struct bpf_dynptr ptr; test_zero_size_dynptr() local 514 struct bpf_dynptr ptr; test_dynptr_skb_no_buff() local 531 struct bpf_dynptr ptr; test_dynptr_skb_strcmp() local 553 struct bpf_dynptr ptr; BPF_PROG() local [all...] |
/linux/include/linux/ |
H A D | kmemleak.h | 39 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 D | atom-bits.h | 28 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 D | atom.c | 181 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 D | atom-bits.h | 28 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/include/rdma/ |
H A D | iba.h | 12 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/arch/riscv/include/asm/ |
H A D | cmpxchg.h | 67 #define _arch_xchg(ptr, new, sc_sfx, swap_sfx, prepend, \ argument 99 #define arch_xchg_relaxed(ptr, x) \ argument 102 #define arch_xchg_acquire(ptr, x) \ argument 106 #define arch_xchg_release(ptr, x) \ argument 109 #define arch_xchg(ptr, x) \ argument 112 #define xchg32(ptr, x) \ argument 118 #define xchg64(ptr, x) \ argument 210 #define _arch_cmpxchg(ptr, old, new, sc_sfx, cas_sfx, \ argument 261 #define arch_cmpxchg_relaxed(ptr, o, n) \ argument 267 #define arch_cmpxchg_acquire(ptr, o, n) \ argument [all …]
|
H A D | uaccess.h | 100 #define __get_user_asm(insn, x, ptr, label) \ argument 108 #define __get_user_asm(insn, x, ptr, label) \ argument 124 #define __get_user_8(x, ptr, label) \ argument 129 #define __get_user_8(x, ptr, label) \ argument 147 #define __get_user_8(x, ptr, label) \ argument 204 #define __get_user_error(x, ptr, err) \ argument 236 #define __get_user(x, ptr) \ argument 270 #define get_user(x, ptr) \ argument 279 #define __put_user_asm(insn, x, ptr, label) \ argument 290 #define __put_user_8(x, ptr, label) \ argument [all …]
|
/linux/arch/parisc/include/asm/ |
H A D | uaccess.h | 23 #define LDD_USER(sr, val, ptr) __get_user_asm64(sr, val, ptr) argument 24 #define STD_USER(sr, x, ptr) __put_user_asm64(sr, x, ptr) argument 26 #define LDD_USER(sr, val, ptr) __get_user_asm(sr, val, "ldd", ptr) argument 27 #define STD_USER(sr, x, ptr) __put_user_asm(sr, "std", x, ptr) argument 30 #define __get_user_internal(sr, val, ptr) \ argument 45 #define __get_user(val, ptr) \ argument 50 #define __get_user_asm(sr, val, ldx, ptr) \ argument 77 #define __get_user_asm64(sr, val, ptr) \ argument 99 #define __put_user_internal(sr, x, ptr) \ argument 114 #define __put_user(x, ptr) \ argument [all …]
|
H A D | cmpxchg.h | 25 __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/mips/include/asm/ |
H A D | cmpxchg.h | 71 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 D | cmpxchg.h | 30 __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/csky/include/asm/ |
H A D | cmpxchg.h | 11 #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 D | uaccess.h | 11 #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/loongarch/include/asm/ |
H A D | cmpxchg.h | 25 static inline unsigned int __xchg_small(volatile void *ptr, unsigned int val, in __xchg_small() 65 __arch_xchg(volatile void *ptr, unsigned long x, int size) in __arch_xchg() 85 #define arch_xchg(ptr, x) \ argument 114 static inline unsigned int __cmpxchg_small(volatile void *ptr, unsigned int old, in __cmpxchg_small() 163 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) in __cmpxchg() 185 #define arch_cmpxchg_local(ptr, old, new) \ argument 192 #define arch_cmpxchg(ptr, old, new) \ argument 202 #define arch_cmpxchg64_local(ptr, o, n) \ argument 208 #define arch_cmpxchg64(ptr, o, n) \ argument 215 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument [all …]
|
H A D | uaccess.h | 45 #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
|
/linux/tools/testing/selftests/mm/ |
H A D | guard-regions.c | 142 static bool try_access_buf(char *ptr, bool write) in try_access_buf() 163 static bool try_read_buf(char *ptr) in try_read_buf() 169 static bool try_write_buf(char *ptr) in try_write_buf() 178 static bool try_read_write_buf(char *ptr) in try_read_write_buf() 219 static void set_pattern(char *ptr, size_t num_pages, size_t page_size) in set_pattern() 234 static bool check_pattern_offset(char *ptr, size_t num_pages, size_t page_size, in check_pattern_offset() 252 static bool check_pattern(char *ptr, size_t num_pages, size_t page_size) in check_pattern() 308 char *ptr; in TEST_F() local 401 char *ptr_region, *ptr, *ptr1, *ptr2, *ptr3; in TEST_F() local 625 char *ptr, *ptr_new1, *ptr_new2; in TEST_F() local [all …]
|
H A D | protection_keys.c | 57 noinline int read_ptr(int *ptr) in read_ptr() 179 u64 *ptr = (u64 *)(c + i); in dump_mem() local 554 int mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, in mprotect_pkey() 591 void *ptr; member 598 void record_pkey_malloc(void *ptr, long size, int prot) in record_pkey_malloc() 635 static void free_pkey_malloc(void *ptr) in free_pkey_malloc() 664 void *ptr; in malloc_pkey_with_mprotect() local 685 void *ptr; in malloc_pkey_anon_huge() local 765 void *ptr; in malloc_pkey_hugetlb() local 894 static void test_pkey_alloc_free_attach_pkey0(int *ptr, u16 pkey) in test_pkey_alloc_free_attach_pkey0() [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | bpf_arena_common.h | 14 #define arena_container_of(ptr, type, member) \ argument 38 #define cast_kern(ptr) /* nop for bpf prog. emitted by LLVM */ argument 39 #define cast_user(ptr) /* nop for bpf prog. emitted by LLVM */ argument 43 #define cast_kern(ptr) bpf_addr_space_cast(ptr, 0, 1) argument 44 #define cast_user(ptr) bpf_addr_space_cast(ptr, 1, 0) argument 55 #define cast_kern(ptr) /* nop for user space */ argument 56 #define cast_user(ptr) /* nop for user space */ argument 68 static inline void bpf_arena_free_pages(void *map, void __arena *ptr, __u32 page_cnt) in bpf_arena_free_pages()
|
/linux/arch/sparc/include/asm/ |
H A D | cmpxchg_32.h | 18 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
|
H A D | cmpxchg_64.h | 55 #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
|
/linux/arch/xtensa/include/asm/ |
H A D | cmpxchg.h | 75 __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()
|
/linux/arch/openrisc/include/asm/ |
H A D | uaccess.h | 45 #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
|
/linux/net/bluetooth/ |
H A D | eir.c | 16 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, u8 size) in eir_create_adv_data() 333 static u8 create_default_scan_rsp(struct hci_dev *hdev, u8 *ptr) in create_default_scan_rsp() 343 u8 eir_create_scan_rsp(struct hci_dev *hdev, u8 instance, u8 *ptr) in eir_create_scan_rsp()
|