Lines Matching refs:thread_qos_t
101 thread_qos_t at_qos, struct uthread *uth,
336 _wq_bucket(thread_qos_t qos) in _wq_bucket()
349 ((thread_qos_t)((tha) >> WQ_THACTIVE_QOS_SHIFT))
351 static inline thread_qos_t
363 thread_qos_t old_qos, new_qos; in _wq_thactive_refresh_best_constrained_req_qos()
388 _wq_thactive_offset_for_qos(thread_qos_t qos) in _wq_thactive_offset_for_qos()
396 _wq_thactive_inc(struct workqueue *wq, thread_qos_t qos) in _wq_thactive_inc()
403 _wq_thactive_dec(struct workqueue *wq, thread_qos_t qos) in _wq_thactive_dec()
411 thread_qos_t old_qos, thread_qos_t new_qos) in _wq_thactive_move()
422 thread_qos_t qos, uint32_t *busycount, uint32_t *max_busycount) in _wq_thactive_aggregate_downto_qos()
462 _wq_cooperative_queue_scheduled_count_dec(struct workqueue *wq, thread_qos_t qos) in _wq_cooperative_queue_scheduled_count_dec()
471 _wq_cooperative_queue_scheduled_count_inc(struct workqueue *wq, thread_qos_t qos) in _wq_cooperative_queue_scheduled_count_inc()
536 static inline thread_qos_t
542 static inline thread_qos_t
625 thread_qos_t old_bucket = old_pri.qos_bucket; in workq_thread_update_bucket()
626 thread_qos_t new_bucket = workq_pri_bucket(new_pri); in workq_thread_update_bucket()
701 thread_qos_t qos = req ? req->tr_qos : WORKQ_THREAD_QOS_CLEANUP; in workq_thread_reset_pri()
835 thread_qos_t qos = kqr->tr_kq_qos_index; in workq_thread_set_max_qos()
1172 thread_qos_t qos = workq_pri_override(uth->uu_workq_pri); in workq_unpark_for_death_and_unlock()
1257 thread_qos_t thread_qos = uth->uu_workq_pri.qos_req; in workq_push_idle_thread()
1385 thread_qos_t qos = req->tr_qos; in workq_priority_for_req()
1411 workq_num_cooperative_threads_scheduled_to_qos_internal(struct workqueue *wq, thread_qos_t qos) in workq_num_cooperative_threads_scheduled_to_qos_internal()
1415 for (thread_qos_t cur_qos = WORKQ_THREAD_QOS_MAX; cur_qos >= qos; cur_qos--) { in workq_num_cooperative_threads_scheduled_to_qos_internal()
1425 workq_num_cooperative_threads_scheduled_to_qos_locked(struct workqueue *wq, thread_qos_t qos) in workq_num_cooperative_threads_scheduled_to_qos_locked()
1440 for (thread_qos_t qos = WORKQ_THREAD_QOS_MAX; qos >= WORKQ_THREAD_QOS_MIN; qos--) { in workq_has_cooperative_thread_requests()
1476 thread_qos_t old_best_req_qos = wq->wq_cooperative_queue_best_req_qos; in _wq_cooperative_queue_refresh_best_req_qos()
1490 thread_qos_t highest_qos_with_no_scheduled = THREAD_QOS_UNSPECIFIED; in _wq_cooperative_queue_refresh_best_req_qos()
1491 thread_qos_t highest_qos_req_with_width = THREAD_QOS_UNSPECIFIED; in _wq_cooperative_queue_refresh_best_req_qos()
1493 thread_qos_t highest_qos_req = THREAD_QOS_UNSPECIFIED; in _wq_cooperative_queue_refresh_best_req_qos()
1497 for (thread_qos_t qos = WORKQ_THREAD_QOS_MAX; qos >= WORKQ_THREAD_QOS_MIN; qos--) { in _wq_cooperative_queue_refresh_best_req_qos()
1564 workq_cooperative_allowance(struct workqueue *wq, thread_qos_t qos, struct uthread *uth, in workq_cooperative_allowance()
1947 thread_qos_t req_qos, qos = uth->uu_workq_pri.qos_bucket; in workq_sched_callback()
2116 for (thread_qos_t qos = WORKQ_THREAD_QOS_MIN; qos <= WORKQ_THREAD_QOS_MAX; qos++) { in workq_open()
2137 thread_qos_t mgr_priority_hint = task_get_default_manager_qos(current_task()); in workq_open()
2387 thread_qos_t qos_override = THREAD_QOS_UNSPECIFIED; in bsdthread_set_self()
2475 new_pri.qos_req = (thread_qos_t)new_policy.qos_tier; in bsdthread_set_self()
2617 thread_qos_t qos = _pthread_priority_thread_qos(pp); in bsdthread_add_explicit_override()
2659 thread_qos_t qos_override = _pthread_priority_thread_qos(pp); in workq_thread_add_dispatch_override()
2778 bsdthread_get_max_parallelism(thread_qos_t qos, unsigned long flags, in bsdthread_get_max_parallelism()
2861 return bsdthread_get_max_parallelism((thread_qos_t)uap->arg1, in bsdthread_ctl()
2916 thread_qos_t qos = _pthread_priority_thread_qos(pp); in workq_reqthreads()
3052 struct turnstile *workloop_ts, thread_qos_t qos, in workq_kern_threadreq_initiate()
3146 thread_qos_t qos, workq_kern_threadreq_flags_t flags) in workq_kern_threadreq_modify()
3269 thread_qos_t qos = workq_pri_override(uth->uu_workq_pri); in workq_kern_bound_thread_reset_pri()
3362 thread_qos_t qos = thread_workq_qos_for_pri(trp.trp_pri); in workq_kern_threadreq_permanent_bind()
3543 thread_qos_t qos = uth->uu_workq_pri.qos_bucket; in workq_kern_quantum_expiry_reevaluate()
3774 thread_qos_t qos = _pthread_priority_thread_qos(pri); in workq_kernreturn()
3815 thread_qos_t qos = _pthread_priority_thread_qos(arg2); in workq_kernreturn()
3979 workq_constrained_allowance(struct workqueue *wq, thread_qos_t at_qos, in workq_constrained_allowance()
4110 thread_qos_t qos = wq->wq_cooperative_queue_best_req_qos; in workq_cooperative_queue_best_req()
4129 thread_qos_t qos = THREAD_QOS_UNSPECIFIED; in workq_threadreq_select_for_creator()
4249 struct uthread *uth, thread_qos_t old_thread_qos, workq_tr_flags_t tr_flags) in workq_adjust_cooperative_constrained_schedule_counts()
4267 thread_qos_t new_thread_qos = uth->uu_workq_pri.qos_req; in workq_adjust_cooperative_constrained_schedule_counts()
4320 thread_qos_t qos = THREAD_QOS_UNSPECIFIED; in workq_threadreq_select()
4810 thread_qos_t qos = workq_pri_override(uth->uu_workq_pri); in workq_creator_should_yield()