Lines Matching defs:packet

98 			t->callback.with_tstamp(card, rcode, t->packet.timestamp, response_tstamp,
118 * Cancel the packet transmission if it's still queued. That
119 * will call the packet transmission callback which cancels
123 if (card->driver->cancel_packet(card, &transaction->packet) == 0)
127 * If the request packet has already been sent, we need to see
131 if (transaction->packet.ack == 0) {
133 tstamp = transaction->packet.timestamp;
163 t->callback.with_tstamp(card, RCODE_CANCELLED, t->packet.timestamp,
189 static void transmit_complete_callback(struct fw_packet *packet,
193 container_of(packet, struct fw_transaction, packet);
197 close_transaction(t, card, RCODE_COMPLETE, packet->timestamp);
202 compute_split_timeout_timestamp(card, packet->timestamp) & 0xffff;
209 close_transaction(t, card, RCODE_BUSY, packet->timestamp);
212 close_transaction(t, card, RCODE_DATA_ERROR, packet->timestamp);
215 close_transaction(t, card, RCODE_TYPE_ERROR, packet->timestamp);
222 close_transaction(t, card, status, packet->timestamp);
227 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel,
234 packet->header[0] =
238 packet->header_length = 4;
239 packet->payload = payload;
240 packet->payload_length = length;
251 packet->header[0] =
256 packet->header[1] =
258 packet->header[2] =
263 packet->header[3] = *(u32 *)payload;
264 packet->header_length = 16;
265 packet->payload_length = 0;
270 packet->header[3] =
273 packet->header_length = 16;
274 packet->payload = payload;
275 packet->payload_length = length;
279 packet->header_length = 12;
280 packet->payload_length = 0;
284 packet->header[3] =
287 packet->header_length = 16;
288 packet->payload_length = 0;
295 packet->speed = speed;
296 packet->generation = generation;
297 packet->ack = 0;
298 packet->payload_mapped = false;
319 * __fw_send_request() - submit a request packet for transmission to generate callback for response
335 * Submit a request packet into the asynchronous request transmission queue.
365 * than when the request packet actually hits the wire. On the other hand,
412 fw_fill_request(&t->packet, tcode, t->tlabel, destination_id, card->node_id, generation,
414 t->packet.callback = transmit_complete_callback;
420 card->driver->send_request(card, &t->packet);
479 static void transmit_phy_packet_callback(struct fw_packet *packet,
682 static void free_response_callback(struct fw_packet *packet,
685 struct fw_request *request = container_of(packet, struct fw_request, response);
862 * fw_send_response: - send response packet for asynchronous transaction.
867 * Submit a response packet into the asynchronous response transmission queue. The @request
1007 /* FIXME: send statically allocated busy packet. */
1058 * FIXME: sanity check packet, is length correct, does tcodes
1090 card->driver->cancel_packet(card, &t->packet);
1095 t->callback.with_tstamp(card, rcode, t->packet.timestamp, p->timestamp, data,