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()
639 int tcode, ext_tcode, data_length; in fw_get_response_length() local
641 tcode = HEADER_GET_TCODE(r->request_header[0]); in fw_get_response_length()
643 switch (tcode) { in fw_get_response_length()
667 WARN(1, "wrong tcode %d\n", tcode); in fw_get_response_length()
675 int tcode, tlabel, extended_tcode, source, destination; in fw_fill_response() local
677 tcode = HEADER_GET_TCODE(request_header[0]); in fw_fill_response()
692 switch (tcode) { in fw_fill_response()
713 response->header[0] |= HEADER_TCODE(tcode + 2); in fw_fill_response()
723 WARN(1, "wrong tcode %d\n", tcode); in fw_fill_response()
860 int tcode, destination, source; in handle_exclusive_region_request() local
864 tcode = HEADER_GET_TCODE(p->header[0]); in handle_exclusive_region_request()
865 if (tcode == TCODE_LOCK_REQUEST) in handle_exclusive_region_request()
866 tcode = 0x10 + HEADER_GET_EXTENDED_TCODE(p->header[3]); in handle_exclusive_region_request()
873 tcode, destination, source, in handle_exclusive_region_request()
889 int tcode, destination, source; in handle_fcp_region_request() local
899 tcode = HEADER_GET_TCODE(p->header[0]); in handle_fcp_region_request()
903 if (tcode != TCODE_WRITE_QUADLET_REQUEST && in handle_fcp_region_request()
904 tcode != TCODE_WRITE_BLOCK_REQUEST) { in handle_fcp_region_request()
913 handler->address_callback(card, NULL, tcode, in handle_fcp_region_request()
961 int tcode, tlabel, source, rcode; in fw_core_handle_response() local
963 tcode = HEADER_GET_TCODE(p->header[0]); in fw_core_handle_response()
995 switch (tcode) { in fw_core_handle_response()
1060 int tcode, int destination, int source, int generation, in handle_topology_map() argument
1066 if (!TCODE_IS_READ_REQUEST(tcode)) { in handle_topology_map()
1105 int tcode, int destination, int source, int generation, in handle_registers() argument
1134 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1136 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1143 if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1151 if (tcode == TCODE_READ_QUADLET_REQUEST) { in handle_registers()
1153 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { in handle_registers()
1164 if (tcode == TCODE_READ_QUADLET_REQUEST) { in handle_registers()
1166 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { in handle_registers()
1178 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1180 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1187 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1189 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1225 int tcode, int destination, int source, int generation, in handle_low_memory() argument