Home
last modified time | relevance | path

Searched refs:from (Results 1 – 25 of 184) sorted by relevance

12345678

/xnu-11215/tests/safe_allocation_src/
H A Dctor.move.cpp25 T* memory = from.data(); in tests()
32 CHECK(from.data() == nullptr); in tests()
33 CHECK(from.size() == 0); in tests()
45 T* memory = from.data(); in tests()
52 CHECK(from.data() == nullptr); in tests()
53 CHECK(from.size() == 0); in tests()
65 T* memory = from.data(); in tests()
72 CHECK(from.data() == nullptr); in tests()
73 CHECK(from.size() == 0); in tests()
92 CHECK(from.data() == nullptr); in tests()
[all …]
H A Dassign.move.cpp23 T* memory = from.data(); in tests()
32 CHECK(from.data() == nullptr); in tests()
33 CHECK(from.size() == 0); in tests()
48 tracked_safe_allocation<T> from = nullptr; in tests() local
57 CHECK(from.data() == nullptr); in tests()
58 CHECK(from.size() == 0); in tests()
74 T* memory = from.data(); in tests()
83 CHECK(from.data() == nullptr); in tests()
84 CHECK(from.size() == 0); in tests()
108 CHECK(from.data() == nullptr); in tests()
[all …]
/xnu-11215/libkern/zlib/
H A Dinffast.c204 from = window; in inflate_fast()
206 from += wsize - op; in inflate_fast()
223 from = window; in inflate_fast()
245 *out++ = *from++; in inflate_fast()
246 *out++ = *from++; in inflate_fast()
247 *out++ = *from++; in inflate_fast()
251 *out++ = *from++; in inflate_fast()
259 *out++ = *from++; in inflate_fast()
260 *out++ = *from++; in inflate_fast()
261 *out++ = *from++; in inflate_fast()
[all …]
/xnu-11215/tests/intrusive_shared_ptr_src/
H A Dcast.const.cpp24 tracked_shared_ptr<From> const from(&obj, libkern::no_retain); in tests() local
26 tracked_shared_ptr<To> to = libkern::const_pointer_cast<To>(from); in tests()
30 CHECK(from.get() == &obj); in tests()
33 tracked_shared_ptr<From> from(&obj, libkern::no_retain); in tests() local
35 tracked_shared_ptr<To> to = libkern::const_pointer_cast<To>(std::move(from)); in tests()
39 CHECK(from.get() == nullptr); in tests()
44 tracked_shared_ptr<From> const from = nullptr; in tests() local
46 tracked_shared_ptr<To> to = libkern::const_pointer_cast<To>(from); in tests()
50 CHECK(from.get() == nullptr); in tests()
53 tracked_shared_ptr<From> from = nullptr; in tests() local
[all …]
H A Dcast.reinterpret.cpp28 tracked_shared_ptr<From> const from(&obj, libkern::no_retain); in tests() local
30 tracked_shared_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
34 CHECK(from.get() == &obj); in tests()
37 tracked_shared_ptr<From> from(&obj, libkern::no_retain); in tests() local
39 tracked_shared_ptr<To> to = libkern::reinterpret_pointer_cast<To>(std::move(from)); in tests()
43 CHECK(from.get() == nullptr); in tests()
48 tracked_shared_ptr<From> const from = nullptr; in tests() local
50 tracked_shared_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
54 CHECK(from.get() == nullptr); in tests()
57 tracked_shared_ptr<From> from = nullptr; in tests() local
[all …]
H A Dcast.static.cpp33 tracked_shared_ptr<From> const from(&obj, libkern::no_retain); in tests() local
35 tracked_shared_ptr<To> to = libkern::static_pointer_cast<To>(from); in tests()
39 CHECK(from.get() == &obj); in tests()
42 tracked_shared_ptr<From> from(&obj, libkern::no_retain); in tests() local
44 tracked_shared_ptr<To> to = libkern::static_pointer_cast<To>(std::move(from)); in tests()
48 CHECK(from.get() == nullptr); in tests()
53 tracked_shared_ptr<From> const from = nullptr; in tests() local
55 tracked_shared_ptr<To> to = libkern::static_pointer_cast<To>(from); in tests()
59 CHECK(from.get() == nullptr); in tests()
62 tracked_shared_ptr<From> from = nullptr; in tests() local
[all …]
H A Dctor.move.cpp38 libkern::intrusive_shared_ptr<From, test_policy> from(&obj, libkern::retain); in tests() local
40 CHECK(from.get() == &obj); in tests()
45 CHECK(from.get() == nullptr); in tests()
49 libkern::intrusive_shared_ptr<From, test_policy> from(&obj, libkern::retain); in tests() local
51 CHECK(from.get() == &obj); in tests()
56 CHECK(from.get() == nullptr); in tests()
62 CHECK(from.get() == &obj); in tests()
67 CHECK(from.get() == nullptr); in tests()
73 libkern::intrusive_shared_ptr<From, test_policy> from = nullptr; in tests() local
74 libkern::intrusive_shared_ptr<To, test_policy> to = std::move(from); in tests()
[all …]
H A Dassign.copy.cpp36 tracked_shared_ptr<From> const from(&obj1, libkern::retain); in tests() local
39 tracked_shared_ptr<To>& ref = (to = from); in tests()
43 CHECK(from.get() == &obj1); in tests()
52 tracked_shared_ptr<To>& ref = (to = from); in tests()
56 CHECK(from.get() == &obj1); in tests()
62 tracked_shared_ptr<From> const from = nullptr; in tests() local
65 tracked_shared_ptr<To>& ref = (to = from); in tests()
69 CHECK(from.get() == nullptr); in tests()
75 tracked_shared_ptr<From> const from = nullptr; in tests() local
78 tracked_shared_ptr<To>& ref = (to = from); in tests()
[all …]
H A Dassign.move.cpp37 tracked_shared_ptr<From> from(&obj1, libkern::retain); in tests() local
40 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests()
44 CHECK(from.get() == nullptr); in tests()
50 tracked_shared_ptr<From> from(&obj1, libkern::retain); in tests() local
53 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests()
57 CHECK(from.get() == nullptr); in tests()
63 tracked_shared_ptr<From> from = nullptr; in tests() local
66 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests()
70 CHECK(from.get() == nullptr); in tests()
76 tracked_shared_ptr<From> from = nullptr; in tests() local
[all …]
H A Dctor.copy.cpp37 libkern::intrusive_shared_ptr<From, test_policy> const from(&obj, libkern::retain); in tests() local
38 libkern::intrusive_shared_ptr<To, test_policy> to(from); // explicit in tests()
44 libkern::intrusive_shared_ptr<From, test_policy> const from(&obj, libkern::retain); in tests() local
45 libkern::intrusive_shared_ptr<To, test_policy> to{from}; // explicit in tests()
51 libkern::intrusive_shared_ptr<From, test_policy> const from(&obj, libkern::retain); in tests() local
52 libkern::intrusive_shared_ptr<To, test_policy> to = from; // implicit in tests()
60 libkern::intrusive_shared_ptr<From, test_policy> const from = nullptr; in tests() local
61 libkern::intrusive_shared_ptr<To, test_policy> to = from; in tests()
/xnu-11215/EXTERNAL_HEADERS/corecrypto/
H A Dccder_blob.h95 bool ccder_blob_decode_tag(ccder_read_blob *from, ccder_tag *tag);
98 bool ccder_blob_decode_len(ccder_read_blob *from, size_t *size);
101 bool ccder_blob_decode_len_strict(ccder_read_blob *from, size_t *size);
104 bool ccder_blob_decode_tl(ccder_read_blob *from, ccder_tag expected_tag, size_t *size);
107 bool ccder_blob_decode_tl_strict(ccder_read_blob *from, ccder_tag expected_tag, size_t *size);
116 bool ccder_blob_decode_sequence_tl(ccder_read_blob *from, ccder_read_blob *range_blob);
119 bool ccder_blob_decode_sequence_tl_strict(ccder_read_blob *from, ccder_read_blob *range_blob);
122 bool ccder_blob_decode_uint_n(ccder_read_blob *from, cc_size *n);
125 bool ccder_blob_decode_uint64(ccder_read_blob *from, uint64_t *r);
128 bool ccder_blob_decode_uint(ccder_read_blob *from, cc_size n, cc_unit *cc_counted_by(n));
[all …]
/xnu-11215/tests/bounded_ptr_src/
H A Dreinterpret_cast.cpp40 test_bounded_ptr<From> from(array.begin() + 2, array.begin(), array.end()); in tests() local
41 test_bounded_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
42 _assert(to.discard_bounds() == reinterpret_cast<To const*>(from.discard_bounds())); in tests()
46 test_bounded_ptr<From> from(array.begin() + 2, array.begin(), array.end()); in tests() local
47 test_bounded_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
48 _assert(to.discard_bounds() == reinterpret_cast<To const volatile*>(from.discard_bounds())); in tests()
53 test_bounded_ptr<From> from(nullptr, nullptr, nullptr); in tests() local
54 test_bounded_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
60 libkern::bounded_ptr<From, non_default_policy> from(array.begin(), array.begin(), array.end()); in tests() local
61 libkern::bounded_ptr<To, non_default_policy> to = libkern::reinterpret_pointer_cast<To>(from); in tests()
[all …]
H A Dctor.convert.cpp50 test_bounded_ptr<From> const from(ptr, array.begin(), array.end()); in tests() local
51 test_bounded_ptr<To> to = from; // conversion (implicit) in tests()
55 test_bounded_ptr<From> const from(ptr, array.begin(), array.end()); in tests() local
56 test_bounded_ptr<To> to(from); // conversion (explicit) in tests()
60 test_bounded_ptr<From> const from(ptr, array.begin(), array.end()); in tests() local
61 test_bounded_ptr<To> to{from}; // conversion (explicit) in tests()
65 test_bounded_ptr<From> const from(ptr, array.begin(), array.end()); in tests() local
72 test_bounded_ptr<From> from = nullptr; in tests() local
73 test_bounded_ptr<To> to = from; // conversion (implicit) in tests()
80 libkern::bounded_ptr<To, dummy_policy2> to = from; // conversion (implicit) in tests()
[all …]
H A Dassign.convert.cpp50 test_bounded_ptr<From> const from(ptr1, array.begin(), array.end()); in tests() local
52 test_bounded_ptr<To>& ref = (to = from); in tests()
59 test_bounded_ptr<From> const from(ptr1, array.begin(), array.end()); in tests() local
63 test_bounded_ptr<To>& ref = (to = from); in tests()
70 test_bounded_ptr<From> const from = nullptr; in tests() local
72 test_bounded_ptr<To>& ref = (to = from); in tests()
79 libkern::bounded_ptr<From, dummy_policy1> from(ptr1, array.begin(), array.end()); in tests() local
81 libkern::bounded_ptr<To, dummy_policy2>& ref = (to = from); in tests()
91 test_bounded_ptr<From> const from(array.begin(), array.begin() + 1, array.end()); in tests() local
93 to = from; in tests()
/xnu-11215/osfmk/i386/
H A Dhpet.c411 to->GEN_CONF = from->GEN_CONF; in hpet_save()
412 to->TIM0_CONF = from->TIM0_CONF; in hpet_save()
413 to->TIM0_COMP = from->TIM0_COMP; in hpet_save()
414 to->TIM1_CONF = from->TIM1_CONF; in hpet_save()
415 to->TIM1_COMP = from->TIM1_COMP; in hpet_save()
416 to->TIM2_CONF = from->TIM2_CONF; in hpet_save()
417 to->TIM2_COMP = from->TIM2_COMP; in hpet_save()
418 to->MAIN_CNT = from->MAIN_CNT; in hpet_save()
441 to->TIM0_CONF = from->TIM0_CONF; in hpet_restore()
448 to->MAIN_CNT = from->MAIN_CNT; in hpet_restore()
[all …]
/xnu-11215/bsd/dev/arm/
H A Dstubs.c36 copyoutstr(const void *from, user_addr_t to, size_t maxlen, size_t * lencopied) in copyoutstr() argument
40 int error = copyoutstr_prevalidate(from, to, maxlen); in copyoutstr()
46 slen = strlen(from) + 1; in copyoutstr()
52 if (copyout(from, to, len)) { in copyoutstr()
73 char const *from = (char const *) vfrom; in copystr() local
77 if ((*to++ = *from++) == '\0') { in copystr()
/xnu-11215/bsd/dev/i386/
H A Dstubs.c60 copyoutstr(const void *from, user_addr_t to, size_t maxlen, size_t *lencopied) in copyoutstr() argument
66 slen = strlen(from) + 1; in copyoutstr()
72 if (copyout(from, to, len)) { in copyoutstr()
96 char const *from = (char const *) vfrom; in copystr() local
100 if ((*to++ = *from++) == '\0') { in copystr()
/xnu-11215/osfmk/i386/commpage/
H A Dcommpage.h88 #define COMMPAGE_CALL(target, from, start) \
89 COMMPAGE_CALL_INTERNAL(target,from,start,__LINE__)
91 #define COMMPAGE_CALL_INTERNAL(target, from, start, unique) \
93 .set UNIQUEID(unique), L ## start - . + target - from - 4 ;\
103 #define COMMPAGE_JMP(target, from, start) \
104 jmp L ## start - from + target
/xnu-11215/pexpert/gen/
H A Dbootargs.c40 static int argstrcpy(char *from, char *to);
42 static int argstrcpy2(char *from, char *to, unsigned maxlen);
342 char *from, in argstrcpy() argument
347 while (!isargsep(*from)) { in argstrcpy()
349 *to++ = *from++; in argstrcpy()
358 char *from, in argstrcpy2() argument
364 while (!isargsep(*from) && i < maxlen) { in argstrcpy2()
366 *to++ = *from++; in argstrcpy2()
/xnu-11215/osfmk/x86_64/
H A Dloose_ends.c108 extern void bcopy_no_overwrite(const char *from, char *to, vm_size_t bytes);
113 extern void ovbcopy(const char *from,
276 const char *from, in ovbcopy() argument
281 if (from + bytes <= to || to + bytes <= from || to == from) { in ovbcopy()
282 bcopy_no_overwrite(from, to, bytes); /* non-overlapping or no-op*/ in ovbcopy()
283 } else if (from > to) { in ovbcopy()
284 bcopy_no_overwrite(from, to, bytes); /* overlapping but OK */ in ovbcopy()
287 from += bytes - 1; in ovbcopy()
290 *to-- = *from--; in ovbcopy()
/xnu-11215/doc/allocators/
H A Dread-only.md8 "read-only" allocations. Data allocated from a read-only zone can only be
17 sensitive data from being targeted by memory corruption vulnerabilities.
43 Data under the control of the Read-Only Allocator can be read from just as
60 "back reference") that is validated when traversing from read/write to
66 chain from source pointer (e.g. thread) to destination data (e.g. credential).
76 The Read-Only Allocator is intended to protect data from very specific
97 - `zalloc_ro`: Allocate an element from a read-only zone.
102 - `zalloc_ro_mut`: Modify part of an element allocated from a read-only zone.
/xnu-11215/osfmk/kern/
H A Dpage_decrypt.c46 dsmos_page_transform(const void* from, void *to, unsigned long long src_offset, void *ops) in dsmos_page_transform() argument
57 return (*dsmos_hook)(from, to, src_offset, ops); in dsmos_page_transform()
/xnu-11215/libsyscall/wrappers/legacy/
H A Drecvfrom.c45 recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr * __restrict from, socklen_t * __… in recvfrom() argument
47 int ret = __recvfrom_nocancel(s, buf, len, flags, from, fromlen); in recvfrom()
/xnu-11215/doc/observability/
H A Dmt_stackshot.md8 - **Initiating / Calling CPU**: The CPU which stackshot was called from.
16 When a stackshot is taken, the initiating CPU (the CPU from which stackshot was
18 cores into the debugger trap as well. The other CPUs call into stackshot from
31 debugger trap, interrupts are re-enabled, and the kcdata from all of the CPUs
44 CPUs to pull from. On SMP systems, there is only one queue. On AMP systems,
59 improved from that of singlethreaded stackshot - it uses various heuristics such
74 originally allocated from a different cluster's buffer, it will be put into the
80 used and the amount of buffer space allocated from other clusters.
114 is indistinguishable from the output of a singlethreaded stackshot (essentially,
124 CPU which can be seen from a debugger.
[all …]
/xnu-11215/makedefs/
H A DMakeInc.san10 # Generates rule to build symbolset file from specific export file.
19 # Our external dependency on config/allsymbols from config hierarchy config_all is hardcoded in the…
53 # $(3) - build configs to get symbolset binaries from corresponding OBJDIR

12345678