Home
last modified time | relevance | path

Searched refs:rcode (Results 1 – 25 of 55) sorted by relevance

123

/openbmc/u-boot/cmd/
H A Ddate.c35 int rcode = 0; in do_date() local
42 rcode = uclass_get_device(UCLASS_RTC, 0, &dev); in do_date()
43 if (rcode) { in do_date()
44 printf("Cannot find RTC: err=%d\n", rcode); in do_date()
60 rcode = dm_rtc_reset(dev); in do_date()
61 if (!rcode) in do_date()
62 rcode = dm_rtc_set(dev, &default_tm); in do_date()
65 rcode = rtc_set(&default_tm); in do_date()
67 if (rcode) in do_date()
72 rcode = dm_rtc_get(dev, &tm); in do_date()
[all …]
H A Dflash.c194 int rcode = 0; in flash_fill_sect_ranges() local
242 rcode = 1; in flash_fill_sect_ranges()
249 rcode = 1; in flash_fill_sect_ranges()
257 rcode = 1; in flash_fill_sect_ranges()
262 rcode = 1; in flash_fill_sect_ranges()
267 return rcode; in flash_fill_sect_ranges()
310 int rcode = 0; in do_flerase() local
319 rcode = flash_erase (info, 0, info->sector_count-1); in do_flerase()
321 return rcode; in do_flerase()
331 rcode = flash_erase(info, sect_first, sect_last); in do_flerase()
[all …]
H A Deeprom.c165 int rcode = 0; in eeprom_rw() local
173 rcode = eeprom_rw_block(offset, addr, alen, buffer, len, read); in eeprom_rw()
182 return rcode; in eeprom_rw()
302 int rcode = 0; in eeprom_execute_command() local
316 rcode = eeprom_read(i2c_addr, off, (uchar *)addr, cnt); in eeprom_execute_command()
319 return rcode; in eeprom_execute_command()
323 rcode = eeprom_write(i2c_addr, off, (uchar *)addr, cnt); in eeprom_execute_command()
326 return rcode; in eeprom_execute_command()
330 rcode = eeprom_read(i2c_addr, 0, eeprom_buf, CONFIG_SYS_EEPROM_SIZE); in eeprom_execute_command()
331 if (rcode < 0) in eeprom_execute_command()
[all …]
H A Dboot.c27 int rcode = 0; in do_go() local
41 if (rc != 0) rcode = 1; in do_go()
44 return rcode; in do_go()
H A Dmii.c276 int rcode = 0; in do_mii() local
365 rcode = 1; in do_mii()
382 rcode = 1; in do_mii()
395 rcode = 1; in do_mii()
403 rcode = 1; in do_mii()
424 rcode = 1; in do_mii()
452 return rcode; in do_mii()
H A Dpcmcia.c54 int rcode = 0; in do_pinit() local
61 rcode = pcmcia_on (); in do_pinit()
63 rcode = pcmcia_off (); in do_pinit()
69 return rcode; in do_pinit()
H A Dsource.c166 int rcode; in do_source() local
184 rcode = source (addr, fit_uname); in do_source()
185 return rcode; in do_source()
/openbmc/u-boot/arch/arm/mach-keystone/
H A Dcmd_mon.c19 int rcode = 0; in do_mon_install() local
45 rcode = mon_install(load_addr, dpsc_base, freq, ecrypt_bm_addr); in do_mon_install()
47 load_addr, freq, rcode); in do_mon_install()
71 int rcode = 0, core_id, on; in do_mon_power() local
83 rcode = mon_power_on(core_id, fn); in do_mon_power()
85 rcode = mon_power_off(core_id); in do_mon_power()
88 if (!rcode) in do_mon_power()
/openbmc/linux/sound/firewire/
H A Dlib.c38 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 Dlib.h21 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()
/openbmc/linux/sound/firewire/fireworks/
H A Dfireworks_transaction.c118 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 …]
/openbmc/u-boot/env/
H A Dnvram.c71 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 Deeprom.c27 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()
/openbmc/linux/drivers/firewire/
H A Dcore-transaction.c39 #define HEADER_RCODE(rcode) ((rcode) << 12) argument
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()
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 = rcode; in transaction_callback()
472 return d.rcode; in fw_run_transaction()
730 int rcode, void *payload, size_t length) in fw_fill_response() argument
[all …]
H A Dcore-card.c293 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 == RCODE_GENERATION) in bm_work()
/openbmc/linux/drivers/scsi/aacraid/
H A Dcommctrl.c491 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 …]
/openbmc/u-boot/common/
H A Dcli.c77 int rcode = 0; in run_command_list() local
97 rcode = parse_string_outer(buff, FLAG_PARSE_SEMICOLON); in run_command_list()
107 rcode = cli_simple_run_command_list(buff, flag); in run_command_list()
109 rcode = board_run_command(buff); in run_command_list()
115 return rcode; in run_command_list()
H A Dcli_hush.c545 int rcode = EXIT_SUCCESS; in builtin_eval() local
552 rcode = last_return_code; in builtin_eval()
554 return rcode; in builtin_eval()
1265 int i, rcode; local
1294 rcode = x->function(child);
1296 _exit(rcode);
1341 rcode = run_list_real(child->group);
1344 _exit(rcode);
1434 int i, rcode = 0; local
1438 rcode=WEXITSTATUS(status);
[all …]
H A Dcli_simple.c311 int rcode = 0; in cli_simple_run_command_list() local
326 rcode = 1; in cli_simple_run_command_list()
334 if (rcode == 0 && *line) in cli_simple_run_command_list()
335 rcode = (cli_simple_run_command(line, 0) < 0); in cli_simple_run_command_list()
337 return rcode; in cli_simple_run_command_list()
/openbmc/linux/sound/firewire/fireface/
H A Dff-transaction.c11 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()
/openbmc/u-boot/board/BuS/eb_cpu5282/
H A Deb_cpu5282.c229 int rcode = 0; in do_brightness() local
240 rcode = 0; in do_brightness()
244 rcode = 1; in do_brightness()
249 rcode = 1; in do_brightness()
252 return rcode; in do_brightness()
/openbmc/u-boot/arch/powerpc/cpu/mpc8xx/
H A Dimmap.c177 uint rcode = 0; in do_iopset() local
199 rcode = 1; in do_iopset()
202 rcode = 1; in do_iopset()
212 rcode = 1; in do_iopset()
228 rcode = 1; in do_iopset()
235 rcode = 1; in do_iopset()
236 if (rcode == 0) { in do_iopset()
279 return rcode; in do_iopset()
/openbmc/linux/sound/firewire/oxfw/
H A Doxfw-scs1x.c101 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()
/openbmc/linux/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_ctx.c37 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 …]
/openbmc/linux/net/smc/
H A Dsmc_stats.h108 #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); \

123