/linux-5.19.10/sound/firewire/ |
D | lib.c | 38 int generation, rcode, tries = 0; in snd_fw_transaction() local 46 rcode = fw_run_transaction(device->card, tcode, in snd_fw_transaction() 51 if (rcode == RCODE_COMPLETE) in snd_fw_transaction() 54 if (rcode == RCODE_GENERATION && (flags & FW_FIXED_GENERATION)) in snd_fw_transaction() 57 if (rcode_is_permanent_error(rcode) || ++tries >= 3) { in snd_fw_transaction() 61 fw_rcode_string(rcode)); in snd_fw_transaction()
|
D | lib.h | 21 static inline bool rcode_is_permanent_error(int rcode) in rcode_is_permanent_error() argument 23 return rcode == RCODE_TYPE_ERROR || rcode == RCODE_ADDRESS_ERROR; in rcode_is_permanent_error()
|
/linux-5.19.10/sound/firewire/fireworks/ |
D | fireworks_transaction.c | 118 copy_resp_to_buf(struct snd_efw *efw, void *data, size_t length, int *rcode) in copy_resp_to_buf() argument 136 *rcode = RCODE_CONFLICT_ERROR; in copy_resp_to_buf() 159 *rcode = RCODE_COMPLETE; in copy_resp_to_buf() 166 void *data, size_t length, int *rcode) in handle_resp_for_user() argument 191 copy_resp_to_buf(efw, data, length, rcode); in handle_resp_for_user() 198 void *data, size_t length, int *rcode, u32 seqnum) in handle_resp_for_kernel() argument 219 *rcode = RCODE_COMPLETE; in handle_resp_for_kernel() 231 int rcode, dummy; in efw_response() local 234 rcode = RCODE_TYPE_ERROR; in efw_response() 236 rcode = RCODE_DATA_ERROR; in efw_response() [all …]
|
/linux-5.19.10/drivers/firewire/ |
D | core-transaction.c | 39 #define HEADER_RCODE(rcode) ((rcode) << 12) argument 74 struct fw_card *card, int rcode) in close_transaction() argument 95 t->callback(card, rcode, NULL, 0, t->callback_data); in close_transaction() 385 int rcode; member 388 static void transaction_callback(struct fw_card *card, int rcode, in transaction_callback() argument 393 if (rcode == RCODE_COMPLETE) in transaction_callback() 395 d->rcode = rcode; in transaction_callback() 430 return d.rcode; in fw_run_transaction() 673 int rcode, void *payload, size_t length) in fw_fill_response() argument 689 HEADER_RCODE(rcode); in fw_fill_response() [all …]
|
D | core-card.c | 293 int gap_count, generation, grace, rcode; in bm_work() local 366 rcode = fw_run_transaction(card, TCODE_LOCK_COMPARE_SWAP, in bm_work() 371 if (rcode == RCODE_GENERATION) in bm_work() 378 if (rcode == RCODE_COMPLETE && generation == card->generation) in bm_work() 383 if (rcode == RCODE_COMPLETE && bm_id != 0x3f) { in bm_work() 391 if (rcode == RCODE_SEND_ERROR) { in bm_work() 403 if (rcode != RCODE_COMPLETE && !keep_this_irm) { in bm_work() 412 fw_rcode_string(rcode), new_root_id); in bm_work() 497 rcode = fw_run_transaction(card, TCODE_WRITE_QUADLET_REQUEST, in bm_work() 501 if (rcode == RCODE_GENERATION) in bm_work()
|
D | core-device.c | 477 int i, rcode; in read_rom() local 483 rcode = fw_run_transaction(device->card, in read_rom() 486 if (rcode != RCODE_BUSY) in read_rom() 492 return rcode; in read_rom() 928 int rcode; in set_broadcast_channel() local 948 rcode = fw_run_transaction(card, TCODE_READ_QUADLET_REQUEST, in set_broadcast_channel() 952 switch (rcode) { in set_broadcast_channel() 1106 int i, rcode; in reread_config_rom() local 1109 rcode = read_rom(device, generation, i, &q); in reread_config_rom() 1110 if (rcode != RCODE_COMPLETE) in reread_config_rom() [all …]
|
D | sbp2.c | 259 int rcode; member 439 iter->rcode = RCODE_COMPLETE; in sbp2_status_write() 457 static void complete_transaction(struct fw_card *card, int rcode, in complete_transaction() argument 474 if (orb->rcode == -1) in complete_transaction() 475 orb->rcode = rcode; in complete_transaction() 476 if (orb->rcode != RCODE_COMPLETE) { in complete_transaction() 529 orb->rcode = RCODE_CANCELLED; in sbp2_cancel_orbs() 613 orb->base.rcode); in sbp2_send_management_orb() 617 if (orb->base.rcode != RCODE_COMPLETE) { in sbp2_send_management_orb() 619 orb->base.rcode); in sbp2_send_management_orb() [all …]
|
D | net.c | 715 int rcode; in fwnet_receive_packet() local 724 rcode = RCODE_ADDRESS_ERROR; in fwnet_receive_packet() 726 rcode = RCODE_TYPE_ERROR; in fwnet_receive_packet() 730 rcode = RCODE_CONFLICT_ERROR; in fwnet_receive_packet() 732 rcode = RCODE_COMPLETE; in fwnet_receive_packet() 734 fw_send_response(card, r, rcode); in fwnet_receive_packet() 929 static void fwnet_write_complete(struct fw_card *card, int rcode, in fwnet_write_complete() argument 936 if (rcode == RCODE_COMPLETE) { in fwnet_write_complete() 939 if (printk_timed_ratelimit(&j, 1000) || rcode != last_rcode) { in fwnet_write_complete() 942 rcode, errors_skipped); in fwnet_write_complete() [all …]
|
D | core-cdev.c | 536 static void complete_transaction(struct fw_card *card, int rcode, in complete_transaction() argument 546 if (rcode == RCODE_COMPLETE) in complete_transaction() 556 rsp->rcode = rcode; in complete_transaction() 835 fw_send_response(r->card, r->request, a->rcode); in ioctl_send_response() 1509 case ACK_COMPLETE: e->phy_packet.rcode = RCODE_COMPLETE; break; in outbound_phy_packet_callback() 1511 case ACK_PENDING: e->phy_packet.rcode = RCODE_COMPLETE; break; in outbound_phy_packet_callback() 1514 case ACK_BUSY_B: e->phy_packet.rcode = RCODE_BUSY; break; in outbound_phy_packet_callback() 1515 case ACK_DATA_ERROR: e->phy_packet.rcode = RCODE_DATA_ERROR; break; in outbound_phy_packet_callback() 1516 case ACK_TYPE_ERROR: e->phy_packet.rcode = RCODE_TYPE_ERROR; break; in outbound_phy_packet_callback() 1518 default: e->phy_packet.rcode = status; break; in outbound_phy_packet_callback() [all …]
|
/linux-5.19.10/drivers/scsi/aacraid/ |
D | commctrl.c | 491 s32 rcode = 0; in aac_send_raw_srb() local 522 rcode = -EFAULT; in aac_send_raw_srb() 528 rcode = -EINVAL; in aac_send_raw_srb() 534 rcode = PTR_ERR(user_srbcmd); in aac_send_raw_srb() 556 rcode = -EINVAL; in aac_send_raw_srb() 561 rcode = -EINVAL; in aac_send_raw_srb() 577 rcode = -EINVAL; in aac_send_raw_srb() 663 rcode = -EINVAL; in aac_send_raw_srb() 669 rcode = -ENOMEM; in aac_send_raw_srb() 687 rcode = -EFAULT; in aac_send_raw_srb() [all …]
|
D | aachba.c | 1675 int rcode; in aac_send_safw_bmic_cmd() local 1702 rcode = -ENOMEM; in aac_send_safw_bmic_cmd() 1736 rcode = aac_fib_send(ScsiPortCommand64, fibptr, fibsize, FsaNormal, in aac_send_safw_bmic_cmd() 1739 if (rcode == -ERESTARTSYS) in aac_send_safw_bmic_cmd() 1740 rcode = -ERESTART; in aac_send_safw_bmic_cmd() 1742 if (unlikely(rcode < 0)) in aac_send_safw_bmic_cmd() 1753 return rcode; in aac_send_safw_bmic_cmd() 1781 int rcode = -ENOMEM; in aac_issue_safw_bmic_identify() local 1800 rcode = aac_send_safw_bmic_cmd(dev, &srbu, identify_reply, datasize); in aac_issue_safw_bmic_identify() 1801 if (unlikely(rcode < 0)) in aac_issue_safw_bmic_identify() [all …]
|
D | commsup.c | 1893 int rcode = 0; in aac_update_safw_host_devices() local 1895 rcode = aac_setup_safw_adapter(dev); in aac_update_safw_host_devices() 1896 if (unlikely(rcode < 0)) { in aac_update_safw_host_devices() 1914 return rcode; in aac_update_safw_host_devices() 1919 int rcode = 0; in aac_scan_safw_host() local 1921 rcode = aac_update_safw_host_devices(dev); in aac_scan_safw_host() 1922 if (rcode) in aac_scan_safw_host() 1925 return rcode; in aac_scan_safw_host() 1930 int rcode = 0; in aac_scan_host() local 1934 rcode = aac_scan_safw_host(dev); in aac_scan_host() [all …]
|
/linux-5.19.10/drivers/scsi/ |
D | dpt_i2o.c | 325 s32 rcode; in adpt_inquiry() local 387 rcode = adpt_i2o_post_wait(pHba, msg, reqlen<<2, 120); in adpt_inquiry() 388 if (rcode != 0) { in adpt_inquiry() 390 printk(KERN_INFO "%s: Inquiry Error (%d)\n",pHba->name,rcode); in adpt_inquiry() 391 if (rcode != -ETIME && rcode != -EINTR) in adpt_inquiry() 639 int rcode; in adpt_abort() local 657 rcode = adpt_i2o_post_wait(pHba, msg, sizeof(msg), FOREVER); in adpt_abort() 660 if (rcode != 0) { in adpt_abort() 661 if(rcode == -EOPNOTSUPP ){ in adpt_abort() 681 u32 rcode; in adpt_device_reset() local [all …]
|
/linux-5.19.10/sound/firewire/fireface/ |
D | ff-transaction.c | 11 int rcode) in finish_transmit_midi_msg() argument 16 if (rcode_is_permanent_error(rcode)) { in finish_transmit_midi_msg() 21 if (rcode != RCODE_COMPLETE) { in finish_transmit_midi_msg() 35 static void finish_transmit_midi0_msg(struct fw_card *card, int rcode, in finish_transmit_midi0_msg() argument 41 finish_transmit_midi_msg(ff, 0, rcode); in finish_transmit_midi0_msg() 44 static void finish_transmit_midi1_msg(struct fw_card *card, int rcode, in finish_transmit_midi1_msg() argument 50 finish_transmit_midi_msg(ff, 1, rcode); in finish_transmit_midi1_msg()
|
/linux-5.19.10/drivers/staging/fwserial/ |
D | fwserial.c | 82 typedef void (*fwtty_transaction_cb)(struct fw_card *card, int rcode, 191 static void fwtty_log_tx_error(struct fwtty_port *port, int rcode) in fwtty_log_tx_error() argument 193 switch (rcode) { in fwtty_log_tx_error() 210 fwtty_err_ratelimited(port, "failed tx: %d\n", rcode); in fwtty_log_tx_error() 214 static void fwtty_common_callback(struct fw_card *card, int rcode, in fwtty_common_callback() argument 220 if (port && rcode != RCODE_COMPLETE) in fwtty_common_callback() 221 fwtty_log_tx_error(port, rcode); in fwtty_common_callback() 223 txn->callback(card, rcode, payload, len, txn); in fwtty_common_callback() 608 int rcode; in fwtty_port_handler() local 615 rcode = RCODE_ADDRESS_ERROR; in fwtty_port_handler() [all …]
|
/linux-5.19.10/sound/firewire/oxfw/ |
D | oxfw-scs1x.c | 101 int rcode; in handle_hss() local 104 rcode = RCODE_ADDRESS_ERROR; in handle_hss() 109 rcode = RCODE_TYPE_ERROR; in handle_hss() 119 rcode = RCODE_COMPLETE; in handle_hss() 121 fw_send_response(card, request, rcode); in handle_hss() 124 static void scs_write_callback(struct fw_card *card, int rcode, in scs_write_callback() argument 129 if (!rcode_is_permanent_error(rcode)) { in scs_write_callback() 131 if (rcode == RCODE_COMPLETE) in scs_write_callback()
|
/linux-5.19.10/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ctx.c | 37 u32 rcode = NX_RCODE_SUCCESS; in netxen_issue_cmd() local 61 rcode = NX_RCODE_TIMEOUT; in netxen_issue_cmd() 63 rcode = NXRD32(adapter, NX_ARG1_CRB_OFFSET); in netxen_issue_cmd() 66 netxen_nic_driver_name, rcode); in netxen_issue_cmd() 80 return rcode; in netxen_issue_cmd() 219 u32 rcode = NX_RCODE_SUCCESS; in nx_fw_cmd_set_mtu() local 230 rcode = netxen_issue_cmd(adapter, &cmd); in nx_fw_cmd_set_mtu() 232 if (rcode != NX_RCODE_SUCCESS) in nx_fw_cmd_set_mtu() 525 u32 rcode; in nx_fw_cmd_query_phy() local 534 rcode = netxen_issue_cmd(adapter, &cmd); in nx_fw_cmd_query_phy() [all …]
|
/linux-5.19.10/net/smc/ |
D | smc_stats.h | 108 #define SMC_STAT_TX_PAYLOAD(_smc, length, rcode) \ argument 114 typeof(rcode) _rc = (rcode); \ 123 #define SMC_STAT_RX_PAYLOAD(_smc, length, rcode) \ argument 129 typeof(rcode) _rc = (rcode); \
|
/linux-5.19.10/drivers/target/sbp/ |
D | sbp_target.c | 803 int sess_gen, sess_node, rcode; in tgt_agent_rw() local 812 rcode = RCODE_TYPE_ERROR; in tgt_agent_rw() 819 rcode = RCODE_TYPE_ERROR; in tgt_agent_rw() 828 rcode = tgt_agent_rw_agent_state(card, tcode, data, agent); in tgt_agent_rw() 831 rcode = tgt_agent_rw_agent_reset(card, tcode, data, agent); in tgt_agent_rw() 834 rcode = tgt_agent_rw_orb_pointer(card, tcode, data, agent); in tgt_agent_rw() 837 rcode = tgt_agent_rw_doorbell(card, tcode, data, agent); in tgt_agent_rw() 840 rcode = tgt_agent_rw_unsolicited_status_enable(card, tcode, in tgt_agent_rw() 843 rcode = RCODE_ADDRESS_ERROR; in tgt_agent_rw() 847 fw_send_response(card, request, rcode); in tgt_agent_rw() [all …]
|
/linux-5.19.10/include/uapi/linux/ |
D | firewire-cdev.h | 119 __u32 rcode; member 356 __u32 rcode; member 534 __u32 rcode; member
|
/linux-5.19.10/sound/firewire/tascam/ |
D | tascam-transaction.c | 145 static void async_midi_port_callback(struct fw_card *card, int rcode, in async_midi_port_callback() argument 156 if (rcode == RCODE_COMPLETE) in async_midi_port_callback() 158 else if (!rcode_is_permanent_error(rcode)) in async_midi_port_callback()
|
/linux-5.19.10/include/linux/ |
D | firewire.h | 270 typedef void (*fw_transaction_callback_t)(struct fw_card *card, int rcode, 355 struct fw_request *request, int rcode); 367 const char *fw_rcode_string(int rcode);
|
/linux-5.19.10/drivers/media/firewire/ |
D | firedtv-fw.c | 41 int rcode, generation = device->generation; in node_req() local 45 rcode = fw_run_transaction(device->card, tcode, device->node_id, in node_req() 48 return rcode != RCODE_COMPLETE ? -EIO : 0; in node_req()
|
/linux-5.19.10/drivers/s390/cio/ |
D | trace.h | 289 __field(u16, rcode) 299 __entry->rcode = chsc->code; 304 __entry->cc, __entry->rcode)
|
/linux-5.19.10/sound/firewire/bebob/ |
D | bebob_maudio.c | 96 int err, rcode; in snd_bebob_maudio_load_firmware() local 123 rcode = fw_run_transaction(device->card, TCODE_WRITE_BLOCK_REQUEST, in snd_bebob_maudio_load_firmware() 128 if (rcode != RCODE_COMPLETE) { in snd_bebob_maudio_load_firmware()
|