Lines Matching refs:tcode

191 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel,  in fw_fill_request()  argument
197 if (tcode == TCODE_STREAM_DATA) { in fw_fill_request()
210 if (tcode > 0x10) { in fw_fill_request()
211 ext_tcode = tcode & ~0x10; in fw_fill_request()
212 tcode = TCODE_LOCK_REQUEST; in fw_fill_request()
218 async_header_set_tcode(packet->header, tcode); in fw_fill_request()
223 switch (tcode) { in fw_fill_request()
252 WARN(1, "wrong tcode %d\n", tcode); in fw_fill_request()
329 void __fw_send_request(struct fw_card *card, struct fw_transaction *t, int tcode, in __fw_send_request() argument
372 fw_fill_request(&t->packet, tcode, t->tlabel, destination_id, card->node_id, generation, in __fw_send_request()
382 tcode_is_read_request(tcode) ? 0 : length / 4); in __fw_send_request()
421 int fw_run_transaction(struct fw_card *card, int tcode, int destination_id, in fw_run_transaction() argument
431 fw_send_request(card, &t, tcode, destination_id, generation, speed, in fw_run_transaction()
670 int tcode, ext_tcode, data_length; in fw_get_response_length() local
672 tcode = async_header_get_tcode(r->request_header); in fw_get_response_length()
674 switch (tcode) { in fw_get_response_length()
698 WARN(1, "wrong tcode %d\n", tcode); in fw_get_response_length()
706 int tcode, tlabel, extended_tcode, source, destination; in fw_fill_response() local
708 tcode = async_header_get_tcode(request_header); in fw_fill_response()
721 switch (tcode) { in fw_fill_response()
741 async_header_set_tcode(response->header, tcode + 2); in fw_fill_response()
750 WARN(1, "wrong tcode %d\n", tcode); in fw_fill_response()
904 int tcode, destination, source; in handle_exclusive_region_request() local
908 tcode = async_header_get_tcode(p->header); in handle_exclusive_region_request()
909 if (tcode == TCODE_LOCK_REQUEST) in handle_exclusive_region_request()
910 tcode = 0x10 + async_header_get_extended_tcode(p->header); in handle_exclusive_region_request()
916 handler->address_callback(card, request, tcode, destination, source, in handle_exclusive_region_request()
931 int tcode, destination, source; in handle_fcp_region_request() local
941 tcode = async_header_get_tcode(p->header); in handle_fcp_region_request()
945 if (tcode != TCODE_WRITE_QUADLET_REQUEST && in handle_fcp_region_request()
946 tcode != TCODE_WRITE_BLOCK_REQUEST) { in handle_fcp_region_request()
955 handler->address_callback(card, request, tcode, destination, source, in handle_fcp_region_request()
968 unsigned int tcode; in fw_core_handle_request() local
973 tcode = async_header_get_tcode(p->header); in fw_core_handle_request()
974 if (tcode_is_link_internal(tcode)) { in fw_core_handle_request()
989 tcode_is_read_request(tcode) ? 0 : request->length / 4); in fw_core_handle_request()
1006 int tcode, tlabel, source, rcode; in fw_core_handle_response() local
1008 tcode = async_header_get_tcode(p->header); in fw_core_handle_response()
1018 switch (tcode) { in fw_core_handle_response()
1110 int tcode, int destination, int source, int generation, in handle_topology_map() argument
1116 if (!tcode_is_read_request(tcode)) { in handle_topology_map()
1155 int tcode, int destination, int source, int generation, in handle_registers() argument
1183 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1185 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1192 if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1200 if (tcode == TCODE_READ_QUADLET_REQUEST) { in handle_registers()
1202 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { in handle_registers()
1213 if (tcode == TCODE_READ_QUADLET_REQUEST) { in handle_registers()
1215 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { in handle_registers()
1226 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1228 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1235 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1237 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1273 int tcode, int destination, int source, int generation, in handle_low_memory() argument