Home
last modified time | relevance | path

Searched refs:next (Results 1 – 25 of 229) sorted by relevance

12345678910

/xnu-11215/osfmk/kern/
H A Dqueue.h224 if (elt->prev->next != elt || elt->next->prev != elt) { in __QUEUE_ELT_VALIDATE()
288 que->next = elt; in enqueue_head()
299 elt->next = que; in enqueue_tail()
313 elt = que->next; in dequeue_head()
398 n_elt = elt->next; in re_queue_head()
404 n_elt = que->next; in re_queue_head()
408 que->next = elt; in re_queue_head()
438 elt->next = que; in re_queue_tail()
474 for (qe = (head)->next; qe != (head); qe = (qe)->next)
492 for (queue_entry_t _ne = ((head)->next)->next, \
[all …]
H A Dsmr.h1222 if (next != NULL && next->prev != prev) { in __smrq_serialized_insert()
1236 next->prev = &elem->next; in __smrq_serialized_insert()
1272 if (next != NULL && next->prev != prev) { in __smrq_serialized_insert_relaxed()
1286 next->prev = &elem->next; in __smrq_serialized_insert_relaxed()
1312 next = smr_serialized_load(&elem->next); in __smrq_serialized_remove_one()
1328 next = smr_serialized_load(&elem->next); in __smrq_serialized_remove_one()
1333 if (next && next->prev != &elem->next) { in __smrq_serialized_remove_one()
1402 next = smr_serialized_load(&old_elem->next); in __smrq_serialized_replace()
1423 next = smr_serialized_load(&old_elem->next); in __smrq_serialized_replace()
1428 if (next && next->prev != &old_elem->next) { in __smrq_serialized_replace()
[all …]
H A Dcircle_queue.h75 return elt->next == cq->head ? NULL : elt->next; in circle_queue_next()
100 } else if (tail->next != head) { in circle_enqueue_tail()
103 elt->next = head; in circle_enqueue_tail()
105 tail->next = elt; in circle_enqueue_tail()
125 queue_entry_t elt_next = elt->next; in circle_dequeue()
133 elt_prev->next = elt_next; in circle_dequeue()
175 if (s_tail->next != s_head) { in circle_queue_concat_tail()
186 if (d_tail->next != d_head) { in circle_queue_concat_tail()
190 d_tail->next = s_head; in circle_queue_concat_tail()
194 s_tail->next = d_head; in circle_queue_concat_tail()
[all …]
H A Dsmr.c1832 next = next->drain_next; in __smr_worker_continue()
2510 while ((next = smr_serialized_load(&link->next)) && in __smr_hash_grow_and_unlock()
2586 while ((next = smr_serialized_load(&link->next)) && in __smr_hash_grow_and_unlock()
2865 prev = &next->next; in __smr_shash_entered_mut_begin()
2884 next = smr_serialized_load(&link->next); in __smr_shash_entered_mut_erase()
2911 next = smr_serialized_load(&old_link->next); in __smr_shash_entered_mut_replace()
2912 smr_serialized_store_relaxed(&new_link->next, next); in __smr_shash_entered_mut_replace()
3022 smr_serialized_store_relaxed(&link->next, next); in __smr_shash_rehash_with_target()
3202 next = smr_serialized_load(&link->next);
3227 elem, next, __container_of(next->prev, struct smrq_link, next)); in __smr_linkage_invalid()
[all …]
H A Dtask_policy.c834 switch (next.tep_role) { in task_policy_update_internal_locked()
928 next.tep_tal_engaged = 1; in task_policy_update_internal_locked()
946 next.tep_darwinbg = 1; in task_policy_update_internal_locked()
949 next.tep_lowpri_cpu = 1; in task_policy_update_internal_locked()
957 next.tep_watchers_bg = 1; in task_policy_update_internal_locked()
975 next.tep_lowpri_cpu = 1; in task_policy_update_internal_locked()
1004 next.tep_io_tier = iopol; in task_policy_update_internal_locked()
1009 next.tep_io_passive = 1; in task_policy_update_internal_locked()
1016 next.tep_sup_active = 1; in task_policy_update_internal_locked()
1100 next.tep_live_donor = 0; in task_policy_update_internal_locked()
[all …]
H A Dthread_policy.c1667 next.thep_qos = next_qos; in thread_policy_update_internal_spinlocked()
1672 next.thep_qos = MIN(task_effective.tep_qos_clamp, next.thep_qos); in thread_policy_update_internal_spinlocked()
1676 next.thep_wi_driven = 0; in thread_policy_update_internal_spinlocked()
1683 next.thep_qos_promote = next.thep_qos; in thread_policy_update_internal_spinlocked()
1689 next.thep_qos = MIN(task_effective.tep_qos_ceiling, next.thep_qos); in thread_policy_update_internal_spinlocked()
1738 next.thep_darwinbg = 1; in thread_policy_update_internal_spinlocked()
1739 next.thep_wi_driven = 0; in thread_policy_update_internal_spinlocked()
1752 if (next.thep_darwinbg && in thread_policy_update_internal_spinlocked()
1763 if (next.thep_darwinbg) { in thread_policy_update_internal_spinlocked()
1780 next.thep_io_tier = iopol; in thread_policy_update_internal_spinlocked()
[all …]
/xnu-11215/iokit/DriverKit/
H A Dqueue_implementation.h224 if (elt->prev->next != elt || elt->next->prev != elt) { in __QUEUE_ELT_VALIDATE()
288 que->next = elt; in enqueue_head()
299 elt->next = que; in enqueue_tail()
313 elt = que->next; in dequeue_head()
398 n_elt = elt->next; in re_queue_head()
404 n_elt = que->next; in re_queue_head()
408 que->next = elt; in re_queue_head()
438 elt->next = que; in re_queue_tail()
474 for (qe = (head)->next; qe != (head); qe = (qe)->next)
492 for (queue_entry_t _ne = ((head)->next)->next, \
[all …]
/xnu-11215/iokit/Kernel/
H A DIOPlatformActions.cpp89 iocpu_platform_action_entry_t * next; in iocpu_add_platform_action() local
93 if (next->priority > entry->priority) { in iocpu_add_platform_action()
113 iocpu_platform_action_entry_t * next; in iocpu_run_platform_actions() local
118 uint32_t pri = (next->priority < 0) ? -next->priority : next->priority; in iocpu_run_platform_actions()
121 next->callout_in_progress = TRUE; in iocpu_run_platform_actions()
122 …ret = (*next->action)(next->refcon0, next->refcon1, pri, param1, param2, param3, next->name, platf… in iocpu_run_platform_actions()
123 next->callout_in_progress = FALSE; in iocpu_run_platform_actions()
125 …ret = (*next->action)(next->refcon0, next->refcon1, pri, param1, param2, param3, next->name, platf… in iocpu_run_platform_actions()
168 if (!gActionQueues[kQueuePanic].next) { in IOCPURunPlatformPanicActions()
348 iocpu_platform_action_entry_t * next; in IORemoveServicePlatformActions() local
[all …]
H A DIOWorkLoop.cpp218 next = event->getNext(); in releaseEventChain()
227 if (next) { in releaseEventChain()
228 next->retain(); in releaseEventChain()
602 for (event = eventChain; (next = event->getNext()); event = next) { in _maintRequest()
613 for (event = passiveEventChain; (next = event->getNext()); event = next) { in _maintRequest()
635 while ((next = event->getNext()) && (next != inEvent)) { in _maintRequest()
636 event = next; in _maintRequest()
640 if (!next) { in _maintRequest()
654 while ((next = event->getNext()) && (next != inEvent)) { in _maintRequest()
655 event = next; in _maintRequest()
[all …]
H A DIOPMPowerSourceList.cpp157 IOPMPowerSource * next = firstItem; in free() local
159 while (next != NULL) { in free()
160 firstItem = next->nextInList; in free()
162 next->release(); in free()
163 next = firstItem; in free()
H A DIORegistryEntry.cpp1634 if (next) { in fromPath()
1635 where = next; in fromPath()
1637 } while (next); in fromPath()
2283 next->retain(); in detachAll()
2305 next = this; in getDepth()
2390 next = where; in isValid()
2400 next = next->next; in isValid()
2507 if (next) { in getNextObjectFlat()
2518 return next; in getNextObjectFlat()
2530 if (next) { in getNextObjectRecursive()
[all …]
H A DIOPMinformeeList.cpp250 IOPMinformee * next = firstItem; in free() local
252 while (next != NULL) { in free()
253 firstItem = next->nextInList; in free()
255 next->release(); in free()
256 next = firstItem; in free()
/xnu-11215/EXTERNAL_HEADERS/mach-o/
H A Dfixup-chains.h113 next : 11, // 4 or 8-byte stide member
124 next : 11, // 4 or 8-byte stide member
136 next : 11, // 4 or 8-byte stide member
160 next : 12, // 4-byte stride member
171 next : 11, // 8-byte stide member
184 next : 11, // 8-byte stide member
196 next : 12, // 4-byte stride member
220 next : 5, // 4-byte stride member
229 next : 5, // 4-byte stride member
237 next : 2; // 4-byte stride member
[all …]
/xnu-11215/osfmk/vm/
H A Dvm_map_store_ll.c35 vm_map_entry_t entry, next; in first_free_is_valid_ll() local
38 next = entry->vme_next; in first_free_is_valid_ll()
41 (vm_map_trunc_page(next->vme_start, map_page_mask) == in first_free_is_valid_ll()
43 next != vm_map_to_entry(map))) { in first_free_is_valid_ll()
44 entry = next; in first_free_is_valid_ll()
45 next = entry->vme_next; in first_free_is_valid_ll()
113 vm_map_entry_t next; in update_first_free_ll() local
119 next = new_first_free->vme_next; in update_first_free_ll()
124 next != vm_map_to_entry(map))) { in update_first_free_ll()
125 new_first_free = next; in update_first_free_ll()
[all …]
H A Dvm_page.h91 vm_page_packed_t next; /* next element */ member
438 (q)->next = VM_PAGE_PACK_PTR(q); \
463 (head)->next = __pck_elt; \
467 __prev->field.next = __pck_elt; \
470 (elt)->field.next = __pck_head; \
531 vm_page_packed_t __pck_next = (head)->next; \
603 (entry) = (vm_page_t)VM_PAGE_UNPACK_PTR((head)->next); \
604 __pck_next = (entry)->field.next; \
613 (head)->next = __pck_next; \
614 (entry)->field.next = 0; \
[all …]
H A Dvm_page_internal.h175 vm_page_queue_entry_t next; in vm_page_remque() local
185 next->prev = prev_pck; in vm_page_remque()
186 prev->next = next_pck; in vm_page_remque()
188 elt->next = 0; in vm_page_remque()
204 vm_page_queue_entry_t next; in vm_page_queue_enter_clump() local
261 next = (vm_page_queue_entry_t)VM_PAGE_UNPACK_PTR(prev->next); in vm_page_queue_enter_clump()
262 elt->vmp_pageq.next = prev->next; in vm_page_queue_enter_clump()
263 elt->vmp_pageq.prev = next->prev; in vm_page_queue_enter_clump()
264 prev->next = next->prev = VM_PAGE_PACK_PTR(elt); in vm_page_queue_enter_clump()
286 first_prev->next = last->next; in vm_page_queue_enter_clump()
[all …]
H A Dvm_purgeable.c65 token_idx_t next; member
131 if (tokens[token].next == 0) { in vm_purgeable_token_check_queue()
136 token = tokens[token].next; in vm_purgeable_token_check_queue()
271 tokens[token].next = 0; in vm_purgeable_token_add()
404 tokens[new_tail].next = 0; in vm_purgeable_token_remove_last()
639 tokens[token].next = 0; in vm_purgeable_token_choose_and_delete_ripe()
772 object->objq.next = NULL; in vm_purgeable_object_find_and_lock()
1023 object->objq.next = NULL; in vm_purgeable_object_add()
1095 object->objq.next = NULL; in vm_purgeable_object_remove()
1306 object->objq.next = NULL; in vm_purgeable_queue_purge_task_owned()
[all …]
/xnu-11215/libkern/zlib/
H A Dinfback.c111 static code *next; in fixedtables() local
119 next = fixed; in fixedtables()
120 lenfix = next; in fixedtables()
127 distfix = next; in fixedtables()
150 next = strm->next_in; \
161 strm->next_in = next; \
179 have = in(in_desc, &next); \
181 next = Z_NULL; \
297 next = strm->next_in; in inflateBack()
364 next += copy; in inflateBack()
[all …]
H A Dinflate.c240 static code *next; in fixedtables() local
248 next = fixed; in fixedtables()
249 lenfix = next; in fixedtables()
256 distfix = next; in fixedtables()
744 next += copy; in inflate()
1285 unsigned next; in syncsearch() local
1288 next = 0; in syncsearch()
1292 else if (buf[next]) in syncsearch()
1296 next++; in syncsearch()
1299 return next; in syncsearch()
[all …]
H A Dinftrees.c78 code FAR *next; /* next available space in table */ in inflate_table() local
226 next = *table; /* current table to fill in */ in inflate_table()
260 next[(huff >> drop) + fill] = this; in inflate_table()
288 next += min; /* here min is 1 << curr */ in inflate_table()
309 (*table)[low].val = (unsigned short)(next - *table); in inflate_table()
328 next = *table; in inflate_table()
333 next[huff >> drop] = this; in inflate_table()
/xnu-11215/bsd/dev/dtrace/
H A Ddtrace_ptss.c71 page->next = p->p_dtrace_ptss_pages; in dtrace_ptss_claim_entry_locked()
76 page->entries[DTRACE_PTSS_ENTRIES_PER_PAGE - 1].next = p->p_dtrace_ptss_free_list; in dtrace_ptss_claim_entry_locked()
77 } while (!OSCompareAndSwapPtr((void *)page->entries[DTRACE_PTSS_ENTRIES_PER_PAGE - 1].next, in dtrace_ptss_claim_entry_locked()
86 …if (!OSCompareAndSwapPtr((void *)temp, (void *)temp->next, (void * volatile *)&p->p_dtrace_ptss_fr… in dtrace_ptss_claim_entry_locked()
147 e->next = p->p_dtrace_ptss_free_list; in dtrace_ptss_release_entry()
148 …} while (!OSCompareAndSwapPtr((void *)e->next, (void *)e, (void * volatile *)&p->p_dtrace_ptss_fre… in dtrace_ptss_release_entry()
234 ptss_page->entries[i].next = &ptss_page->entries[i + 1]; in dtrace_ptss_allocate_page()
238 ptss_page->entries[DTRACE_PTSS_ENTRIES_PER_PAGE - 1].next = NULL; in dtrace_ptss_allocate_page()
322 struct dtrace_ptss_page* next = temp->next; in dtrace_ptss_exec_exit() local
330 temp = next; in dtrace_ptss_exec_exit()
[all …]
/xnu-11215/bsd/net/
H A Dinit.c49 struct init_list_entry *next; member
76 entry->next = list_head; in net_init_add()
78 if (entry->next == LIST_RAN) { in net_init_add()
83 } while (!os_atomic_cmpxchg(&list_head, entry->next, entry, acq_rel)); in net_init_add()
106 backward_head = current->next; in net_init_run()
107 current->next = forward_head; in net_init_run()
114 forward_head = current->next; in net_init_run()
/xnu-11215/libkern/c++/
H A Dpriority_queue.cpp180 parent->next = NULL; in merge_pair_inline()
210 entry_t pair_item_b = elt->next; in meld_pair()
219 elt = pair_item_b->next; in meld_pair()
239 e->next = e->prev = NULL; in list_clear()
252 elt->prev->next = elt->next; in list_remove()
255 if (elt->next != NULL) { in list_remove()
256 elt->next->prev = elt->prev; in list_remove()
339 tail->next = child_list;
340 while (tail->next) {
341 tail = tail->next;
[all …]
H A DOSSerializeBinary.cpp372 const uint32_t * next; in OSUnserializeBinary() local
399 next = (typeof(next))(((uintptr_t) buffer) + bufferPos); in OSUnserializeBinary()
416 bufferPos += sizeof(*next); in OSUnserializeBinary()
420 key = *next++; in OSUnserializeBinary()
461 value.value = next[1]; in OSUnserializeBinary()
463 value.value |= next[0]; in OSUnserializeBinary()
478 next += 2; in OSUnserializeBinary()
493 next += wordLen; in OSUnserializeBinary()
502 next += wordLen; in OSUnserializeBinary()
511 next += wordLen; in OSUnserializeBinary()
[all …]
/xnu-11215/bsd/kern/
H A Dsysv_msg.c342 short next; in msg_freehdr() local
346 next = msgmaps[msghdr->msg_spot].next; in msg_freehdr()
720 short next; in msgsnd_nocancel() local
960 if (next <= -1) { in msgsnd_nocancel()
969 free_msgmaps = msgmaps[next].next; in msgsnd_nocancel()
971 msgmaps[next].next = msghdr->msg_spot; in msgsnd_nocancel()
1032 if (next <= -1) { in msgsnd_nocancel()
1055 next = msgmaps[next].next; in msgsnd_nocancel()
1057 if (next != -1) { in msgsnd_nocancel()
1150 short next; in msgrcv_nocancel() local
[all …]

12345678910