/u-boot/arch/arm/mach-omap2/am33xx/ |
H A D | clk_synthesizer.c | 27 int rc; local 34 rc = i2c_write(CONFIG_CLK_SYNTHESIZER_I2C_ADDR, addr, 1, buf, 1); 35 if (rc) 42 rc = dm_i2c_reg_write(dev, addr, *buf); 43 if (rc) 47 rc = dm_i2c_reg_read(dev, addr); 48 if (rc < 0) 49 return rc; 51 *buf = (u8)rc; 69 int rc local 96 int rc; local [all...] |
/u-boot/drivers/power/ |
H A D | axp209.c | 35 int rc; local 42 rc = pmic_bus_setbits(AXP209_OUTPUT_CTRL, AXP209_OUTPUT_CTRL_DCDC2); 43 if (rc) 44 return rc; 49 while ((rc = pmic_bus_read(AXP209_DCDC2_VOLTAGE, ¤t)) == 0 && 56 rc = pmic_bus_write(AXP209_DCDC2_VOLTAGE, current); 57 if (rc) 61 return rc; 67 int rc; local 73 rc 82 int rc; local 106 int rc; local 165 int rc; local 194 int i, rc; local [all...] |
H A D | axp152.c | 23 int rc; local 29 while ((rc = pmic_bus_read(AXP152_DCDC2_VOLTAGE, ¤t)) == 0 && 35 rc = pmic_bus_write(AXP152_DCDC2_VOLTAGE, current); 36 if (rc) 39 return rc; 66 int rc; local 68 rc = pmic_bus_init(); 69 if (rc) 70 return rc; 72 rc [all...] |
/u-boot/cmd/ |
H A D | sata.c | 28 int rc; local 32 rc = uclass_find_device(UCLASS_AHCI, devnum, &dev); 33 if (!rc && !dev) 34 rc = uclass_find_first_device(UCLASS_AHCI, &dev); 35 if (rc || !dev) { 36 printf("Cannot find SATA device %d (err=%d)\n", devnum, rc); 40 rc = device_remove(dev, DM_REMOVE_NORMAL); 41 if (rc) { 43 rc); 57 int rc; local 85 int rc = 0; local [all...] |
H A D | tpm-common.c | 242 int n = 0, rc; local 245 rc = tpm_get_desc(dev, buf, sizeof(buf)); 246 if (rc < 0) 261 int rc = CMD_RET_FAILURE; local 265 rc = 0; 272 if (!rc) 275 return rc; 280 int rc; local 287 rc = tpm_set_device(0); 288 if (rc) { 303 int rc; local 322 int rc; local 342 int rc; local 360 int rc; local 375 int rc; local [all...] |
H A D | tpm-v1.c | 21 int rc; local 23 rc = get_tpm(&dev); 24 if (rc) 25 return rc; 47 int rc; local 49 rc = get_tpm(&dev); 50 if (rc) 51 return rc; 65 u32 index, count, rc; local 69 rc 92 u32 index, rc; local 120 u32 index, rc; local 147 u32 index, count, rc; local 175 int rc; local 192 u32 count, rc; local 218 int rc; local 234 u32 cap_area, sub_cap, rc; local 266 u32 rc; local 293 int rc; local 318 int rc; local 353 int rc; local 388 int rc; local 450 int rc; local 482 int rc; local 515 int rc; local [all...] |
H A D | usb_mass_storage.c | 144 int rc; local 159 rc = ums_init(devtype, devnum); 160 if (rc < 0) 165 rc = udc_device_get_by_index(controller_index, &udc); 166 if (rc) { 168 rc = CMD_RET_FAILURE; 172 rc = fsg_init(ums, ums_count, udc); 173 if (rc) { 175 rc = CMD_RET_FAILURE; 179 rc [all...] |
H A D | boot.c | 26 ulong addr, rc; local 41 rc = do_go_exec ((void *)addr, argc - 1, argv + 1); 42 if (rc != 0) rcode = 1; 44 printf ("## Application terminated, rc = 0x%lX\n", rc);
|
H A D | optee_rpmb.c | 23 int rc; local 31 rc = tee_open_session(tee, &arg, 0, NULL); 32 if (!rc) 78 int rc = 0; local 88 rc = tee_shm_alloc(tee, name_size, 90 if (rc) { 91 rc = -ENOMEM; 95 rc = tee_shm_alloc(tee, buffer_size, 97 if (rc) { 98 rc 141 int rc = 0; local [all...] |
/u-boot/board/BuR/common/ |
H A D | br_resetc.c | 55 int rc; local 57 rc = uclass_get_device_by_seq(UCLASS_I2C, 0, &i2cbus); 58 if (rc) { 64 rc = dm_i2c_probe(i2cbus, 66 if (rc) { 68 rc = dm_i2c_probe(i2cbus, 72 if (rc) 75 return rc; 80 int rc = 0; local 83 rc 93 int rc = 0; local 110 int rc = 0; local [all...] |
/u-boot/drivers/usb/eth/ |
H A D | mcs7830.c | 166 int rc; local 173 rc = mcs7830_write_reg(udev, REG_PHY_CMD, sizeof(cmd), cmd); 174 if (rc < 0) 175 return rc; 180 rc = mcs7830_read_reg(udev, REG_PHY_CMD, sizeof(cmd), cmd); 181 if (rc < 0) 182 return rc; 200 int rc; local 204 rc = mcs7830_phy_emit_wait(udev, PHY_CMD1_READ, index); 205 if (rc < 227 int rc; local 257 int rc; local 283 int rc; local 307 int rc; local 348 int rc; local 408 int rc; local 458 int rc; local 476 int rc; local 514 int rc; local 531 int rc, wantlen, gotlen; local [all...] |
/u-boot/drivers/tpm/ |
H A D | tpm_tis_infineon.c | 77 int rc; local 84 rc = dm_i2c_write(dev, 0, (uchar *)&addrbuf, 1); 85 if (rc == 0) 89 if (rc) 90 return rc; 98 rc = dm_i2c_read(dev, 0, buffer, len); 99 if (rc == 0) 111 rc = dm_i2c_read(dev, addr, buffer, len); 112 if (rc == 0) 120 if (rc) 132 int rc = 0; local 199 int rc; local 233 int rc; local 284 int rc; local 351 int rc; local 379 int rc; local 426 int rc, status; local 514 int rc; local 562 int rc; local [all...] |
H A D | tpm2_tis_i2c.c | 50 int rc; local 55 rc = dm_i2c_read(dev, reg, in, len); 57 } while (rc && count++ < MAX_COUNT); 59 return rc; 65 int rc; local 70 rc = dm_i2c_write(dev, reg, out, len); 72 } while (rc && count++ < MAX_COUNT); 74 return rc; 80 int rc; local 82 rc 107 int rc; local [all...] |
/u-boot/board/freescale/mx7ulp_evk/ |
H A D | mx7ulp_evk.c | 57 int rc, nodeoff; local 73 rc = fdt_delprop(blob, nodeoff, "vqmmc-supply"); 74 if (!rc) { 77 rc = fdt_setprop(blob, nodeoff, 79 if (rc == -FDT_ERR_NOSPACE) { 80 rc = fdt_increase_size(blob, 32); 81 if (!rc) 83 } else if (rc) { 84 printf("Failed to add no-1-8-v property, %d\n", rc); 89 printf("Failed to remove vqmmc-supply property, %d\n", rc); [all...] |
/u-boot/arch/arm/cpu/armv7/bcm235xx/ |
H A D | clk-eth.c | 44 int rc = -1; local 46 rc = clk_get_and_enable("esub_ccu_clk"); 60 rc = -1; 64 rc = 0; 70 if (rc == -1) { 90 rc = -1; 95 rc = 0; 101 if (rc == -1) { 121 rc = -1; 127 rc [all...] |
/u-boot/arch/arm/cpu/armv7/bcm281xx/ |
H A D | clk-eth.c | 44 int rc = -1; local 46 rc = clk_get_and_enable("esub_ccu_clk"); 60 rc = -1; 64 rc = 0; 70 if (rc == -1) { 90 rc = -1; 95 rc = 0; 101 if (rc == -1) { 121 rc = -1; 127 rc [all...] |
/u-boot/test/dm/ |
H A D | tee.c | 22 int rc; local 26 rc = tee_open_session(dev, &arg, 0, NULL); 27 if (rc) 28 return rc; 58 int rc; local 64 rc = tee_shm_alloc(dev, buf_size, 66 if (rc) 67 return rc; 82 rc = -1; 90 return rc; 110 int rc; local 159 int rc; local 205 int rc = test_tee(uts, &vars); local [all...] |
/u-boot/drivers/net/fm/ |
H A D | fdt.c | 22 int rc, fmnode, fwnode = -1; local 75 rc = fdt_increase_size(blob, length); 76 if (rc < 0) { 78 fdt_strerror(rc)); 91 rc = fdt_setprop_string(blob, fwnode, "compatible", 93 if (rc < 0) { 97 fdt_strerror(rc)); 105 fdt_strerror(rc)); 108 rc = fdt_setprop(blob, fwnode, "fsl,firmware", fmanfw, length); 109 if (rc < [all...] |
/u-boot/drivers/power/pmic/ |
H A D | pmic_tps65910.c | 18 int rc; 20 rc = dm_i2c_reg_read(tps65910_dev, addr); 21 if (rc < 0) 22 return rc; 23 *buf = (uchar)rc; 41 int rc; local 43 rc = i2c_get_chip_for_busnum(bus, TPS65910_CTRL_I2C_ADDR, 1, &dev); 45 if (rc) 46 return rc;
|
/u-boot/board/BuR/brppt1/ |
H A D | board.c | 84 int rc; local 117 rc = gpio_request(64 + 29, "GPMC_WAIT1"); 118 if (rc != 0) 120 rc = gpio_direction_output(64 + 29, 1); 121 if (rc != 0) 124 rc = gpio_request(64 + 28, "GPMC_WAIT0"); 125 if (rc != 0) 127 rc = gpio_direction_output(64 + 28, 1); 128 if (rc != 0) 170 int rc; local [all...] |
/u-boot/drivers/crypto/aspeed/ |
H A D | aspeed_hace.c | 169 int rc; local 182 rc = aspeed_hace_process(dev, ctx, hace_ctx->buf, hace_ctx->blk_size); 183 if (rc) { 184 debug("failed to process hash, rc=%d\n", rc); 185 return rc; 193 rc = aspeed_hace_process(dev, ctx, ibuf, hace_ctx->blk_size); 194 if (rc) { 195 debug("failed to process hash, rc=%d\n", rc); 211 int rc = 0; local 282 int rc; local 330 int rc; local [all...] |
/u-boot/board/ti/common/ |
H A D | board_detect.c | 36 int rc; local 39 rc = i2c_set_bus_num(i2c_bus); 40 if (rc) 41 return rc; 90 int rc; local 98 rc = uclass_get_device_by_seq(UCLASS_I2C, bus_addr, &bus); 99 if (rc) 100 return rc; 101 rc = dm_i2c_probe(bus, dev_addr, 0, &dev); 102 if (rc) 206 int rc; local 303 int rc; local 349 int rc, offset = 0; local 467 int rc; local [all...] |
/u-boot/drivers/misc/ |
H A D | cbmem_console.c | 51 int rc; local 61 rc = stdio_register(&cons_dev); 63 return (rc == 0) ? 1 : rc;
|
/u-boot/common/ |
H A D | cli_simple.c | 193 int rc = 0; local 254 rc = -1; /* no command at all */ 259 rc = -1; 266 return rc ? rc : repeatable; 275 int rc = 1; local 278 if (rc >= 0) { 309 rc = run_command_repeatable(lastcommand, flag); 311 if (rc <= 0) {
|
/u-boot/board/ti/ks2_evm/ |
H A D | board_k2g.c | 263 int rc; local 265 rc = i2c_set_bus_num(1); 266 if (rc) 267 return rc; 269 rc = i2c_probe(K2G_GP_AUDIO_CODEC_ADDRESS); 270 if (rc) 271 return rc; 274 int rc; 276 rc = uclass_get_device_by_seq(UCLASS_I2C, 1, &bus); 277 if (rc) 303 int rc; local 351 int rc; local [all...] |