Lines Matching refs:tcode
34 #define HEADER_TCODE(tcode) ((tcode) << 4) argument
42 #define HEADER_EXTENDED_TCODE(tcode) ((tcode) << 0) argument
198 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel, in fw_fill_request() argument
204 if (tcode == TCODE_STREAM_DATA) { in fw_fill_request()
216 if (tcode > 0x10) { in fw_fill_request()
217 ext_tcode = tcode & ~0x10; in fw_fill_request()
218 tcode = TCODE_LOCK_REQUEST; in fw_fill_request()
225 HEADER_TCODE(tcode) | in fw_fill_request()
232 switch (tcode) { in fw_fill_request()
263 WARN(1, "wrong tcode %d\n", tcode); in fw_fill_request()
337 void fw_send_request(struct fw_card *card, struct fw_transaction *t, int tcode, in fw_send_request() argument
368 fw_fill_request(&t->packet, tcode, t->tlabel, in fw_send_request()
414 int fw_run_transaction(struct fw_card *card, int tcode, int destination_id, in fw_run_transaction() argument
424 fw_send_request(card, &t, tcode, destination_id, generation, speed, in fw_run_transaction()
637 int tcode, ext_tcode, data_length; in fw_get_response_length() local
639 tcode = HEADER_GET_TCODE(r->request_header[0]); in fw_get_response_length()
641 switch (tcode) { in fw_get_response_length()
665 WARN(1, "wrong tcode %d\n", tcode); in fw_get_response_length()
673 int tcode, tlabel, extended_tcode, source, destination; in fw_fill_response() local
675 tcode = HEADER_GET_TCODE(request_header[0]); in fw_fill_response()
690 switch (tcode) { in fw_fill_response()
711 response->header[0] |= HEADER_TCODE(tcode + 2); in fw_fill_response()
721 WARN(1, "wrong tcode %d\n", tcode); in fw_fill_response()
841 int tcode, destination, source; in handle_exclusive_region_request() local
845 tcode = HEADER_GET_TCODE(p->header[0]); in handle_exclusive_region_request()
846 if (tcode == TCODE_LOCK_REQUEST) in handle_exclusive_region_request()
847 tcode = 0x10 + HEADER_GET_EXTENDED_TCODE(p->header[3]); in handle_exclusive_region_request()
854 tcode, destination, source, in handle_exclusive_region_request()
870 int tcode, destination, source; in handle_fcp_region_request() local
880 tcode = HEADER_GET_TCODE(p->header[0]); in handle_fcp_region_request()
884 if (tcode != TCODE_WRITE_QUADLET_REQUEST && in handle_fcp_region_request()
885 tcode != TCODE_WRITE_BLOCK_REQUEST) { in handle_fcp_region_request()
894 handler->address_callback(card, NULL, tcode, in handle_fcp_region_request()
942 int tcode, tlabel, source, rcode; in fw_core_handle_response() local
944 tcode = HEADER_GET_TCODE(p->header[0]); in fw_core_handle_response()
975 switch (tcode) { in fw_core_handle_response()
1040 int tcode, int destination, int source, int generation, in handle_topology_map() argument
1046 if (!TCODE_IS_READ_REQUEST(tcode)) { in handle_topology_map()
1085 int tcode, int destination, int source, int generation, in handle_registers() argument
1114 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1116 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1123 if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1131 if (tcode == TCODE_READ_QUADLET_REQUEST) { in handle_registers()
1133 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { in handle_registers()
1144 if (tcode == TCODE_READ_QUADLET_REQUEST) { in handle_registers()
1146 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { in handle_registers()
1158 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1160 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1167 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1169 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1205 int tcode, int destination, int source, int generation, in handle_low_memory() argument