Home
last modified time | relevance | path

Searched refs:ret (Results 426 – 450 of 1703) sorted by relevance

1...<<11121314151617181920>>...69

/rk3399_rockchip-uboot/drivers/irq/
H A Dirq-generic.c104 int ret = -EINVAL; in __do_arch_irq_init() local
137 ret = irqchip.gic->irq_init(); in __do_arch_irq_init()
138 if (ret) { in __do_arch_irq_init()
139 IRQ_E("GIC Interrupt setup failed, ret=%d\n", ret); in __do_arch_irq_init()
143 ret = irqchip.gpio->irq_init(); in __do_arch_irq_init()
144 if (ret) { in __do_arch_irq_init()
145 IRQ_E("GPIO Interrupt setup failed, ret=%d\n", ret); in __do_arch_irq_init()
149 ret = irqchip.virq->irq_init(); in __do_arch_irq_init()
150 if (ret) { in __do_arch_irq_init()
151 IRQ_E("VIRQ Interrupt setup failed, ret=%d\n", ret); in __do_arch_irq_init()
[all …]
/rk3399_rockchip-uboot/drivers/pci/
H A Dpci_rom.c241 int ret; in dm_pci_run_vga_bios() local
253 ret = pci_rom_probe(dev, &rom); in dm_pci_run_vga_bios()
254 if (ret) in dm_pci_run_vga_bios()
255 return ret; in dm_pci_run_vga_bios()
257 ret = pci_rom_load(rom, &ram, &alloced); in dm_pci_run_vga_bios()
258 if (ret) in dm_pci_run_vga_bios()
262 ret = -ENXIO; in dm_pci_run_vga_bios()
278 ret = -ENOSYS; in dm_pci_run_vga_bios()
289 ret = -ENOSYS; in dm_pci_run_vga_bios()
300 ret = biosemu_setup(dev, &info); in dm_pci_run_vga_bios()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dgpio.c40 int ret; in gpio_get_description() local
42 ret = gpio_get_function(dev, offset, NULL); in gpio_get_description()
43 if (ret < 0) in gpio_get_description()
45 if (!(*flagsp & FLAG_SHOW_ALL) && ret == GPIOF_UNUSED) in gpio_get_description()
56 ret = gpio_get_status(dev, offset, buf, sizeof(buf)); in gpio_get_description()
57 if (ret) in gpio_get_description()
63 printf("Error %d\n", ret); in gpio_get_description()
123 int ret; in do_gpio() local
175 ret = gpio_lookup_name(str_gpio, NULL, NULL, &gpio); in do_gpio()
176 if (ret) { in do_gpio()
[all …]
H A Ddvfs.c14 int ret; in do_dvfs() local
16 ret = uclass_get_device(UCLASS_DVFS, 0, &dev); in do_dvfs()
17 if (ret) { in do_dvfs()
18 if (ret != -ENODEV) in do_dvfs()
19 printf("DVFS: Get dvfs device failed, ret=%d\n", ret); in do_dvfs()
20 return ret; in do_dvfs()
H A Drkimgtest.c15 int ret; in do_rkimg_test() local
28 ret = blk_dread(dev_desc, 64, 2, buffer); in do_rkimg_test()
29 if (ret != 2) { in do_rkimg_test()
36 ret = CMD_RET_SUCCESS; in do_rkimg_test()
52 ret = CMD_RET_SUCCESS; in do_rkimg_test()
54 ret = CMD_RET_FAILURE; in do_rkimg_test()
59 return ret; in do_rkimg_test()
/rk3399_rockchip-uboot/board/renesas/stout/
H A Dstout.c133 int ret = -ENODEV; in board_eth_init() local
139 ret = sh_eth_initialize(bis); in board_eth_init()
141 return ret; in board_eth_init()
152 return ret; in board_eth_init()
161 int ret = phy_read(phydev, MDIO_DEVAD_NONE, PHY_CONTROL1); in board_phy_config() local
162 ret &= ~PHY_LED_MODE; in board_phy_config()
163 ret |= PHY_LED_MODE_ACK; in board_phy_config()
164 ret = phy_write(phydev, MDIO_DEVAD_NONE, PHY_CONTROL1, (u16)ret); in board_phy_config()
171 int ret = -ENODEV; in board_mmc_init() local
195 ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI0_BASE, 0, in board_mmc_init()
[all …]
/rk3399_rockchip-uboot/board/renesas/porter/
H A Dporter.c124 int ret = -ENODEV; in board_eth_init() local
128 ret = sh_eth_initialize(bis); in board_eth_init()
130 return ret; in board_eth_init()
140 return ret; in board_eth_init()
148 int ret = -ENODEV; in board_mmc_init() local
170 ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI0_BASE, 0, in board_mmc_init()
172 if (ret) in board_mmc_init()
173 return ret; in board_mmc_init()
179 ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI2_BASE, 2, 0); in board_mmc_init()
181 return ret; in board_mmc_init()
[all …]
/rk3399_rockchip-uboot/drivers/pinctrl/rockchip/
H A Dpinctrl-rockchip-core.c120 int reg, ret, mask, mux_type; in rockchip_get_mux() local
145 ret = regmap_read(regmap, reg, &val); in rockchip_get_mux()
146 if (ret) in rockchip_get_mux()
147 return ret; in rockchip_get_mux()
201 int ret; in rockchip_set_mux() local
203 ret = rockchip_verify_mux(bank, pin, mux); in rockchip_set_mux()
204 if (ret < 0) in rockchip_set_mux()
205 return ret == -ENOTSUPP ? 0 : ret; in rockchip_set_mux()
215 ret = ctrl->set_mux(bank, pin, mux); in rockchip_set_mux()
216 if (ret) in rockchip_set_mux()
[all …]
/rk3399_rockchip-uboot/drivers/gpio/
H A Dpca953x.c207 int ret = CMD_RET_USAGE, val; in do_pca953x() local
231 ret = pca953x_info(chip); in do_pca953x()
232 if (ret) in do_pca953x()
233 ret = CMD_RET_FAILURE; in do_pca953x()
240 ret = CMD_RET_SUCCESS; in do_pca953x()
244 ret = pca953x_set_dir(chip, (1 << ul_arg2), in do_pca953x()
248 if (ret) in do_pca953x()
249 ret = CMD_RET_FAILURE; in do_pca953x()
256 ret = pca953x_set_dir(chip, (1 << ul_arg2), in do_pca953x()
258 if (!ret) in do_pca953x()
[all …]
/rk3399_rockchip-uboot/drivers/misc/
H A Dtegra_car.c19 int ret; in tegra_car_bpmp_bind() local
24 ret = device_bind_driver_to_node(dev, "tegra_car_clk", "tegra_car_clk", in tegra_car_bpmp_bind()
26 if (ret) in tegra_car_bpmp_bind()
27 return ret; in tegra_car_bpmp_bind()
29 ret = device_bind_driver_to_node(dev, "tegra_car_reset", in tegra_car_bpmp_bind()
32 if (ret) in tegra_car_bpmp_bind()
33 return ret; in tegra_car_bpmp_bind()
/rk3399_rockchip-uboot/board/spear/spear310/
H A Dspear310.c54 int ret = 0; in board_eth_init() local
59 ret++; in board_eth_init()
64 ret++; in board_eth_init()
68 ret++; in board_eth_init()
72 ret++; in board_eth_init()
76 ret++; in board_eth_init()
78 return ret; in board_eth_init()
/rk3399_rockchip-uboot/env/
H A Dnand.c169 int ret = 0; in erase_and_write_env() local
180 ret = writeenv(location->erase_opts.offset, env_new); in erase_and_write_env()
181 puts(ret ? "FAILED!\n" : "OK\n"); in erase_and_write_env()
183 return ret; in erase_and_write_env()
188 int ret = 0; in env_nand_save() local
214 ret = env_export(env_new); in env_nand_save()
215 if (ret) in env_nand_save()
216 return ret; in env_nand_save()
222 ret = erase_and_write_env(&location[env_idx], (u_char *)env_new); in env_nand_save()
224 if (!ret) { in env_nand_save()
[all …]
/rk3399_rockchip-uboot/arch/x86/lib/fsp/
H A Dfsp_common.c91 int ret; in fsp_prepare_mrc_cache() local
93 ret = mrccache_get_region(NULL, &entry); in fsp_prepare_mrc_cache()
94 if (ret) in fsp_prepare_mrc_cache()
111 int ret; in fsp_save_s3_stack() local
116 ret = uclass_get_device(UCLASS_RTC, 0, &dev); in fsp_save_s3_stack()
117 if (ret) { in fsp_save_s3_stack()
118 debug("Cannot find RTC: err=%d\n", ret); in fsp_save_s3_stack()
123 ret = rtc_write32(dev, CMOS_FSP_STACK_ADDR, gd->start_addr_sp); in fsp_save_s3_stack()
124 if (ret) { in fsp_save_s3_stack()
125 debug("Save stack address to CMOS: err=%d\n", ret); in fsp_save_s3_stack()
/rk3399_rockchip-uboot/drivers/i2c/
H A Dstm32f7_i2c.c347 int ret; in stm32_i2c_check_end_of_message() local
349 ret = stm32_i2c_wait_flags(i2c_priv, mask, &status); in stm32_i2c_check_end_of_message()
350 if (ret) in stm32_i2c_check_end_of_message()
351 return ret; in stm32_i2c_check_end_of_message()
379 ret = stm32_i2c_wait_flags(i2c_priv, mask, &status); in stm32_i2c_check_end_of_message()
380 if (ret) in stm32_i2c_check_end_of_message()
381 return ret; in stm32_i2c_check_end_of_message()
383 ret = -EIO; in stm32_i2c_check_end_of_message()
394 return ret; in stm32_i2c_check_end_of_message()
406 int ret = 0; in stm32_i2c_message_xfer() local
[all …]
/rk3399_rockchip-uboot/drivers/power/regulator/
H A Ds5m8767.c103 int ret, uv, val; in reg_get_value() local
105 ret = pmic_reg_read(dev->parent, param->vol_addr); in reg_get_value()
106 if (ret < 0) in reg_get_value()
107 return ret; in reg_get_value()
110 val = (ret >> param->vol_bitpos) & param->vol_bitmask; in reg_get_value()
120 int ret, val; in reg_set_value() local
127 ret = pmic_clrsetbits(dev->parent, param->vol_addr, in reg_set_value()
131 return ret; in reg_set_value()
162 int ret; in reg_get_enable() local
164 ret = pmic_reg_read(dev->parent, param->reg_enaddr); in reg_get_enable()
[all …]
/rk3399_rockchip-uboot/board/rockchip/gva_rk3229/
H A Dgva_rk3229.c41 int ret, i; in set_serialno() local
46 ret = vendor_storage_read(VENDOR_SN_ID, serialno_str, (VENDOR_SN_MAX-1)); in set_serialno()
47 if (ret > 0) { in set_serialno()
53 ret = uclass_get_device_by_driver(UCLASS_MISC, in set_serialno()
55 if (ret) { in set_serialno()
57 return ret; in set_serialno()
60 ret = misc_read(dev, RK3229_CPUID_OFF, &cpuid, sizeof(cpuid)); in set_serialno()
61 if (ret) { in set_serialno()
63 return ret; in set_serialno()
/rk3399_rockchip-uboot/drivers/mtd/ubi/
H A Dfastmap.c28 int *ret; in init_seen() local
33 ret = kcalloc(ubi->peb_count, sizeof(int), GFP_KERNEL); in init_seen()
34 if (!ret) in init_seen()
37 return ret; in init_seen()
70 int pnum, ret = 0; in self_check_seen() local
78 ret = -EINVAL; in self_check_seen()
82 return ret; in self_check_seen()
467 int i, pnum, err, ret = 0; in scan_pool() local
493 ret = UBI_BAD_FASTMAP; in scan_pool()
501 ret = err > 0 ? UBI_BAD_FASTMAP : err; in scan_pool()
[all …]
/rk3399_rockchip-uboot/drivers/power/io-domain/
H A Drockchip-io-domain.c180 int ret; in rockchip_iodomain_write() local
189 ret = regmap_write(regmap, priv->sdata->grf_offset, val); in rockchip_iodomain_write()
190 if (ret) { in rockchip_iodomain_write()
192 return ret; in rockchip_iodomain_write()
200 int ret; in px30_iodomain_init() local
212 ret = regmap_write(iod->regmap_base, PX30_IO_VSEL, val); in px30_iodomain_init()
213 if (ret < 0) in px30_iodomain_init()
219 int ret; in rk3288_iodomain_init() local
231 ret = regmap_write(iod->regmap_base, RK3288_SOC_CON2, val); in rk3288_iodomain_init()
232 if (ret < 0) in rk3288_iodomain_init()
[all …]
/rk3399_rockchip-uboot/drivers/rtc/
H A Dmxsrtc.c22 int ret; in mxs_rtc_set_time() local
31 ret = mxs_wait_mask_clr(&rtc_regs->hw_rtc_stat_reg, in mxs_rtc_set_time()
34 if (ret) in mxs_rtc_set_time()
37 return ret; in mxs_rtc_set_time()
63 int ret; in rtc_reset() local
69 ret = mxs_reset_block(&rtc_regs->hw_rtc_ctrl_reg); in rtc_reset()
70 if (ret) in rtc_reset()
H A Dpcf2127.c28 int i = 0, ret; in pcf2127_rtc_set() local
47 ret = dm_i2c_write(dev, PCF2127_REG_CTRL1, buf, sizeof(buf)); in pcf2127_rtc_set()
49 return ret; in pcf2127_rtc_set()
54 int ret = 0; in pcf2127_rtc_get() local
57 ret = dm_i2c_write(dev, PCF2127_REG_CTRL1, buf, 1); in pcf2127_rtc_get()
58 if (ret < 0) in pcf2127_rtc_get()
59 return ret; in pcf2127_rtc_get()
60 ret = dm_i2c_read(dev, PCF2127_REG_CTRL1, buf, sizeof(buf)); in pcf2127_rtc_get()
61 if (ret < 0) in pcf2127_rtc_get()
62 return ret; in pcf2127_rtc_get()
[all …]
/rk3399_rockchip-uboot/examples/standalone/
H A Datmel_df_pow2.c33 int ret; in flash_set_pow2() local
40 ret = flash_cmd(slave, CMD_CFG, buf, sizeof(buf)); in flash_set_pow2()
41 if (ret) in flash_set_pow2()
42 return ret; in flash_set_pow2()
47 ret = flash_status(slave); in flash_set_pow2()
48 if (ret == -1) in flash_set_pow2()
51 return ret & 0x1 ? 0 : 1; in flash_set_pow2()
56 int ret; in flash_check() local
59 ret = flash_cmd(slave, CMD_ID, buf, sizeof(buf)); in flash_check()
60 if (ret) in flash_check()
[all …]
/rk3399_rockchip-uboot/drivers/spi/
H A Dsandbox_spi.c62 int ret; in sandbox_spi_xfer() local
83 ret = sandbox_spi_get_emul(state, bus, slave, &emul); in sandbox_spi_xfer()
84 if (ret) { in sandbox_spi_xfer()
86 __func__, busnum, cs, ret); in sandbox_spi_xfer()
89 ret = device_probe(emul); in sandbox_spi_xfer()
90 if (ret) in sandbox_spi_xfer()
91 return ret; in sandbox_spi_xfer()
94 ret = ops->xfer(emul, bitlen, dout, din, flags); in sandbox_spi_xfer()
97 ret, ret ? "bad" : "good"); in sandbox_spi_xfer()
104 return ret; in sandbox_spi_xfer()
/rk3399_rockchip-uboot/drivers/bootcount/
H A Dbootcount_i2c.c17 int ret; in bootcount_store() local
21 ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, CONFIG_SYS_BOOTCOUNT_ADDR, in bootcount_store()
23 if (ret != 0) in bootcount_store()
30 int ret; in bootcount_load() local
32 ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, CONFIG_SYS_BOOTCOUNT_ADDR, in bootcount_load()
34 if (ret != 0) { in bootcount_load()
/rk3399_rockchip-uboot/drivers/reset/
H A Dreset-scmi.c24 int ret; in scmi_reset_set_level() local
26 ret = devm_scmi_process_msg(rst->dev->parent, &msg); in scmi_reset_set_level()
27 if (ret) in scmi_reset_set_level()
28 return ret; in scmi_reset_set_level()
52 int ret; in scmi_reset_request() local
58 ret = devm_scmi_process_msg(rst->dev->parent, &msg); in scmi_reset_request()
59 if (ret) in scmi_reset_request()
60 return ret; in scmi_reset_request()
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dsf.c19 int ret; in spi_flash_read_write() local
24 ret = spi_xfer(spi, cmd_len * 8, cmd, NULL, flags); in spi_flash_read_write()
25 if (ret) { in spi_flash_read_write()
27 cmd_len, ret); in spi_flash_read_write()
29 ret = spi_xfer(spi, data_len * 8, data_out, data_in, in spi_flash_read_write()
31 if (ret) in spi_flash_read_write()
33 data_len, ret); in spi_flash_read_write()
36 return ret; in spi_flash_read_write()

1...<<11121314151617181920>>...69