| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | flash.c | 195 int rcode = 0; in flash_fill_sect_ranges() local 243 rcode = 1; in flash_fill_sect_ranges() 250 rcode = 1; in flash_fill_sect_ranges() 258 rcode = 1; in flash_fill_sect_ranges() 263 rcode = 1; in flash_fill_sect_ranges() 268 return rcode; in flash_fill_sect_ranges() 311 int rcode = 0; in do_flerase() local 320 rcode = flash_erase (info, 0, info->sector_count-1); in do_flerase() 322 return rcode; in do_flerase() 332 rcode = flash_erase(info, sect_first, sect_last); in do_flerase() [all …]
|
| H A D | date.c | 36 int rcode = 0; in do_date() local 43 rcode = uclass_get_device(UCLASS_RTC, 0, &dev); in do_date() 44 if (rcode) { in do_date() 45 printf("Cannot find RTC: err=%d\n", rcode); in do_date() 61 rcode = dm_rtc_reset(dev); in do_date() 62 if (!rcode) in do_date() 63 rcode = dm_rtc_set(dev, &default_tm); in do_date() 66 rcode = rtc_set(&default_tm); in do_date() 68 if (rcode) in do_date() 73 rcode = dm_rtc_get(dev, &tm); in do_date() [all …]
|
| H A D | eeprom.c | 161 int rcode = 0; in eeprom_rw() local 169 rcode = eeprom_rw_block(offset, addr, alen, buffer, len, read); in eeprom_rw() 178 return rcode; in eeprom_rw() 298 int rcode = 0; in eeprom_execute_command() local 312 rcode = eeprom_read(i2c_addr, off, (uchar *)addr, cnt); in eeprom_execute_command() 315 return rcode; in eeprom_execute_command() 319 rcode = eeprom_write(i2c_addr, off, (uchar *)addr, cnt); in eeprom_execute_command() 322 return rcode; in eeprom_execute_command() 326 rcode = eeprom_read(i2c_addr, 0, eeprom_buf, CONFIG_SYS_EEPROM_SIZE); in eeprom_execute_command() 327 if (rcode < 0) in eeprom_execute_command() [all …]
|
| H A D | mii.c | 277 int rcode = 0; in do_mii() local 366 rcode = 1; in do_mii() 383 rcode = 1; in do_mii() 396 rcode = 1; in do_mii() 404 rcode = 1; in do_mii() 425 rcode = 1; in do_mii() 453 return rcode; in do_mii()
|
| /OK3568_Linux_fs/kernel/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() 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 …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-keystone/ |
| H A D | cmd_mon.c | 20 int rcode = 0; in do_mon_install() local 46 rcode = mon_install(load_addr, dpsc_base, freq, ecrypt_bm_addr); in do_mon_install() 48 load_addr, freq, rcode); in do_mon_install() 72 int rcode = 0, core_id, on; in do_mon_power() local 84 rcode = mon_power_on(core_id, fn); in do_mon_power() 86 rcode = mon_power_off(core_id); in do_mon_power() 89 if (!rcode) in do_mon_power()
|
| /OK3568_Linux_fs/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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/firewire/ |
| H A 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() 672 int rcode, void *payload, size_t length) in fw_fill_response() argument 688 HEADER_RCODE(rcode); in fw_fill_response() [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 == RCODE_GENERATION) in bm_work()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/u-boot/env/ |
| H A D | nvram.c | 71 int rcode = 0; in env_nvram_save() local 73 rcode = env_export(&env_new); in env_nvram_save() 74 if (rcode) in env_nvram_save() 75 return rcode; in env_nvram_save() 81 rcode = 1; in env_nvram_save() 83 return rcode; in env_nvram_save()
|
| H A D | eeprom.c | 27 int rcode; in eeprom_bus_read() local 35 rcode = eeprom_read(dev_addr, offset, buffer, cnt); in eeprom_bus_read() 41 return rcode; in eeprom_bus_read() 47 int rcode; in eeprom_bus_write() local 55 rcode = eeprom_write(dev_addr, offset, buffer, cnt); in eeprom_bus_write() 61 return rcode; in eeprom_bus_write()
|
| /OK3568_Linux_fs/kernel/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 = -EFAULT; in aac_send_raw_srb() [all …]
|
| /OK3568_Linux_fs/kernel/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() 640 int rcode; in adpt_abort() local 658 rcode = adpt_i2o_post_wait(pHba, msg, sizeof(msg), FOREVER); in adpt_abort() 661 if (rcode != 0) { in adpt_abort() 662 if(rcode == -EOPNOTSUPP ){ in adpt_abort() 682 u32 rcode; in adpt_device_reset() local [all …]
|
| /OK3568_Linux_fs/kernel/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 = RCODE_ADDRESS_ERROR; in fwtty_port_handler() [all …]
|
| /OK3568_Linux_fs/u-boot/common/ |
| H A D | cli_hush.c | 546 int rcode = EXIT_SUCCESS; in builtin_eval() local 553 rcode = last_return_code; in builtin_eval() 555 return rcode; in builtin_eval() 1266 int i, rcode; local 1295 rcode = x->function(child); 1297 _exit(rcode); 1342 rcode = run_list_real(child->group); 1345 _exit(rcode); 1435 int i, rcode = 0; local 1439 rcode=WEXITSTATUS(status); [all …]
|
| H A D | cli.c | 81 int rcode = 0; in run_command_list() local 101 rcode = parse_string_outer(buff, FLAG_PARSE_SEMICOLON); in run_command_list() 111 rcode = cli_simple_run_command_list(buff, flag); in run_command_list() 113 rcode = board_run_command(buff); in run_command_list() 119 return rcode; in run_command_list()
|
| H A D | cli_simple.c | 312 int rcode = 0; in cli_simple_run_command_list() local 327 rcode = 1; in cli_simple_run_command_list() 335 if (rcode == 0 && *line) in cli_simple_run_command_list() 336 rcode = (cli_simple_run_command(line, 0) < 0); in cli_simple_run_command_list() 338 return rcode; in cli_simple_run_command_list()
|
| /OK3568_Linux_fs/kernel/sound/firewire/fireface/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/csf/ |
| H A D | mali_kbase_csf_tl_reader.c | 268 int rcode; in kbasep_csf_tl_reader_read_callback() local 272 rcode = mod_timer(&self->read_timer, in kbasep_csf_tl_reader_read_callback() 275 CSTD_UNUSED(rcode); in kbasep_csf_tl_reader_read_callback() 382 int rcode; in kbase_csf_tl_reader_start() local 408 rcode = tl_reader_update_enable_bit(self, true); in kbase_csf_tl_reader_start() 409 if (rcode != 0) in kbase_csf_tl_reader_start() 410 return rcode; in kbase_csf_tl_reader_start() 412 rcode = mod_timer(&self->read_timer, in kbase_csf_tl_reader_start()
|
| /OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc8xx/ |
| H A D | immap.c | 178 uint rcode = 0; in do_iopset() local 200 rcode = 1; in do_iopset() 203 rcode = 1; in do_iopset() 213 rcode = 1; in do_iopset() 229 rcode = 1; in do_iopset() 236 rcode = 1; in do_iopset() 237 if (rcode == 0) { in do_iopset() 280 return rcode; in do_iopset()
|
| /OK3568_Linux_fs/u-boot/board/BuS/eb_cpu5282/ |
| H A D | eb_cpu5282.c | 230 int rcode = 0; in do_brightness() local 241 rcode = 0; in do_brightness() 245 rcode = 1; in do_brightness() 250 rcode = 1; in do_brightness() 253 return rcode; in do_brightness()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/ |
| H A D | mali_kbase_vinstr.c | 979 long rcode; in kbasep_vinstr_hwcnt_reader_ioctl() local 991 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_api_version( in kbasep_vinstr_hwcnt_reader_ioctl() 995 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_hwver( in kbasep_vinstr_hwcnt_reader_ioctl() 999 rcode = put_user((u32)cli->vctx->metadata_user->dump_buf_bytes, in kbasep_vinstr_hwcnt_reader_ioctl() 1003 rcode = kbasep_vinstr_hwcnt_reader_ioctl_dump(cli); in kbasep_vinstr_hwcnt_reader_ioctl() 1006 rcode = kbasep_vinstr_hwcnt_reader_ioctl_clear(cli); in kbasep_vinstr_hwcnt_reader_ioctl() 1009 rcode = kbasep_vinstr_hwcnt_reader_ioctl_get_buffer( in kbasep_vinstr_hwcnt_reader_ioctl() 1013 rcode = kbasep_vinstr_hwcnt_reader_ioctl_put_buffer( in kbasep_vinstr_hwcnt_reader_ioctl() 1017 rcode = kbasep_vinstr_hwcnt_reader_ioctl_set_interval( in kbasep_vinstr_hwcnt_reader_ioctl() 1021 rcode = kbasep_vinstr_hwcnt_reader_ioctl_enable_event( in kbasep_vinstr_hwcnt_reader_ioctl() [all …]
|