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