Searched refs:tcode (Results 1 - 25 of 25) sorted by relevance

/linux-4.4.14/drivers/firewire/
H A Dcore-transaction.c47 #define HEADER_TCODE(tcode) ((tcode) << 4)
55 #define HEADER_EXTENDED_TCODE(tcode) ((tcode) << 0)
211 static void fw_fill_request(struct fw_packet *packet, int tcode, int tlabel, fw_fill_request() argument
217 if (tcode == TCODE_STREAM_DATA) { fw_fill_request()
229 if (tcode > 0x10) { fw_fill_request()
230 ext_tcode = tcode & ~0x10; fw_fill_request()
231 tcode = TCODE_LOCK_REQUEST; fw_fill_request()
238 HEADER_TCODE(tcode) | fw_fill_request()
245 switch (tcode) { fw_fill_request()
276 WARN(1, "wrong tcode %d\n", tcode); fw_fill_request()
306 * @tcode: transaction code
321 * constants instead of %TCODE_LOCK_REQUEST in @tcode.
350 void fw_send_request(struct fw_card *card, struct fw_transaction *t, int tcode, fw_send_request() argument
381 fw_fill_request(&t->packet, tcode, t->tlabel, fw_send_request()
419 int fw_run_transaction(struct fw_card *card, int tcode, int destination_id, fw_run_transaction() argument
429 fw_send_request(card, &t, tcode, destination_id, generation, speed, fw_run_transaction()
641 int tcode, ext_tcode, data_length; fw_get_response_length() local
643 tcode = HEADER_GET_TCODE(r->request_header[0]); fw_get_response_length()
645 switch (tcode) { fw_get_response_length()
669 WARN(1, "wrong tcode %d\n", tcode); fw_get_response_length()
677 int tcode, tlabel, extended_tcode, source, destination; fw_fill_response() local
679 tcode = HEADER_GET_TCODE(request_header[0]); fw_fill_response()
694 switch (tcode) { fw_fill_response()
715 response->header[0] |= HEADER_TCODE(tcode + 2); fw_fill_response()
725 WARN(1, "wrong tcode %d\n", tcode); fw_fill_response()
844 int tcode, destination, source; handle_exclusive_region_request() local
848 tcode = HEADER_GET_TCODE(p->header[0]); handle_exclusive_region_request()
849 if (tcode == TCODE_LOCK_REQUEST) handle_exclusive_region_request()
850 tcode = 0x10 + HEADER_GET_EXTENDED_TCODE(p->header[3]); handle_exclusive_region_request()
857 tcode, destination, source, handle_exclusive_region_request()
873 int tcode, destination, source; handle_fcp_region_request() local
883 tcode = HEADER_GET_TCODE(p->header[0]); handle_fcp_region_request()
887 if (tcode != TCODE_WRITE_QUADLET_REQUEST && handle_fcp_region_request()
888 tcode != TCODE_WRITE_BLOCK_REQUEST) { handle_fcp_region_request()
897 handler->address_callback(card, NULL, tcode, handle_fcp_region_request()
945 int tcode, tlabel, source, rcode; fw_core_handle_response() local
947 tcode = HEADER_GET_TCODE(p->header[0]); fw_core_handle_response()
978 switch (tcode) { fw_core_handle_response()
1043 int tcode, int destination, int source, int generation, handle_topology_map()
1049 if (!TCODE_IS_READ_REQUEST(tcode)) { handle_topology_map()
1088 int tcode, int destination, int source, int generation, handle_registers()
1117 if (tcode == TCODE_READ_QUADLET_REQUEST) handle_registers()
1119 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) handle_registers()
1126 if (tcode == TCODE_WRITE_QUADLET_REQUEST) handle_registers()
1134 if (tcode == TCODE_READ_QUADLET_REQUEST) { handle_registers()
1136 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { handle_registers()
1147 if (tcode == TCODE_READ_QUADLET_REQUEST) { handle_registers()
1149 } else if (tcode == TCODE_WRITE_QUADLET_REQUEST) { handle_registers()
1161 if (tcode == TCODE_READ_QUADLET_REQUEST) handle_registers()
1163 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) handle_registers()
1170 if (tcode == TCODE_READ_QUADLET_REQUEST) handle_registers()
1172 else if (tcode == TCODE_WRITE_QUADLET_REQUEST) handle_registers()
1208 int tcode, int destination, int source, int generation, handle_low_memory()
1042 handle_topology_map(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *payload, size_t length, void *callback_data) handle_topology_map() argument
1087 handle_registers(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *payload, size_t length, void *callback_data) handle_registers() argument
1207 handle_low_memory(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *payload, size_t length, void *callback_data) handle_low_memory() argument
H A Dcore.h229 #define TCODE_IS_READ_REQUEST(tcode) (((tcode) & ~1) == 4)
230 #define TCODE_IS_BLOCK_PACKET(tcode) (((tcode) & 1) != 0)
231 #define TCODE_IS_LINK_INTERNAL(tcode) ((tcode) == TCODE_LINK_INTERNAL)
232 #define TCODE_IS_REQUEST(tcode) (((tcode) & 2) == 0)
233 #define TCODE_IS_RESPONSE(tcode) (((tcode) & 2) != 0)
234 #define TCODE_HAS_REQUEST_DATA(tcode) (((tcode) & 12) != 4)
235 #define TCODE_HAS_RESPONSE_DATA(tcode) (((tcode) & 12) != 0)
H A Dcore-cdev.c595 if (request->tcode != TCODE_STREAM_DATA && init_request()
599 if (request->tcode == TCODE_WRITE_QUADLET_REQUEST && init_request()
624 request->tcode, destination_id, request->generation, init_request()
637 switch (arg->send_request.tcode) { ioctl_send_request()
679 int tcode, int destination, int source, handle_request()
723 if (tcode & 0x10) handle_request()
724 tcode = TCODE_LOCK_REQUEST; handle_request()
727 req->tcode = tcode; handle_request()
737 req->tcode = tcode; handle_request()
1456 switch (a->tcode) { ioctl_send_broadcast_request()
1485 request.tcode = TCODE_STREAM_DATA; ioctl_send_stream_packet()
678 handle_request(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *payload, size_t length, void *callback_data) handle_request() argument
H A Dohci.c487 int tcode = header[0] >> 4 & 0xf; log_ar_at_event() local
502 switch (tcode) { log_ar_at_event()
515 switch (tcode) { log_ar_at_event()
518 dir, evts[evt], tcodes[tcode]); log_ar_at_event()
529 tcodes[tcode], header[1] & 0xffff, header[2], specific); log_ar_at_event()
536 tcodes[tcode], specific); log_ar_at_event()
817 u32 status, length, tcode; handle_ar_packet() local
824 tcode = (p.header[0] >> 4) & 0x0f; handle_ar_packet()
825 switch (tcode) { handle_ar_packet()
860 ar_context_abort(ctx, "invalid tcode"); handle_ar_packet()
1305 int z, tcode; at_context_queue_packet() local
1322 tcode = (packet->header[0] >> 4) & 0x0f; at_context_queue_packet()
1324 switch (tcode) { at_context_queue_packet()
1340 if (TCODE_IS_BLOCK_PACKET(tcode)) at_context_queue_packet()
1529 int tcode, length, i; handle_local_rom() local
1531 tcode = HEADER_GET_TCODE(packet->header[0]); handle_local_rom()
1532 if (TCODE_IS_BLOCK_PACKET(tcode)) handle_local_rom()
1541 } else if (!TCODE_IS_READ_REQUEST(tcode)) { handle_local_rom()
1556 int tcode, length, ext_tcode, sel, try; handle_local_lock() local
1560 tcode = HEADER_GET_TCODE(packet->header[0]); handle_local_lock()
1565 if (tcode == TCODE_LOCK_REQUEST && handle_local_lock()
1569 } else if (tcode == TCODE_READ_QUADLET_REQUEST) { handle_local_lock()
H A Dnosy.c416 u32 tcode_mask, tcode; packet_irq_handler() local
423 tcode = __le32_to_cpu(lynx->rcv_buffer[1]) >> 4 & 0xf; packet_irq_handler()
431 tcode_mask = 1 << tcode; packet_irq_handler()
H A Dnet.c698 int tcode, int destination, int source, int generation, fwnet_receive_packet()
713 else if (tcode != TCODE_WRITE_BLOCK_REQUEST) fwnet_receive_packet()
697 fwnet_receive_packet(struct fw_card *card, struct fw_request *r, int tcode, int destination, int source, int generation, unsigned long long offset, void *payload, size_t length, void *callback_data) fwnet_receive_packet() argument
H A Dsbp2.c419 int tcode, int destination, int source, sbp2_status_write()
428 if (tcode != TCODE_WRITE_BLOCK_REQUEST || sbp2_status_write()
418 sbp2_status_write(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *payload, size_t length, void *callback_data) sbp2_status_write() argument
/linux-4.4.14/tools/firewire/
H A Dnosy-dump.h81 uint32_t tcode:4; member in struct:link_packet::__anon15630::__anon15631
147 uint32_t tcode:4; member in struct:link_packet::__anon15630::__anon15640
H A Dnosy-dump.c338 { "tcode", 24, 4, PACKET_FIELD_TRANSACTION, tcode_names }, \
347 { "tcode", 24, 4, 0, tcode_names }, \
409 { "tcode", 24, 4, 0, tcode_names },
519 if (prev->packet.common.tcode != sa->packet.common.tcode || handle_request_packet()
530 if (p->common.tcode != TCODE_WRITE_QUADLET_REQUEST && handle_request_packet()
531 p->common.tcode != TCODE_WRITE_BLOCK_REQUEST) handle_request_packet()
585 if (prev->packet.common.tcode != sa->packet.common.tcode || handle_response_packet()
599 if (packet_info[prev->packet.common.tcode].response_tcode != handle_response_packet()
600 sa->packet.common.tcode) { handle_response_packet()
601 /* error, tcode mismatch */ handle_response_packet()
640 switch (packet_info[p->common.tcode].type) { handle_packet()
704 pi = &packet_info[packet->common.tcode]; decode_link_packet()
856 tcode_count[packet->common.tcode]++; print_stats()
H A Ddecode-fcp.c181 if (t->request->packet.common.tcode != TCODE_WRITE_BLOCK_REQUEST) decode_fcp()
/linux-4.4.14/sound/firewire/
H A Dlib.h15 int snd_fw_transaction(struct fw_unit *unit, int tcode,
H A Dfcp.c229 int tcode, ret, tries = 0; fcp_avc_transaction() local
246 tcode = command_size == 4 ? TCODE_WRITE_QUADLET_REQUEST fcp_avc_transaction()
248 ret = snd_fw_transaction(t.unit, tcode, fcp_avc_transaction()
335 int tcode, int destination, int source, fcp_response()
334 fcp_response(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *data, size_t length, void *callback_data) fcp_response() argument
H A Dlib.c20 * @tcode: the transaction code
33 int snd_fw_transaction(struct fw_unit *unit, int tcode, snd_fw_transaction() argument
46 rcode = fw_run_transaction(device->card, tcode, snd_fw_transaction()
H A Dscs1x.c338 int tcode, int destination, int source, int generation, handle_hss()
349 if (tcode != TCODE_WRITE_QUADLET_REQUEST && handle_hss()
350 tcode != TCODE_WRITE_BLOCK_REQUEST) { handle_hss()
337 handle_hss(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *data, size_t length, void *callback_data) handle_hss() argument
/linux-4.4.14/drivers/target/sbp/
H A Dsbp_target.c699 static int tgt_agent_rw_agent_state(struct fw_card *card, int tcode, void *data, tgt_agent_rw_agent_state() argument
704 switch (tcode) { tgt_agent_rw_agent_state()
725 static int tgt_agent_rw_agent_reset(struct fw_card *card, int tcode, void *data, tgt_agent_rw_agent_reset() argument
728 switch (tcode) { tgt_agent_rw_agent_reset()
741 static int tgt_agent_rw_orb_pointer(struct fw_card *card, int tcode, void *data, tgt_agent_rw_orb_pointer() argument
746 switch (tcode) { tgt_agent_rw_orb_pointer()
780 static int tgt_agent_rw_doorbell(struct fw_card *card, int tcode, void *data, tgt_agent_rw_doorbell() argument
783 switch (tcode) { tgt_agent_rw_doorbell()
811 int tcode, void *data, struct sbp_target_agent *agent) tgt_agent_rw_unsolicited_status_enable()
813 switch (tcode) { tgt_agent_rw_unsolicited_status_enable()
828 int tcode, int destination, int source, int generation, tgt_agent_rw()
859 rcode = tgt_agent_rw_agent_state(card, tcode, data, agent); tgt_agent_rw()
862 rcode = tgt_agent_rw_agent_reset(card, tcode, data, agent); tgt_agent_rw()
865 rcode = tgt_agent_rw_orb_pointer(card, tcode, data, agent); tgt_agent_rw()
868 rcode = tgt_agent_rw_doorbell(card, tcode, data, agent); tgt_agent_rw()
871 rcode = tgt_agent_rw_unsolicited_status_enable(card, tcode, tgt_agent_rw()
1069 static int sbp_run_transaction(struct fw_card *card, int tcode, int destination_id, sbp_run_transaction() argument
1076 ret = fw_run_transaction(card, tcode, destination_id, sbp_run_transaction()
1100 int tcode, unsigned long long offset, void *payload, sbp_run_request_transaction()
1115 ret = sbp_run_transaction(card, tcode, node_id, generation, speed, sbp_run_request_transaction()
1259 int tcode, sg_miter_flags, max_payload, pg_size, speed, node_id, sbp_rw_data() local
1268 tcode = TCODE_WRITE_BLOCK_REQUEST; sbp_rw_data()
1271 tcode = TCODE_READ_BLOCK_REQUEST; sbp_rw_data()
1323 rcode = sbp_run_transaction(card, tcode, node_id, sbp_rw_data()
1586 struct fw_request *request, int tcode, int destination, int source, sbp_mgt_agent_rw()
1600 if (tcode == TCODE_WRITE_BLOCK_REQUEST) { sbp_mgt_agent_rw()
1631 } else if (tcode == TCODE_READ_BLOCK_REQUEST) { sbp_mgt_agent_rw()
810 tgt_agent_rw_unsolicited_status_enable(struct fw_card *card, int tcode, void *data, struct sbp_target_agent *agent) tgt_agent_rw_unsolicited_status_enable() argument
827 tgt_agent_rw(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *data, size_t length, void *callback_data) tgt_agent_rw() argument
1099 sbp_run_request_transaction(struct sbp_target_request *req, int tcode, unsigned long long offset, void *payload, size_t length) sbp_run_request_transaction() argument
1585 sbp_mgt_agent_rw(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *data, size_t length, void *callback_data) sbp_mgt_agent_rw() argument
/linux-4.4.14/sound/firewire/digi00x/
H A Ddigi00x-transaction.c59 int tcode, int destination, int source, handle_message()
58 handle_message(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *data, size_t length, void *callback_data) handle_message() argument
/linux-4.4.14/drivers/media/firewire/
H A Dfiredtv-fw.c37 int tcode) node_req()
44 rcode = fw_run_transaction(device->card, tcode, device->node_id, node_req()
195 int tcode, int destination, int source, int generation, handle_fcp()
36 node_req(struct firedtv *fdtv, u64 addr, void *data, size_t len, int tcode) node_req() argument
194 handle_fcp(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *payload, size_t length, void *callback_data) handle_fcp() argument
/linux-4.4.14/sound/firewire/dice/
H A Ddice-transaction.c203 int tcode, int destination, int source, dice_notification()
211 if (tcode != TCODE_WRITE_QUADLET_REQUEST) { dice_notification()
202 dice_notification(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *data, size_t length, void *callback_data) dice_notification() argument
/linux-4.4.14/include/linux/
H A Dfirewire.h284 int tcode, int destination, int source,
355 int tcode, int destination_id, int generation, int speed,
360 int fw_run_transaction(struct fw_card *card, int tcode, int destination_id,
/linux-4.4.14/include/uapi/linux/
H A Dfirewire-cdev.h135 __u32 tcode; member in struct:fw_cdev_event_request
146 * @tcode: Transaction code of the incoming request
165 * Unlike &fw_cdev_event_request, @tcode of lock requests is one of the
194 __u32 tcode; member in struct:fw_cdev_event_request2
246 * channel, 4 bits tcode, 4 bits sy, in big endian byte order.
492 * @tcode: Transaction code of the request
506 __u32 tcode; member in struct:fw_cdev_send_request
/linux-4.4.14/sound/firewire/fireworks/
H A Dfireworks_transaction.c229 int tcode, int destination, int source, efw_response()
228 efw_response(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *data, size_t length, void *callback_data) efw_response() argument
/linux-4.4.14/sound/firewire/tascam/
H A Dtascam-transaction.c148 int tcode, int destination, int source, handle_midi_tx()
147 handle_midi_tx(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *data, size_t length, void *callback_data) handle_midi_tx() argument
/linux-4.4.14/drivers/staging/fwserial/
H A Dfwserial.c240 static int fwtty_send_data_async(struct fwtty_peer *peer, int tcode, fwtty_send_data_async() argument
257 fw_send_request(peer->serial->card, &txn->fw_txn, tcode, fwtty_send_data_async()
264 struct fwtty_transaction *txn, int tcode, fwtty_send_txn_async()
276 fw_send_request(peer->serial->card, &txn->fw_txn, tcode, fwtty_send_txn_async()
612 int tcode, int destination, int source, fwtty_port_handler()
633 switch (tcode) { fwtty_port_handler()
2776 int tcode, int destination, int source, fwserial_mgmt_handler()
2794 switch (tcode) { fwserial_mgmt_handler()
263 fwtty_send_txn_async(struct fwtty_peer *peer, struct fwtty_transaction *txn, int tcode, unsigned long long addr, void *payload, size_t len, fwtty_transaction_cb callback, struct fwtty_port *port) fwtty_send_txn_async() argument
610 fwtty_port_handler(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long addr, void *data, size_t len, void *callback_data) fwtty_port_handler() argument
2774 fwserial_mgmt_handler(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long addr, void *data, size_t len, void *callback_data) fwserial_mgmt_handler() argument
/linux-4.4.14/arch/mips/kernel/
H A Dtraps.c1029 u32 opcode, tcode = 0; do_tr() local
1048 tcode = (opcode >> 12) & ((1 << 4) - 1); do_tr()
1054 tcode = (opcode >> 6) & ((1 << 10) - 1); do_tr()
1057 do_trap_or_bp(regs, tcode, "Trap"); do_tr()
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/
H A Dvxge-main.c570 "tcode = 0x%x", fifo->ndev->name, __func__, vxge_xmit_compl()

Completed in 3136 milliseconds