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()
693 int tcode, ext_tcode, data_length; in fw_get_response_length() local
695 tcode = async_header_get_tcode(r->request_header); in fw_get_response_length()
697 switch (tcode) { in fw_get_response_length()
721 WARN(1, "wrong tcode %d\n", tcode); in fw_get_response_length()
729 int tcode, tlabel, extended_tcode, source, destination; in fw_fill_response() local
731 tcode = async_header_get_tcode(request_header); in fw_fill_response()
744 switch (tcode) { in fw_fill_response()
764 async_header_set_tcode(response->header, tcode + 2); in fw_fill_response()
773 WARN(1, "wrong tcode %d\n", tcode); in fw_fill_response()
927 int tcode, destination, source; in handle_exclusive_region_request() local
931 tcode = async_header_get_tcode(p->header); in handle_exclusive_region_request()
932 if (tcode == TCODE_LOCK_REQUEST) in handle_exclusive_region_request()
933 tcode = 0x10 + async_header_get_extended_tcode(p->header); in handle_exclusive_region_request()
948 handler->address_callback(card, request, tcode, destination, source, p->generation, offset, in handle_exclusive_region_request()
963 int tcode, destination, source, i, count, buffer_size; in handle_fcp_region_request() local
973 tcode = async_header_get_tcode(p->header); in handle_fcp_region_request()
977 if (tcode != TCODE_WRITE_QUADLET_REQUEST && in handle_fcp_region_request()
978 tcode != TCODE_WRITE_BLOCK_REQUEST) { in handle_fcp_region_request()
1024 handler->address_callback(card, request, tcode, destination, source, in handle_fcp_region_request()
1040 unsigned int tcode; in fw_core_handle_request() local
1045 tcode = async_header_get_tcode(p->header); in fw_core_handle_request()
1046 if (tcode_is_link_internal(tcode)) { in fw_core_handle_request()
1061 tcode_is_read_request(tcode) ? 0 : request->length / 4); in fw_core_handle_request()
1078 int tcode, tlabel, source, rcode; in fw_core_handle_response() local
1080 tcode = async_header_get_tcode(p->header); in fw_core_handle_response()
1090 switch (tcode) { in fw_core_handle_response()
1182 int tcode, int destination, int source, int generation, in handle_topology_map() argument
1188 if (!tcode_is_read_request(tcode)) { in handle_topology_map()
1227 int tcode, int destination, int source, int generation, in handle_registers() argument
1255 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1257 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1264 if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1272 if (tcode == TCODE_READ_QUADLET_REQUEST) { in handle_registers()
1274 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { in handle_registers()
1285 if (tcode == TCODE_READ_QUADLET_REQUEST) { in handle_registers()
1287 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { in handle_registers()
1298 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1300 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1307 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1309 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1345 int tcode, int destination, int source, int generation, in handle_low_memory() argument