Lines Matching refs:t

74 	struct transaction_queue t;  in snd_efw_transaction_run()  local
78 t.unit = unit; in snd_efw_transaction_run()
79 t.buf = resp; in snd_efw_transaction_run()
80 t.size = resp_size; in snd_efw_transaction_run()
81 t.seqnum = be32_to_cpu(((struct snd_efw_transaction *)cmd)->seqnum) + 1; in snd_efw_transaction_run()
82 t.state = STATE_PENDING; in snd_efw_transaction_run()
83 init_waitqueue_head(&t.wait); in snd_efw_transaction_run()
86 list_add_tail(&t.list, &transaction_queues); in snd_efw_transaction_run()
91 ret = snd_efw_transaction_cmd(t.unit, (void *)cmd, cmd_size); in snd_efw_transaction_run()
95 wait_event_timeout(t.wait, t.state != STATE_PENDING, in snd_efw_transaction_run()
98 if (t.state == STATE_COMPLETE) { in snd_efw_transaction_run()
99 ret = t.size; in snd_efw_transaction_run()
101 } else if (t.state == STATE_BUS_RESET) { in snd_efw_transaction_run()
104 dev_err(&t.unit->device, "EFW transaction timed out\n"); in snd_efw_transaction_run()
111 list_del(&t.list); in snd_efw_transaction_run()
121 struct snd_efw_transaction *t; in copy_resp_to_buf() local
123 t = (struct snd_efw_transaction *)data; in copy_resp_to_buf()
124 length = min_t(size_t, be32_to_cpu(t->length) * sizeof(u32), length); in copy_resp_to_buf()
201 struct transaction_queue *t; in handle_resp_for_kernel() local
205 list_for_each_entry(t, &transaction_queues, list) { in handle_resp_for_kernel()
206 device = fw_parent_device(t->unit); in handle_resp_for_kernel()
214 if ((t->state == STATE_PENDING) && (t->seqnum == seqnum)) { in handle_resp_for_kernel()
215 t->state = STATE_COMPLETE; in handle_resp_for_kernel()
216 t->size = min_t(unsigned int, length, t->size); in handle_resp_for_kernel()
217 memcpy(t->buf, data, t->size); in handle_resp_for_kernel()
218 wake_up(&t->wait); in handle_resp_for_kernel()
291 struct transaction_queue *t; in snd_efw_transaction_bus_reset() local
294 list_for_each_entry(t, &transaction_queues, list) { in snd_efw_transaction_bus_reset()
295 if ((t->unit == unit) && in snd_efw_transaction_bus_reset()
296 (t->state == STATE_PENDING)) { in snd_efw_transaction_bus_reset()
297 t->state = STATE_BUS_RESET; in snd_efw_transaction_bus_reset()
298 wake_up(&t->wait); in snd_efw_transaction_bus_reset()