Lines Matching refs:sch_ctx
351 static void scheduler_thread_process_queues(struct scheduler_ctx *sch_ctx, in scheduler_thread_process_queues() argument
358 if (!sch_ctx) { in scheduler_thread_process_queues()
368 &sch_ctx->sch_event_flag)) { in scheduler_thread_process_queues()
374 &sch_ctx->sch_event_flag)) { in scheduler_thread_process_queues()
383 msg = scheduler_mq_get(&sch_ctx->queue_ctx.sch_msg_q[i]); in scheduler_thread_process_queues()
390 if (sch_ctx->queue_ctx.scheduler_msg_process_fn[i]) { in scheduler_thread_process_queues()
391 sch_ctx->watchdog_msg_type = msg->type; in scheduler_thread_process_queues()
392 sch_ctx->watchdog_callback = msg->callback; in scheduler_thread_process_queues()
395 qdf_timer_start(&sch_ctx->watchdog_timer, in scheduler_thread_process_queues()
396 sch_ctx->timeout); in scheduler_thread_process_queues()
397 status = sch_ctx->queue_ctx. in scheduler_thread_process_queues()
399 qdf_timer_stop(&sch_ctx->watchdog_timer); in scheduler_thread_process_queues()
404 sch_ctx->queue_ctx.sch_msg_q[i].qid); in scheduler_thread_process_queues()
415 &sch_ctx->sch_event_flag)) { in scheduler_thread_process_queues()
416 qdf_spin_lock(&sch_ctx->sch_thread_lock); in scheduler_thread_process_queues()
417 qdf_event_reset(&sch_ctx->resume_sch_event); in scheduler_thread_process_queues()
421 qdf_spin_unlock(&sch_ctx->sch_thread_lock); in scheduler_thread_process_queues()
423 qdf_wait_single_event(&sch_ctx->resume_sch_event, 0); in scheduler_thread_process_queues()
431 struct scheduler_ctx *sch_ctx = (struct scheduler_ctx *)arg; in scheduler_thread() local
444 qdf_event_set(&sch_ctx->sch_start_event); in scheduler_thread()
451 sch_ctx->sch_wait_queue, in scheduler_thread()
453 &sch_ctx->sch_event_flag) || in scheduler_thread()
455 &sch_ctx->sch_event_flag)); in scheduler_thread()
460 qdf_atomic_clear_bit(MC_POST_EVENT_MASK, &sch_ctx->sch_event_flag); in scheduler_thread()
461 scheduler_thread_process_queues(sch_ctx, &shutdown); in scheduler_thread()
466 qdf_event_set(&sch_ctx->sch_shutdown); in scheduler_thread()