Lines Matching refs:driver
29 #define dsc_driver_trans_start(driver) dsc_driver_trans_start(driver, __func__) argument
33 #define dsc_driver_trans_start_wait(driver) \ argument
34 dsc_driver_trans_start_wait(driver, "")
40 static struct dsc_psoc *nth_psoc(struct dsc_driver *driver, int n) in nth_psoc() argument
48 dsc_for_each_driver_psoc(driver, psoc) { in nth_psoc()
82 static void __dsc_tree_destroy(struct dsc_driver *driver) in __dsc_tree_destroy() argument
87 QDF_BUG(driver); in __dsc_tree_destroy()
89 qdf_list_for_each_del(&driver->psocs, psoc, next_psoc, node) { in __dsc_tree_destroy()
99 dsc_driver_destroy(&driver); in __dsc_tree_destroy()
107 struct dsc_driver *driver; in __dsc_tree_create() local
110 status = dsc_driver_create(&driver); in __dsc_tree_create()
119 status = dsc_psoc_create(driver, &psoc); in __dsc_tree_create()
137 *out_driver = driver; in __dsc_tree_create()
142 __dsc_tree_destroy(driver); in __dsc_tree_create()
151 struct dsc_driver *driver; in dsc_test_create_destroy() local
155 status = __dsc_tree_create(&driver, 2, 2); in dsc_test_create_destroy()
161 __dsc_tree_destroy(driver); in dsc_test_create_destroy()
190 struct dsc_driver *driver; in dsc_test_driver_trans_blocks() local
198 status = __dsc_tree_create(&driver, 2, 2); in dsc_test_driver_trans_blocks()
206 action_expect(driver, trans, QDF_STATUS_SUCCESS, errors); in dsc_test_driver_trans_blocks()
209 action_expect(driver, trans, QDF_STATUS_E_AGAIN, errors); in dsc_test_driver_trans_blocks()
210 action_expect(driver, op, QDF_STATUS_E_AGAIN, errors); in dsc_test_driver_trans_blocks()
213 dsc_for_each_driver_psoc(driver, psoc) { in dsc_test_driver_trans_blocks()
226 dsc_driver_trans_stop(driver); in dsc_test_driver_trans_blocks()
228 __dsc_tree_destroy(driver); in dsc_test_driver_trans_blocks()
240 struct dsc_driver *driver; in dsc_test_psoc_trans_blocks() local
248 status = __dsc_tree_create(&driver, 2, 2); in dsc_test_psoc_trans_blocks()
256 psoc = nth_psoc(driver, 1); in dsc_test_psoc_trans_blocks()
260 action_expect(driver, trans, QDF_STATUS_E_AGAIN, errors); in dsc_test_psoc_trans_blocks()
261 action_expect(driver, op, QDF_STATUS_E_AGAIN, errors); in dsc_test_psoc_trans_blocks()
294 psoc = nth_psoc(driver, 2); in dsc_test_psoc_trans_blocks()
298 action_expect(driver, trans, QDF_STATUS_E_AGAIN, errors); in dsc_test_psoc_trans_blocks()
299 action_expect(driver, op, QDF_STATUS_E_AGAIN, errors); in dsc_test_psoc_trans_blocks()
313 dsc_for_each_driver_psoc(driver, psoc) in dsc_test_psoc_trans_blocks()
316 __dsc_tree_destroy(driver); in dsc_test_psoc_trans_blocks()
328 struct dsc_driver *driver; in dsc_test_vdev_trans_blocks() local
336 status = __dsc_tree_create(&driver, 2, 2); in dsc_test_vdev_trans_blocks()
345 dsc_for_each_driver_psoc(driver, psoc) { in dsc_test_vdev_trans_blocks()
351 action_expect(driver, trans, QDF_STATUS_E_AGAIN, errors); in dsc_test_vdev_trans_blocks()
352 action_expect(driver, op, QDF_STATUS_E_AGAIN, errors); in dsc_test_vdev_trans_blocks()
355 dsc_for_each_driver_psoc(driver, psoc) { in dsc_test_vdev_trans_blocks()
368 dsc_for_each_driver_psoc(driver, psoc) { in dsc_test_vdev_trans_blocks()
373 __dsc_tree_destroy(driver); in dsc_test_vdev_trans_blocks()
397 struct dsc_driver *driver; member
406 struct dsc_driver *driver = ctx->driver; in dsc_thread_ops() local
407 struct dsc_psoc *psoc = nth_psoc(driver, 1); in dsc_thread_ops()
414 dsc_assert_success(dsc_driver_op_start(driver)); in dsc_thread_ops()
423 while (!trans_waiting(driver)) in dsc_thread_ops()
435 dsc_driver_op_stop(driver); in dsc_thread_ops()
451 struct dsc_driver *driver = ctx->driver; in dsc_thread_vdev_trans() local
452 struct dsc_psoc *psoc = nth_psoc(driver, 1); in dsc_thread_vdev_trans()
492 struct dsc_vdev *vdev = nth_vdev(nth_psoc(ctx->driver, 1), 1); in dsc_thread_vdev_wait()
517 struct dsc_psoc *psoc = nth_psoc(ctx->driver, 1); in dsc_thread_psoc_wait()
544 struct dsc_driver *driver = ctx->driver; in dsc_thread_driver_wait() local
545 struct dsc_psoc *psoc = nth_psoc(driver, 1); in dsc_thread_driver_wait()
554 dsc_assert_success(dsc_driver_trans_start_wait(driver)); in dsc_thread_driver_wait()
558 dsc_driver_wait_for_ops(driver); in dsc_thread_driver_wait()
561 dsc_driver_trans_stop(driver); in dsc_thread_driver_wait()
581 status = __dsc_tree_create(&ctx.driver, 1, 2); in dsc_test_trans_wait()
609 __dsc_tree_destroy(ctx.driver); in dsc_test_trans_wait()