Home
last modified time | relevance | path

Searched refs:ret (Results 351 – 375 of 1703) sorted by relevance

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

/rk3399_rockchip-uboot/drivers/spi/
H A Dbcm63xx_hsspi.c258 int ret; in bcm63xx_hsspi_xfer() local
280 ret = wait_for_bit_be32(priv->regs + SPI_STAT_REG, in bcm63xx_hsspi_xfer()
283 if (ret) { in bcm63xx_hsspi_xfer()
285 return ret; in bcm63xx_hsspi_xfer()
343 int ret; in bcm63xx_hsspi_probe() local
354 ret = clk_get_by_name(dev, "hsspi", &clk); in bcm63xx_hsspi_probe()
355 if (ret < 0) in bcm63xx_hsspi_probe()
356 return ret; in bcm63xx_hsspi_probe()
358 ret = clk_enable(&clk); in bcm63xx_hsspi_probe()
359 if (ret < 0) in bcm63xx_hsspi_probe()
[all …]
/rk3399_rockchip-uboot/drivers/mmc/
H A Dsdhci-cadence.c73 int ret; in sdhci_cdns_write_phy_reg() local
82 ret = readl_poll_timeout(reg, tmp, tmp & SDHCI_CDNS_HRS04_ACK, 10); in sdhci_cdns_write_phy_reg()
83 if (ret) in sdhci_cdns_write_phy_reg()
84 return ret; in sdhci_cdns_write_phy_reg()
96 int ret, i; in sdhci_cdns_phy_init() local
104 ret = sdhci_cdns_write_phy_reg(plat, in sdhci_cdns_phy_init()
107 if (ret) in sdhci_cdns_phy_init()
108 return ret; in sdhci_cdns_phy_init()
128 int ret; in sdhci_cdns_probe() local
142 ret = sdhci_cdns_phy_init(plat, gd->fdt_blob, dev_of_offset(dev)); in sdhci_cdns_probe()
[all …]
/rk3399_rockchip-uboot/drivers/misc/
H A Dfsl_iim.c132 int ret; in prepare_read() local
134 ret = prepare_access(regs, bank, word, val != NULL, caller); in prepare_read()
135 if (ret) in prepare_read()
136 return ret; in prepare_read()
147 int ret; in fuse_read() local
149 ret = prepare_read(&regs, bank, word, val, __func__); in fuse_read()
150 if (ret) in fuse_read()
151 return ret; in fuse_read()
181 int ret; in fuse_sense() local
183 ret = prepare_read(&regs, bank, word, val, __func__); in fuse_sense()
[all …]
/rk3399_rockchip-uboot/drivers/clk/tegra/
H A Dtegra186-clk.c17 int ret; in tegra186_clk_get_rate() local
24 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_get_rate()
26 if (ret < 0) in tegra186_clk_get_rate()
27 return ret; in tegra186_clk_get_rate()
36 int ret; in tegra186_clk_set_rate() local
44 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_set_rate()
46 if (ret < 0) in tegra186_clk_set_rate()
47 return ret; in tegra186_clk_set_rate()
57 int ret; in tegra186_clk_en_dis() local
61 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_en_dis()
[all …]
/rk3399_rockchip-uboot/lib/
H A Dtime.c67 int ret; in get_tbclk()
69 ret = dm_timer_init(); in get_tbclk()
70 if (ret) in get_tbclk()
71 return ret; in get_tbclk()
81 int ret; in get_ticks() local
87 int ret; in get_ticks()
89 ret = dm_timer_init(); in get_ticks()
90 if (ret) in get_ticks()
91 return ret; in get_ticks()
95 ret = timer_get_count(gd->timer, &count); in get_ticks()
[all …]
H A Dlz4_wrapper.c58 int ret; in ulz4fn() local
64 ret = misc_decompress_process((ulong)dst, (ulong)src, (ulong)srcn, in ulz4fn()
66 if (!ret) { in ulz4fn()
69 } else if (ret != -ENODEV) { in ulz4fn()
70 printf("hw ulz4fn failed(%d), fallback to soft ulz4fn\n", ret); in ulz4fn()
102 ret = -EINVAL; /* input overrun */ in ulz4fn()
107 ret = 0; /* decompression successful */ in ulz4fn()
116 ret = -ENOBUFS; /* output overrun */ in ulz4fn()
121 ret = LZ4_decompress_generic(in, out, b.size, in ulz4fn()
124 if (ret < 0) { in ulz4fn()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dspi.c46 int ret = 0; in do_spi_xfer() local
56 ret = spi_get_bus_and_cs(bus, cs, 1000000, mode, "spi_generic_drv", in do_spi_xfer()
58 if (ret) in do_spi_xfer()
59 return ret; in do_spi_xfer()
68 ret = spi_claim_bus(slave); in do_spi_xfer()
69 if (ret) in do_spi_xfer()
71 ret = spi_xfer(slave, bitlen, dout, din, in do_spi_xfer()
75 if (ret) in do_spi_xfer()
76 ret = -EIO; in do_spi_xfer()
78 if (ret) { in do_spi_xfer()
[all …]
H A Dnvme.c17 int ret; in do_nvme() local
21 ret = nvme_scan_namespace(); in do_nvme()
22 if (ret) in do_nvme()
25 return ret; in do_nvme()
30 ret = blk_get_device(IF_TYPE_NVME, nvme_curr_dev, in do_nvme()
32 if (ret < 0) in do_nvme()
37 return ret; in do_nvme()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3568/
H A Dclk_rk3568.c31 int ret; in rockchip_get_cru() local
33 ret = rockchip_get_clk(&dev); in rockchip_get_cru()
34 if (ret) in rockchip_get_cru()
35 return ERR_PTR(ret); in rockchip_get_cru()
52 int ret; in rockchip_get_pmucru() local
54 ret = rockchip_get_pmucruclk(&dev); in rockchip_get_pmucru()
55 if (ret) in rockchip_get_pmucru()
56 return ERR_PTR(ret); in rockchip_get_pmucru()
/rk3399_rockchip-uboot/drivers/bootcount/
H A Dbootcount_ext.c17 int ret; in bootcount_store() local
30 ret = fs_write(CONFIG_SYS_BOOTCOUNT_EXT_NAME, in bootcount_store()
32 if (ret != 0) in bootcount_store()
40 int ret; in bootcount_load() local
48 ret = fs_read(CONFIG_SYS_BOOTCOUNT_EXT_NAME, CONFIG_SYS_BOOTCOUNT_ADDR, in bootcount_load()
50 if (ret != 0 || len_read != 2) { in bootcount_load()
57 ret = buf[1]; in bootcount_load()
61 return ret; in bootcount_load()
/rk3399_rockchip-uboot/drivers/mtd/
H A Drenesas_rpc_hf.c169 int ret; in rpc_hf_mode() local
171 ret = rpc_hf_wait_tend(); in rpc_hf_mode()
172 if (ret) in rpc_hf_mode()
173 return ret; in rpc_hf_mode()
208 int ret; in rpc_hf_xfer() local
211 ret = rpc_hf_mode(1); in rpc_hf_xfer()
212 if (ret) in rpc_hf_xfer()
213 return ret; in rpc_hf_xfer()
245 ret = rpc_hf_wait_tend(); in rpc_hf_xfer()
246 if (ret) in rpc_hf_xfer()
[all …]
/rk3399_rockchip-uboot/drivers/video/rockchip/
H A Drk_vop.c230 int ret, remote, i, offset; in rk_display_init() local
250 ret = uclass_find_device_by_of_offset(UCLASS_DISPLAY, offset, &disp); in rk_display_init()
251 if (ret) { in rk_display_init()
253 dev->name, ret); in rk_display_init()
254 return ret; in rk_display_init()
267 ret = device_probe(disp); in rk_display_init()
268 if (ret) { in rk_display_init()
270 __func__, dev->name, ret); in rk_display_init()
271 return ret; in rk_display_init()
274 ret = display_read_timing(disp, &timing); in rk_display_init()
[all …]
/rk3399_rockchip-uboot/drivers/sysreset/
H A Dsysreset_sti.c35 int ret; in sti_sysreset_probe() local
38 ret = fdtdec_parse_phandle_with_args(gd->fdt_blob, dev_of_offset(dev), in sti_sysreset_probe()
41 if (ret < 0) { in sti_sysreset_probe()
42 pr_err("Can't get syscfg phandle: %d\n", ret); in sti_sysreset_probe()
43 return ret; in sti_sysreset_probe()
46 ret = uclass_get_device_by_of_offset(UCLASS_SYSCON, in sti_sysreset_probe()
49 if (ret) { in sti_sysreset_probe()
51 __func__, ret); in sti_sysreset_probe()
52 return ret; in sti_sysreset_probe()
/rk3399_rockchip-uboot/drivers/video/sunxi/
H A Dsunxi_de2.c184 int ret; in sunxi_de2_init() local
195 ret = device_probe(disp); in sunxi_de2_init()
196 if (ret) { in sunxi_de2_init()
198 __func__, dev->name, ret); in sunxi_de2_init()
199 return ret; in sunxi_de2_init()
202 ret = display_read_timing(disp, &timing); in sunxi_de2_init()
203 if (ret) { in sunxi_de2_init()
205 return ret; in sunxi_de2_init()
211 ret = display_enable(disp, 1 << l2bpp, &timing); in sunxi_de2_init()
212 if (ret) { in sunxi_de2_init()
[all …]
/rk3399_rockchip-uboot/drivers/usb/eth/
H A Dasix.c160 int ret; in asix_set_sw_mii() local
162 ret = asix_write_cmd(dev, AX_CMD_SET_SW_MII, 0x0000, 0, 0, NULL); in asix_set_sw_mii()
163 if (ret < 0) in asix_set_sw_mii()
165 return ret; in asix_set_sw_mii()
170 int ret; in asix_set_hw_mii() local
172 ret = asix_write_cmd(dev, AX_CMD_SET_HW_MII, 0x0000, 0, 0, NULL); in asix_set_hw_mii()
173 if (ret < 0) in asix_set_hw_mii()
175 return ret; in asix_set_hw_mii()
210 int ret; in asix_sw_reset() local
212 ret = asix_write_cmd(dev, AX_CMD_SW_RESET, flags, 0, 0, NULL); in asix_sw_reset()
[all …]
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dnand_base.c110 int ret = 0; in check_offs_len() local
115 ret = -EINVAL; in check_offs_len()
121 ret = -EINVAL; in check_offs_len()
124 return ret; in check_offs_len()
400 int ret = 0, res, i = 0; in nand_default_block_markbad() local
418 if (!ret) in nand_default_block_markbad()
419 ret = res; in nand_default_block_markbad()
425 return ret; in nand_default_block_markbad()
448 int res, ret = 0; in nand_block_markbad_lowlevel() local
462 ret = chip->block_markbad(mtd, ofs); in nand_block_markbad_lowlevel()
[all …]
/rk3399_rockchip-uboot/common/spl/
H A Dspl_dfu.c22 int ret; in run_dfu() local
24 ret = dfu_init_env_entities(interface, devstring); in run_dfu()
25 if (ret) { in run_dfu()
33 return ret; in run_dfu()
39 int ret; in spl_dfu_cmd() local
49 ret = env_set("dfu_alt_info", str_env); in spl_dfu_cmd()
50 if (ret) { in spl_dfu_cmd()
/rk3399_rockchip-uboot/drivers/power/pmic/
H A Drn5t567.c24 int ret; in rn5t567_write() local
26 ret = dm_i2c_write(dev, reg, buff, len); in rn5t567_write()
27 if (ret) { in rn5t567_write()
29 return ret; in rn5t567_write()
37 int ret; in rn5t567_read() local
39 ret = dm_i2c_read(dev, reg, buff, len); in rn5t567_read()
40 if (ret) { in rn5t567_read()
42 return ret; in rn5t567_read()
H A Dmax8997.c25 int ret; in max8997_write() local
27 ret = dm_i2c_write(dev, reg, buff, len); in max8997_write()
28 if (ret) in max8997_write()
31 return ret; in max8997_write()
36 int ret; in max8997_read() local
38 ret = dm_i2c_read(dev, reg, buff, len); in max8997_read()
39 if (ret) in max8997_read()
42 return ret; in max8997_read()
H A Ds2mps11.c26 int ret; in s2mps11_write() local
28 ret = dm_i2c_write(dev, reg, buff, len); in s2mps11_write()
29 if (ret) in s2mps11_write()
32 return ret; in s2mps11_write()
37 int ret; in s2mps11_read() local
39 ret = dm_i2c_read(dev, reg, buff, len); in s2mps11_read()
40 if (ret) in s2mps11_read()
43 return ret; in s2mps11_read()
H A Dmax8998.c25 int ret; in max8998_write() local
27 ret = dm_i2c_write(dev, reg, buff, len); in max8998_write()
28 if (ret) in max8998_write()
31 return ret; in max8998_write()
36 int ret; in max8998_read() local
38 ret = dm_i2c_read(dev, reg, buff, len); in max8998_read()
39 if (ret) in max8998_read()
42 return ret; in max8998_read()
/rk3399_rockchip-uboot/common/
H A Ddfu.c26 int ret, i = 0; in run_usb_dnl_gadget() local
32 ret = usb_gadget_initialize(usbctrl_index); in run_usb_dnl_gadget()
33 if (ret) { in run_usb_dnl_gadget()
38 ret = g_dnl_register(usb_dnl_gadget); in run_usb_dnl_gadget()
39 if (ret) { in run_usb_dnl_gadget()
93 ret = dfu_flush(dfu_get_defer_flush(), NULL, 0, 0); in run_usb_dnl_gadget()
95 if (ret) { in run_usb_dnl_gadget()
113 return ret; in run_usb_dnl_gadget()
/rk3399_rockchip-uboot/board/freescale/mx51evk/
H A Dmx51evk_video.c78 int ret; in board_video_skip() local
83 ret = ipuv3_fb_init(&claa_wvga, 1, IPU_PIX_FMT_RGB565); in board_video_skip()
84 if (ret) in board_video_skip()
85 printf("claa cannot be configured: %d\n", ret); in board_video_skip()
86 return ret; in board_video_skip()
94 ret = ipuv3_fb_init(&dvi, 0, IPU_PIX_FMT_RGB24); in board_video_skip()
95 if (ret) in board_video_skip()
96 printf("dvi cannot be configured: %d\n", ret); in board_video_skip()
97 return ret; in board_video_skip()
/rk3399_rockchip-uboot/post/lib_powerpc/
H A Dstore.c147 int ret = 0; in cpu_post_test_store() local
151 for (i = 0; i < cpu_post_store_size && ret == 0; i++) in cpu_post_test_store()
180 if (ret == 0) in cpu_post_test_store()
183 ret = base == base0 + test->offset ? 0 : -1; in cpu_post_test_store()
185 ret = base == base0 ? 0 : -1; in cpu_post_test_store()
188 if (ret == 0) in cpu_post_test_store()
193 ret = *(uchar *)(base0 + test->offset) == test->value ? in cpu_post_test_store()
197 ret = *(ushort *)(base0 + test->offset) == test->value ? in cpu_post_test_store()
201 ret = *(ulong *)(base0 + test->offset) == test->value ? in cpu_post_test_store()
207 if (ret != 0) in cpu_post_test_store()
[all …]
/rk3399_rockchip-uboot/drivers/pinctrl/rockchip/
H A Dpinctrl-rk3368.c19 int reg, ret, mask, mux_type; in rk3368_set_mux() local
33 ret = regmap_write(regmap, reg, data); in rk3368_set_mux()
35 return ret; in rk3368_set_mux()
70 int reg, ret; in rk3368_set_pull() local
79 ret = rockchip_translate_pull_value(type, pull); in rk3368_set_pull()
80 if (ret < 0) { in rk3368_set_pull()
82 return ret; in rk3368_set_pull()
87 data |= (ret << bit); in rk3368_set_pull()
88 ret = regmap_write(regmap, reg, data); in rk3368_set_pull()
90 return ret; in rk3368_set_pull()
[all …]

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