| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | ravb.c | 361 int ret = 0; in ravb_dmac_init() local 364 ret = ravb_reset(dev); in ravb_dmac_init() 365 if (ret) in ravb_dmac_init() 366 return ret; in ravb_dmac_init() 395 int ret; in ravb_config() local 405 ret = ravb_phy_config(dev); in ravb_config() 406 if (ret) in ravb_config() 407 return ret; in ravb_config() 411 ret = phy_startup(phy); in ravb_config() 412 if (ret) in ravb_config() [all …]
|
| /rk3399_rockchip-uboot/drivers/misc/ |
| H A D | fsl_portals.c | 91 int childoff, dev_off, ret = 0; in fdt_qportal() local 129 ret = fdt_set_phandle(blob, dev_off, in fdt_qportal() 131 if (ret < 0) in fdt_qportal() 132 return ret; in fdt_qportal() 135 ret = fdt_setprop(blob, childoff, "dev-handle", in fdt_qportal() 137 if (ret < 0) in fdt_qportal() 138 return ret; in fdt_qportal() 142 ret = fdt_setprop(blob, childoff, "fsl,liodn", in fdt_qportal() 151 ret = fdt_setprop(blob, childoff, in fdt_qportal() 154 if (ret < 0) in fdt_qportal() [all …]
|
| /rk3399_rockchip-uboot/common/spl/ |
| H A D | spl_mmc.c | 29 int ret; in mmc_load_legacy() local 31 ret = spl_parse_image_header(spl_image, header); in mmc_load_legacy() 32 if (ret) in mmc_load_legacy() 33 return ret; in mmc_load_legacy() 62 int ret = 0; local 71 ret = -EIO; 91 ret = spl_load_simple_fit(spl_image, &load, sector, header); 93 ret = mmc_load_legacy(spl_image, mmc, sector, header); 97 if (ret) { 99 debug("mmc_load_image_raw_sector error: ret is %d\n", ret); [all …]
|
| /rk3399_rockchip-uboot/drivers/usb/musb-new/ |
| H A D | pic32.c | 71 irqreturn_t ret = IRQ_NONE; in pic32_interrupt() local 95 ret = musb_interrupt(musb); in pic32_interrupt() 97 return ret; in pic32_interrupt() 224 int ret; in musb_usb_probe() local 228 ret = fdt_get_named_resource(fdt, node, "reg", "reg-names", in musb_usb_probe() 230 if (ret < 0) { in musb_usb_probe() 232 return ret; in musb_usb_probe() 235 ret = fdt_get_named_resource(fdt, node, "reg", "reg-names", in musb_usb_probe() 237 if (ret < 0) { in musb_usb_probe() 239 return ret; in musb_usb_probe() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3576/ |
| H A D | clk_rk3576.c | 31 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()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3588/ |
| H A D | clk_rk3588.c | 31 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()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3562/ |
| H A D | clk_rk3562.c | 31 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()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3528/ |
| H A D | clk_rk3528.c | 31 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()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1126b/ |
| H A D | clk_rv1126b.c | 31 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()
|
| /rk3399_rockchip-uboot/drivers/phy/ |
| H A D | phy-rockchip-samsung-hdptx.c | 848 int ret; in rockchip_hdptx_phy_set_voltages() local 855 ret = regmap_read_poll_timeout(hdptx->grf, HDPTXPHY_GRF_STATUS0, in rockchip_hdptx_phy_set_voltages() 858 if (ret) { in rockchip_hdptx_phy_set_voltages() 860 return ret; in rockchip_hdptx_phy_set_voltages() 884 int ret; in rockchip_hdptx_phy_set_rate() local 1015 ret = regmap_read_poll_timeout(hdptx->grf, HDPTXPHY_GRF_STATUS0, in rockchip_hdptx_phy_set_rate() 1018 if (ret) { in rockchip_hdptx_phy_set_rate() 1020 return ret; in rockchip_hdptx_phy_set_rate() 1034 int ret; in rockchip_hdptx_phy_configure() local 1039 ret = rockchip_hdptx_phy_verify_config(hdptx, &opts->dp); in rockchip_hdptx_phy_configure() [all …]
|
| H A D | phy-rockchip-naneng-usb2.c | 204 int ret; in rockchip_chg_get_type() local 206 ret = uclass_get_device_by_name(UCLASS_PHY, "usb2-phy", &udev); in rockchip_chg_get_type() 207 if (ret == -ENODEV) { in rockchip_chg_get_type() 208 ret = uclass_get_device_by_name(UCLASS_PHY, "usb2phy", &udev); in rockchip_chg_get_type() 209 if (ret) { in rockchip_chg_get_type() 210 pr_err("%s: get usb2 phy node failed: %d\n", __func__, ret); in rockchip_chg_get_type() 211 return ret; in rockchip_chg_get_type() 335 int ret; in rockchip_usb2phy_power_on() local 339 ret = regulator_set_enable(vbus, true); in rockchip_usb2phy_power_on() 340 if (ret) { in rockchip_usb2phy_power_on() [all …]
|
| /rk3399_rockchip-uboot/drivers/video/drm/display-serdes/maxim/ |
| H A D | maxim-max96745.c | 410 int ret; in max96745_bridge_enable() local 413 ret = serdes_reg_read(serdes, 0x0011, &value); in max96745_bridge_enable() 414 if (ret < 0) in max96745_bridge_enable() 415 return ret; in max96745_bridge_enable() 419 ret = serdes_reg_read(serdes, 0x0028, &value); in max96745_bridge_enable() 420 if (ret < 0) in max96745_bridge_enable() 421 return ret; in max96745_bridge_enable() 426 ret = serdes_set_bits(serdes, 0x0028, TX_RATE, in max96745_bridge_enable() 428 if (ret < 0) in max96745_bridge_enable() 429 return ret; in max96745_bridge_enable() [all …]
|
| /rk3399_rockchip-uboot/drivers/ufs/ |
| H A D | ti-j721e-ufs.c | 24 int ret; in ti_j721e_ufs_probe() local 26 ret = clk_get_by_index(dev, 0, &clk); in ti_j721e_ufs_probe() 27 if (ret) { in ti_j721e_ufs_probe() 29 return ret; in ti_j721e_ufs_probe() 35 return ret; in ti_j721e_ufs_probe()
|
| /rk3399_rockchip-uboot/drivers/usb/host/ |
| H A D | ehci-omap.c | 184 int ret; in omap_ehci_hcd_init() local 189 ret = board_usb_init(index, USB_INIT_HOST); in omap_ehci_hcd_init() 190 if (ret < 0) in omap_ehci_hcd_init() 191 return ret; in omap_ehci_hcd_init() 196 ret = omap_uhh_reset(); in omap_ehci_hcd_init() 197 if (ret < 0) in omap_ehci_hcd_init() 198 return ret; in omap_ehci_hcd_init() 200 ret = omap_ehci_tll_reset(); in omap_ehci_hcd_init() 201 if (ret) in omap_ehci_hcd_init() 202 return ret; in omap_ehci_hcd_init()
|
| /rk3399_rockchip-uboot/drivers/input/ |
| H A D | cros_ec_keyb.c | 190 int ret; in cros_ec_kbd_probe() local 192 ret = cros_ec_keyb_decode_fdt(dev, priv); in cros_ec_kbd_probe() 193 if (ret) { in cros_ec_kbd_probe() 194 debug("%s: Cannot decode node (ret=%d)\n", __func__, ret); in cros_ec_kbd_probe() 198 ret = key_matrix_init(&priv->matrix, priv->key_rows, priv->key_cols, in cros_ec_kbd_probe() 200 if (ret) { in cros_ec_kbd_probe() 202 return ret; in cros_ec_kbd_probe() 204 ret = key_matrix_decode_fdt(dev, &priv->matrix); in cros_ec_kbd_probe() 205 if (ret) { in cros_ec_kbd_probe() 207 return ret; in cros_ec_kbd_probe()
|
| /rk3399_rockchip-uboot/drivers/video/drm/ |
| H A D | dw_mipi_dsi2.c | 399 int ret; in cri_fifos_wait_avail() local 402 ret = readl_poll_timeout(dsi2->base + DSI2_CORE_STATUS, in cri_fifos_wait_avail() 405 if (ret < 0) { in cri_fifos_wait_avail() 407 return ret; in cri_fifos_wait_avail() 419 int i, j, ret, len = msg->rx_len; in dw_mipi_dsi2_read_from_fifo() local 423 ret = readl_poll_timeout(dsi2->base + DSI2_CORE_STATUS, in dw_mipi_dsi2_read_from_fifo() 426 if (ret) { in dw_mipi_dsi2_read_from_fifo() 428 return ret; in dw_mipi_dsi2_read_from_fifo() 472 int ret; in dw_mipi_dsi2_transfer() local 482 ret = mipi_dsi_create_packet(&packet, msg); in dw_mipi_dsi2_transfer() [all …]
|
| /rk3399_rockchip-uboot/lib/optee_clientApi/ |
| H A D | tee_mmc_rpmb.c | 29 int ret; in rpmb_data_req() local 41 ret = do_programkey(req_packets); in rpmb_data_req() 46 ret = TEEC_SUCCESS; in rpmb_data_req() 50 ret = do_authenticatedwrite(req_packets); in rpmb_data_req() 54 ret = do_authenticatedread(req_packets, rsp_nfrm); in rpmb_data_req() 58 ret = TEEC_ERROR_BAD_PARAMETERS; in rpmb_data_req() 68 return ret; in rpmb_data_req() 140 smc_arg->ret = result; in emmc_rpmb_process()
|
| /rk3399_rockchip-uboot/disk/ |
| H A D | part.c | 43 int ret; in part_driver_lookup_type() local 45 ret = entry->test(dev_desc); in part_driver_lookup_type() 46 if (!ret) { in part_driver_lookup_type() 65 int ret; in get_dev_hwpart() local 73 ret = blk_dselect_hwpart(dev_desc, hwpart); in get_dev_hwpart() 74 if (ret) { in get_dev_hwpart() 76 ret); in get_dev_hwpart() 248 int ret; in part_init() local 250 ret = entry->test(dev_desc); in part_init() 251 debug("%s: try '%s': ret=%d\n", __func__, entry->name, ret); in part_init() [all …]
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | fdtgrep.c | 656 int ret; in fdtgrep_find_regions() local 659 ret = fdt_first_region(fdt, include_func, disp, in fdtgrep_find_regions() 662 while (ret == 0) { in fdtgrep_find_regions() 663 ret = fdt_next_region(fdt, include_func, disp, in fdtgrep_find_regions() 666 if (!ret) in fdtgrep_find_regions() 669 if (ret && ret != -FDT_ERR_NOTFOUND) in fdtgrep_find_regions() 670 return ret; in fdtgrep_find_regions() 702 int ret = 0; in utilfdt_read_err_len() local 724 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err_len() 725 if (ret < 0) { in utilfdt_read_err_len() [all …]
|
| /rk3399_rockchip-uboot/drivers/mtd/nand/raw/ |
| H A D | nand_util.c | 110 int ret = mtd_block_isbad(mtd, erase.addr); in nand_erase_opts() local 111 if (ret > 0) { in nand_erase_opts() 123 } else if (ret < 0) { in nand_erase_opts() 126 ret); in nand_erase_opts() 218 int ret = 0; in nand_lock() local 229 ret = -1; in nand_lock() 242 ret = -1; in nand_lock() 248 return ret; in nand_lock() 267 int ret = 0; in nand_get_lock_status() local 281 ret = -1; in nand_get_lock_status() [all …]
|
| /rk3399_rockchip-uboot/drivers/crypto/fsl/ |
| H A D | jr.c | 355 int ret = 0; in run_descriptor_jr_idx() local 359 ret = jr_enqueue(desc, desc_done, &op, sec_idx); in run_descriptor_jr_idx() 360 if (ret) { in run_descriptor_jr_idx() 362 ret = JQ_ENQ_ERR; in run_descriptor_jr_idx() 369 ret = jr_dequeue(sec_idx); in run_descriptor_jr_idx() 370 if (ret) { in run_descriptor_jr_idx() 372 ret = JQ_DEQ_ERR; in run_descriptor_jr_idx() 378 ret = JQ_DEQ_TO_ERR; in run_descriptor_jr_idx() 385 ret = op.status; in run_descriptor_jr_idx() 388 return ret; in run_descriptor_jr_idx() [all …]
|
| /rk3399_rockchip-uboot/board/bachmann/ot1200/ |
| H A D | ot1200.c | 211 int ret; in board_mmc_getcd() local 215 ret = gpio_get_value(IMX_GPIO_NR(4, 5)); in board_mmc_getcd() 218 ret = !gpio_get_value(IMX_GPIO_NR(1, 5)); in board_mmc_getcd() 221 return ret; in board_mmc_getcd() 231 int ret; in board_mmc_init() local 257 ret = fsl_esdhc_initialize(bis, &usdhc_cfg[index]); in board_mmc_init() 258 if (ret) in board_mmc_init() 259 return ret; in board_mmc_init() 287 int ret; in board_eth_init() local 298 ret = -EINVAL; in board_eth_init() [all …]
|
| /rk3399_rockchip-uboot/drivers/watchdog/ |
| H A D | wdt-uclass.c | 48 int ret = 0; in wdt_expire_now() local 59 ret = ops->start(dev, 1, flags); in wdt_expire_now() 60 if (ret < 0) in wdt_expire_now() 61 return ret; in wdt_expire_now() 66 return ret; in wdt_expire_now()
|
| /rk3399_rockchip-uboot/drivers/i2c/ |
| H A D | cros_ec_ldo.c | 24 int fet_id, ret; in cros_ec_ldo_xfer() local 44 ret = cros_ec_get_ldo(dev->parent, fet_id, &state); in cros_ec_ldo_xfer() 45 if (!ret) in cros_ec_ldo_xfer() 51 ret = cros_ec_set_ldo(dev->parent, fet_id, on); in cros_ec_ldo_xfer() 54 return ret; in cros_ec_ldo_xfer()
|
| /rk3399_rockchip-uboot/arch/microblaze/lib/ |
| H A D | bootm.c | 37 int ret; in do_bootm_linux() local 49 ret = boot_get_ramdisk(argc, argv, images, IH_ARCH_MICROBLAZE, in do_bootm_linux() 51 if (ret) in do_bootm_linux() 61 ret = fdt_initrd(of_flat_tree, images->rd_start, in do_bootm_linux() 63 if (ret) in do_bootm_linux()
|