Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 105) sorted by relevance

12345

/xnu-11215/libkern/os/
H A Dcpp_util.h96 move(T* first, T* last, T* d_first)
98 for (; first != last; ++d_first, (void)++first) {
99 *d_first = os::move(*first);
123 while (first != last) {
133 for (; first != last; ++d_first, (void) ++first) {
136 return first;
141 destroy(T* first, T* last)
143 for (; first != last; ++first) {
144 first->~T();
152 for (; first != last; ++first) {
[all …]
/xnu-11215/osfmk/kern/
H A Dsmr_types.h140 __smrq_slink_t first; member
144 { .first = { NULL } }
160 __smrq_link_t first; member
164 { .first = { NULL } }
181 __smrq_slink_t first; member
186 { .first = { NULL }, .last = &(name).first }
203 __smrq_link_t first; member
208 { .first = { NULL }, .last = &(name).first }
H A Dsmr.h303 smr_init_store(&__head->first, NULL); \
305 *__smrq_lastp(__head) = &__head->first; \
317 (smr_unsafe_load(&(head)->first) == 0)
327 __container_of_safe(smr_entered_load(&(head)->first), type_t, field)
361 __container_of_safe(smr_serialized_load(&(head)->first), type_t, link)
1361 __smrq_slink_t *first, in __smrq_serialized_remove() argument
1365 __smrq_slink_t *prev = first; in __smrq_serialized_remove()
1378 __smrq_link_t *first __unused, in __smrq_serialized_remove()
1389 __smrq_slink_t *first, in __smrq_serialized_replace() argument
1394 __smrq_slink_t *prev = first; in __smrq_serialized_replace()
[all …]
H A Dsmr.c796 smr_tracker_t first = NULL; in __smr_leave_stalled() local
815 new_stall_seq = first->smrt_seq; in __smr_leave_stalled()
2773 struct smrq_slink *first; in __smr_shash_entered_get_or_insert() local
2795 other = first; in __smr_shash_entered_get_or_insert()
2840 struct smrq_slink *first, *next; in __smr_shash_entered_mut_begin() local
2860 next = first; in __smr_shash_entered_mut_begin()
2879 struct smrq_slink *next, *first; in __smr_shash_entered_mut_erase() local
2885 if (first == link) { in __smr_shash_entered_mut_erase()
2907 struct smrq_slink *first, *next; in __smr_shash_entered_mut_replace() local
2913 if (first == old_link) { in __smr_shash_entered_mut_replace()
[all …]
/xnu-11215/tests/bounded_array_ref_src/
H A Dctor.begin_end.cpp29 T* first = &array[0]; in tests() local
31 test_bounded_array_ref<T> view(first, last); in tests()
46 T* first = &array[0]; in tests() local
48 test_bounded_array_ref<T> view(first, last); in tests()
59 T* first = &array[0]; in tests() local
61 test_bounded_array_ref<T> view(first, last); in tests()
70 T* first = &array[5]; in tests() local
72 test_bounded_array_ref<T> view(first, last); in tests()
/xnu-11215/tests/
H A Dpersona.c38 uid_t first = _create_persona(PERSONA_SYSTEM, PERSONA_INFO_V1); variable
41 T_ASSERT_NE(first, second, NULL);
43 T_ASSERT_EQ(kpersona_dealloc(first), 0, NULL);
49 uid_t first = _create_persona(PERSONA_SYSTEM_PROXY, PERSONA_INFO_V1); variable
52 T_ASSERT_NE(first, second, NULL);
54 T_ASSERT_EQ(kpersona_dealloc(first), 0, NULL);
H A Dpfz.c142 void *first; member
148 .first = NULL,
205 void *first; member
213 .first = NULL,
221 .first = NULL,
/xnu-11215/bsd/skywalk/nexus/
H A Dnexus_mbq.c93 classq_pkt_t first = CLASSQ_PKT_INITIALIZER(first); in nx_mbq_concat() local
98 _getq_all(&q2->nx_mbq_q, &first, &last, &qlen, &qsize); in nx_mbq_concat()
99 ASSERT(first.cp_mbuf != NULL && last.cp_mbuf != NULL); in nx_mbq_concat()
100 _addq_multi(&q1->nx_mbq_q, &first, &last, qlen, qsize); in nx_mbq_concat()
H A Dnexus_pktq.c66 classq_pkt_t first = CLASSQ_PKT_INITIALIZER(first); in nx_pktq_concat() local
71 _getq_all(&q2->nx_pktq_q, &first, &last, &qlen, &qsize); in nx_pktq_concat()
72 ASSERT(first.cp_kpkt != NULL && last.cp_kpkt != NULL); in nx_pktq_concat()
73 _addq_multi(&q1->nx_pktq_q, &first, &last, qlen, qsize); in nx_pktq_concat()
H A Dnexus_pktq.h201 classq_pkt_t first = CLASSQ_PKT_INITIALIZER(first); in __pktq_deq_all() local
204 _getq_all(&q->nx_pktq_q, &first, &last, qlenp, qsizep); in __pktq_deq_all()
206 ASSERT((first.cp_kpkt == NULL) || (first.cp_ptype == QP_PACKET)); in __pktq_deq_all()
207 return first.cp_kpkt; in __pktq_deq_all()
H A Dnexus_mbq.h227 classq_pkt_t first = CLASSQ_PKT_INITIALIZER(first); in __mbq_deq_all() local
230 _getq_all(&q->nx_mbq_q, &first, &last, qlenp, qsizep); in __mbq_deq_all()
232 ASSERT((first.cp_mbuf == NULL) || (first.cp_ptype == QP_MBUF)); in __mbq_deq_all()
233 return first.cp_mbuf; in __mbq_deq_all()
/xnu-11215/libkern/libkern/c++/
H A Dsafe_allocation.h79 destroy(T* first, T* last)
81 for (; first != last; ++first) {
82 first->~T();
95 uninitialized_value_construct(T* first, T* last)
97 for (; first != last; ++first) {
98 ::new (static_cast<void*>(first)) T();
H A Dbounded_array_ref.h110 …explicit constexpr bounded_array_ref(T* first, T* last) : data_(first), size_(static_cast<uint32_t… in bounded_array_ref()
112 if (__improbable(first > last)) { in bounded_array_ref()
115 if (__improbable(last - first > UINT32_MAX)) { in bounded_array_ref()
/xnu-11215/iokit/DriverKit/
H A Dsafe_allocation.h79 destroy(T* first, T* last)
81 for (; first != last; ++first) {
82 first->~T();
95 uninitialized_value_construct(T* first, T* last)
97 for (; first != last; ++first) {
98 ::new (static_cast<void*>(first)) T();
H A Dbounded_array_ref.h110 …explicit constexpr bounded_array_ref(T* first, T* last) : data_(first), size_(static_cast<uint32_t… in bounded_array_ref()
112 if (__improbable(first > last)) { in bounded_array_ref()
115 if (__improbable(last - first > UINT32_MAX)) { in bounded_array_ref()
/xnu-11215/tests/skywalk/
H A Dskt_manyflows.c145 int first, last; in skt_mf1xall_common() local
149 size = sizeof(first); in skt_mf1xall_common()
150 error = sysctlbyname("net.inet.ip.portrange.first", &first, &size, NULL, 0); in skt_mf1xall_common()
152 assert(size == sizeof(first)); in skt_mf1xall_common()
159 if (last < first) { in skt_mf1xall_common()
160 nports = first - last + 1; in skt_mf1xall_common()
162 nports = last - first + 1; in skt_mf1xall_common()
H A Dskt_ringid.c72 ring_id_type_t first, ring_id_type_t last, in skt_ringid_main_common() argument
89 fringid = os_channel_ring_id(channel, first); in skt_ringid_main_common()
120 ringid2 = os_channel_ring_id(channel, first); in skt_ringid_main_common()
/xnu-11215/osfmk/vm/
H A Dvm_page_internal.h201 vm_page_queue_entry_t first = NULL; /* first page in the clump */ in vm_page_queue_enter_clump() local
219 first = last = (vm_page_queue_entry_t)elt; in vm_page_queue_enter_clump()
231 first = (vm_page_queue_entry_t)p; in vm_page_queue_enter_clump()
273 first_prev = (vm_page_queue_entry_t)VM_PAGE_UNPACK_PTR(first->prev); in vm_page_queue_enter_clump()
283 __DEBUG_VERIFY_LINKS(first, n_free, last_next); in vm_page_queue_enter_clump()
287 last_next->prev = first->prev; in vm_page_queue_enter_clump()
288 first->prev = VM_PAGE_PACK_PTR(head); in vm_page_queue_enter_clump()
293 head->next = VM_PAGE_PACK_PTR(first); in vm_page_queue_enter_clump()
304 extern void vm_page_add_to_specialq(vm_page_t mem, boolean_t first);
709 extern void vm_page_enqueue_inactive(vm_page_t mem, boolean_t first);
[all …]
/xnu-11215/bsd/skywalk/nexus/flowswitch/
H A Dnx_flowswitch.c653 nexus_port_t first, last, port; in nx_fsw_dom_find_port() local
662 first = 0; in nx_fsw_dom_find_port()
665 first = NEXUS_PORT_FLOW_SWITCH_CLIENT; in nx_fsw_dom_find_port()
669 ASSERT(first <= last); in nx_fsw_dom_find_port()
672 if (__improbable(first == last)) { in nx_fsw_dom_find_port()
683 (int)port, first, (last - 1), error); in nx_fsw_dom_find_port()
698 nexus_port_t first, last, port; in nx_fsw_dom_bind_port() local
716 first = NEXUS_PORT_FLOW_SWITCH_CLIENT; in nx_fsw_dom_bind_port()
719 ASSERT(first <= last); in nx_fsw_dom_bind_port()
722 if (__improbable(first == last)) { in nx_fsw_dom_bind_port()
[all …]
/xnu-11215/tools/lldbmacros/
H A Dxnudefines.py24 first = True
31 if not first:
34 first = False
/xnu-11215/bsd/net/classq/
H A Dclassq.c321 _getq_all(class_queue_t *q, classq_pkt_t *first, classq_pkt_t *last, in _getq_all() argument
326 first->cp_mbuf = MBUFQ_FIRST(&qmbufq(q)); in _getq_all()
327 if (__probable(first->cp_mbuf != NULL)) { in _getq_all()
328 CLASSQ_PKT_INIT_MBUF(first, first->cp_mbuf); in _getq_all()
341 first->cp_kpkt = KPKTQ_FIRST(&qkpktq(q)); in _getq_all()
342 if (__probable(first->cp_kpkt != NULL)) { in _getq_all()
343 CLASSQ_PKT_INIT_PACKET(first, first->cp_kpkt); in _getq_all()
/xnu-11215/tools/lldbmacros/usertaskdebugging/
H A Dtarget.py95 first = True
97 if first is True:
98 first = False
/xnu-11215/SETUP/kextsymboltool/
H A Dkextsymboltool.c646 struct symbol * first; in main() local
651 first = result; in main()
652 while (--first >= &import_symbols[0]) { in main()
653 if (bsearch_cmp_prefix(&key, first)) { in main()
656 strtabsize += (first->name_len + first->indirect_len); in main()
658 first++; in main()
667 result_count += last - first; in main()
668 result = first; in main()
669 export_symbols[export_idx].list = first; in main()
670 export_symbols[export_idx].list_count = last - first; in main()
/xnu-11215/bsd/skywalk/namespace/
H A Dnetns.c304 if (first == last) { in netns_ns_alloc()
305 rand_port = first; in netns_ns_alloc()
309 if (first > last) { in netns_ns_alloc()
312 rand_port = first + (rand_port % (last - first)); in netns_ns_alloc()
1319 if (first == last) { in netns_reserve_ephemeral()
1320 rand_port = first; in netns_reserve_ephemeral()
1326 if (first > last) { in netns_reserve_ephemeral()
1328 (first - last)); in netns_reserve_ephemeral()
1335 if (first > last) { in netns_reserve_ephemeral()
1346 rand_port = first; in netns_reserve_ephemeral()
[all …]
/xnu-11215/tests/iokit/
H A Dioserviceusernotification_race.c113 absoluteDifference(size_t first, size_t second) in absoluteDifference() argument
115 if (first > second) { in absoluteDifference()
116 return first - second; in absoluteDifference()
118 return second - first; in absoluteDifference()

12345