Lines Matching defs:tcode

47 #define HEADER_TCODE(tcode)		((tcode) << 4)
55 #define HEADER_EXTENDED_TCODE(tcode) ((tcode) << 0)
211 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel,
217 if (tcode == TCODE_STREAM_DATA) {
229 if (tcode > 0x10) {
230 ext_tcode = tcode & ~0x10;
231 tcode = TCODE_LOCK_REQUEST;
238 HEADER_TCODE(tcode) |
245 switch (tcode) {
276 WARN(1, "wrong tcode %d\n", tcode);
306 * @tcode: transaction code
321 * constants instead of %TCODE_LOCK_REQUEST in @tcode.
350 void fw_send_request(struct fw_card *card, struct fw_transaction *t, int tcode,
381 fw_fill_request(&t->packet, tcode, t->tlabel,
419 int fw_run_transaction(struct fw_card *card, int tcode, int destination_id,
429 fw_send_request(card, &t, tcode, destination_id, generation, speed,
641 int tcode, ext_tcode, data_length;
643 tcode = HEADER_GET_TCODE(r->request_header[0]);
645 switch (tcode) {
669 WARN(1, "wrong tcode %d\n", tcode);
677 int tcode, tlabel, extended_tcode, source, destination;
679 tcode = HEADER_GET_TCODE(request_header[0]);
694 switch (tcode) {
715 response->header[0] |= HEADER_TCODE(tcode + 2);
725 WARN(1, "wrong tcode %d\n", tcode);
844 int tcode, destination, source;
848 tcode = HEADER_GET_TCODE(p->header[0]);
849 if (tcode == TCODE_LOCK_REQUEST)
850 tcode = 0x10 + HEADER_GET_EXTENDED_TCODE(p->header[3]);
857 tcode, destination, source,
873 int tcode, destination, source;
883 tcode = HEADER_GET_TCODE(p->header[0]);
887 if (tcode != TCODE_WRITE_QUADLET_REQUEST &&
888 tcode != TCODE_WRITE_BLOCK_REQUEST) {
897 handler->address_callback(card, NULL, tcode,
945 int tcode, tlabel, source, rcode;
947 tcode = HEADER_GET_TCODE(p->header[0]);
978 switch (tcode) {
1043 int tcode, int destination, int source, int generation,
1049 if (!TCODE_IS_READ_REQUEST(tcode)) {
1088 int tcode, int destination, int source, int generation,
1117 if (tcode == TCODE_READ_QUADLET_REQUEST)
1119 else if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1126 if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1134 if (tcode == TCODE_READ_QUADLET_REQUEST) {
1136 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) {
1147 if (tcode == TCODE_READ_QUADLET_REQUEST) {
1149 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) {
1161 if (tcode == TCODE_READ_QUADLET_REQUEST)
1163 else if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1170 if (tcode == TCODE_READ_QUADLET_REQUEST)
1172 else if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1208 int tcode, int destination, int source, int generation,