Lines Matching refs:tcode

34 #define HEADER_TCODE(tcode)		((tcode) << 4)  argument
42 #define HEADER_EXTENDED_TCODE(tcode) ((tcode) << 0) argument
227 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel, in fw_fill_request() argument
233 if (tcode == TCODE_STREAM_DATA) { in fw_fill_request()
245 if (tcode > 0x10) { in fw_fill_request()
246 ext_tcode = tcode & ~0x10; in fw_fill_request()
247 tcode = TCODE_LOCK_REQUEST; in fw_fill_request()
254 HEADER_TCODE(tcode) | in fw_fill_request()
261 switch (tcode) { in fw_fill_request()
292 WARN(1, "wrong tcode %d\n", tcode); in fw_fill_request()
369 void __fw_send_request(struct fw_card *card, struct fw_transaction *t, int tcode, in __fw_send_request() argument
412 fw_fill_request(&t->packet, tcode, t->tlabel, destination_id, card->node_id, generation, in __fw_send_request()
457 int fw_run_transaction(struct fw_card *card, int tcode, int destination_id, in fw_run_transaction() argument
467 fw_send_request(card, &t, tcode, destination_id, generation, speed, in fw_run_transaction()
696 int tcode, ext_tcode, data_length; in fw_get_response_length() local
698 tcode = HEADER_GET_TCODE(r->request_header[0]); in fw_get_response_length()
700 switch (tcode) { in fw_get_response_length()
724 WARN(1, "wrong tcode %d\n", tcode); in fw_get_response_length()
732 int tcode, tlabel, extended_tcode, source, destination; in fw_fill_response() local
734 tcode = HEADER_GET_TCODE(request_header[0]); in fw_fill_response()
749 switch (tcode) { in fw_fill_response()
770 response->header[0] |= HEADER_TCODE(tcode + 2); in fw_fill_response()
780 WARN(1, "wrong tcode %d\n", tcode); in fw_fill_response()
927 int tcode, destination, source; in handle_exclusive_region_request() local
931 tcode = HEADER_GET_TCODE(p->header[0]); in handle_exclusive_region_request()
932 if (tcode == TCODE_LOCK_REQUEST) in handle_exclusive_region_request()
933 tcode = 0x10 + HEADER_GET_EXTENDED_TCODE(p->header[3]); in handle_exclusive_region_request()
940 tcode, destination, source, in handle_exclusive_region_request()
956 int tcode, destination, source; in handle_fcp_region_request() local
966 tcode = HEADER_GET_TCODE(p->header[0]); in handle_fcp_region_request()
970 if (tcode != TCODE_WRITE_QUADLET_REQUEST && in handle_fcp_region_request()
971 tcode != TCODE_WRITE_BLOCK_REQUEST) { in handle_fcp_region_request()
980 handler->address_callback(card, request, tcode, in handle_fcp_region_request()
1028 int tcode, tlabel, source, rcode; in fw_core_handle_response() local
1030 tcode = HEADER_GET_TCODE(p->header[0]); in fw_core_handle_response()
1062 switch (tcode) { in fw_core_handle_response()
1132 int tcode, int destination, int source, int generation, in handle_topology_map() argument
1138 if (!TCODE_IS_READ_REQUEST(tcode)) { in handle_topology_map()
1177 int tcode, int destination, int source, int generation, in handle_registers() argument
1206 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1208 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1215 if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1223 if (tcode == TCODE_READ_QUADLET_REQUEST) { in handle_registers()
1225 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { in handle_registers()
1236 if (tcode == TCODE_READ_QUADLET_REQUEST) { in handle_registers()
1238 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { in handle_registers()
1250 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1252 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1259 if (tcode == TCODE_READ_QUADLET_REQUEST) in handle_registers()
1261 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) in handle_registers()
1297 int tcode, int destination, int source, int generation, in handle_low_memory() argument