Lines Matching refs:tcode
34 #define HEADER_TCODE(tcode) ((tcode) << 4)
42 #define HEADER_EXTENDED_TCODE(tcode) ((tcode) << 0)
227 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel,
233 if (tcode == TCODE_STREAM_DATA) {
245 if (tcode > 0x10) {
246 ext_tcode = tcode & ~0x10;
247 tcode = TCODE_LOCK_REQUEST;
254 HEADER_TCODE(tcode) |
261 switch (tcode) {
292 WARN(1, "wrong tcode %d\n", tcode);
323 * @tcode: transaction code
340 * constants instead of %TCODE_LOCK_REQUEST in @tcode.
369 void __fw_send_request(struct fw_card *card, struct fw_transaction *t, int tcode,
412 fw_fill_request(&t->packet, tcode, t->tlabel, destination_id, card->node_id, generation,
444 * @tcode: transaction code
457 int fw_run_transaction(struct fw_card *card, int tcode, int destination_id,
467 fw_send_request(card, &t, tcode, destination_id, generation, speed,
696 int tcode, ext_tcode, data_length;
698 tcode = HEADER_GET_TCODE(r->request_header[0]);
700 switch (tcode) {
724 WARN(1, "wrong tcode %d\n", tcode);
732 int tcode, tlabel, extended_tcode, source, destination;
734 tcode = HEADER_GET_TCODE(request_header[0]);
749 switch (tcode) {
770 response->header[0] |= HEADER_TCODE(tcode + 2);
780 WARN(1, "wrong tcode %d\n", tcode);
927 int tcode, destination, source;
931 tcode = HEADER_GET_TCODE(p->header[0]);
932 if (tcode == TCODE_LOCK_REQUEST)
933 tcode = 0x10 + HEADER_GET_EXTENDED_TCODE(p->header[3]);
940 tcode, destination, source,
956 int tcode, destination, source;
966 tcode = HEADER_GET_TCODE(p->header[0]);
970 if (tcode != TCODE_WRITE_QUADLET_REQUEST &&
971 tcode != TCODE_WRITE_BLOCK_REQUEST) {
980 handler->address_callback(card, request, tcode,
1028 int tcode, tlabel, source, rcode;
1030 tcode = HEADER_GET_TCODE(p->header[0]);
1062 switch (tcode) {
1132 int tcode, int destination, int source, int generation,
1138 if (!TCODE_IS_READ_REQUEST(tcode)) {
1177 int tcode, int destination, int source, int generation,
1206 if (tcode == TCODE_READ_QUADLET_REQUEST)
1208 else if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1215 if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1223 if (tcode == TCODE_READ_QUADLET_REQUEST) {
1225 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) {
1236 if (tcode == TCODE_READ_QUADLET_REQUEST) {
1238 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) {
1250 if (tcode == TCODE_READ_QUADLET_REQUEST)
1252 else if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1259 if (tcode == TCODE_READ_QUADLET_REQUEST)
1261 else if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1297 int tcode, int destination, int source, int generation,