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