Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 226) sorted by relevance

12345678910

/xnu-11215/bsd/net/
H A Dcontent_filter_crypto.c24 prefix, name, ptr[0], ptr[1], ptr[2], ptr[3])
29 prefix, name, ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5], ptr[6], ptr[7])
34 …efix, name, ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5], ptr[6], ptr[7], ptr[8], ptr[9], ptr[10…
39ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5], ptr[6], ptr[7], ptr[8], ptr[9], ptr[10], ptr[11],
44ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5], ptr[6], ptr[7], ptr[8], ptr[9], ptr[10], ptr[11],
49 u_int8_t *ptr = NULL; in cfil_crypto_print_data() local
63 ptr = (u_int8_t *)&data->local; in cfil_crypto_print_data()
69 ptr = (u_int8_t *)&data->pid; in cfil_crypto_print_data()
78 ptr = (u_int8_t *)&data->uuid; in cfil_crypto_print_data()
142 u_int8_t *ptr = NULL; in cfil_crypto_sign_data() local
[all …]
/xnu-11215/tests/bounded_ptr_src/
H A Darith.inc_dec.cpp33 auto& ref = ++ptr; in tests()
39 auto& ref = ++ptr; in tests()
44 auto& ref = ++ptr; in tests()
49 auto& ref = ++ptr; in tests()
54 auto& ref = ++ptr; in tests()
59 auto& ref = --ptr; in tests()
64 auto& ref = --ptr; in tests()
69 auto& ref = --ptr; in tests()
74 auto& ref = --ptr; in tests()
79 auto& ref = --ptr; in tests()
[all …]
H A Darith.add_assign.cpp44 auto& ref = ptr += 0; in tests()
45 _assert(&ref == &ptr); in tests()
50 auto& ref = ptr += 1; in tests()
56 auto& ref = ptr += 2; in tests()
62 auto& ref = ptr += 3; in tests()
68 auto& ref = ptr += 4; in tests()
74 auto& ref = ptr += 5; in tests()
135 ptr += max_n + 1; in tests()
143 ptr += min_n - 1; in tests()
175 ptr += 1; in tests()
[all …]
H A Darith.subtract_assign.cpp41 auto& ref = ptr -= 0; in tests()
42 _assert(&ref == &ptr); in tests()
47 auto& ref = ptr -= 1; in tests()
48 _assert(&ref == &ptr); in tests()
53 auto& ref = ptr -= 2; in tests()
59 auto& ref = ptr -= 3; in tests()
65 auto& ref = ptr -= 4; in tests()
132 ptr -= max_n + 1; in tests()
140 ptr -= min_n - 1; in tests()
172 ptr -= 1; in tests()
[all …]
H A Dsubscript.cpp157 (void)ptr[-4]; in tests()
161 (void)ptr[-3]; in tests()
165 (void)ptr[-2]; in tests()
184 (void)ptr[-1]; in tests()
188 (void)ptr[0]; in tests()
192 (void)ptr[1]; in tests()
196 (void)ptr[2]; in tests()
200 (void)ptr[3]; in tests()
219 (void)ptr[1]; in tests()
223 (void)ptr[2]; in tests()
[all …]
H A Dderef.cpp48 QualT& ref = *ptr; in tests()
61 QualT& ref = *ptr; in tests()
74 QualT& ref = *ptr; in tests()
104 (void)*ptr; in tests()
105 (void)ptr->i; in tests()
118 (void)*ptr; in tests()
122 (void)ptr->i; in tests()
133 (void)*ptr; in tests()
137 (void)ptr->i; in tests()
150 (void)*ptr; in tests()
[all …]
H A Darith.add.cpp36 test_bounded_ptr<QualT> res = ptr + 0; in tests()
40 test_bounded_ptr<QualT> res = ptr + 1; in tests()
44 test_bounded_ptr<QualT> res = ptr + 2; in tests()
48 test_bounded_ptr<QualT> res = ptr + 3; in tests()
52 test_bounded_ptr<QualT> res = ptr + 4; in tests()
56 test_bounded_ptr<QualT> res = ptr + 5; in tests()
70 test_bounded_ptr<QualT> res = ptr + 0; in tests()
98 (void)(ptr + 3); in tests()
99 _assert(&*ptr == &array[1]); in tests()
106 test_bounded_ptr<QualT> res = 0 + ptr; in tests()
[all …]
H A Dunsafe_discard_bounds.cpp43 QualT* raw = ptr.unsafe_discard_bounds(); in tests()
52 QualT* raw = ptr.unsafe_discard_bounds(); in tests()
61 QualT* raw = ptr.unsafe_discard_bounds(); in tests()
70 QualT* raw = ptr.unsafe_discard_bounds(); in tests()
79 QualT* raw = ptr.unsafe_discard_bounds(); in tests()
88 QualT* raw = ptr.unsafe_discard_bounds(); in tests()
97 QualT* raw = ptr.unsafe_discard_bounds(); in tests()
106 QualT* raw = ptr.unsafe_discard_bounds(); in tests()
112 test_bounded_ptr<QualT> const ptr(nullptr, nullptr, nullptr); in tests() local
113 QualT* raw = ptr.unsafe_discard_bounds(); in tests()
[all …]
H A Dcompare.equal.nullptr.cpp40 _assert(!(ptr == nullptr)); in tests()
41 _assert(!(nullptr == ptr)); in tests()
42 _assert(ptr != nullptr); in tests()
43 _assert(nullptr != ptr); in tests()
47 _assert(ptr == nullptr); in tests()
48 _assert(nullptr == ptr); in tests()
49 _assert(!(ptr != nullptr)); in tests()
50 _assert(!(nullptr != ptr)); in tests()
56 _assert(ptr == nullptr); in tests()
57 _assert(nullptr == ptr); in tests()
[all …]
H A Darith.subtract.cpp35 _assert(ptr == array.end()); in tests()
38 test_bounded_ptr<QualT> res = ptr - 1; in tests()
42 test_bounded_ptr<QualT> res = ptr - 2; in tests()
46 test_bounded_ptr<QualT> res = ptr - 3; in tests()
50 test_bounded_ptr<QualT> res = ptr - 4; in tests()
54 test_bounded_ptr<QualT> res = ptr - 5; in tests()
72 test_bounded_ptr<QualT> res = ptr - -1; in tests()
76 test_bounded_ptr<QualT> res = ptr - -2; in tests()
80 test_bounded_ptr<QualT> res = ptr - -3; in tests()
96 (void)(ptr - 2); in tests()
[all …]
H A Ddiscard_bounds.cpp39 test_bounded_ptr<QualT> const ptr(array.begin() + 0, array.begin(), array.end()); in tests() local
40 QualT* raw = ptr.discard_bounds(); in tests()
48 test_bounded_ptr<QualT> const ptr(array.begin() + 1, array.begin(), array.end()); in tests() local
49 QualT* raw = ptr.discard_bounds(); in tests()
58 QualT* raw = ptr.discard_bounds(); in tests()
67 QualT* raw = ptr.discard_bounds(); in tests()
78 (void)*ptr; in tests()
79 (void)ptr->i; in tests()
91 (void)ptr.discard_bounds(); in tests()
101 (void)ptr.discard_bounds(); in tests()
[all …]
/xnu-11215/tests/intrusive_shared_ptr_src/
H A Dabi.size_alignment.cpp18 int* ptr; member
23 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
34 int* ptr; member
39 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
51 int* ptr; member
57 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
71 int* ptr; member
77 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
91 int* ptr; member
97 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
[all …]
H A Dreset.retain.cpp25 ptr.reset(&obj2, libkern::retain); in tests()
28 CHECK(ptr.get() == &obj2); in tests()
35 ptr.reset(nullptr, libkern::retain); in tests()
38 CHECK(ptr.get() == nullptr); in tests()
43 tracked_shared_ptr<T> ptr = nullptr; in tests() local
45 ptr.reset(&obj2, libkern::retain); in tests()
48 CHECK(ptr.get() == &obj2); in tests()
58 CHECK(ptr.get() == nullptr); in tests()
66 ptr.reset(ptr.get(), libkern::retain); in tests()
71 CHECK(ptr.get() == &obj1); in tests()
[all …]
H A Dreset.no_retain.cpp25 ptr.reset(&obj2, libkern::no_retain); in tests()
28 CHECK(ptr.get() == &obj2); in tests()
33 tracked_shared_ptr<T> ptr = nullptr; in tests() local
35 ptr.reset(&obj2, libkern::no_retain); in tests()
38 CHECK(ptr.get() == &obj2); in tests()
45 ptr.reset(nullptr, libkern::no_retain); in tests()
48 CHECK(ptr.get() == nullptr); in tests()
53 tracked_shared_ptr<T> ptr = nullptr; in tests() local
55 ptr.reset(nullptr, libkern::no_retain); in tests()
58 CHECK(ptr.get() == nullptr); in tests()
[all …]
H A Dreset.cpp22 tracked_shared_ptr<T> ptr(&obj, libkern::retain); in tests() local
24 ptr.reset(); in tests()
27 CHECK(ptr.get() == nullptr); in tests()
32 tracked_shared_ptr<T> ptr = nullptr; in tests() local
34 ptr.reset(); in tests()
37 CHECK(ptr.get() == nullptr); in tests()
42 tracked_shared_ptr<T> ptr(&obj, libkern::retain); in tests() local
44 CHECK(!ptr.reset()); in tests()
46 CHECK(&ptr.reset() == &ptr); in tests()
49 bool ok = (ptr.reset() && !ptr2.reset()); in tests()
H A Dctor.default.cpp18 libkern::intrusive_shared_ptr<T, test_policy> ptr; in tests() local
19 CHECK(ptr.get() == nullptr); in tests()
22 libkern::intrusive_shared_ptr<T, test_policy> ptr{}; in tests() local
23 CHECK(ptr.get() == nullptr); in tests()
26 …libkern::intrusive_shared_ptr<T, test_policy> ptr = libkern::intrusive_shared_ptr<T, test_policy>(… in tests() local
27 CHECK(ptr.get() == nullptr); in tests()
30 libkern::intrusive_shared_ptr<T, test_policy> ptr = {}; in tests() local
31 CHECK(ptr.get() == nullptr); in tests()
/xnu-11215/osfmk/vm/
H A Dlz4.h107 load2(const void * ptr) in load2() argument
112 load4(const void * ptr) in load4() argument
117 load8(const void * ptr) in load8() argument
122 load16(const void * ptr) in load16() argument
127 load32(const void * ptr) in load32() argument
132 load64(const void * ptr) in load64() argument
139 store2(void * ptr, uint16_t data) in store2() argument
141 lz4_memcpy(ptr, &data, sizeof data); in store2()
144 store4(void * ptr, uint32_t data) in store4() argument
146 lz4_memcpy(ptr, &data, sizeof data); in store4()
[all …]
/xnu-11215/libkern/libkern/
H A Dmkext.h174 #define MKEXT2_GET_ENTRY_COMPSIZE(ptr) MKEXT_SWAP((ptr)->compressed_size) argument
175 #define MKEXT2_GET_ENTRY_FULLSIZE(ptr) MKEXT_SWAP((ptr)->full_size) argument
176 #define MKEXT2_GET_ENTRY_DATA(ptr) ((ptr)->data) argument
219 #define MKEXT1_ENTRY_CAST(ptr) ((mkext_file *)(ptr)) argument
220 #define MKEXT1_GET_ENTRY_OFFSET(ptr) (MKEXT_SWAP(MKEXT1_ENTRY_CAST(ptr)->offset)) argument
221 #define MKEXT1_GET_ENTRY_COMPSIZE(ptr) (MKEXT_SWAP(MKEXT1_ENTRY_CAST(ptr)->compsize)) argument
222 #define MKEXT1_GET_ENTRY_FULLSIZE(ptr) (MKEXT_SWAP(MKEXT1_ENTRY_CAST(ptr)->realsize)) argument
223 #define MKEXT1_GET_ENTRY_MODTIME(ptr) ((time_t)MKEXT_SWAP(MKEXT1_ENTRY_CAST(ptr)->modifiedsecs)) argument
224 #define MKEXT1_ENTRY_EXISTS(ptr) (MKEXT1_GET_ENTRY_OFFSET(ptr) || \ argument
225 MKEXT1_GET_ENTRY_FULLSIZE(ptr) || \
[all …]
/xnu-11215/tests/bounded_array_ref_src/
H A Dctor.raw_ptr.cpp32 T* ptr = &array[0]; in tests() local
33 test_bounded_array_ref<T> view(ptr, 5); in tests()
49 T* ptr = &array[0]; in tests() local
50 test_bounded_array_ref<T> view(ptr, 3); in tests()
64 T* ptr = &array[3]; in tests() local
65 test_bounded_array_ref<T> view(ptr, 2); in tests()
73 T* ptr = &array[0]; in tests() local
79 T* ptr = nullptr; in tests() local
85 T* ptr = &array[5]; in tests() local
91 T* ptr = &array[0]; in tests() local
[all …]
H A Dctor.bounded_ptr.cpp34 test_bounded_ptr<T> ptr(&array[0], begin, end); in tests() local
35 test_bounded_array_ref<T> view(ptr, 5); in tests()
52 test_bounded_array_ref<T> view(ptr, 3); in tests()
67 test_bounded_array_ref<T> view(ptr, 2); in tests()
76 test_bounded_array_ref<T> view(ptr, 0); in tests()
81 test_bounded_ptr<T> ptr = nullptr; in tests() local
82 test_bounded_array_ref<T> view(ptr, 0); in tests()
87 test_bounded_ptr<T> ptr(end, begin, end); in tests() local
88 test_bounded_array_ref<T> view(ptr, 0); in tests()
93 test_bounded_ptr<T> ptr(begin, begin, end); in tests() local
[all …]
/xnu-11215/tools/tests/perf_index/
H A Dtest_fault_helper.c20 char *ptr; in test_fault_setup() local
28 for (ptr = memblock; ptr < memblock + MEMSIZE; ptr += pgsz) { in test_fault_setup()
29 *ptr = 1; in test_fault_setup()
45 char *ptr; in test_fault_helper() local
68 for (ptr = memblock + region_start; ptr < memblock + region_end; ptr += pgsz) { in test_fault_helper()
69 *ptr = 1; in test_fault_helper()
88ptr = mmap(memblock + region_start, region_len, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE | M… in test_fault_helper()
89 VERIFY(ptr != 0, "mmap failed"); in test_fault_helper()
/xnu-11215/osfmk/mach/
H A Dvm_param.h571 if (ptr != 0) { in vm_pack_pointer()
572 ptr = vm_memtag_canonicalize_address(ptr); in vm_pack_pointer()
576 return ptr >> params.vmpp_shift; in vm_pack_pointer()
578 if (ptr) { in vm_pack_pointer()
583 #define VM_PACK_POINTER(ptr, ns) \ argument
637 vm_offset_t ptr = params.vmpp_base + in vm_packing_max_packable() local
640 return ptr >= params.vmpp_base ? ptr : VM_MAX_KERNEL_ADDRESS; in vm_packing_max_packable()
670 if (ptr != 0) { in vm_verify_pointer_packable()
671 ptr = vm_memtag_canonicalize_address(ptr); in vm_verify_pointer_packable()
680 if (ptr <= params.vmpp_base || ptr > vm_packing_max_packable(params)) { in vm_verify_pointer_packable()
[all …]
/xnu-11215/tests/
H A Dshared_cache_reslide_test.c156 ptr[1]; in induce_crash()
158 ptr[1] = 'a'; in induce_crash()
176 if (ptr) { in induce_crash()
213 char *ptr; variable
232 T_ASSERT_NOTNULL(ptr, "faulting on %p in the shared region", (void *)ptr);
233 induce_crash(ptr, INDUCE_CRASH_READ);
242 ptr = NULL;
243 induce_crash(ptr, INDUCE_CRASH_READ);
253 T_ASSERT_NOTNULL(ptr, "faulting on %p in the shared region", (void *)ptr);
255 induce_crash(ptr, INDUCE_CRASH_READ);
[all …]
/xnu-11215/bsd/sys/
H A Dsysctl.h472 ptr, val, sysctl_handle_int, "I", descr)
476 ptr, val, sysctl_handle_int, "IU", descr)
482 _Static_assert(__builtin_constant_p(ptr) || sizeof(*(ptr)) == sizeof(int), \
489 _Static_assert(__builtin_constant_p(ptr) || sizeof(*(ptr)) == sizeof(unsigned int), \
495 ptr, 0, sysctl_handle_long, "L", descr); \
496 _Static_assert(__builtin_constant_p(ptr) || sizeof(*(ptr)) == sizeof(long), \
503 _Static_assert(__builtin_constant_p(ptr) || sizeof(*(ptr)) == sizeof(unsigned long), \
509 ptr, 0, sysctl_handle_quad, "Q", descr); \
510 _Static_assert(__builtin_constant_p(ptr) || sizeof(*(ptr)) == sizeof(long long), \
531 ptr, arg, handler, fmt, descr)
[all …]
/xnu-11215/libsyscall/wrappers/
H A D_libc_funcptr.c47 free(void *ptr) in free() argument
50 _libkernel_functions->free(ptr); in free()
56 realloc(void *ptr, size_t size) in realloc() argument
66 reallocf(void *ptr, size_t size) in reallocf() argument
68 void *nptr = realloc(ptr, size); in reallocf()
69 if (!nptr && ptr) { in reallocf()
70 free(ptr); in reallocf()
96 return free(ptr); in malloc_type_free()
108 return realloc(ptr, size); in malloc_type_realloc()
116 if (!nptr && ptr) { in malloc_type_reallocf()
[all …]

12345678910