Home
last modified time | relevance | path

Searched refs:rv (Results 1 – 25 of 40) sorted by relevance

12

/rk3399_rockchip-uboot/board/st/stm32f746-disco/
H A Dstm32f746-disco.c38 int rv; in dram_init() local
43 rv = uclass_get_device(UCLASS_RAM, 0, &dev); in dram_init()
44 if (rv) { in dram_init()
45 debug("DRAM init failed: %d\n", rv); in dram_init()
46 return rv; in dram_init()
50 rv = get_memory_base_size(&mr_base, &mr_size); in dram_init()
51 if (rv) in dram_init()
52 return rv; in dram_init()
56 return rv; in dram_init()
104 int rv; in spl_dram_init() local
[all …]
/rk3399_rockchip-uboot/common/spl/
H A Dspl_net.c32 int rv; local
37 rv = eth_initialize();
38 if (rv == 0) {
44 rv = net_loop(BOOTP);
45 if (rv < 0) {
47 return rv;
63 rv = spl_load_simple_fit(spl_image, &load, 0, header);
67 rv = spl_parse_image_header(spl_image, header);
68 if (rv)
69 return rv;
[all …]
/rk3399_rockchip-uboot/board/compulab/cm_t335/
H A Dcm_t335.c107 int rv; in handle_mac_address() local
109 rv = eth_env_get_enetaddr("ethaddr", enetaddr); in handle_mac_address()
110 if (rv) in handle_mac_address()
113 rv = cl_eeprom_read_mac_addr(enetaddr, CONFIG_SYS_I2C_EEPROM_BUS); in handle_mac_address()
114 if (rv) in handle_mac_address()
130 int rv, n = 0; in board_eth_init() local
134 rv = handle_mac_address(); in board_eth_init()
135 if (rv) in board_eth_init()
142 rv = cpsw_register(&cpsw_data); in board_eth_init()
143 if (rv < 0) in board_eth_init()
[all …]
/rk3399_rockchip-uboot/board/mpc8308_p1m/
H A Dmpc8308_p1m.c76 int rv, num_if = 0; in board_eth_init() local
79 rv = cpu_eth_init(bis); in board_eth_init()
80 if (rv >= 0) in board_eth_init()
81 num_if += rv; in board_eth_init()
85 rv = pci_eth_init(bis); in board_eth_init()
86 if (rv >= 0) in board_eth_init()
87 num_if += rv; in board_eth_init()
/rk3399_rockchip-uboot/drivers/misc/
H A Dcros_ec_spi.c30 int rv; in cros_ec_spi_packet() local
38 rv = spi_xfer(slave, out_bytes * 8, dev->dout, NULL, SPI_XFER_BEGIN); in cros_ec_spi_packet()
39 if (rv) in cros_ec_spi_packet()
43 rv = spi_xfer(slave, 8, NULL, &byte, 0); in cros_ec_spi_packet()
46 if (rv) in cros_ec_spi_packet()
49 rv = -ETIMEDOUT; in cros_ec_spi_packet()
54 rv = spi_xfer(slave, in_bytes * 8, NULL, dev->din, 0); in cros_ec_spi_packet()
59 if (rv) { in cros_ec_spi_packet()
92 int rv; in cros_ec_spi_command() local
141 rv = spi_xfer(slave, max(len, in_bytes) * 8, out, p, in cros_ec_spi_command()
[all …]
H A Dcros_ec.c210 int rv; in send_command_proto3() local
224 rv = ops->packet ? ops->packet(dev->dev, out_bytes, in_bytes) : -ENOSYS; in send_command_proto3()
225 if (rv < 0) in send_command_proto3()
226 return rv; in send_command_proto3()
455 int rv; in cros_ec_read_hash() local
463 rv = cros_ec_wait_on_hash_done(dev, hash); in cros_ec_read_hash()
464 if (rv) in cros_ec_read_hash()
465 return rv; in cros_ec_read_hash()
486 rv = cros_ec_wait_on_hash_done(dev, hash); in cros_ec_read_hash()
487 if (rv) in cros_ec_read_hash()
[all …]
/rk3399_rockchip-uboot/drivers/gpio/
H A Dstm32_gpio.c49 int rv; in stm32_gpio_config() local
52 rv = -EINVAL; in stm32_gpio_config()
56 rv = -EINVAL; in stm32_gpio_config()
72 rv = 0; in stm32_gpio_config()
74 return rv; in stm32_gpio_config()
80 int rv; in stm32_gpout_set() local
83 rv = -EINVAL; in stm32_gpout_set()
94 rv = 0; in stm32_gpout_set()
96 return rv; in stm32_gpout_set()
102 int rv; in stm32_gpin_get() local
[all …]
/rk3399_rockchip-uboot/drivers/i2c/
H A Dexynos_hs_i2c.c370 int i, rv = 0; in hsi2c_write() local
378 rv = hsi2c_prepare_transaction in hsi2c_write()
380 if (rv != I2C_OK) in hsi2c_write()
381 return rv; in hsi2c_write()
385 rv = hsi2c_poll_fifo(i2c, false); in hsi2c_write()
386 if (rv != I2C_OK) { in hsi2c_write()
394 rv = hsi2c_poll_fifo(i2c, false); in hsi2c_write()
395 if (rv != I2C_OK) { in hsi2c_write()
402 rv = hsi2c_wait_for_trx(i2c); in hsi2c_write()
407 if (rv == I2C_OK) in hsi2c_write()
[all …]
/rk3399_rockchip-uboot/board/logicpd/am3517evm/
H A Dam3517evm.c165 int rv, n = 0; in board_eth_init() local
167 rv = cpu_eth_init(bis); in board_eth_init()
168 if (rv > 0) in board_eth_init()
169 n += rv; in board_eth_init()
171 rv = usb_eth_initialize(bis); in board_eth_init()
172 if (rv > 0) in board_eth_init()
173 n += rv; in board_eth_init()
/rk3399_rockchip-uboot/examples/api/
H A Ddemo.c29 int rv = 0, h, i, j, devs_no; in main() local
92 if ((rv = ub_dev_open(h)) != 0) { in main()
93 errf("open device %d error %d\n", h, rv); in main()
96 if ((rv = ub_dev_open(h)) != 0) in main()
97 errf("open device %d error %d\n", h, rv); in main()
115 if ((rv = ub_dev_open(i)) != 0) in main()
116 errf("open device %d error %d\n", i, rv); in main()
118 else if ((rv = ub_dev_read(i, buf, 1, 0, &rlen)) != 0) in main()
119 errf("could not read from device %d, error %d\n", i, rv); in main()
140 if ((rv = ub_dev_open(i)) != 0) in main()
[all …]
/rk3399_rockchip-uboot/board/st/stm32f429-discovery/
H A Dstm32f429-discovery.c51 int rv = 0; in uart_setup_gpio() local
55 rv = stm32_gpio_config(&usart_gpio[i], &gpio_ctl_usart); in uart_setup_gpio()
56 if (rv) in uart_setup_gpio()
61 return rv; in uart_setup_gpio()
116 int rv = 0; in fmc_setup_gpio() local
127 rv = stm32_gpio_config(&ext_ram_fmc_gpio[i], in fmc_setup_gpio()
129 if (rv) in fmc_setup_gpio()
134 return rv; in fmc_setup_gpio()
191 int rv; in dram_init() local
193 rv = fmc_setup_gpio(); in dram_init()
[all …]
/rk3399_rockchip-uboot/board/phytec/pcm051/
H A Dboard.c214 int rv, n = 0; in board_eth_init() local
239 rv = cpsw_register(&cpsw_data); in board_eth_init()
240 if (rv < 0) in board_eth_init()
241 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
243 n += rv; in board_eth_init()
248 rv = usb_eth_initialize(bis); in board_eth_init()
249 if (rv < 0) in board_eth_init()
250 printf("Error %d registering USB_ETHER\n", rv); in board_eth_init()
252 n += rv; in board_eth_init()
/rk3399_rockchip-uboot/board/freescale/mpc8308rdb/
H A Dmpc8308rdb.c176 int rv, num_if = 0; in board_eth_init() local
179 rv = cpu_eth_init(bis); in board_eth_init()
180 if (rv >= 0) in board_eth_init()
181 num_if += rv; in board_eth_init()
185 rv = pci_eth_init(bis); in board_eth_init()
186 if (rv >= 0) in board_eth_init()
187 num_if += rv; in board_eth_init()
/rk3399_rockchip-uboot/board/tcl/sl50/
H A Dboard.c309 int rv, n = 0; in board_eth_init() local
353 rv = cpsw_register(&cpsw_data); in board_eth_init()
354 if (rv < 0) in board_eth_init()
355 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
357 n += rv; in board_eth_init()
378 rv = usb_eth_initialize(bis); in board_eth_init()
379 if (rv < 0) in board_eth_init()
380 printf("Error %d registering USB_ETHER\n", rv); in board_eth_init()
382 n += rv; in board_eth_init()
/rk3399_rockchip-uboot/drivers/pinctrl/
H A Dpinctrl_stm32.c99 int rv, len; in stm32_pinctrl_config() local
121 rv = uclass_get_device_by_seq(UCLASS_GPIO, in stm32_pinctrl_config()
123 if (rv) in stm32_pinctrl_config()
124 return rv; in stm32_pinctrl_config()
126 rv = stm32_gpio_config(&desc, &gpio_ctl); in stm32_pinctrl_config()
127 debug("%s: rv = %d\n\n", __func__, rv); in stm32_pinctrl_config()
128 if (rv) in stm32_pinctrl_config()
129 return rv; in stm32_pinctrl_config()
/rk3399_rockchip-uboot/board/compulab/cm_t43/
H A Dcm_t43.c153 int rv; in board_eth_init() local
159 rv = cpsw_register(&cpsw_data); in board_eth_init()
160 if (rv < 0) in board_eth_init()
161 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
163 return rv; in board_eth_init()
/rk3399_rockchip-uboot/board/silica/pengwyn/
H A Dboard.c170 int rv, n = 0; in board_eth_init() local
194 rv = cpsw_register(&cpsw_data); in board_eth_init()
195 if (rv < 0) in board_eth_init()
196 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
198 n += rv; in board_eth_init()
/rk3399_rockchip-uboot/arch/arm/cpu/armv8/s32v234/
H A Dcpu.c91 int rv; in arch_early_init_r() local
93 rv = fsl_s32v234_wake_seconday_cores(); in arch_early_init_r()
95 if (rv) in arch_early_init_r()
/rk3399_rockchip-uboot/board/grinn/chiliboard/
H A Dboard.c193 int rv, n = 0; in board_eth_init() local
198 rv = cpsw_register(&cpsw_data); in board_eth_init()
199 if (rv < 0) in board_eth_init()
200 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
202 n += rv; in board_eth_init()
/rk3399_rockchip-uboot/board/bosch/shc/
H A Dboard.c532 int rv, n = 0; in board_eth_init() local
558 rv = cpsw_register(&cpsw_data); in board_eth_init()
559 if (rv < 0) in board_eth_init()
560 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
562 n += rv; in board_eth_init()
570 rv = usb_eth_initialize(bis); in board_eth_init()
571 if (rv < 0) in board_eth_init()
572 printf("Error %d registering USB_ETHER\n", rv); in board_eth_init()
574 n += rv; in board_eth_init()
/rk3399_rockchip-uboot/board/gumstix/pepper/
H A Dboard.c237 int rv, n = 0; in board_eth_init() local
258 rv = cpsw_register(&cpsw_data); in board_eth_init()
259 if (rv < 0) in board_eth_init()
260 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
262 n += rv; in board_eth_init()
/rk3399_rockchip-uboot/board/isee/igep003x/
H A Dboard.c263 int rv, ret = 0; in board_eth_init() local
287 rv = cpsw_register(&cpsw_data); in board_eth_init()
288 if (rv < 0) in board_eth_init()
289 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
291 ret += rv; in board_eth_init()
/rk3399_rockchip-uboot/arch/x86/cpu/intel_common/
H A Dmrc.c203 int rv; in sdram_initialise() local
213 rv = func(pei_data); in sdram_initialise()
218 rv = func(pei_data); in sdram_initialise()
221 if (rv) { in sdram_initialise()
222 switch (rv) { in sdram_initialise()
230 printf("MRC returned %x.\n", rv); in sdram_initialise()
/rk3399_rockchip-uboot/board/ti/am335x/
H A Dboard.c627 int rv; in board_init() local
683 rv = setup_clock_synthesizer(&cdce913_data); in board_init()
684 if (rv) { in board_init()
685 printf("Clock synthesizer setup failed %d\n", rv); in board_init()
686 return rv; in board_init()
837 int rv, n = 0; in board_eth_init() local
879 rv = cpsw_register(&cpsw_data); in board_eth_init()
880 if (rv < 0) in board_eth_init()
881 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
883 n += rv; in board_eth_init()
[all …]
/rk3399_rockchip-uboot/board/birdland/bav335x/
H A Dboard.c370 int ecode, rv, n; in board_eth_init() local
419 rv = cpsw_register(&cpsw_data); in board_eth_init()
420 if (rv < 0) in board_eth_init()
421 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
423 n += rv; in board_eth_init()

12