Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 70) sorted by relevance

123

/xnu-11215/bsd/kern/
H A Dkern_symfile.c261 strlcpy(ref->name, name, ref->namesize); in kern_open_file_for_direct_io()
298 if (vnode_getattr(ref->vp, &va, ref->ctx)) { in kern_open_file_for_direct_io()
405 ref->filelength = fileblk * ref->blksize; in kern_open_file_for_direct_io()
597 vnode_close(ref->vp, FWRITE, ref->ctx); in kern_open_file_for_direct_io()
615 …(void) kern_ioctl_file_extents(ref, _DKIOCCSUNPINEXTENT, 0, (ref->pinned && ref->cf) ? ref->filele… in kern_open_file_for_direct_io()
625 vnode_close(ref->vp, FWRITE, ref->ctx); in kern_open_file_for_direct_io()
630 kfree_data(ref->name, ref->namesize); in kern_open_file_for_direct_io()
637 return ref; in kern_open_file_for_direct_io()
677 if (!ref) { in kern_close_file_for_direct_io()
726 error = vnode_close(ref->vp, FWRITE, ref->ctx); in kern_close_file_for_direct_io()
[all …]
/xnu-11215/iokit/Exclaves/
H A DExclaves.cpp118 ref = NULL; in exclaveStart()
213 if (!ref) { in exclaveStart()
268 if (ref) { in exclaveStart()
293 if (!ref) { in exclaveStart()
297 *pRef = ref; in exclaveStart()
409 res = ref->service->exclaveRemoveTimer(ref, timer_id); in IOExclaveTimerUpcallHandler()
450 if (!ref) { in IOExclaveLockWorkloop()
513 if (!ref) { in IOExclaveTestSignalInterrupt()
546 if (!ref) { in IOExclaveAsyncNotificationUpcallHandler()
568 if (!ref) { in IOExclaveMapperOperationUpcallHandler()
[all …]
/xnu-11215/tests/bounded_ptr_src/
H A Darith.inc_dec.cpp33 auto& ref = ++ptr; in tests() local
34 _assert(&ref == &ptr); in tests()
39 auto& ref = ++ptr; in tests() local
44 auto& ref = ++ptr; in tests() local
49 auto& ref = ++ptr; in tests() local
54 auto& ref = ++ptr; in tests() local
59 auto& ref = --ptr; in tests() local
64 auto& ref = --ptr; in tests() local
69 auto& ref = --ptr; in tests() local
74 auto& ref = --ptr; in tests() local
[all …]
H A Darith.add_assign.cpp44 auto& ref = ptr += 0; in tests() local
45 _assert(&ref == &ptr); in tests()
50 auto& ref = ptr += 1; in tests() local
51 _assert(&ref == &ptr); in tests()
56 auto& ref = ptr += 2; in tests() local
57 _assert(&ref == &ptr); in tests()
62 auto& ref = ptr += 3; in tests() local
63 _assert(&ref == &ptr); in tests()
68 auto& ref = ptr += 4; in tests() local
74 auto& ref = ptr += 5; in tests() local
[all …]
H A Darith.subtract_assign.cpp41 auto& ref = ptr -= 0; in tests() local
42 _assert(&ref == &ptr); in tests()
47 auto& ref = ptr -= 1; in tests() local
48 _assert(&ref == &ptr); in tests()
53 auto& ref = ptr -= 2; in tests() local
54 _assert(&ref == &ptr); in tests()
59 auto& ref = ptr -= 3; in tests() local
60 _assert(&ref == &ptr); in tests()
65 auto& ref = ptr -= 4; in tests() local
71 auto& ref = ptr -= 5; in tests() local
[all …]
H A Dderef.cpp48 QualT& ref = *ptr; in tests() local
49 _assert(ref == T{0}); in tests()
50 _assert(&ref == &array[0]); in tests()
61 QualT& ref = *ptr; in tests() local
62 _assert(ref == T{1}); in tests()
63 _assert(&ref == &array[1]); in tests()
74 QualT& ref = *ptr; in tests() local
75 _assert(ref == T{2}); in tests()
76 _assert(&ref == &array[2]); in tests()
87 QualT& ref = *ptr; in tests() local
[all …]
H A Dassign.nullptr.cpp26 test_bounded_ptr<TQual>& ref = (p = nullptr); in tests() local
27 _assert(&ref == &p); in tests()
35 test_bounded_ptr<TQual>& ref = (p = NULL); in tests() local
36 _assert(&ref == &p); in tests()
44 test_bounded_ptr<TQual>& ref = (p = 0); in tests() local
45 _assert(&ref == &p); in tests()
H A Dassign.convert.cpp52 test_bounded_ptr<To>& ref = (to = from); in tests() local
54 _assert(&ref == &to); // make sure we return *this in tests()
63 test_bounded_ptr<To>& ref = (to = from); in tests() local
65 _assert(&ref == &to); // make sure we return *this in tests()
72 test_bounded_ptr<To>& ref = (to = from); in tests() local
74 _assert(&ref == &to); // make sure we return *this in tests()
81 libkern::bounded_ptr<To, dummy_policy2>& ref = (to = from); in tests() local
83 _assert(&ref == &to); // make sure we return *this in tests()
/xnu-11215/tests/intrusive_shared_ptr_src/
H A Dderef.cpp23 T& ref = *ptr; in tests() local
24 CHECK(&ref == &obj); in tests()
25 CHECK(ref.i == 3); in tests()
29 int const& ref = ptr->i; in tests() local
30 CHECK(&ref == &obj.i); in tests()
31 CHECK(ref == 3); in tests()
H A Dassign.copy.cpp39 tracked_shared_ptr<To>& ref = (to = from); in tests() local
42 CHECK(&ref == &to); in tests()
52 tracked_shared_ptr<To>& ref = (to = from); in tests() local
55 CHECK(&ref == &to); in tests()
65 tracked_shared_ptr<To>& ref = (to = from); in tests() local
68 CHECK(&ref == &to); in tests()
78 tracked_shared_ptr<To>& ref = (to = from); in tests() local
81 CHECK(&ref == &to); in tests()
H A Dassign.move.cpp40 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests() local
43 CHECK(&ref == &to); in tests()
53 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests() local
56 CHECK(&ref == &to); in tests()
66 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests() local
69 CHECK(&ref == &to); in tests()
79 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests() local
82 CHECK(&ref == &to); in tests()
H A Dassign.nullptr.cpp24 tracked_shared_ptr<T>& ref = (ptr = nullptr); in tests() local
27 CHECK(&ref == &ptr); in tests()
35 tracked_shared_ptr<T>& ref = (ptr = nullptr); in tests() local
38 CHECK(&ref == &ptr); in tests()
/xnu-11215/tests/safe_allocation_src/
H A Dassign.move.cpp28 tracked_safe_allocation<T>& ref = (to = std::move(from)); in tests() local
29 CHECK(&ref == &to); in tests()
53 tracked_safe_allocation<T>& ref = (to = std::move(from)); in tests() local
54 CHECK(&ref == &to); in tests()
79 tracked_safe_allocation<T>& ref = (to = std::move(from)); in tests() local
80 CHECK(&ref == &to); in tests()
104 tracked_safe_allocation<T>& ref = (to = std::move(from)); in tests() local
105 CHECK(&ref == &to); in tests()
128 tracked_safe_allocation<T>& ref = (obj = std::move(obj)); in tests() local
129 CHECK(&ref == &obj); in tests()
H A Dassign.nullptr.cpp23 tracked_safe_allocation<T>& ref = (array = nullptr); in tests() local
24 CHECK(&ref == &array); in tests()
35 tracked_safe_allocation<T>& ref = (array = nullptr); in tests() local
36 CHECK(&ref == &array); in tests()
/xnu-11215/osfmk/kern/
H A Dbtlog.c481 btref_t ref; in __btlib_validate() local
686 btref_t ref; in __btlib_insert() local
715 ref = __btstack_try_retain(ref, bts, flags); in __btlib_insert()
716 if (ref) { in __btlib_insert()
718 return ref; in __btlib_insert()
830 btref_t ref; in __btlib_get() local
867 while (ref) { in __btlib_get()
879 (ref = __btstack_try_retain(ref, bts, flags))) { in __btlib_get()
881 return ref; in __btlib_get()
1780 btref_t ref; in btlog_guess_top() local
[all …]
/xnu-11215/iokit/Kernel/
H A DIOMultiMemoryDescriptor.cpp283 IOMemoryDescriptorMapAllocRef ref; in doMap() local
298 ref.map = map; in doMap()
299 ref.tag = IOMemoryTag(map); in doMap()
300 ref.options = options; in doMap()
301 ref.size = length; in doMap()
302 ref.prot = prot; in doMap()
305 ref.mapped = 0; in doMap()
307 ref.mapped = mapping->fAddress; in doMap()
311 err = IOIteratePageableMaps(ref.size, &IOMemoryDescriptorMapAlloc, &ref); in doMap()
313 err = IOMemoryDescriptorMapAlloc(ref.map, &ref); in doMap()
[all …]
H A DIOMemoryDescriptor.cpp452 if (ref) { in memoryReferenceAlloc()
459 return ref; in memoryReferenceAlloc()
472 entries = ref->entries + ref->count; in memoryReferenceFree()
522 if (!ref) { in memoryReferenceCreate()
715 ref = memoryReferenceAlloc(ref->capacity + kCapacityInc, ref); in memoryReferenceCreate()
804 ref = NULL; in memoryReferenceCreate()
1048 err = IOMemoryDescriptorMapAlloc(ref.map, &ref); in memoryReferenceMap()
1356 err = IOMemoryDescriptorMapAlloc(ref.map, &ref); in memoryReferenceMapNew()
1594 entries = ref->entries + ref->count; in memoryReferenceGetPageCounts()
1627 entries = ref->entries + ref->count; in memoryReferenceSetPurgeable()
[all …]
H A DIOKitDebug.cpp985 IOTrackingLeaksRef * ref = (typeof(ref))refcon; in IOTrackingLeakScan() local
1045 if (ref->zoneSize) { in IOTrackingLeakScan()
1064 ref->found++; in IOTrackingLeakScan()
1066 ref->foundzlen++; in IOTrackingLeakScan()
1099 bzero(&ref, sizeof(ref)); in zone_leaks_scan()
1101 ref.count = count; in zone_leaks_scan()
1105 ref.bytes = 0; in zone_leaks_scan()
1113 *found = ref.found; in zone_leaks_scan()
1139 bzero(&ref, sizeof(ref)); in IOTrackingLeaks()
1141 ref.count = count; in IOTrackingLeaks()
[all …]
/xnu-11215/libkern/os/
H A Drefcnt.c669 os_pcpu_get(os_pcpu_ref_t ref) in os_pcpu_get() argument
671 return (__os_pcpu_ref_t)ref; in os_pcpu_get()
692 os_pcpu_get(*ref), ref); in __os_pcpu_ref_destroy_panic()
696 os_pcpu_get(*ref), ref); in __os_pcpu_ref_destroy_panic()
699 os_pcpu_get(*ref), ref); in __os_pcpu_ref_destroy_panic()
763 *ref = (os_pcpu_ref_t)rc;
779 n = os_pcpu_ref_kill(*ref, grp);
786 __os_pcpu_ref_destroy_panic(ref, n);
789 *ref = 0;
794 os_pcpu_ref_count(os_pcpu_ref_t ref) in os_pcpu_ref_count() argument
[all …]
H A Drefcnt.h192 extern void os_pcpu_ref_init(os_pcpu_ref_t *ref, struct os_refgrp *grp);
207 extern os_ref_count_t os_pcpu_ref_kill(os_pcpu_ref_t ref, struct os_refgrp *grp) __result_use_check;
223 extern void os_pcpu_ref_wait_for_death(os_pcpu_ref_t ref);
238 extern void os_pcpu_ref_destroy(os_pcpu_ref_t *ref, struct os_refgrp *grp);
248 extern os_ref_count_t os_pcpu_ref_count(os_pcpu_ref_t ref);
254 extern void os_pcpu_ref_retain(os_pcpu_ref_t ref, struct os_refgrp *grp);
265 extern bool os_pcpu_ref_retain_try(os_pcpu_ref_t ref, struct os_refgrp *grp) __result_use_check;
271 extern void os_pcpu_ref_release_live(os_pcpu_ref_t ref, struct os_refgrp *grp);
284 extern os_ref_count_t os_pcpu_ref_release(os_pcpu_ref_t ref, struct os_refgrp *grp) __result_use_ch…
H A Drefcnt_internal.h207 #define os_pcpu_ref_init(ref, grp) (os_pcpu_ref_init)(ref, NULL) argument
208 #define os_pcpu_ref_destroy(ref, grp) (os_pcpu_ref_destroy)(ref, NULL) argument
209 #define os_pcpu_ref_kill(ref, grp) (os_pcpu_ref_kill)(ref, NULL) argument
210 #define os_pcpu_ref_retain(ref, grp) (os_pcpu_ref_retain)(ref, NULL) argument
211 #define os_pcpu_ref_retain_try(ref, grp) (os_pcpu_ref_retain_try)(ref, NULL) argument
212 #define os_pcpu_ref_release(ref, grp) (os_pcpu_ref_release)(ref, NULL) argument
213 #define os_pcpu_ref_release_live(ref, grp) (os_pcpu_ref_release_live)(ref, NULL) argument
/xnu-11215/tests/
H A Dmemcmp_zero.c55 int ref = j - i < m ? 1 : 0; variable
56 T_QUIET; T_ASSERT_EQ(result, ref, "expected %d, saw %d\n"
58 ref, result, i, m);
77 int ref = j - i < m ? 1 : 0; variable
78 T_QUIET; T_ASSERT_EQ(result, ref, "expected %d, saw %d\n"
80 ref, result, i, m);
/xnu-11215/tools/lldbmacros/kmemory/
H A Dbtlog.py33 def __init__(self, library, ref): argument
34 ref &= BTStack.BTS_REF_MASK
37 while ref > (BTLibrary.SIZE_INIT << slab):
46 self.bts_ref = ref
167 def get_stack(self, ref): argument
168 return BTStack(self, ref)
198 if desiredRef is not None and self.ref != desiredRef:
245 for i, (_, _, op, ref) in enumerate(self.iter_records()):
249 d_ref = d.setdefault(ref, {})
253 (ref, op, v)
[all …]
/xnu-11215/libkern/c++/
H A DOSSerialize.cpp325 OSSerializerCallback callback, void * ref ) in OSDefineMetaClassAndStructors()
335 thing->ref = ref; in OSDefineMetaClassAndStructors()
342 OSSerializer::callbackToBlock(void * target __unused, void * ref, in callbackToBlock() argument
345 return ((OSSerializerBlock)ref)(serializer); in callbackToBlock()
373 Block_release(ref); in free()
382 return (*callback)(target, ref, s); in serialize()
/xnu-11215/libkern/libkern/c++/
H A DOSSerialize.h327 typedef bool (*OSSerializerCallback)(void * target, void * ref,
340 void * ref; variable
348 void * ref = NULL);
358 static bool callbackToBlock(void * target, void * ref,

123