Lines Matching refs:t
75 struct transaction_queue t; in snd_efw_transaction_run() local
79 t.unit = unit; in snd_efw_transaction_run()
80 t.buf = resp; in snd_efw_transaction_run()
81 t.size = resp_size; in snd_efw_transaction_run()
82 t.seqnum = be32_to_cpu(((struct snd_efw_transaction *)cmd)->seqnum) + 1; in snd_efw_transaction_run()
83 t.state = STATE_PENDING; in snd_efw_transaction_run()
84 init_waitqueue_head(&t.wait); in snd_efw_transaction_run()
87 list_add_tail(&t.list, &transaction_queues); in snd_efw_transaction_run()
92 ret = snd_efw_transaction_cmd(t.unit, (void *)cmd, cmd_size); in snd_efw_transaction_run()
96 wait_event_timeout(t.wait, t.state != STATE_PENDING, in snd_efw_transaction_run()
99 if (t.state == STATE_COMPLETE) { in snd_efw_transaction_run()
100 ret = t.size; in snd_efw_transaction_run()
102 } else if (t.state == STATE_BUS_RESET) { in snd_efw_transaction_run()
105 dev_err(&t.unit->device, "EFW transaction timed out\n"); in snd_efw_transaction_run()
112 list_del(&t.list); in snd_efw_transaction_run()
122 struct snd_efw_transaction *t; in copy_resp_to_buf() local
126 t = (struct snd_efw_transaction *)data; in copy_resp_to_buf()
127 length = min_t(size_t, be32_to_cpu(t->length) * sizeof(u32), length); in copy_resp_to_buf()
203 struct transaction_queue *t; in handle_resp_for_kernel() local
207 list_for_each_entry(t, &transaction_queues, list) { in handle_resp_for_kernel()
208 device = fw_parent_device(t->unit); in handle_resp_for_kernel()
216 if ((t->state == STATE_PENDING) && (t->seqnum == seqnum)) { in handle_resp_for_kernel()
217 t->state = STATE_COMPLETE; in handle_resp_for_kernel()
218 t->size = min_t(unsigned int, length, t->size); in handle_resp_for_kernel()
219 memcpy(t->buf, data, t->size); in handle_resp_for_kernel()
220 wake_up(&t->wait); in handle_resp_for_kernel()
293 struct transaction_queue *t; in snd_efw_transaction_bus_reset() local
296 list_for_each_entry(t, &transaction_queues, list) { in snd_efw_transaction_bus_reset()
297 if ((t->unit == unit) && in snd_efw_transaction_bus_reset()
298 (t->state == STATE_PENDING)) { in snd_efw_transaction_bus_reset()
299 t->state = STATE_BUS_RESET; in snd_efw_transaction_bus_reset()
300 wake_up(&t->wait); in snd_efw_transaction_bus_reset()