/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...] |
/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...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_vinstr.c | 878 int rcode;
in kbasep_vinstr_collect_and_accumulate() local 898 rcode = kbase_instr_hwcnt_request_dump(vinstr_ctx->kctx);
in kbasep_vinstr_collect_and_accumulate() 901 if (!rcode) {
in kbasep_vinstr_collect_and_accumulate() 902 rcode = kbase_instr_hwcnt_wait_for_dump(vinstr_ctx->kctx);
in kbasep_vinstr_collect_and_accumulate() 904 WARN_ON(rcode);
in kbasep_vinstr_collect_and_accumulate() 921 if (!rcode) {
in kbasep_vinstr_collect_and_accumulate() 925 return rcode;
in kbasep_vinstr_collect_and_accumulate() 974 int rcode;
in kbasep_vinstr_fill_dump_buffer_legacy() local 977 rcode = copy_to_user(buffer, cli->accum_buffer, cli->dump_size);
in kbasep_vinstr_fill_dump_buffer_legacy() 978 if (rcode) {
in kbasep_vinstr_fill_dump_buffer_legacy() 1045 int rcode = 0; kbasep_vinstr_update_client() local 1135 int rcode; kbasep_vinstr_service_task() local 1472 long rcode = 0; kbasep_vinstr_hwcnt_reader_ioctl() local 1820 int rcode = 0; kbase_vinstr_hwc_dump() local 1861 int rcode; kbase_vinstr_hwc_clear() local [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_vinstr.c | 937 int rcode; in kbasep_vinstr_collect_and_accumulate() local 957 rcode = kbase_instr_hwcnt_request_dump(vinstr_ctx->kctx); in kbasep_vinstr_collect_and_accumulate() 960 if (!rcode) in kbasep_vinstr_collect_and_accumulate() 961 rcode = kbase_instr_hwcnt_wait_for_dump(vinstr_ctx->kctx); in kbasep_vinstr_collect_and_accumulate() 962 WARN_ON(rcode); in kbasep_vinstr_collect_and_accumulate() 980 if (!rcode) in kbasep_vinstr_collect_and_accumulate() 983 return rcode; in kbasep_vinstr_collect_and_accumulate() 1033 int rcode; in kbasep_vinstr_fill_dump_buffer_legacy() local 1036 rcode = copy_to_user(buffer, cli->accum_buffer, cli->dump_size); in kbasep_vinstr_fill_dump_buffer_legacy() 1037 if (rcode) in kbasep_vinstr_fill_dump_buffer_legacy() 1112 int rcode = 0; kbasep_vinstr_update_client() local 1207 int rcode; kbasep_vinstr_service_task() local 1564 long rcode = 0; kbasep_vinstr_hwcnt_reader_ioctl() local 1941 int rcode = 0; kbase_vinstr_hwc_dump() local 1981 int rcode; kbase_vinstr_hwc_clear() 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...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/ |
H A D | mali_kbase_csf_tl_reader.c | 355 int rcode; in kbasep_csf_tl_reader_read_callback() local 359 rcode = mod_timer(&self->read_timer, in kbasep_csf_tl_reader_read_callback() 362 CSTD_UNUSED(rcode); in kbasep_csf_tl_reader_read_callback() 473 int rcode; in kbase_csf_tl_reader_start() local 499 rcode = tl_reader_update_enable_bit(self, true); in kbase_csf_tl_reader_start() 500 if (rcode != 0) in kbase_csf_tl_reader_start() 501 return rcode; in kbase_csf_tl_reader_start() 503 rcode = mod_timer(&self->read_timer, in kbase_csf_tl_reader_start()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/tl/ |
H A D | mali_kbase_timeline.c | 64 int rcode; in kbasep_timeline_autoflush_timer_callback() local 91 rcode = mod_timer(&timeline->autoflush_timer, jiffies + msecs_to_jiffies(AUTOFLUSH_INTERVAL)); in kbasep_timeline_autoflush_timer_callback() 93 CSTD_UNUSED(rcode); in kbasep_timeline_autoflush_timer_callback() 184 int rcode; in kbase_timeline_io_acquire() local 212 rcode = mod_timer(&timeline->autoflush_timer, jiffies + msecs_to_jiffies(AUTOFLUSH_INTERVAL)); in kbase_timeline_io_acquire() 213 CSTD_UNUSED(rcode); in kbase_timeline_io_acquire()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tl/ |
H A D | mali_kbase_timeline.c | 66 int rcode; in kbasep_timeline_autoflush_timer_callback() local 96 rcode = mod_timer( in kbasep_timeline_autoflush_timer_callback() 99 CSTD_UNUSED(rcode); in kbasep_timeline_autoflush_timer_callback() 194 int rcode; in kbase_timeline_io_acquire() local 260 rcode = mod_timer(&timeline->autoflush_timer, in kbase_timeline_io_acquire() 263 CSTD_UNUSED(rcode); in kbase_timeline_io_acquire()
|
/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...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_vinstr.c | 974 long rcode; in kbasep_vinstr_hwcnt_reader_ioctl() local 986 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_api_version( in kbasep_vinstr_hwcnt_reader_ioctl() 990 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_hwver( in kbasep_vinstr_hwcnt_reader_ioctl() 994 rcode = put_user((u32)cli->vctx->metadata_user->dump_buf_bytes, in kbasep_vinstr_hwcnt_reader_ioctl() 998 rcode = kbasep_vinstr_hwcnt_reader_ioctl_dump(cli); in kbasep_vinstr_hwcnt_reader_ioctl() 1001 rcode = kbasep_vinstr_hwcnt_reader_ioctl_clear(cli); in kbasep_vinstr_hwcnt_reader_ioctl() 1004 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_buffer( in kbasep_vinstr_hwcnt_reader_ioctl() 1008 rcode = kbasep_vinstr_hwcnt_reader_ioctl_put_buffer( in kbasep_vinstr_hwcnt_reader_ioctl() 1012 rcode = kbasep_vinstr_hwcnt_reader_ioctl_set_interval( in kbasep_vinstr_hwcnt_reader_ioctl() 1016 rcode in kbasep_vinstr_hwcnt_reader_ioctl() [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_vinstr.c | 911 long rcode; in kbasep_vinstr_hwcnt_reader_ioctl() local 925 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_api_version(cli, arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl() 928 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_hwver(cli, (u32 __user *)arg); in kbasep_vinstr_hwcnt_reader_ioctl() 931 rcode = put_user((u32)cli->vctx->metadata->dump_buf_bytes, (u32 __user *)arg); in kbasep_vinstr_hwcnt_reader_ioctl() 934 rcode = kbasep_vinstr_hwcnt_reader_ioctl_dump(cli); in kbasep_vinstr_hwcnt_reader_ioctl() 937 rcode = kbasep_vinstr_hwcnt_reader_ioctl_clear(cli); in kbasep_vinstr_hwcnt_reader_ioctl() 940 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_buffer(cli, (void __user *)arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl() 943 rcode = kbasep_vinstr_hwcnt_reader_ioctl_put_buffer(cli, (void __user *)arg, _IOC_SIZE(cmd)); in kbasep_vinstr_hwcnt_reader_ioctl() 946 rcode = kbasep_vinstr_hwcnt_reader_ioctl_set_interval(cli, (u32)arg); in kbasep_vinstr_hwcnt_reader_ioctl() 949 rcode in kbasep_vinstr_hwcnt_reader_ioctl() [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); \
|