Lines Matching refs:packet

76 			t->callback.with_tstamp(card, RCODE_CANCELLED, t->packet.timestamp, 0,  in fw_cancel_pending_transactions()
113 t->callback.with_tstamp(card, rcode, t->packet.timestamp, response_tstamp, NULL, 0, in close_transaction()
135 if (card->driver->cancel_packet(card, &transaction->packet) == 0) in fw_cancel_transaction()
143 if (transaction->packet.ack == 0) { in fw_cancel_transaction()
145 tstamp = transaction->packet.timestamp; in fw_cancel_transaction()
171 t->callback.with_tstamp(card, RCODE_CANCELLED, t->packet.timestamp, in split_transaction_timeout_callback()
195 static void transmit_complete_callback(struct fw_packet *packet, in transmit_complete_callback() argument
199 container_of(packet, struct fw_transaction, packet); in transmit_complete_callback()
201 trace_async_request_outbound_complete((uintptr_t)t, card->index, packet->generation, in transmit_complete_callback()
202 packet->speed, status, packet->timestamp); in transmit_complete_callback()
206 close_transaction(t, card, RCODE_COMPLETE, packet->timestamp); in transmit_complete_callback()
214 compute_split_timeout_timestamp(card, packet->timestamp) & 0xffff; in transmit_complete_callback()
222 close_transaction(t, card, RCODE_BUSY, packet->timestamp); in transmit_complete_callback()
225 close_transaction(t, card, RCODE_DATA_ERROR, packet->timestamp); in transmit_complete_callback()
228 close_transaction(t, card, RCODE_TYPE_ERROR, packet->timestamp); in transmit_complete_callback()
235 close_transaction(t, card, status, packet->timestamp); in transmit_complete_callback()
240 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel, in fw_fill_request() argument
249 packet->header[0] = destination_id; in fw_fill_request()
250 isoc_header_set_data_length(packet->header, length); in fw_fill_request()
251 isoc_header_set_tcode(packet->header, TCODE_STREAM_DATA); in fw_fill_request()
252 packet->header_length = 4; in fw_fill_request()
253 packet->payload = payload; in fw_fill_request()
254 packet->payload_length = length; in fw_fill_request()
265 async_header_set_retry(packet->header, RETRY_X); in fw_fill_request()
266 async_header_set_tlabel(packet->header, tlabel); in fw_fill_request()
267 async_header_set_tcode(packet->header, tcode); in fw_fill_request()
268 async_header_set_destination(packet->header, destination_id); in fw_fill_request()
269 async_header_set_source(packet->header, source_id); in fw_fill_request()
270 async_header_set_offset(packet->header, offset); in fw_fill_request()
274 async_header_set_quadlet_data(packet->header, *(u32 *)payload); in fw_fill_request()
275 packet->header_length = 16; in fw_fill_request()
276 packet->payload_length = 0; in fw_fill_request()
281 async_header_set_data_length(packet->header, length); in fw_fill_request()
282 async_header_set_extended_tcode(packet->header, ext_tcode); in fw_fill_request()
283 packet->header_length = 16; in fw_fill_request()
284 packet->payload = payload; in fw_fill_request()
285 packet->payload_length = length; in fw_fill_request()
289 packet->header_length = 12; in fw_fill_request()
290 packet->payload_length = 0; in fw_fill_request()
294 async_header_set_data_length(packet->header, length); in fw_fill_request()
295 async_header_set_extended_tcode(packet->header, ext_tcode); in fw_fill_request()
296 packet->header_length = 16; in fw_fill_request()
297 packet->payload_length = 0; in fw_fill_request()
304 packet->speed = speed; in fw_fill_request()
305 packet->generation = generation; in fw_fill_request()
306 packet->ack = 0; in fw_fill_request()
307 packet->payload_mapped = false; in fw_fill_request()
422 t->packet.callback = transmit_complete_callback; in __fw_send_request()
428 fw_fill_request(&t->packet, tcode, t->tlabel, destination_id, card->node_id, in __fw_send_request()
439 t->packet.header, payload, in __fw_send_request()
442 card->driver->send_request(card, &t->packet); in __fw_send_request()
501 static void transmit_phy_packet_callback(struct fw_packet *packet, in transmit_phy_packet_callback() argument
504 trace_async_phy_outbound_complete((uintptr_t)packet, card->index, packet->generation, status, in transmit_phy_packet_callback()
505 packet->timestamp); in transmit_phy_packet_callback()
734 static void free_response_callback(struct fw_packet *packet, in free_response_callback() argument
737 struct fw_request *request = container_of(packet, struct fw_request, response); in free_response_callback()
739 trace_async_response_outbound_complete((uintptr_t)request, card->index, packet->generation, in free_response_callback()
740 packet->speed, status, packet->timestamp); in free_response_callback()
1198 card->driver->cancel_packet(card, &t->packet); in fw_core_handle_response()
1203 t->callback.with_tstamp(card, rcode, t->packet.timestamp, p->timestamp, data, in fw_core_handle_response()