/kernel/linux/linux-6.6/sound/firewire/ |
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/sound/firewire/ |
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/sound/firewire/fireworks/ |
H A 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() 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() 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 in efw_response() 165 handle_resp_for_user(struct fw_card *card, int generation, int source, void *data, size_t length, int *rcode) handle_resp_for_user() argument 197 handle_resp_for_kernel(struct fw_card *card, int generation, int source, void *data, size_t length, int *rcode, u32 seqnum) handle_resp_for_kernel() argument [all...] |
/kernel/linux/linux-6.6/sound/firewire/fireworks/ |
H A 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() 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() 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 in efw_response() 165 handle_resp_for_user(struct fw_card *card, int generation, int source, void *data, size_t length, int *rcode) handle_resp_for_user() argument 197 handle_resp_for_kernel(struct fw_card *card, int generation, int source, void *data, size_t length, int *rcode, u32 seqnum) handle_resp_for_kernel() argument [all...] |
/kernel/linux/linux-6.6/drivers/firewire/ |
H A D | core-transaction.c | 39 #define HEADER_RCODE(rcode) ((rcode) << 12) 73 static int close_transaction(struct fw_transaction *transaction, struct fw_card *card, int rcode, in close_transaction() argument 96 t->callback.without_tstamp(card, rcode, NULL, 0, t->callback_data); in close_transaction() 98 t->callback.with_tstamp(card, rcode, t->packet.timestamp, response_tstamp, in close_transaction() 220 * rcode, so just forward that to the callback. in transmit_complete_callback() 427 int rcode; member 430 static void transaction_callback(struct fw_card *card, int rcode, in transaction_callback() argument 435 if (rcode == RCODE_COMPLETE) in transaction_callback() 437 d->rcode in transaction_callback() 729 fw_fill_response(struct fw_packet *response, u32 *request_header, int rcode, void *payload, size_t length) fw_fill_response() argument 870 fw_send_response(struct fw_card *card, struct fw_request *request, int rcode) fw_send_response() argument 1028 int tcode, tlabel, source, rcode; fw_core_handle_response() local 1105 fw_rcode_string(int rcode) fw_rcode_string() argument 1183 int rcode = RCODE_COMPLETE; handle_registers() local [all...] |
H A 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() 525 rcode = fw_run_transaction(card, TCODE_WRITE_QUADLET_REQUEST, in bm_work() 529 if (rcode in bm_work() [all...] |
H A D | uapi-test.c | 24 KUNIT_EXPECT_EQ(test, 12, offsetof(struct fw_cdev_event_response, rcode)); in structure_layout_event_response() 55 KUNIT_EXPECT_EQ(test, 12, offsetof(struct fw_cdev_event_response2, rcode)); in structure_layout_event_response2() 69 KUNIT_EXPECT_EQ(test, 12, offsetof(struct fw_cdev_event_phy_packet2, rcode)); in structure_layout_event_phy_packet2()
|
/kernel/linux/linux-5.10/drivers/firewire/ |
H A D | core-transaction.c | 39 #define HEADER_RCODE(rcode) ((rcode) << 12) 74 struct fw_card *card, int rcode) in close_transaction() 95 t->callback(card, rcode, NULL, 0, t->callback_data); in close_transaction() 192 * rcode, so just forward that to the callback. in transmit_complete_callback() 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() 73 close_transaction(struct fw_transaction *transaction, struct fw_card *card, int rcode) close_transaction() argument 671 fw_fill_response(struct fw_packet *response, u32 *request_header, int rcode, void *payload, size_t length) fw_fill_response() argument 801 fw_send_response(struct fw_card *card, struct fw_request *request, int rcode) fw_send_response() argument 943 int tcode, tlabel, source, rcode; fw_core_handle_response() local 1015 fw_rcode_string(int rcode) fw_rcode_string() argument 1093 int rcode = RCODE_COMPLETE; handle_registers() local [all...] |
H A 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 in bm_work() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/aacraid/ |
H A 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 in aac_send_raw_srb() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/aacraid/ |
H A 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 in aac_send_raw_srb() [all...] |
H A D | aachba.c | 1676 int rcode; in aac_send_safw_bmic_cmd() local 1703 rcode = -ENOMEM; in aac_send_safw_bmic_cmd() 1737 rcode = aac_fib_send(ScsiPortCommand64, fibptr, fibsize, FsaNormal, in aac_send_safw_bmic_cmd() 1740 if (rcode == -ERESTARTSYS) in aac_send_safw_bmic_cmd() 1741 rcode = -ERESTART; in aac_send_safw_bmic_cmd() 1743 if (unlikely(rcode < 0)) in aac_send_safw_bmic_cmd() 1754 return rcode; in aac_send_safw_bmic_cmd() 1782 int rcode = -ENOMEM; in aac_issue_safw_bmic_identify() local 1801 rcode = aac_send_safw_bmic_cmd(dev, &srbu, identify_reply, datasize); in aac_issue_safw_bmic_identify() 1802 if (unlikely(rcode < in aac_issue_safw_bmic_identify() 1829 int rcode = -ENOMEM; aac_get_safw_ciss_luns() local 1931 int rcode = 0; aac_get_safw_attr_all_targets() local 2011 int rcode = 0; aac_setup_safw_targets() local 2042 int rcode; aac_get_adapter_info() local [all...] |
/kernel/linux/linux-5.10/sound/firewire/fireface/ |
H A D | ff-transaction.c | 11 int rcode) in finish_transmit_midi_msg() 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() 10 finish_transmit_midi_msg(struct snd_ff *ff, unsigned int port, int rcode) finish_transmit_midi_msg() argument
|
/kernel/linux/linux-6.6/sound/firewire/fireface/ |
H A D | ff-transaction.c | 11 int rcode) in finish_transmit_midi_msg() 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() 10 finish_transmit_midi_msg(struct snd_ff *ff, unsigned int port, int rcode) finish_transmit_midi_msg() argument
|
/kernel/linux/linux-5.10/drivers/staging/fwserial/ |
H A 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() 609 int rcode; in fwtty_port_handler() local 616 rcode in fwtty_port_handler() 667 fwtty_tx_complete(struct fw_card *card, int rcode, void *data, size_t length, struct fwtty_transaction *txn) fwtty_tx_complete() argument 1649 int rcode, tries = 5; fwserial_send_mgmt_sync() local 1777 int err, rcode; fwserial_connect_peer() local 2486 int rcode; fwserial_handle_plug_req() local 2557 int rcode; fwserial_handle_unplug_req() local 2610 int rcode; fwserial_parse_mgmt_write() local 2719 int rcode; fwserial_mgmt_handler() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A 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() 595 int rcode; in adpt_abort() local 613 rcode = adpt_i2o_post_wait(pHba, msg, sizeof(msg), FOREVER); in adpt_abort() 616 if (rcode != 0) { in adpt_abort() 617 if(rcode in adpt_abort() 637 u32 rcode; adpt_device_reset() local 681 u32 rcode; adpt_bus_reset() local 708 int rcode; __adpt_reset() local 738 int rcode; adpt_hba_reset() local 1939 s32 rcode; adpt_scsi_to_i2o() local 2204 s32 rcode; adpt_rescan() local 2398 int rcode; adpt_i2o_activate_hba() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/netxen/ |
H A 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() 218 u32 rcode = NX_RCODE_SUCCESS; in nx_fw_cmd_set_mtu() local 229 rcode = netxen_issue_cmd(adapter, &cmd); in nx_fw_cmd_set_mtu() 231 if (rcode != NX_RCODE_SUCCESS) in nx_fw_cmd_set_mtu() 522 u32 rcode; in nx_fw_cmd_query_phy() local 531 rcode in nx_fw_cmd_query_phy() 545 u32 rcode; nx_fw_cmd_set_phy() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/netxen/ |
H A 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 in nx_fw_cmd_query_phy() 548 u32 rcode; nx_fw_cmd_set_phy() local [all...] |
/kernel/linux/linux-6.6/net/smc/ |
H A D | smc_stats.h | 108 #define SMC_STAT_TX_PAYLOAD(_smc, length, rcode) \ 114 typeof(rcode) _rc = (rcode); \ 123 #define SMC_STAT_RX_PAYLOAD(_smc, length, rcode) \ 129 typeof(rcode) _rc = (rcode); \
|
/kernel/linux/linux-5.10/sound/firewire/oxfw/ |
H A 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()
|
/kernel/linux/linux-6.6/sound/firewire/oxfw/ |
H A 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()
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | firewire-cdev.h | 108 * @rcode: Response code returned by the remote node 118 __u32 rcode; member 129 * @rcode: Response code returned by the remote node 146 * packets. @rcode indicates success or failure of such transmissions. 157 __u32 rcode; member 424 * @rcode: %RCODE_..., indicates success or failure of transmission 436 __u32 rcode; member 446 * @rcode: %RCODE_..., indicates success or failure of transmission 476 __u32 rcode; member 656 * @rcode 668 __u32 rcode; global() member [all...] |
/kernel/linux/linux-5.10/drivers/target/sbp/ |
H A 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() 1246 rcode = RCODE_COMPLETE; sbp_rw_data() local 1588 int rcode = RCODE_ADDRESS_ERROR; sbp_mgt_agent_rw() local [all...] |