Searched refs:ret (Results 1 - 25 of 2782) sorted by relevance

1234567891011>>

/u-boot/board/chipspark/popmetal_rk3288/
H A Dpopmetal-rk3288.c14 int ret; local
16 ret = gpio_request(GPIO7A3_HUB_RST, "hub_rst");
17 if (ret)
18 return ret;
19 ret = gpio_direction_output(GPIO7A3_HUB_RST, 1);
20 if (ret)
21 return ret;
/u-boot/post/lib_powerpc/
H A Dcpu.c62 int ret = 0; local
68 if (ret == 0)
69 ret = cpu_post_test_cmp ();
70 if (ret == 0)
71 ret = cpu_post_test_cmpi ();
72 if (ret == 0)
73 ret = cpu_post_test_two ();
74 if (ret == 0)
75 ret = cpu_post_test_twox ();
77 if (ret
[all...]
/u-boot/post/lib_powerpc/fpu/
H A Dfpu.c44 int ret = 0; local
51 if (ret == 0)
52 ret = fpu_post_test_math1 ();
53 if (ret == 0)
54 ret = fpu_post_test_math2 ();
55 if (ret == 0)
56 ret = fpu_post_test_math3 ();
57 if (ret == 0)
58 ret = fpu_post_test_math4 ();
59 if (ret
[all...]
/u-boot/board/theobroma-systems/ringneck_px30/
H A Dringneck-px30.c32 int ret; local
34 ret = gpio_request(STM32_RST, "STM32_RST");
35 if (ret) {
40 ret = gpio_request(STM32_BOOT, "STM32_BOOT");
41 if (ret) {
47 ret = gpio_direction_input(STM32_BOOT);
48 if (ret) {
53 ret = gpio_direction_output(STM32_RST, 0);
54 if (ret) {
61 ret
[all...]
/u-boot/board/google/veyron/
H A Dveyron.c29 int ret; local
31 ret = regulator_get_by_platname("vdd_arm", &dev);
32 if (ret) {
34 return ret;
38 ret = regulator_set_value(dev, 1200000);
39 if (ret)
40 return ret;
42 ret = regulator_set_value(dev, 1400000);
43 if (ret)
44 return ret;
78 int ret; local
[all...]
/u-boot/arch/sandbox/lib/
H A Dfdt_fixup.c11 int ret; local
13 ret = fdt_find_or_add_subnode(blob, 0, "chosen");;
14 if (ret < 0)
16 ret = fdt_setprop_u32(blob, ret, "boot-hartid", 1);
17 if (ret < 0)
21 log_err("Setting /chosen/boot-hartid failed: %s\n", fdt_strerror(ret));
22 return ret;
/u-boot/board/freescale/common/
H A Di2c_mux.c21 int ret; local
25 ret = fsl_i2c_get_device(I2C_MUX_PCA_ADDR_PRI, bus, &dev);
26 if (ret) {
28 return ret;
31 ret = I2C_WRITE(dev, 0, &ch, sizeof(ch));
32 if (ret) {
33 printf("PCA: Unable to select channel %d (%d)\n", (int)ch, ret);
34 return ret;
/u-boot/arch/riscv/cpu/fu540/
H A Dspl.c12 int ret; local
16 ret = uclass_get_device(UCLASS_RAM, 0, &dev);
17 if (ret) {
18 debug("DRAM init failed: %d\n", ret);
19 return ret;
/u-boot/lib/efi_loader/
H A Defi_setup.c37 efi_status_t ret; local
46 ret = efi_set_variable_int(u"PlatformLangCodes",
53 if (ret != EFI_SUCCESS)
60 ret = efi_get_variable_int(u"PlatformLang",
63 if (ret == EFI_BUFFER_TOO_SMALL) {
65 ret = EFI_SUCCESS;
77 ret = efi_set_variable_int(u"PlatformLang",
84 if (ret != EFI_SUCCESS)
86 return ret;
101 efi_status_t ret; local
129 efi_status_t ret = EFI_SUCCESS; local
191 efi_status_t ret; local
225 efi_status_t ret = EFI_SUCCESS; local
[all...]
/u-boot/arch/arm/lib/
H A Dxferlist.c13 int ret; local
15 ret = bloblist_check(saved_args[3], size);
16 if (ret)
17 return ret;
19 ret = bloblist_check_reg_conv(saved_args[0], saved_args[2],
21 if (ret)
22 return ret;
/u-boot/board/st/stm32h743-disco/
H A Dstm32h743-disco.c18 int ret; local
20 ret = uclass_get_device(UCLASS_RAM, 0, &dev);
21 if (ret) {
22 debug("DRAM init failed: %d\n", ret);
23 return ret;
27 ret = -EINVAL;
29 return ret;
/u-boot/board/st/stm32h743-eval/
H A Dstm32h743-eval.c18 int ret; local
20 ret = uclass_get_device(UCLASS_RAM, 0, &dev);
21 if (ret) {
22 debug("DRAM init failed: %d\n", ret);
23 return ret;
27 ret = -EINVAL;
29 return ret;
/u-boot/board/st/stm32h750-art-pi/
H A Dstm32h750-art-pi.c18 int ret; local
20 ret = uclass_get_device(UCLASS_RAM, 0, &dev);
21 if (ret) {
22 debug("DRAM init failed: %d\n", ret);
23 return ret;
27 ret = -EINVAL;
29 return ret;
/u-boot/board/xilinx/common/
H A Dcpu-info.c15 int ret; local
17 ret = soc_get(&soc);
18 if (ret) {
23 ret = soc_get_family(soc, name, SOC_MAX_STR_SIZE);
24 if (ret)
27 ret = soc_get_revision(soc, name, SOC_MAX_STR_SIZE);
28 if (ret)
31 ret = soc_get_machine(soc, name, SOC_MAX_STR_SIZE);
32 if (ret)
/u-boot/board/google/chameleonv3/
H A Dmercury_aa1.c18 int ret; local
20 ret = uclass_get_device_by_name(UCLASS_MISC, "atsha204a@64", &dev);
21 if (ret)
22 return ret;
24 ret = atsha204a_wakeup(dev);
25 if (ret)
26 return ret;
28 ret = atsha204a_read(dev, ATSHA204A_ZONE_OTP, false,
30 if (ret)
33 ret
[all...]
/u-boot/arch/mips/lib/
H A Dudivdi3.c11 long long ret = u; local
13 __div64_32(&ret, b);
14 return ret;
/u-boot/board/firefly/firefly-rk3288/
H A Dfirefly-rk3288.c19 int ret; local
24 ret = led_get_by_label(led_name, &dev);
25 if (ret) {
26 debug("%s: get=%d\n", __func__, ret);
27 return ret;
29 ret = led_set_state(dev, LEDST_ON);
30 if (ret)
31 return ret;
39 int ret; local
41 ret
[all...]
/u-boot/drivers/misc/
H A Dstm32mp_fuse.c23 int ret; local
28 ret = uclass_get_device_by_driver(UCLASS_MISC,
31 if (ret)
32 return ret;
33 ret = misc_read(dev, word * 4 + STM32_BSEC_SHADOW_OFFSET,
35 if (ret != 4)
36 ret = -EINVAL;
38 ret = 0;
43 ret = uclass_get_device_by_driver(UCLASS_MISC,
46 if (ret)
69 int ret; local
113 int ret; local
157 int ret; local
[all...]
/u-boot/board/atmel/common/
H A Dmac_eeprom.c21 int ret; local
26 ret = uclass_first_device_err(UCLASS_I2C_EEPROM, &dev);
27 if (ret)
28 return ret;
30 ret = i2c_eeprom_read(dev, offset, ethaddr, 6);
31 if (ret)
32 return ret;
48 int ret; local
54 ret = uclass_first_device_err(UCLASS_I2C_EEPROM, &dev);
55 if (ret)
[all...]
/u-boot/drivers/usb/cdns3/
H A Ddebug.h20 int ret; local
22 ret = sprintf(str, "IRQ %08x = ", usb_ists);
25 ret += sprintf(str + ret, "Connection %s\n",
29 ret += sprintf(str + ret, "Disconnection ");
31 ret += sprintf(str + ret, "suspended ");
33 ret += sprintf(str + ret, "L
56 int ret; local
117 int ret = 0; local
[all...]
/u-boot/drivers/mtd/nand/raw/
H A Dmxs_nand_dt.c77 int ret; local
87 ret = dev_read_resource_byname(dev, "gpmi-nand", &res);
88 if (ret)
89 return ret;
94 ret = dev_read_resource_byname(dev, "bch", &res);
95 if (ret)
96 return ret;
110 ret = PTR_ERR(info->gpmi_clk);
111 debug("Can't get gpmi io clk: %d\n", ret);
112 return ret;
174 int ret; local
[all...]
/u-boot/lib/efi_selftest/
H A Defi_selftest_hii.c36 efi_status_t ret; local
41 ret = boottime->locate_protocol(&hii_database_protocol_guid, NULL,
43 if (ret != EFI_SUCCESS) {
50 ret = boottime->locate_protocol(&hii_string_protocol_guid, NULL,
52 if (ret != EFI_SUCCESS) {
77 efi_status_t ret; local
80 ret = hii_database_protocol->new_package_list(hii_database_protocol,
83 if (ret != EFI_SUCCESS || !handle) {
85 (unsigned int)ret);
89 ret
111 efi_status_t ret; local
161 efi_status_t ret; local
380 efi_status_t ret; local
465 efi_status_t ret; local
556 efi_status_t ret; local
586 efi_status_t ret; local
627 int ret; local
688 efi_status_t ret; local
741 efi_status_t ret; local
820 efi_status_t ret; local
880 efi_status_t ret; local
948 efi_status_t ret; local
1009 int ret; local
1041 int ret; local
[all...]
/u-boot/board/nvidia/p3450-0000/
H A Dp3450-0000.c23 int ret; local
27 ret = i2c_get_chip_for_busnum(0, MAX77620_I2C_ADDR_7BIT, 1, &dev);
28 if (ret) {
34 ret = dm_i2c_write(dev, MAX77620_CNFG1_L2_REG, &val, 1);
35 if (ret)
36 printf("i2c_write 0 0x3c 0x27 failed: %d\n", ret);
39 ret = dm_i2c_read(dev, MAX77620_CNFG2_L4_REG, &val, 1);
40 if (ret) {
41 printf("i2c_read 0 0x3c 0x2c failed: %d\n", ret);
44 ret
66 int ret; local
[all...]
/u-boot/common/spl/
H A Dspl_nvme.c15 int ret; local
17 ret = nvme_scan_namespace();
18 if (ret < 0)
19 return ret;
21 ret = spl_blk_load_image(spl_image, bootdev, UCLASS_NVME,
24 return ret;
/u-boot/boot/
H A Dvbe_simple_os.c22 int ret; local
28 ret = ofnode_write_string(node, "cur-version", version);
29 if (ret)
30 return log_msg_ret("ver", ret);
31 ret = ofnode_write_u32(node, "cur-vernum", state->fw_vernum);
32 if (ret)
33 return log_msg_ret("num", ret);
39 ret = ofnode_write_string(node, "bootloader-version", str);
40 if (ret)
41 return log_msg_ret("bl", ret);
66 int ret; local
[all...]

Completed in 107 milliseconds

1234567891011>>