Lines Matching refs:tran
229 struct dsc_tran *tran = opaque_tran; in __dsc_dbg_tran_wait_timeout() local
231 qdf_print_thread_trace(tran->thread); in __dsc_dbg_tran_wait_timeout()
233 tran->desc, DSC_TRANS_WAIT_TIMEOUT_MS); in __dsc_dbg_tran_wait_timeout()
242 static QDF_STATUS __dsc_dbg_tran_wait_timeout_start(struct dsc_tran *tran) in __dsc_dbg_tran_wait_timeout_start() argument
246 tran->thread = qdf_get_current_task(); in __dsc_dbg_tran_wait_timeout_start()
247 status = qdf_timer_init(NULL, &tran->timeout_timer, in __dsc_dbg_tran_wait_timeout_start()
248 __dsc_dbg_tran_wait_timeout, tran, in __dsc_dbg_tran_wait_timeout_start()
253 qdf_timer_start(&tran->timeout_timer, DSC_TRANS_WAIT_TIMEOUT_MS); in __dsc_dbg_tran_wait_timeout_start()
264 static void __dsc_dbg_tran_wait_timeout_stop(struct dsc_tran *tran) in __dsc_dbg_tran_wait_timeout_stop() argument
266 qdf_timer_stop(&tran->timeout_timer); in __dsc_dbg_tran_wait_timeout_stop()
267 qdf_timer_free(&tran->timeout_timer); in __dsc_dbg_tran_wait_timeout_stop()
278 __dsc_dbg_tran_wait_timeout_start(struct dsc_tran *tran) in __dsc_dbg_tran_wait_timeout_start() argument
283 static inline void __dsc_dbg_tran_wait_timeout_stop(struct dsc_tran *tran) { } in __dsc_dbg_tran_wait_timeout_stop() argument
319 QDF_STATUS __dsc_trans_queue(struct dsc_trans *trans, struct dsc_tran *tran, in __dsc_trans_queue() argument
324 tran->abort = false; in __dsc_trans_queue()
325 tran->desc = desc; in __dsc_trans_queue()
326 qdf_event_create(&tran->event); in __dsc_trans_queue()
328 status = __dsc_dbg_tran_wait_timeout_start(tran); in __dsc_trans_queue()
332 qdf_list_insert_back(&trans->queue, &tran->node); in __dsc_trans_queue()
337 qdf_event_destroy(&tran->event); in __dsc_trans_queue()
352 struct dsc_tran *tran; in __dsc_trans_dequeue() local
358 tran = qdf_container_of(node, struct dsc_tran, node); in __dsc_trans_dequeue()
359 __dsc_dbg_tran_wait_timeout_stop(tran); in __dsc_trans_dequeue()
361 return tran; in __dsc_trans_dequeue()
366 struct dsc_tran *tran; in __dsc_trans_abort() local
368 tran = __dsc_trans_dequeue(trans); in __dsc_trans_abort()
369 if (!tran) in __dsc_trans_abort()
372 tran->abort = true; in __dsc_trans_abort()
373 qdf_event_set(&tran->event); in __dsc_trans_abort()
380 struct dsc_tran *tran; in __dsc_trans_trigger() local
382 tran = __dsc_trans_dequeue(trans); in __dsc_trans_trigger()
383 if (!tran) in __dsc_trans_trigger()
386 __dsc_trans_start(trans, tran->desc); in __dsc_trans_trigger()
387 qdf_event_set(&tran->event); in __dsc_trans_trigger()
407 QDF_STATUS __dsc_tran_wait(struct dsc_tran *tran) in __dsc_tran_wait() argument
411 status = qdf_wait_single_event(&tran->event, 0); in __dsc_tran_wait()
412 qdf_event_destroy(&tran->event); in __dsc_tran_wait()
417 if (tran->abort) in __dsc_tran_wait()