| /rk3399_rockchip-uboot/drivers/usb/host/ |
| H A D | usb-uclass.c | 171 int err = 0, ret; in usb_stop() local 174 ret = uclass_get(UCLASS_USB, &uc); in usb_stop() 175 if (ret) in usb_stop() 176 return ret; in usb_stop() 181 ret = device_remove(bus, DM_REMOVE_NORMAL); in usb_stop() 182 if (ret && !err) in usb_stop() 183 err = ret; in usb_stop() 192 ret = device_unbind(rh); in usb_stop() 193 if (ret && !err) in usb_stop() 194 err = ret; in usb_stop() [all …]
|
| H A D | dwc2.c | 117 int ret; in dwc_otg_flush_tx_fifo() local 121 ret = wait_for_bit_le32(®s->grstctl, DWC2_GRSTCTL_TXFFLSH, in dwc_otg_flush_tx_fifo() 123 if (ret) in dwc_otg_flush_tx_fifo() 137 int ret; in dwc_otg_flush_rx_fifo() local 140 ret = wait_for_bit_le32(®s->grstctl, DWC2_GRSTCTL_RXFFLSH, in dwc_otg_flush_rx_fifo() 142 if (ret) in dwc_otg_flush_rx_fifo() 155 int ret; in dwc_otg_core_reset() local 158 ret = wait_for_bit_le32(®s->grstctl, DWC2_GRSTCTL_AHBIDLE, in dwc_otg_core_reset() 160 if (ret) in dwc_otg_core_reset() 165 ret = wait_for_bit_le32(®s->grstctl, DWC2_GRSTCTL_CSFTRST, in dwc_otg_core_reset() [all …]
|
| /rk3399_rockchip-uboot/drivers/rtc/ |
| H A D | rtc-uclass.c | 66 int ret; in rtc_read16() local 70 ret = rtc_read8(dev, reg + i); in rtc_read16() 71 if (ret < 0) in rtc_read16() 72 return ret; in rtc_read16() 73 value |= ret << (i << 3); in rtc_read16() 82 int i, ret; in rtc_write16() local 85 ret = rtc_write8(dev, reg + i, (value >> (i << 3)) & 0xff); in rtc_write16() 86 if (ret) in rtc_write16() 87 return ret; in rtc_write16() 96 int ret; in rtc_read32() local [all …]
|
| /rk3399_rockchip-uboot/drivers/gpio/ |
| H A D | axp_gpio.c | 58 __maybe_unused int ret; in axp_gpio_direction_output() local 65 ret = pmic_bus_clrbits(AXP_MISC_CTRL, in axp_gpio_direction_output() 67 if (ret) in axp_gpio_direction_output() 68 return ret; in axp_gpio_direction_output() 85 int ret; in axp_gpio_get_value() local 90 ret = pmic_bus_read(AXP_POWER_STATUS, &val); in axp_gpio_get_value() 97 ret = pmic_bus_read(AXP_VBUS_IPSOUT, &val); in axp_gpio_get_value() 106 ret = pmic_bus_read(AXP_GPIO_STATE, &val); in axp_gpio_get_value() 109 if (ret) in axp_gpio_get_value() 110 return ret; in axp_gpio_get_value() [all …]
|
| H A D | tca642x.c | 51 int ret; in tca642x_reg_write() local 58 ret = -1; in tca642x_reg_write() 64 ret = i2c_write(chip, addr, 1, (u8 *)&valw, 1); in tca642x_reg_write() 68 return ret; in tca642x_reg_write() 75 int ret = 0; in tca642x_reg_read() local 80 ret = -1; in tca642x_reg_read() 88 return ret; in tca642x_reg_read() 146 int i, ret; in tca642x_set_inital_state() local 153 ret = tca642x_reg_write(chip, config_reg, 0xff, in tca642x_set_inital_state() 156 ret = tca642x_reg_write(chip, polarity_reg, 0xff, in tca642x_set_inital_state() [all …]
|
| /rk3399_rockchip-uboot/common/ |
| H A D | cros_ec.c | 21 int ret; in board_get_cros_ec_dev() local 23 ret = uclass_get_device(UCLASS_CROS_EC, 0, &dev); in board_get_cros_ec_dev() 24 if (ret) { in board_get_cros_ec_dev() 25 debug("%s: Error %d\n", __func__, ret); in board_get_cros_ec_dev() 34 int ret; in cros_ec_get_error() local 36 ret = uclass_get_device(UCLASS_CROS_EC, 0, &dev); in cros_ec_get_error() 37 if (ret && ret != -ENODEV) in cros_ec_get_error() 38 return ret; in cros_ec_get_error()
|
| H A D | bootm.c | 111 int ret; in bootm_find_os() local 198 ret = boot_get_setup(&images, IH_ARCH_I386, &images.ep, &len); in bootm_find_os() 199 if (ret < 0 && ret != -ENOENT) { in bootm_find_os() 208 int ret; in bootm_find_os() local 210 ret = fit_image_get_entry(images.fit_hdr_os, in bootm_find_os() 212 if (ret) { in bootm_find_os() 250 int ret; in bootm_find_images() local 253 ret = boot_get_ramdisk(argc, argv, &images, IH_INITRD_ARCH, in bootm_find_images() 255 if (ret) { in bootm_find_images() 262 ret = boot_get_fdt(flag, argc, argv, IH_ARCH_DEFAULT, &images, in bootm_find_images() [all …]
|
| /rk3399_rockchip-uboot/drivers/pinctrl/ |
| H A D | pinctrl-max96755f.c | 340 int i, ret; in max96755f_pinmux_set() local 345 ret = dm_i2c_reg_clrset(dev->parent, config->reg, config->mask, in max96755f_pinmux_set() 347 if (ret < 0) in max96755f_pinmux_set() 348 return ret; in max96755f_pinmux_set() 352 ret = dm_i2c_reg_clrset(dev->parent, GPIO_A_REG(grp->pins[i]), in max96755f_pinmux_set() 357 if (ret < 0) in max96755f_pinmux_set() 358 return ret; in max96755f_pinmux_set() 361 ret = dm_i2c_reg_clrset(dev->parent, GPIO_B_REG(grp->pins[i]), in max96755f_pinmux_set() 364 if (ret < 0) in max96755f_pinmux_set() 365 return ret; in max96755f_pinmux_set() [all …]
|
| /rk3399_rockchip-uboot/board/sunxi/ |
| H A D | ahci.c | 86 int ret; in sunxi_sata_probe() local 90 debug("%s: Failed to find address (err=%d\n)", __func__, ret); in sunxi_sata_probe() 94 ret = sunxi_ahci_phy_init(reg); in sunxi_sata_probe() 95 if (ret) { in sunxi_sata_probe() 96 debug("%s: Failed to init phy (err=%d\n)", __func__, ret); in sunxi_sata_probe() 97 return ret; in sunxi_sata_probe() 99 ret = ahci_probe_scsi(dev, base); in sunxi_sata_probe() 100 if (ret) { in sunxi_sata_probe() 101 debug("%s: Failed to probe (err=%d\n)", __func__, ret); in sunxi_sata_probe() 102 return ret; in sunxi_sata_probe() [all …]
|
| /rk3399_rockchip-uboot/arch/x86/cpu/ |
| H A D | mp_init.c | 138 int ret; in ap_init() local 144 ret = find_cpu_by_apic_id(apic_id, &dev); in ap_init() 145 if (ret) { in ap_init() 226 int ret; in load_sipi_vector() local 257 ret = save_bsp_msrs(msr_save, sizeof(msr_save)); in load_sipi_vector() 258 if (ret < 0) in load_sipi_vector() 259 return ret; in load_sipi_vector() 260 params->msr_count = ret; in load_sipi_vector() 277 int ret; in check_cpu_devices() local 279 ret = uclass_find_device(UCLASS_CPU, i, &dev); in check_cpu_devices() [all …]
|
| /rk3399_rockchip-uboot/common/spl/ |
| H A D | spl_rknand.c | 27 int ret; in find_rknand_device() local 29 ret = blk_find_device(IF_TYPE_RKNAND, dev_num, &dev); in find_rknand_device() 30 if (ret) in find_rknand_device() 33 ret = device_probe(dev); in find_rknand_device() 34 if (ret) { in find_rknand_device() 59 int ret = -1; local 74 ret = part_get_info_by_name(desc, PART_UBOOT, &info); 75 if (ret > 0) 82 ret = blk_dread(desc, image_sector, 1, header); 83 if (ret != 1) [all …]
|
| H A D | spl_mtd_blk.c | 45 int ret; in find_mtd_device() local 47 ret = blk_find_device(IF_TYPE_MTD, dev_num, &dev); in find_mtd_device() 49 if (ret) { in find_mtd_device() 56 ret = device_probe(dev); in find_mtd_device() 57 if (ret) { in find_mtd_device() 83 int ret; in spl_mtd_load_rkfw() local 91 ret = spl_load_rkfw_image(spl_image, &load); in spl_mtd_load_rkfw() 92 if (ret) { in spl_mtd_load_rkfw() 108 int ret = -1; local 119 ret = part_get_info_by_name(desc, PART_UBOOT, &info); [all …]
|
| /rk3399_rockchip-uboot/drivers/remoteproc/ |
| H A D | rproc-uclass.c | 38 int ret; in for_each_remoteproc_device() local 40 for (ret = uclass_find_first_device(UCLASS_REMOTEPROC, &dev); dev; in for_each_remoteproc_device() 41 ret = uclass_find_next_device(&dev)) { in for_each_remoteproc_device() 42 if (ret || dev == skip_dev) in for_each_remoteproc_device() 45 ret = fn(dev, uc_pdata, data); in for_each_remoteproc_device() 46 if (ret) in for_each_remoteproc_device() 47 return ret; in for_each_remoteproc_device() 92 int ret; in rproc_name_is_unique() local 94 ret = for_each_remoteproc_device(_rproc_name_is_unique, in rproc_name_is_unique() 96 return ret ? false : true; in rproc_name_is_unique() [all …]
|
| /rk3399_rockchip-uboot/drivers/usb/eth/ |
| H A D | lan7x.c | 157 int i, ret; in lan7x_read_eeprom() local 159 ret = lan7x_eeprom_confirm_not_busy(udev); in lan7x_read_eeprom() 160 if (ret) in lan7x_read_eeprom() 161 return ret; in lan7x_read_eeprom() 168 ret = lan7x_wait_eeprom(udev); in lan7x_read_eeprom() 169 if (ret) in lan7x_read_eeprom() 170 return ret; in lan7x_read_eeprom() 176 return ret; in lan7x_read_eeprom() 186 int ret; in lan7x_phylib_register() local 199 ret = mdio_register(priv->mdiobus); in lan7x_phylib_register() [all …]
|
| /rk3399_rockchip-uboot/drivers/i2c/ |
| H A D | ast_i2c.c | 93 int ret; in ast_i2c_ofdata_to_platdata() local 99 ret = clk_get_by_index(dev, 0, &priv->clk); in ast_i2c_ofdata_to_platdata() 100 if (ret < 0) { in ast_i2c_ofdata_to_platdata() 102 ret); in ast_i2c_ofdata_to_platdata() 103 return ret; in ast_i2c_ofdata_to_platdata() 162 int ret = 0; in ast_i2c_wait_tx() local 171 ret = -EREMOTEIO; in ast_i2c_wait_tx() 174 ret = -ETIMEDOUT; in ast_i2c_wait_tx() 178 return ret; in ast_i2c_wait_tx() 197 int ret; in ast_i2c_read_data() local [all …]
|
| /rk3399_rockchip-uboot/drivers/video/tegra124/ |
| H A D | dp.c | 304 int ret = 0; in tegra_dc_dpaux_read() local 311 ret = tegra_dc_dpaux_read_chunk(dp, cmd, addr, in tegra_dc_dpaux_read() 313 if (ret) in tegra_dc_dpaux_read() 324 return ret; in tegra_dc_dpaux_read() 332 int ret; in tegra_dc_dp_dpcd_read() local 334 ret = tegra_dc_dpaux_read_chunk(dp, DPAUX_DP_AUXCTL_CMD_AUXRD, in tegra_dc_dp_dpcd_read() 336 if (ret) { in tegra_dc_dp_dpcd_read() 341 return ret; in tegra_dc_dp_dpcd_read() 349 int ret; in tegra_dc_dp_dpcd_write() local 351 ret = tegra_dc_dpaux_write_chunk(dp, DPAUX_DP_AUXCTL_CMD_AUXWR, in tegra_dc_dp_dpcd_write() [all …]
|
| /rk3399_rockchip-uboot/drivers/video/rockchip/ |
| H A D | rk3399_mipi.c | 82 int ret; in rk_display_enable() local 100 ret = rk_mipi_dsi_enable(dev, timing); in rk_display_enable() 101 if (ret) { in rk_display_enable() 103 __func__, ret); in rk_display_enable() 104 return ret; in rk_display_enable() 108 ret = rk_mipi_phy_enable(dev); in rk_display_enable() 109 if (ret) { in rk_display_enable() 111 __func__, ret); in rk_display_enable() 112 return ret; in rk_display_enable() 116 ret = panel_enable_backlight(priv->panel); in rk_display_enable() [all …]
|
| H A D | rk3288_mipi.c | 90 int ret; in rk_mipi_enable() local 108 ret = rk_mipi_dsi_enable(dev, timing); in rk_mipi_enable() 109 if (ret) { in rk_mipi_enable() 111 __func__, ret); in rk_mipi_enable() 112 return ret; in rk_mipi_enable() 116 ret = rk_mipi_phy_enable(dev); in rk_mipi_enable() 117 if (ret) { in rk_mipi_enable() 119 __func__, ret); in rk_mipi_enable() 120 return ret; in rk_mipi_enable() 124 ret = panel_enable_backlight(priv->panel); in rk_mipi_enable() [all …]
|
| /rk3399_rockchip-uboot/arch/x86/cpu/ivybridge/ |
| H A D | cpu.c | 57 int ret; in arch_cpu_init_dm() local 60 ret = uclass_get_device(UCLASS_PCI, 0, &bus); in arch_cpu_init_dm() 62 if (ret) in arch_cpu_init_dm() 63 return ret; in arch_cpu_init_dm() 70 ret = uclass_first_device_err(UCLASS_LPC, &dev); in arch_cpu_init_dm() 71 if (ret) in arch_cpu_init_dm() 72 return ret; in arch_cpu_init_dm() 79 ret = set_flex_ratio_to_tdp_nominal(); in arch_cpu_init_dm() 80 if (ret) in arch_cpu_init_dm() 81 return ret; in arch_cpu_init_dm() [all …]
|
| /rk3399_rockchip-uboot/drivers/power/pmic/ |
| H A D | pmic_max77686.c | 66 unsigned int val, ret, hex, adr; in max77686_set_ldo_voltage() local 79 ret = pmic_reg_read(p, adr, &val); in max77686_set_ldo_voltage() 80 if (ret) in max77686_set_ldo_voltage() 81 return ret; in max77686_set_ldo_voltage() 85 ret |= pmic_reg_write(p, adr, val); in max77686_set_ldo_voltage() 87 return ret; in max77686_set_ldo_voltage() 93 int hex, ret; in max77686_set_buck_voltage() local 107 ret = pmic_reg_read(p, adr, &val); in max77686_set_buck_voltage() 108 if (ret) in max77686_set_buck_voltage() 109 return ret; in max77686_set_buck_voltage() [all …]
|
| /rk3399_rockchip-uboot/drivers/rkflash/ |
| H A D | rksfc_base.c | 57 int ret; in rksfc_scan_namespace() local 59 ret = uclass_get(UCLASS_SPI_FLASH, &uc); in rksfc_scan_namespace() 60 if (ret) in rksfc_scan_namespace() 61 return ret; in rksfc_scan_namespace() 65 ret = device_probe(dev); in rksfc_scan_namespace() 66 if (ret) in rksfc_scan_namespace() 67 return ret; in rksfc_scan_namespace() 76 int ret; in rksfc_blk_bind() local 78 ret = blk_create_devicef(udev, "rkflash_blk", "spinand.blk", in rksfc_blk_bind() 81 ret = blk_create_devicef(udev, "rkflash_blk", "spinor.blk", in rksfc_blk_bind() [all …]
|
| /rk3399_rockchip-uboot/drivers/i2c/muxes/ |
| H A D | max96755f.c | 66 int ret; in max96755f_power_on() local 73 ret = dm_i2c_reg_clrset(priv->dev, 0x0010, RESET_ALL, in max96755f_power_on() 75 if (ret < 0) in max96755f_power_on() 76 return ret; in max96755f_power_on() 90 int ret; in max96755f_probe() local 92 ret = i2c_set_chip_offset_len(dev, 2); in max96755f_probe() 93 if (ret) in max96755f_probe() 94 return ret; in max96755f_probe() 98 ret = gpio_request_by_name(dev, "enable-gpios", 0, in max96755f_probe() 100 if (ret && ret != -ENOENT) { in max96755f_probe() [all …]
|
| /rk3399_rockchip-uboot/drivers/pci/ |
| H A D | pcie_imx.c | 122 int ret; in pcie_phy_wait_ack() local 130 ret = pcie_phy_poll_ack(dbi_base, 1); in pcie_phy_wait_ack() 131 if (ret) in pcie_phy_wait_ack() 132 return ret; in pcie_phy_wait_ack() 137 ret = pcie_phy_poll_ack(dbi_base, 0); in pcie_phy_wait_ack() 138 if (ret) in pcie_phy_wait_ack() 139 return ret; in pcie_phy_wait_ack() 148 int ret; in pcie_phy_read() local 150 ret = pcie_phy_wait_ack(dbi_base, addr); in pcie_phy_read() 151 if (ret) in pcie_phy_read() [all …]
|
| /rk3399_rockchip-uboot/test/rockchip/ |
| H A D | test-net.c | 129 int ret, length, success = 0; in eth_run_loopback_test() local 171 ret = 0; in eth_run_loopback_test() 174 ret = -EINVAL; in eth_run_loopback_test() 177 ret = -EBUSY; in eth_run_loopback_test() 180 ret = length; in eth_run_loopback_test() 191 return ret; in eth_run_loopback_test() 198 ret = 0; in eth_run_loopback_test() 200 return ret; in eth_run_loopback_test() 205 int ret = -EINVAL; in ethernet_init() local 210 ret = eth_init(); in ethernet_init() [all …]
|
| /rk3399_rockchip-uboot/drivers/serial/ |
| H A D | serial_efi.c | 34 int ret; in serial_efi_get_key() local 38 ret = priv->con_in->read_key_stroke(priv->con_in, &priv->key); in serial_efi_get_key() 39 if (ret == EFI_NOT_READY) in serial_efi_get_key() 41 else if (ret != EFI_SUCCESS) in serial_efi_get_key() 52 int ret, ch; in serial_efi_getc() local 54 ret = serial_efi_get_key(priv); in serial_efi_getc() 55 if (ret) in serial_efi_getc() 56 return ret; in serial_efi_getc() 77 int ret; in serial_efi_putc() local 81 ret = priv->con_out->output_string(priv->con_out, ucode); in serial_efi_putc() [all …]
|