Lines Matching refs:uthread

91 static void workq_bound_thread_setup_and_run(struct uthread *uth, int setup_flags) __dead2;
96 static bool workq_threadreq_admissible(struct workqueue *wq, struct uthread *uth,
100 thread_qos_t at_qos, struct uthread *uth,
294 workq_parked_wait_event(struct uthread *uth) in workq_parked_wait_event()
300 workq_thread_wakeup(struct uthread *uth) in workq_thread_wakeup()
548 workq_thread_needs_params_change(workq_threadreq_t req, struct uthread *uth) in workq_thread_needs_params_change()
584 workq_thread_needs_priority_change(workq_threadreq_t req, struct uthread *uth) in workq_thread_needs_priority_change()
618 workq_thread_update_bucket(proc_t p, struct workqueue *wq, struct uthread *uth, in workq_thread_update_bucket()
664 workq_thread_reset_cpupercent(workq_threadreq_t req, struct uthread *uth) in workq_thread_reset_cpupercent()
696 workq_thread_reset_pri(struct workqueue *wq, struct uthread *uth, in workq_thread_reset_pri()
832 struct uthread *uth = current_uthread(); in workq_thread_set_max_qos()
849 static inline struct uthread *
852 struct uthread *uth = TAILQ_LAST(&wq->wq_thidlelist, workq_uthread_head); in workq_oldest_killable_idle_thread()
886 workq_should_kill_idle_thread(struct workqueue *wq, struct uthread *uth, in workq_should_kill_idle_thread()
924 struct uthread *uth; in workq_death_policy_evaluate()
958 workq_thread_terminate(struct proc *p, struct uthread *uth) in workq_thread_terminate()
998 static struct uthread *
1002 struct uthread *uth; in workq_pop_idle_thread()
1043 struct uthread *uth = get_bsdthread_info(th); in workq_thread_init_and_wq_lock()
1104 struct uthread *uth = get_bsdthread_info(th); in workq_add_new_idle_thread()
1132 workq_thread_is_overcommit(struct uthread *uth) in workq_thread_is_overcommit()
1138 workq_thread_is_nonovercommit(struct uthread *uth) in workq_thread_is_nonovercommit()
1145 workq_thread_is_cooperative(struct uthread *uth) in workq_thread_is_cooperative()
1151 workq_thread_is_permanently_bound(struct uthread *uth) in workq_thread_is_permanently_bound()
1157 workq_thread_set_type(struct uthread *uth, uint16_t flags) in workq_thread_set_type()
1169 struct uthread *uth, uint32_t death_flags, uint32_t setup_flags) in workq_unpark_for_death_and_unlock()
1247 workq_push_idle_thread(proc_t p, struct workqueue *wq, struct uthread *uth, in workq_push_idle_thread()
1306 struct uthread *oldest = workq_oldest_killable_idle_thread(wq); in workq_push_idle_thread()
1335 struct uthread *tail = TAILQ_LAST(&wq->wq_thidlelist, workq_uthread_head); in workq_push_idle_thread()
1563 workq_cooperative_allowance(struct workqueue *wq, thread_qos_t qos, struct uthread *uth, in workq_cooperative_allowance()
1944 struct uthread *uth = get_bsdthread_info(thread); in workq_sched_callback()
2265 struct uthread *uth, *tmp; in workq_exit()
2324 bsdthread_part_of_cooperative_workqueue(struct uthread *uth) in bsdthread_part_of_cooperative_workqueue()
2348 struct uthread *uth = get_bsdthread_info(th); in bsdthread_set_self()
2669 struct uthread *uth = get_bsdthread_info(thread); in workq_thread_add_dispatch_override()
2724 struct uthread *uth = get_bsdthread_info(thread); in workq_thread_reset_dispatch_override()
2761 struct uthread *uth = get_bsdthread_info(thread); in workq_thread_allow_kill()
2891 struct uthread *uth, uint32_t setup_flags);
2895 struct uthread *uth, uint32_t setup_flags);
2897 static void workq_setup_and_run(proc_t p, struct uthread *uth, int flags) __dead2;
3006 struct uthread *uth; in workq_reqthreads()
3059 struct uthread *uth = NULL; in workq_kern_threadreq_initiate()
3254 workq_kern_bound_thread_reset_pri(workq_threadreq_t req, struct uthread *uth) in workq_kern_bound_thread_reset_pri()
3378 struct uthread *uth = get_bsdthread_info(new_thread); in workq_kern_threadreq_permanent_bind()
3407 struct uthread *uth = get_bsdthread_info(kqr->tr_thread); in workq_kern_bound_thread_wakeup()
3434 struct uthread *uth = get_bsdthread_info(kqr->tr_thread); in workq_kern_bound_thread_park()
3473 struct uthread *uth = get_bsdthread_info(kqr->tr_thread); in workq_kern_bound_thread_terminate()
3536 struct uthread *uth = get_bsdthread_info(thread); in workq_kern_quantum_expiry_reevaluate()
3607 struct uthread *uth = get_bsdthread_info(th); in workq_thread_return()
3811 struct uthread *uth = get_bsdthread_info(th); in workq_kernreturn()
3874 workq_park_and_unlock(proc_t p, struct workqueue *wq, struct uthread *uth, in workq_park_and_unlock()
3969 workq_may_start_event_mgr_thread(struct workqueue *wq, struct uthread *uth) in workq_may_start_event_mgr_thread()
3983 struct uthread *uth, bool may_start_timer, bool record_failed_allowance) in workq_constrained_allowance()
4067 workq_threadreq_admissible(struct workqueue *wq, struct uthread *uth, in workq_threadreq_admissible()
4088 workq_cooperative_queue_best_req(struct workqueue *wq, struct uthread *uth) in workq_cooperative_queue_best_req()
4252 struct uthread *uth, thread_qos_t old_thread_qos, workq_tr_flags_t tr_flags) in workq_adjust_cooperative_constrained_schedule_counts()
4319 workq_threadreq_select(struct workqueue *wq, struct uthread *uth) in workq_threadreq_select()
4458 struct uthread *uth; in workq_schedule_creator()
4572 struct uthread *uth, uint32_t setup_flags) in workq_select_threadreq_or_park_and_unlock()
4786 struct uthread *uth, uint32_t setup_flags) in workq_unpark_select_threadreq_or_park_and_unlock()
4811 workq_creator_should_yield(struct workqueue *wq, struct uthread *uth) in workq_creator_should_yield()
4853 struct uthread *uth = get_bsdthread_info(th); in workq_unpark_continue()
4903 workq_setup_and_run(proc_t p, struct uthread *uth, int setup_flags) in workq_setup_and_run()
4990 workq_bound_thread_setup_and_run(struct uthread *uth, int setup_flags) in workq_bound_thread_setup_and_run()
5032 struct uthread *uth = get_bsdthread_info(current_thread()); in workq_bound_thread_initialize_and_unpark_continue()
5117 struct uthread *uth = get_bsdthread_info(current_thread()); in workq_bound_thread_unpark_continue()