Lines Matching refs:tcode

34 #define HEADER_TCODE(tcode)		((tcode) << 4)
42 #define HEADER_EXTENDED_TCODE(tcode) ((tcode) << 0)
199 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel,
205 if (tcode == TCODE_STREAM_DATA) {
217 if (tcode > 0x10) {
218 ext_tcode = tcode & ~0x10;
219 tcode = TCODE_LOCK_REQUEST;
226 HEADER_TCODE(tcode) |
233 switch (tcode) {
264 WARN(1, "wrong tcode %d\n", tcode);
294 * @tcode: transaction code
309 * constants instead of %TCODE_LOCK_REQUEST in @tcode.
338 void fw_send_request(struct fw_card *card, struct fw_transaction *t, int tcode,
369 fw_fill_request(&t->packet, tcode, t->tlabel,
402 * @tcode: transaction code
415 int fw_run_transaction(struct fw_card *card, int tcode, int destination_id,
425 fw_send_request(card, &t, tcode, destination_id, generation, speed,
638 int tcode, ext_tcode, data_length;
640 tcode = HEADER_GET_TCODE(r->request_header[0]);
642 switch (tcode) {
666 WARN(1, "wrong tcode %d\n", tcode);
674 int tcode, tlabel, extended_tcode, source, destination;
676 tcode = HEADER_GET_TCODE(request_header[0]);
691 switch (tcode) {
712 response->header[0] |= HEADER_TCODE(tcode + 2);
722 WARN(1, "wrong tcode %d\n", tcode);
842 int tcode, destination, source;
846 tcode = HEADER_GET_TCODE(p->header[0]);
847 if (tcode == TCODE_LOCK_REQUEST)
848 tcode = 0x10 + HEADER_GET_EXTENDED_TCODE(p->header[3]);
855 tcode, destination, source,
871 int tcode, destination, source;
881 tcode = HEADER_GET_TCODE(p->header[0]);
885 if (tcode != TCODE_WRITE_QUADLET_REQUEST &&
886 tcode != TCODE_WRITE_BLOCK_REQUEST) {
895 handler->address_callback(card, NULL, tcode,
943 int tcode, tlabel, source, rcode;
945 tcode = HEADER_GET_TCODE(p->header[0]);
977 switch (tcode) {
1042 int tcode, int destination, int source, int generation,
1048 if (!TCODE_IS_READ_REQUEST(tcode)) {
1087 int tcode, int destination, int source, int generation,
1116 if (tcode == TCODE_READ_QUADLET_REQUEST)
1118 else if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1125 if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1133 if (tcode == TCODE_READ_QUADLET_REQUEST) {
1135 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) {
1146 if (tcode == TCODE_READ_QUADLET_REQUEST) {
1148 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) {
1160 if (tcode == TCODE_READ_QUADLET_REQUEST)
1162 else if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1169 if (tcode == TCODE_READ_QUADLET_REQUEST)
1171 else if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1207 int tcode, int destination, int source, int generation,