Lines Matching refs:t

65 static int try_cancel_split_timeout(struct fw_transaction *t)  in try_cancel_split_timeout()  argument
67 if (t->is_split_transaction) in try_cancel_split_timeout()
68 return del_timer(&t->split_timeout_timer); in try_cancel_split_timeout()
76 struct fw_transaction *t = NULL, *iter; in close_transaction() local
88 t = iter; in close_transaction()
94 if (t) { in close_transaction()
95 if (!t->with_tstamp) { in close_transaction()
96 t->callback.without_tstamp(card, rcode, NULL, 0, t->callback_data); in close_transaction()
98 t->callback.with_tstamp(card, rcode, t->packet.timestamp, response_tstamp, in close_transaction()
99 NULL, 0, t->callback_data); in close_transaction()
147 struct fw_transaction *t = from_timer(t, timer, split_timeout_timer); in split_transaction_timeout_callback() local
148 struct fw_card *card = t->card; in split_transaction_timeout_callback()
152 if (list_empty(&t->link)) { in split_transaction_timeout_callback()
156 list_del(&t->link); in split_transaction_timeout_callback()
157 card->tlabel_mask &= ~(1ULL << t->tlabel); in split_transaction_timeout_callback()
160 if (!t->with_tstamp) { in split_transaction_timeout_callback()
161 t->callback.without_tstamp(card, RCODE_CANCELLED, NULL, 0, t->callback_data); in split_transaction_timeout_callback()
163 t->callback.with_tstamp(card, RCODE_CANCELLED, t->packet.timestamp, in split_transaction_timeout_callback()
164 t->split_timeout_cycle, NULL, 0, t->callback_data); in split_transaction_timeout_callback()
168 static void start_split_transaction_timeout(struct fw_transaction *t, in start_split_transaction_timeout() argument
175 if (list_empty(&t->link) || WARN_ON(t->is_split_transaction)) { in start_split_transaction_timeout()
180 t->is_split_transaction = true; in start_split_transaction_timeout()
181 mod_timer(&t->split_timeout_timer, in start_split_transaction_timeout()
192 struct fw_transaction *t = in transmit_complete_callback() local
197 close_transaction(t, card, RCODE_COMPLETE, packet->timestamp); in transmit_complete_callback()
201 t->split_timeout_cycle = in transmit_complete_callback()
203 start_split_transaction_timeout(t, card); in transmit_complete_callback()
209 close_transaction(t, card, RCODE_BUSY, packet->timestamp); in transmit_complete_callback()
212 close_transaction(t, card, RCODE_DATA_ERROR, packet->timestamp); in transmit_complete_callback()
215 close_transaction(t, card, RCODE_TYPE_ERROR, packet->timestamp); in transmit_complete_callback()
222 close_transaction(t, card, status, packet->timestamp); in transmit_complete_callback()
369 void __fw_send_request(struct fw_card *card, struct fw_transaction *t, int tcode, in __fw_send_request() argument
403 t->node_id = destination_id; in __fw_send_request()
404 t->tlabel = tlabel; in __fw_send_request()
405 t->card = card; in __fw_send_request()
406 t->is_split_transaction = false; in __fw_send_request()
407 timer_setup(&t->split_timeout_timer, split_transaction_timeout_callback, 0); in __fw_send_request()
408 t->callback = callback; in __fw_send_request()
409 t->with_tstamp = with_tstamp; in __fw_send_request()
410 t->callback_data = callback_data; in __fw_send_request()
412 fw_fill_request(&t->packet, tcode, t->tlabel, destination_id, card->node_id, generation, in __fw_send_request()
414 t->packet.callback = transmit_complete_callback; in __fw_send_request()
416 list_add_tail(&t->link, &card->transaction_list); in __fw_send_request()
420 card->driver->send_request(card, &t->packet); in __fw_send_request()
462 struct fw_transaction t; in fw_run_transaction() local
464 timer_setup_on_stack(&t.split_timeout_timer, NULL, 0); in fw_run_transaction()
467 fw_send_request(card, &t, tcode, destination_id, generation, speed, in fw_run_transaction()
470 destroy_timer_on_stack(&t.split_timeout_timer); in fw_run_transaction()
1024 struct fw_transaction *t = NULL, *iter; in fw_core_handle_response() local
1044 t = iter; in fw_core_handle_response()
1050 if (!t) { in fw_core_handle_response()
1090 card->driver->cancel_packet(card, &t->packet); in fw_core_handle_response()
1092 if (!t->with_tstamp) { in fw_core_handle_response()
1093 t->callback.without_tstamp(card, rcode, data, data_length, t->callback_data); in fw_core_handle_response()
1095 t->callback.with_tstamp(card, rcode, t->packet.timestamp, p->timestamp, data, in fw_core_handle_response()
1096 data_length, t->callback_data); in fw_core_handle_response()