| /rk3399_rockchip-uboot/board/freescale/mx53evk/ |
| H A D | mx53evk.c | 82 int ret; in power_init() local 84 ret = pmic_init(I2C_0); in power_init() 85 if (ret) in power_init() 150 int ret; in board_mmc_getcd() local 158 ret = !gpio_get_value(IMX_GPIO_NR(3, 13)); in board_mmc_getcd() 160 ret = !gpio_get_value(IMX_GPIO_NR(3, 11)); in board_mmc_getcd() 162 return ret; in board_mmc_getcd() 198 int ret; in board_mmc_init() local 219 ret = fsl_esdhc_initialize(bis, &esdhc_cfg[index]); in board_mmc_init() 220 if (ret) in board_mmc_init() [all …]
|
| /rk3399_rockchip-uboot/board/renesas/alt/ |
| H A D | alt.c | 141 int ret = -ENODEV; in board_eth_init() local 145 ret = sh_eth_initialize(bis); in board_eth_init() 147 return ret; in board_eth_init() 157 return ret; in board_eth_init() 165 int ret = -ENODEV; in board_mmc_init() local 171 ret = mmcif_mmc_init(); in board_mmc_init() 196 ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI0_BASE, 0, in board_mmc_init() 198 if (ret) in board_mmc_init() 199 return ret; in board_mmc_init() 207 ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI1_BASE, 1, 0); in board_mmc_init() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-uniphier/dram/ |
| H A D | umc-ld4.c | 149 int ret; in umc_ch_init() local 157 ret = uniphier_ld4_ddrphy_init(phy_base, freq, ddr3plus); in umc_ch_init() 158 if (ret) in umc_ch_init() 159 return ret; in umc_ch_init() 162 ret = ddrphy_training(phy_base); in umc_ch_init() 163 if (ret) in umc_ch_init() 164 return ret; in umc_ch_init() 175 int ch, ret; in uniphier_ld4_umc_init() local 178 ret = umc_ch_init(dc_base, ca_base, bd->dram_freq, in uniphier_ld4_umc_init() 181 if (ret) { in uniphier_ld4_umc_init() [all …]
|
| /rk3399_rockchip-uboot/drivers/crypto/rockchip/ |
| H A D | crypto_hash_cache.c | 16 int ret = 0; in hash_cache_calc() local 44 ret = direct_calc(hash_cache->user_data, in hash_cache_calc() 49 if (ret) in hash_cache_calc() 63 ret = direct_calc(hash_cache->user_data, hash_cache->cache, in hash_cache_calc() 65 if (ret) in hash_cache_calc() 73 return ret; in hash_cache_calc() 134 int ret = 0; in crypto_hash_update_with_cache() local 170 ret = direct_calc(hash_cache->user_data, in crypto_hash_update_with_cache() 173 if (ret) in crypto_hash_update_with_cache() 181 ret = hash_cache_calc(hash_cache, cache_data, in crypto_hash_update_with_cache() [all …]
|
| H A D | crypto_ecc.c | 252 int ret = 0; in rk_word_cmp_zero() local 257 ret = -EINVAL; in rk_word_cmp_zero() 260 return ret; in rk_word_cmp_zero() 307 int ret = 0; in rockchip_ecc_request_wait_done() local 315 ret = -EFAULT; in rockchip_ecc_request_wait_done() 320 if (ret) { in rockchip_ecc_request_wait_done() 332 return ret; in rockchip_ecc_request_wait_done() 365 int ret; in rockchip_ecc_verify() local 380 ret = -EINVAL; in rockchip_ecc_verify() 384 ret = rk_ecp_group_load(&grp, group_id); in rockchip_ecc_verify() [all …]
|
| /rk3399_rockchip-uboot/board/Synology/ds414/ |
| H A D | cmd_syno.c | 37 int ret, n; in do_syno_populate() local 53 ret = spi_flash_read(flash, offset, len, buf); in do_syno_populate() 54 if (ret) { in do_syno_populate() 110 ret = 1; in do_syno_populate() 123 ret = 1; in do_syno_populate() 132 return ret; in do_syno_populate() 202 int ret = 0; in do_syno() local 212 ret = do_syno_populate(argc, argv); in do_syno() 214 ret = do_syno_clk_gate(argc, argv); in do_syno() 216 if (ret != -1) in do_syno() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/ |
| H A D | dt-setup.c | 24 int i, ret; in ft_system_setup() local 28 ret = tegra_gpu_enable_node(blob, gpu_compats[i]); in ft_system_setup() 29 if (ret) in ft_system_setup() 30 return ret; in ft_system_setup()
|
| /rk3399_rockchip-uboot/arch/arm/mach-davinci/ |
| H A D | misc.c | 91 int ret; in davinci_sync_env_enetaddr() local 93 ret = eth_env_get_enetaddr_by_index("eth", 0, env_enetaddr); in davinci_sync_env_enetaddr() 94 if (!ret) { in davinci_sync_env_enetaddr() 102 ret = !eth_env_set_enetaddr("ethaddr", rom_enetaddr); in davinci_sync_env_enetaddr() 104 if (!ret) in davinci_sync_env_enetaddr() 105 printf("Failed to set mac address from EEPROM: %d\n", ret); in davinci_sync_env_enetaddr()
|
| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | gmac_rockchip.c | 130 int ret; in gmac_rockchip_ofdata_to_platdata() local 139 ret = dev_read_phandle_with_args(dev, "phy-handle", NULL, 0, 0, &args); in gmac_rockchip_ofdata_to_platdata() 140 if (ret) { in gmac_rockchip_ofdata_to_platdata() 141 debug("Cannot get phy phandle: ret=%d\n", ret); in gmac_rockchip_ofdata_to_platdata() 150 ret = reset_get_by_name(dev, "mac-phy", &pdata->phy_reset); in gmac_rockchip_ofdata_to_platdata() 151 if (ret) { in gmac_rockchip_ofdata_to_platdata() 152 ret = uclass_get_device_by_ofnode(UCLASS_ETH_PHY, args.node, &phydev); in gmac_rockchip_ofdata_to_platdata() 153 if (ret) { in gmac_rockchip_ofdata_to_platdata() 154 debug("Get phydev by ofnode failed: err=%d\n", ret); in gmac_rockchip_ofdata_to_platdata() 155 return ret; in gmac_rockchip_ofdata_to_platdata() [all …]
|
| /rk3399_rockchip-uboot/drivers/usb/host/ |
| H A D | ehci-vf.c | 142 int ret; in ehci_vf_common_init() local 145 ret = board_ehci_hcd_init(index); in ehci_vf_common_init() 146 if (ret) in ehci_vf_common_init() 147 return ret; in ehci_vf_common_init() 163 int ret; in ehci_hcd_init() local 170 ret = ehci_vf_common_init(index); in ehci_hcd_init() 171 if (ret) in ehci_hcd_init() 172 return ret; in ehci_hcd_init() 274 int ret; in vf_init_after_reset() local 276 ret = ehci_vf_common_init(priv->ehci, priv->portnr); in vf_init_after_reset() [all …]
|
| /rk3399_rockchip-uboot/tools/libfdt/ |
| H A D | fdt_rw.c | 12 int ret; in fdt_remove_unused_strings() local 28 ret = _fdt_find_add_string(new, str); in fdt_remove_unused_strings() 29 if (ret < 0) in fdt_remove_unused_strings() 30 return ret; in fdt_remove_unused_strings() 31 new_prop->nameoff = cpu_to_fdt32(ret); in fdt_remove_unused_strings()
|
| /rk3399_rockchip-uboot/drivers/clk/at91/ |
| H A D | clk-generated.c | 57 int ret; in generic_clk_get_rate() local 65 ret = clk_get_by_index(dev_get_parent(clk->dev), parent_id, &parent); in generic_clk_get_rate() 66 if (ret) in generic_clk_get_rate() 88 int ret; in generic_clk_set_rate() local 91 ret = clk_get_by_index(dev_get_parent(clk->dev), i, &parent); in generic_clk_set_rate() 92 if (ret) in generic_clk_set_rate() 93 return ret; in generic_clk_set_rate() 125 ret = clk_enable(&best_parent); in generic_clk_set_rate() 126 if (ret) in generic_clk_set_rate() 127 return ret; in generic_clk_set_rate()
|
| /rk3399_rockchip-uboot/drivers/input/ |
| H A D | adc_key.c | 15 int ret, num = 0, volt_margin = 150000; /* will be div 2 */ in adc_key_ofdata_to_platdata() local 25 ret = dev_read_u32_array(dev_get_parent(dev), in adc_key_ofdata_to_platdata() 27 if (ret) { in adc_key_ofdata_to_platdata() 29 uc_key->name, ret); in adc_key_ofdata_to_platdata() 47 ret = ofnode_read_s32(node, "press-threshold-microvolt", &t); in adc_key_ofdata_to_platdata() 48 if (ret) in adc_key_ofdata_to_platdata() 49 return ret; in adc_key_ofdata_to_platdata()
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | kwbimage.c | 461 int ret = 0; in kwb_compute_pubkey_hash() local 474 ret = openssl_err("Digest setup failed"); in kwb_compute_pubkey_hash() 479 ret = openssl_err("Hashing data failed"); in kwb_compute_pubkey_hash() 484 ret = openssl_err("Could not obtain hash"); in kwb_compute_pubkey_hash() 492 return ret; in kwb_compute_pubkey_hash() 586 int ret = 0; in kwb_export_pubkey() local 588 ret = kwb_compute_pubkey_hash(dst, &pk_hash); in kwb_export_pubkey() 589 if (ret < 0) { in kwb_export_pubkey() 591 return ret; in kwb_export_pubkey() 609 int ret = 0; in kwb_sign() local [all …]
|
| /rk3399_rockchip-uboot/board/rockchip/tinker_rk3288/ |
| H A D | tinker-rk3288.c | 14 int ret; in get_ethaddr_from_eeprom() local 17 ret = uclass_first_device_err(UCLASS_I2C_EEPROM, &dev); in get_ethaddr_from_eeprom() 18 if (ret) in get_ethaddr_from_eeprom() 19 return ret; in get_ethaddr_from_eeprom()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | rknand.c | 15 int ret; in do_rknand() local 19 ret = rknand_scan_namespace(); in do_rknand() 20 if (ret) in do_rknand() 23 return ret; in do_rknand()
|
| /rk3399_rockchip-uboot/drivers/power/io-domain/ |
| H A D | io-domain-uclass.c | 14 int ret; in io_domain_init() local 16 ret = uclass_get(UCLASS_IO_DOMAIN, &uc); in io_domain_init() 17 if (ret) in io_domain_init() 18 return ret; in io_domain_init()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1106/ |
| H A D | clk_rv1106.c | 22 int ret; in rockchip_get_cru() local 24 ret = rockchip_get_clk(&dev); in rockchip_get_cru() 25 if (ret) in rockchip_get_cru() 26 return ERR_PTR(ret); in rockchip_get_cru()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/px30/ |
| H A D | clk_px30.c | 23 int ret; in rockchip_get_cru() local 25 ret = rockchip_get_clk(&dev); in rockchip_get_cru() 26 if (ret) in rockchip_get_cru() 27 return ERR_PTR(ret); in rockchip_get_cru()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3288/ |
| H A D | clk_rk3288.c | 24 int ret; in rockchip_get_cru() local 26 ret = rockchip_get_clk(&dev); in rockchip_get_cru() 27 if (ret) in rockchip_get_cru() 28 return ERR_PTR(ret); in rockchip_get_cru()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3066/ |
| H A D | clk_rk3066.c | 24 int ret; in rockchip_get_cru() local 26 ret = rockchip_get_clk(&dev); in rockchip_get_cru() 27 if (ret) in rockchip_get_cru() 28 return ERR_PTR(ret); in rockchip_get_cru()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1103b/ |
| H A D | clk_rv1103b.c | 22 int ret; in rockchip_get_cru() local 24 ret = rockchip_get_clk(&dev); in rockchip_get_cru() 25 if (ret) in rockchip_get_cru() 26 return ERR_PTR(ret); in rockchip_get_cru()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3036/ |
| H A D | clk_rk3036.c | 24 int ret; in rockchip_get_cru() local 26 ret = rockchip_get_clk(&dev); in rockchip_get_cru() 27 if (ret) in rockchip_get_cru() 28 return ERR_PTR(ret); in rockchip_get_cru()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3128/ |
| H A D | clk_rk3128.c | 23 int ret; in rockchip_get_cru() local 25 ret = rockchip_get_clk(&dev); in rockchip_get_cru() 26 if (ret) in rockchip_get_cru() 27 return ERR_PTR(ret); in rockchip_get_cru()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk322x/ |
| H A D | clk_rk322x.c | 23 int ret; in rockchip_get_cru() local 25 ret = rockchip_get_clk(&dev); in rockchip_get_cru() 26 if (ret) in rockchip_get_cru() 27 return ERR_PTR(ret); in rockchip_get_cru()
|