Lines Matching refs:ctx

394 #define trans_waiting(ctx) (!qdf_list_empty(&(ctx)->trans.queue))  argument
405 struct thread_ctx *ctx = context; in dsc_thread_ops() local
406 struct dsc_driver *driver = ctx->driver; in dsc_thread_ops()
413 step_assert(ctx->step, 1); in dsc_thread_ops()
417 step_assert(ctx->step, 2); in dsc_thread_ops()
420 qdf_event_set(&ctx->start_vdev_trans); in dsc_thread_ops()
434 step_assert(ctx->step, 8); in dsc_thread_ops()
450 struct thread_ctx *ctx = context; in dsc_thread_vdev_trans() local
451 struct dsc_driver *driver = ctx->driver; in dsc_thread_vdev_trans()
458 dsc_assert_success(dsc_event_wait(&ctx->start_vdev_trans)); in dsc_thread_vdev_trans()
461 step_assert(ctx->step, 3); in dsc_thread_vdev_trans()
464 step_assert(ctx->step, 4); in dsc_thread_vdev_trans()
467 qdf_event_set(&ctx->start_vdev_wait); in dsc_thread_vdev_trans()
476 step_assert(ctx->step, 9); in dsc_thread_vdev_trans()
481 step_assert(ctx->step, 10); in dsc_thread_vdev_trans()
491 struct thread_ctx *ctx = context; in dsc_thread_vdev_wait() local
492 struct dsc_vdev *vdev = nth_vdev(nth_psoc(ctx->driver, 1), 1); in dsc_thread_vdev_wait()
496 dsc_assert_success(dsc_event_wait(&ctx->start_vdev_wait)); in dsc_thread_vdev_wait()
498 step_assert(ctx->step, 5); in dsc_thread_vdev_wait()
502 step_assert(ctx->step, 15); in dsc_thread_vdev_wait()
506 step_assert(ctx->step, 16); in dsc_thread_vdev_wait()
516 struct thread_ctx *ctx = context; in dsc_thread_psoc_wait() local
517 struct dsc_psoc *psoc = nth_psoc(ctx->driver, 1); in dsc_thread_psoc_wait()
525 step_assert(ctx->step, 6); in dsc_thread_psoc_wait()
529 step_assert(ctx->step, 13); in dsc_thread_psoc_wait()
533 step_assert(ctx->step, 14); in dsc_thread_psoc_wait()
543 struct thread_ctx *ctx = context; in dsc_thread_driver_wait() local
544 struct dsc_driver *driver = ctx->driver; in dsc_thread_driver_wait()
552 step_assert(ctx->step, 7); in dsc_thread_driver_wait()
556 step_assert(ctx->step, 11); in dsc_thread_driver_wait()
560 step_assert(ctx->step, 12); in dsc_thread_driver_wait()
577 struct thread_ctx ctx = { 0 }; in dsc_test_trans_wait() local
581 status = __dsc_tree_create(&ctx.driver, 1, 2); in dsc_test_trans_wait()
587 dsc_assert_success(qdf_event_create(&ctx.start_vdev_trans)); in dsc_test_trans_wait()
588 dsc_assert_success(qdf_event_create(&ctx.start_vdev_wait)); in dsc_test_trans_wait()
592 ops_thread = qdf_thread_run(dsc_thread_ops, &ctx); in dsc_test_trans_wait()
593 vdev_trans_thread = qdf_thread_run(dsc_thread_vdev_trans, &ctx); in dsc_test_trans_wait()
594 vdev_wait_thread = qdf_thread_run(dsc_thread_vdev_wait, &ctx); in dsc_test_trans_wait()
595 psoc_wait_thread = qdf_thread_run(dsc_thread_psoc_wait, &ctx); in dsc_test_trans_wait()
596 driver_wait_thread = qdf_thread_run(dsc_thread_driver_wait, &ctx); in dsc_test_trans_wait()
606 qdf_event_destroy(&ctx.start_vdev_wait); in dsc_test_trans_wait()
607 qdf_event_destroy(&ctx.start_vdev_trans); in dsc_test_trans_wait()
609 __dsc_tree_destroy(ctx.driver); in dsc_test_trans_wait()