Home
last modified time | relevance | path

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

12345

/tools/include/linux/
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()
Dhash.h88 static inline u32 hash_ptr(const void *ptr, unsigned int bits) in hash_ptr()
94 static inline u32 hash32_ptr(const void *ptr) in hash32_ptr()
Dzalloc.h10 #define zfree(ptr) __zfree((void **)(ptr)) argument
Dlist.h351 #define list_entry(ptr, type, member) \ argument
362 #define list_first_entry(ptr, type, member) \ argument
373 #define list_last_entry(ptr, type, member) \ argument
384 #define list_first_entry_or_null(ptr, type, member) \ argument
597 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL) argument
694 #define hlist_entry(ptr, type, member) container_of(ptr,type,member) argument
703 #define hlist_entry_safe(ptr, type, member) \ argument
/tools/include/linux/unaligned/
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
/tools/testing/selftests/x86/
Dprotection_keys.c231 u64 *ptr = (u64 *)(c + i); in dump_mem() local
531 int sys_mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, in sys_mprotect_pkey()
646 int mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, in mprotect_pkey()
678 void *ptr; member
685 void record_pkey_malloc(void *ptr, long size, int prot) in record_pkey_malloc()
722 void free_pkey_malloc(void *ptr) in free_pkey_malloc()
752 void *ptr; in malloc_pkey_with_mprotect() local
773 void *ptr; in malloc_pkey_anon_huge() local
844 void *ptr; in malloc_pkey_hugetlb() local
865 void *ptr; in malloc_pkey_mmap_dax() local
[all …]
/tools/perf/arch/arm/util/
Dcs-etm.c64 struct cs_etm_recording *ptr; in cs_etm_set_context_id() local
113 struct cs_etm_recording *ptr; in cs_etm_set_timestamp() local
196 struct cs_etm_recording *ptr = in cs_etm_parse_snapshot_options() local
256 struct cs_etm_recording *ptr = in cs_etm_recording_options() local
438 struct cs_etm_recording *ptr = in cs_etm_get_config() local
537 struct cs_etm_recording *ptr = in cs_etm_is_etmv4() local
575 struct cs_etm_recording *ptr = in cs_etm_get_metadata() local
645 struct cs_etm_recording *ptr = in cs_etm_info_fill() local
691 static int cs_etm_alloc_wrapped_array(struct cs_etm_recording *ptr, int idx) in cs_etm_alloc_wrapped_array()
774 struct cs_etm_recording *ptr = in cs_etm_find_snapshot() local
[all …]
/tools/lib/traceevent/
Dkbuffer-parse.c69 unsigned int *ptr; in host_is_bigendian() local
81 static unsigned long long __read_8(void *ptr) in __read_8()
88 static unsigned long long __read_8_sw(void *ptr) in __read_8_sw()
105 static unsigned int __read_4(void *ptr) in __read_4()
112 static unsigned int __read_4_sw(void *ptr) in __read_4_sw()
125 static unsigned long long read_8(struct kbuffer *kbuf, void *ptr) in read_8()
130 static unsigned int read_4(struct kbuffer *kbuf, void *ptr) in read_4()
135 static unsigned long long __read_long_8(struct kbuffer *kbuf, void *ptr) in __read_long_8()
140 static unsigned long long __read_long_4(struct kbuffer *kbuf, void *ptr) in __read_long_4()
145 static unsigned long long read_long(struct kbuffer *kbuf, void *ptr) in read_long()
[all …]
/tools/virtio/linux/
Derr.h13 static inline long __must_check PTR_ERR(const void *ptr) in PTR_ERR()
18 static inline long __must_check IS_ERR(const void *ptr) in IS_ERR()
23 static inline long __must_check IS_ERR_OR_NULL(const void *ptr) in IS_ERR_OR_NULL()
Duaccess.h14 #define put_user(x, ptr) \ argument
22 #define get_user(x, ptr) \ argument
Dkmemleak.h1 static inline void kmemleak_ignore(const void *ptr) in kmemleak_ignore()
/tools/arch/x86/include/asm/
Dcmpxchg.h35 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument
83 #define __cmpxchg(ptr, old, new, size) \ argument
86 #define cmpxchg(ptr, old, new) \ argument
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/
Dpercpu.h23 static inline void free_percpu(void *ptr) in free_percpu()
28 #define per_cpu_ptr(ptr, cpu) \ argument
41 #define THIS_CPU_ADD_HELPER(ptr, x) (*(ptr) += (x)) argument
47 #define THIS_CPU_ADD_HELPER(ptr, x) \ argument
/tools/perf/arch/x86/util/
Dintel-pt.c239 struct intel_pt_recording *ptr = in intel_pt_parse_snapshot_options() local
297 struct intel_pt_recording *ptr = in intel_pt_info_priv_size() local
321 struct intel_pt_recording *ptr = in intel_pt_info_fill() local
578 struct intel_pt_recording *ptr = in intel_pt_recording_options() local
811 struct intel_pt_recording *ptr = in intel_pt_snapshot_start() local
824 struct intel_pt_recording *ptr = in intel_pt_snapshot_finish() local
835 static int intel_pt_alloc_snapshot_refs(struct intel_pt_recording *ptr, int idx) in intel_pt_alloc_snapshot_refs()
859 static void intel_pt_free_snapshot_refs(struct intel_pt_recording *ptr) in intel_pt_free_snapshot_refs()
870 struct intel_pt_recording *ptr = in intel_pt_recording_free() local
877 static int intel_pt_alloc_snapshot_ref(struct intel_pt_recording *ptr, int idx, in intel_pt_alloc_snapshot_ref()
[all …]
/tools/testing/selftests/vm/
Dvirtual_address_range.c65 static int validate_addr(char *ptr, int high_addr) in validate_addr()
86 char *ptr; in validate_lower_address_hint() local
99 char *ptr[NR_CHUNKS_LOW]; in main() local
Dtranshuge-stress.c30 int64_t allocate_transhuge(void *ptr) in allocate_transhuge()
61 void *ptr, *p; in main() local
/tools/testing/selftests/arm64/
Dtags_test.c11 #define SET_TAG(ptr, tag) (((uint64_t)(ptr) & ~SHIFT_TAG(0xff)) | \ argument
18 struct utsname *ptr; in main() local
/tools/testing/selftests/kvm/lib/
Dio.c46 const char *ptr = buf; in test_write() local
123 char *ptr = buf; in test_read() local
/tools/lib/subcmd/
Dsubcmd-util.h28 #define zfree(ptr) ({ free(*ptr); *ptr = NULL; }) argument
50 static inline void *xrealloc(void *ptr, size_t size) in xrealloc()
/tools/testing/radix-tree/linux/
Dkmemleak.h1 static inline void kmemleak_update_trace(const void *ptr) { } in kmemleak_update_trace()
/tools/testing/selftests/android/ion/
Dionutils.c16 unsigned char *ptr = (unsigned char *)buffer; in write_buffer() local
33 unsigned char *ptr = (unsigned char *)buffer; in read_buffer() local
/tools/lib/traceevent/plugins/
Dplugin_function.c70 char **ptr; in add_child() local
97 struct func_stack *ptr; in add_and_get_index() local
/tools/lib/api/fs/
Dtracing_path.h19 #define zput_events_file(ptr) ({ free(*ptr); *ptr = NULL; }) argument
/tools/perf/util/
Dcopyfile.c47 void *ptr; in copyfile_offset() local
79 char *tmp = NULL, *ptr = NULL; in copyfile_mode_ns() local
/tools/lib/
Dzalloc.c11 void __zfree(void **ptr) in __zfree()

12345