Lines Matching refs:packet
71 t->callback.with_tstamp(card, rcode, t->packet.timestamp, response_tstamp, NULL, 0, in close_transaction()
93 if (card->driver->cancel_packet(card, &transaction->packet) == 0) in fw_cancel_transaction()
101 if (transaction->packet.ack == 0) { in fw_cancel_transaction()
103 tstamp = transaction->packet.timestamp; in fw_cancel_transaction()
130 t->callback.with_tstamp(card, RCODE_CANCELLED, t->packet.timestamp, in split_transaction_timeout_callback()
150 static void transmit_complete_callback(struct fw_packet *packet, in transmit_complete_callback() argument
154 container_of(packet, struct fw_transaction, packet); in transmit_complete_callback()
156 trace_async_request_outbound_complete((uintptr_t)t, card->index, packet->generation, in transmit_complete_callback()
157 packet->speed, status, packet->timestamp); in transmit_complete_callback()
161 close_transaction(t, card, RCODE_COMPLETE, packet->timestamp); in transmit_complete_callback()
166 compute_split_timeout_timestamp(card, packet->timestamp) & 0xffff; in transmit_complete_callback()
173 close_transaction(t, card, RCODE_BUSY, packet->timestamp); in transmit_complete_callback()
176 close_transaction(t, card, RCODE_DATA_ERROR, packet->timestamp); in transmit_complete_callback()
179 close_transaction(t, card, RCODE_TYPE_ERROR, packet->timestamp); in transmit_complete_callback()
186 close_transaction(t, card, status, packet->timestamp); in transmit_complete_callback()
191 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel, in fw_fill_request() argument
200 packet->header[0] = destination_id; in fw_fill_request()
201 isoc_header_set_data_length(packet->header, length); in fw_fill_request()
202 isoc_header_set_tcode(packet->header, TCODE_STREAM_DATA); in fw_fill_request()
203 packet->header_length = 4; in fw_fill_request()
204 packet->payload = payload; in fw_fill_request()
205 packet->payload_length = length; in fw_fill_request()
216 async_header_set_retry(packet->header, RETRY_X); in fw_fill_request()
217 async_header_set_tlabel(packet->header, tlabel); in fw_fill_request()
218 async_header_set_tcode(packet->header, tcode); in fw_fill_request()
219 async_header_set_destination(packet->header, destination_id); in fw_fill_request()
220 async_header_set_source(packet->header, source_id); in fw_fill_request()
221 async_header_set_offset(packet->header, offset); in fw_fill_request()
225 async_header_set_quadlet_data(packet->header, *(u32 *)payload); in fw_fill_request()
226 packet->header_length = 16; in fw_fill_request()
227 packet->payload_length = 0; in fw_fill_request()
232 async_header_set_data_length(packet->header, length); in fw_fill_request()
233 async_header_set_extended_tcode(packet->header, ext_tcode); in fw_fill_request()
234 packet->header_length = 16; in fw_fill_request()
235 packet->payload = payload; in fw_fill_request()
236 packet->payload_length = length; in fw_fill_request()
240 packet->header_length = 12; in fw_fill_request()
241 packet->payload_length = 0; in fw_fill_request()
245 async_header_set_data_length(packet->header, length); in fw_fill_request()
246 async_header_set_extended_tcode(packet->header, ext_tcode); in fw_fill_request()
247 packet->header_length = 16; in fw_fill_request()
248 packet->payload_length = 0; in fw_fill_request()
255 packet->speed = speed; in fw_fill_request()
256 packet->generation = generation; in fw_fill_request()
257 packet->ack = 0; in fw_fill_request()
258 packet->payload_mapped = false; in fw_fill_request()
372 fw_fill_request(&t->packet, tcode, t->tlabel, destination_id, card->node_id, generation, in __fw_send_request()
374 t->packet.callback = transmit_complete_callback; in __fw_send_request()
381 t->packet.header, payload, in __fw_send_request()
384 card->driver->send_request(card, &t->packet); in __fw_send_request()
443 static void transmit_phy_packet_callback(struct fw_packet *packet, in transmit_phy_packet_callback() argument
446 trace_async_phy_outbound_complete((uintptr_t)packet, card->index, packet->generation, status, in transmit_phy_packet_callback()
447 packet->timestamp); in transmit_phy_packet_callback()
676 static void free_response_callback(struct fw_packet *packet, in free_response_callback() argument
679 struct fw_request *request = container_of(packet, struct fw_request, response); in free_response_callback()
681 trace_async_response_outbound_complete((uintptr_t)request, card->index, packet->generation, in free_response_callback()
682 packet->speed, status, packet->timestamp); in free_response_callback()
1140 card->driver->cancel_packet(card, &t->packet); in fw_core_handle_response()
1145 t->callback.with_tstamp(card, rcode, t->packet.timestamp, p->timestamp, data, in fw_core_handle_response()