Searched refs:ret (Results 101 - 125 of 2782) sorted by relevance

1234567891011>>

/u-boot/test/dm/
H A Dclk_ccf.c24 int ret; local
36 ret = clk_get_by_id(SANDBOX_CLK_ECSPI_ROOT, &clk);
37 ut_assertok(ret);
42 ret = clk_get_by_id(SANDBOX_CLK_ECSPI1, &clk);
43 ut_assertok(ret);
51 ret = clk_get_by_id(SANDBOX_CLK_ECSPI0, &clk);
52 ut_assertok(ret);
60 ret = clk_get_by_id(SANDBOX_CLK_USDHC1_SEL, &clk);
61 ut_assertok(ret);
74 ret
[all...]
/u-boot/arch/arm/mach-imx/imx8ulp/upower/
H A Dupower_hal.c47 u32 ret = -1; local
52 ret = 0;
67 return ret;
78 int ret, ret_val; local
81 ret = upwr_xcp_i2c_access(0x32, 1, 1, reg_addr, reg_val, NULL);
82 if (ret) {
83 printf("pmic i2c write failed ret %d\n", ret);
84 return ret;
88 ret
101 int ret, ret_val; local
136 int ret, ret_val; local
[all...]
/u-boot/arch/riscv/lib/
H A Dspl.c24 int ret; local
26 ret = spl_early_init();
27 if (ret)
28 panic("spl_early_init() failed: %d\n", ret);
34 ret = spl_board_init_f();
35 if (ret)
36 panic("spl_board_init_f() failed: %d\n", ret);
43 __maybe_unused int ret; local
57 ret = smp_call_function(spl_image->entry_point, (ulong)fdt_blob, 0, 0);
58 if (ret)
[all...]
/u-boot/drivers/block/
H A Dblkmap_helper.c16 int ret; local
22 ret = blkmap_create(label, &bm_dev);
23 if (ret) {
25 return ret;
31 ret = blkmap_map_pmem(bm_dev, 0, blknum, image_addr);
32 if (ret) {
34 (unsigned long long)image_addr, 0, ret);
40 ret = device_probe(bm->blk);
41 if (ret)
52 return ret;
[all...]
/u-boot/drivers/power/domain/
H A Dimx8-power-domain.c18 int ret; local
22 ret = sc_pm_set_resource_power_mode(-1, resource_id, SC_PM_PW_MODE_ON);
23 if (ret) {
25 resource_id, ret);
26 return ret;
35 int ret; local
39 ret = sc_pm_set_resource_power_mode(-1, resource_id, SC_PM_PW_MODE_OFF);
40 if (ret) {
42 resource_id, ret);
43 return ret;
[all...]
/u-boot/drivers/power/pmic/
H A Dpmic_tps65218.c17 int ret; local
19 ret = i2c_read(TPS65218_CHIP_PM, dest_reg, 1, &read_val, 1);
20 if (ret)
21 return ret;
48 int ret; local
55 ret = i2c_read(TPS65218_CHIP_PM, dest_reg, 1, &read_val, 1);
56 if (ret)
57 return ret;
65 ret = i2c_write(TPS65218_CHIP_PM, TPS65218_PASSWORD, 1,
67 if (ret)
94 int ret; local
113 int ret; local
[all...]
H A Dpmic_tps65910.c59 int ret; local
63 ret = tps65910_read_reg(TPS65910_DEVCTRL_REG, &buf);
65 if (ret)
66 return ret;
83 int ret; local
91 ret = tps65910_read_reg(reg_offset, &buf);
92 if (ret)
93 return ret;
97 ret = tps65910_write_reg(reg_offset, &buf);
98 if (ret)
[all...]
H A Das3722.c23 int ret; local
25 ret = dm_i2c_read(dev, reg, buff, len);
26 if (ret < 0)
27 return ret;
35 int ret; local
37 ret = dm_i2c_write(dev, reg, buff, len);
38 if (ret < 0)
39 return ret;
46 int ret; local
48 ret
68 int ret; local
84 int ret; local
102 int ret; local
132 int ret; local
[all...]
H A Dab8500.c74 int ret; local
76 ret = regmap_read(priv->regmap, PRCM_ARM_IT1_VAL, &val);
77 if (ret)
78 return ret;
83 ret = regmap_write(priv->regmap, PRCM_ARM_IT1_CLR,
85 if (ret)
86 return ret;
97 int ret; local
100 ret = regmap_write(priv->regmap, PRCM_MBOX_CPU_SET, PRCMU_I2C_MBOX_BIT);
101 if (ret)
116 int ret; local
186 int ret; local
203 int ret; local
228 int ret; local
[all...]
/u-boot/cmd/
H A Dusb_gadget_sdp.c20 int ret; local
26 ret = udc_device_get_by_index(controller_index, &udc);
27 if (ret)
28 return ret;
31 ret = g_dnl_register("usb_dnl_sdp");
32 if (ret) {
33 pr_err("SDP dnl register failed: %d\n", ret);
37 ret = sdp_init(udc);
38 if (ret) {
39 pr_err("SDP init failed: %d\n", ret);
[all...]
H A Dpmc.c16 int ret; local
18 ret = uclass_first_device_err(UCLASS_ACPI_PMC, &dev);
19 if (ret) {
20 printf("Could not find device (err=%d)\n", ret);
21 return ret;
23 ret = pmc_init(dev);
24 if (ret) {
25 printf("Could not init device (err=%d)\n", ret);
26 return ret;
37 int ret; local
50 int ret; local
[all...]
/u-boot/post/lib_powerpc/
H A Dcomplex.c52 int ret = -1; local
79 ret = 0;
82 return ret;
87 int ret = 0; local
90 if (ret == 0)
92 ret = cpu_post_test_complex_1();
95 if (ret == 0)
97 ret = cpu_post_test_complex_2();
100 if (ret != 0)
108 return ret;
[all...]
H A Db.c36 int ret = 0; local
58 if (ret == 0)
59 ret = pjump == jump ? 0 : -1;
60 if (ret == 0)
63 ret = pctr == ctr + 1 ? 0 : -1;
65 ret = pctr == ctr ? 0 : -1;
67 if (ret == 0)
70 ret = lr == (ulong) code + 24 ? 0 : -1;
72 ret = lr == 0 ? 0 : -1;
75 return ret;
80 int ret = 0; local
[all...]
/u-boot/board/google/gru/
H A Dgru.c40 int ret; local
47 ret = uclass_get_device_by_driver(UCLASS_CLK,
49 if (ret) {
50 debug("%s: CLK init failed: %d\n", __func__, ret);
51 return ret;
/u-boot/arch/arm/mach-mediatek/
H A Dspl.c17 int ret; local
19 ret = spl_early_init();
20 if (ret)
27 ret = mtk_soc_early_init();
28 if (ret)
/u-boot/board/Marvell/mvebu_armada-8k/
H A Dboard.c52 int ret; local
57 ret = i2c_get_chip_for_busnum(0, I2C_IO_EXP_ADDR, 1, &dev);
58 if (ret) {
59 printf("Cannot find PCA9555: %d\n", ret);
67 ret = dm_i2c_read(dev, I2C_IO_CFG_REG_0, buf, 1);
68 if (ret) {
74 ret = dm_i2c_write(dev, I2C_IO_CFG_REG_0, buf, 1);
75 if (ret) {
81 ret = dm_i2c_read(dev, I2C_IO_DATA_OUT_REG_0, buf, 1);
82 if (ret) {
103 int ret; local
[all...]
/u-boot/arch/x86/lib/
H A Dinit_helpers.c20 int ret; local
35 ret = mtrr_commit(false);
40 if (ret && ret != -ENOSYS)
41 return ret;
/u-boot/drivers/video/
H A Dpwm_backlight.c65 int ret; local
71 ret = pwm_set_config(priv->pwm, priv->channel, priv->period_ns,
75 ret = pwm_set_config(priv->pwm, priv->channel,
79 if (ret)
80 return log_ret(ret);
82 ret = pwm_set_invert(priv->pwm, priv->channel, priv->polarity);
83 if (ret == -ENOSYS && !priv->polarity)
84 ret = 0;
86 return log_ret(ret);
92 int ret; local
124 int ret; local
148 int ret; local
198 int index, ret, count, len; local
[all...]
/u-boot/drivers/remoteproc/
H A Dti_sci_proc.h35 int ret; local
39 ret = tsp->ops->proc_request(tsp->sci, tsp->proc_id);
40 if (ret)
41 pr_err("ti-sci processor request failed: %d\n", ret);
42 return ret;
47 int ret; local
52 ret = tsp->ops->proc_handover(tsp->sci, tsp->proc_id,
55 ret = tsp->ops->proc_release(tsp->sci, tsp->proc_id);
57 if (ret)
58 pr_err("ti-sci processor release failed: %d\n", ret);
64 int ret; local
79 int ret; local
97 int ret; local
112 int ret; local
126 int ret; local
139 int ret; local
[all...]
/u-boot/arch/arm/mach-mediatek/mt7629/
H A Dinit.c41 int ret, i; local
43 ret = uclass_get_device_by_driver(UCLASS_CLK,
45 if (ret)
46 return ret;
52 ret = clk_set_rate(&clk, pll_rates[i]);
53 if (ret)
54 return ret;
56 ret = clk_enable(&clk);
57 if (ret)
58 return ret;
73 int ret; local
103 int ret; local
[all...]
/u-boot/drivers/dfu/
H A Ddfu_alt.c30 int alt_setting_num, ret; local
36 ret = dfu_init_env_entities(interface, devstring);
37 if (ret)
49 ret = -ENOMEM;
61 ret = -ENODEV;
68 ret = -ENODEV;
72 ret = dfu_write_from_mem_addr(dfu, (void *)addr, len);
77 return ret;
97 int ret; local
102 ret
[all...]
/u-boot/drivers/firmware/arm-ffa/
H A Dsandbox_ffa.c30 int ret; local
35 ret = ffa_emul_find(dev, &emul);
36 if (ret) {
38 return ret;
41 ret = ffa_get_version_hdlr(dev);
42 if (ret)
43 return ret;
58 int ret; local
61 ret = uclass_first_device_err(UCLASS_FFA_EMUL, &uc_priv->emul);
62 if (ret) {
80 int ret; local
[all...]
/u-boot/arch/arm/mach-socfpga/
H A Dspl_n5x.c29 int ret; local
32 ret = spl_early_init();
33 if (ret)
58 ret = uclass_get_device(UCLASS_CLK, 0, &dev);
59 if (ret) {
60 printf("Clock init failed: %d\n", ret);
64 ret = uclass_get_device(UCLASS_CLK, 1, &dev);
65 if (ret) {
66 printf("Memory clock init failed: %d\n", ret);
75 ret
[all...]
/u-boot/common/
H A Dboard_info.c32 int ret; local
35 ret = sysinfo_get(&dev);
36 if (ret)
37 return ret;
39 ret = sysinfo_detect(dev);
40 if (ret)
41 return ret;
43 ret = sysinfo_get_str(dev, SYSINFO_ID_BOARD_MODEL, sizeof(str), str);
44 if (ret)
45 return ret;
64 int ret = -ENOSYS; local
[all...]
/u-boot/arch/arm/mach-snapdragon/
H A Dof_fixup.c38 int ret, len, hsphy_idx = 1; local
45 ret = of_write_prop(glue_np, "qcom,select-utmi-as-pipe-clk", 0, NULL);
46 if (ret) {
47 log_err("Failed to add property 'qcom,select-utmi-as-pipe-clk': %d\n", ret);
48 return ret;
66 ret = of_property_read_string_index(dwc3, "phy-names", 1, &second_phy_name);
67 if (ret == -ENODATA) {
70 } else if (ret) {
71 log_err("Failed to read second phy name: %d\n", ret);
72 return ret;
107 int ret; local
[all...]

Completed in 176 milliseconds

1234567891011>>