Home
last modified time | relevance | path

Searched refs:ret (Results 501 – 525 of 1703) sorted by relevance

1...<<21222324252627282930>>...69

/rk3399_rockchip-uboot/board/corscience/tricorder/
H A Dtricorder.c48 int ret; in get_eeprom() local
53 ret = gpio_request(7, "BMS"); in get_eeprom()
54 if (ret) in get_eeprom()
57 ret = gpio_direction_input(7); in get_eeprom()
58 if (ret) in get_eeprom()
61 ret = gpio_get_value(7); in get_eeprom()
62 if (ret < 0) in get_eeprom()
67 if (ret == 0) { in get_eeprom()
69 ret = tricorder_get_eeprom(0x51, eeprom); in get_eeprom()
70 if (!ret) { in get_eeprom()
/rk3399_rockchip-uboot/post/lib_powerpc/
H A Dsrawi.c52 int ret = 0; in cpu_post_test_srawi() local
56 for (i = 0; i < cpu_post_srawi_size && ret == 0; i++) in cpu_post_test_srawi()
60 for (reg = 0; reg < 32 && ret == 0; reg++) in cpu_post_test_srawi()
102 if (ret == 0) in cpu_post_test_srawi()
107 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_srawi()
109 if (ret != 0) in cpu_post_test_srawi()
115 if (ret == 0) in cpu_post_test_srawi()
119 ret = res == test->res && in cpu_post_test_srawi()
122 if (ret != 0) in cpu_post_test_srawi()
133 return ret; in cpu_post_test_srawi()
H A Dtwo.c72 int ret = 0; in cpu_post_test_two() local
76 for (i = 0; i < cpu_post_two_size && ret == 0; i++) in cpu_post_test_two()
80 for (reg = 0; reg < 32 && ret == 0; reg++) in cpu_post_test_two()
122 if (ret == 0) in cpu_post_test_two()
127 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_two()
129 if (ret != 0) in cpu_post_test_two()
135 if (ret == 0) in cpu_post_test_two()
139 ret = res == test->res && in cpu_post_test_two()
142 if (ret != 0) in cpu_post_test_two()
153 return ret; in cpu_post_test_two()
H A Dtwox.c72 int ret = 0; in cpu_post_test_twox() local
76 for (i = 0; i < cpu_post_twox_size && ret == 0; i++) in cpu_post_test_twox()
80 for (reg = 0; reg < 32 && ret == 0; reg++) in cpu_post_test_twox()
122 if (ret == 0) in cpu_post_test_twox()
127 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_twox()
129 if (ret != 0) in cpu_post_test_twox()
135 if (ret == 0) in cpu_post_test_twox()
139 ret = res == test->res && in cpu_post_test_twox()
142 if (ret != 0) in cpu_post_test_twox()
153 return ret; in cpu_post_test_twox()
H A Dstring.c32 int ret = 0; in cpu_post_test_string() local
36 if (ret == 0) in cpu_post_test_string()
55 ret = memcmp(src, dst, sizeof(dst)) == 0 ? 0 : -1; in cpu_post_test_string()
58 if (ret == 0) in cpu_post_test_string()
77 ret = memcmp(src, dst, sizeof(dst)) == 0 ? 0 : -1; in cpu_post_test_string()
80 if (ret != 0) in cpu_post_test_string()
88 return ret; in cpu_post_test_string()
/rk3399_rockchip-uboot/drivers/power/regulator/
H A Dgpio-regulator.c32 int ret, len, i, j; in gpio_regulator_ofdata_to_platdata() local
51 ret = gpio_request_by_name(dev, "gpios", 0, gpio, GPIOD_IS_OUT); in gpio_regulator_ofdata_to_platdata()
52 if (ret) in gpio_regulator_ofdata_to_platdata()
53 debug("regulator gpio - not found! Error: %d", ret); in gpio_regulator_ofdata_to_platdata()
61 ret = dev_read_u32_array(dev, "states", states_array, len); in gpio_regulator_ofdata_to_platdata()
62 if (ret) in gpio_regulator_ofdata_to_platdata()
99 int ret; in gpio_regulator_set_value() local
112 ret = dm_gpio_set_value(&dev_pdata->gpio, enable); in gpio_regulator_set_value()
113 if (ret) { in gpio_regulator_set_value()
116 return ret; in gpio_regulator_set_value()
H A Dact8846.c89 int ret; in reg_get_value() local
91 ret = pmic_reg_read(dev->parent, addr_vol[reg]); in reg_get_value()
92 if (ret < 0) in reg_get_value()
93 return ret; in reg_get_value()
95 return voltage_map[ret & LDO_VOL_MASK] * 1000; in reg_get_value()
121 int ret; in reg_get_enable() local
123 ret = pmic_reg_read(dev->parent, addr_ctl[reg]); in reg_get_enable()
124 if (ret < 0) in reg_get_enable()
125 return ret; in reg_get_enable()
127 return ret & LDO_EN_MASK ? true : false; in reg_get_enable()
/rk3399_rockchip-uboot/drivers/pinctrl/rockchip/
H A Dpinctrl-rk322x.c149 int reg, ret, mask, mux_type; in rk3228_set_mux() local
163 ret = regmap_write(regmap, reg, data); in rk3228_set_mux()
165 return ret; in rk3228_set_mux()
189 int reg, ret; in rk3228_set_pull() local
198 ret = rockchip_translate_pull_value(type, pull); in rk3228_set_pull()
199 if (ret < 0) { in rk3228_set_pull()
201 return ret; in rk3228_set_pull()
206 data |= (ret << bit); in rk3228_set_pull()
207 ret = regmap_write(regmap, reg, data); in rk3228_set_pull()
209 return ret; in rk3228_set_pull()
[all …]
/rk3399_rockchip-uboot/drivers/gpio/
H A Dpm8916_gpio.c61 int ret; in pm8916_gpio_set_direction() local
64 ret = pmic_clrsetbits(dev->parent, gpio_base + REG_EN_CTL, in pm8916_gpio_set_direction()
66 if (ret < 0) in pm8916_gpio_set_direction()
67 return ret; in pm8916_gpio_set_direction()
71 ret = pmic_reg_write(dev->parent, gpio_base + REG_CTL, in pm8916_gpio_set_direction()
74 ret = pmic_reg_write(dev->parent, gpio_base + REG_CTL, in pm8916_gpio_set_direction()
76 if (ret < 0) in pm8916_gpio_set_direction()
77 return ret; in pm8916_gpio_set_direction()
80 ret = pmic_reg_write(dev->parent, gpio_base + REG_DIG_PULL_CTL, in pm8916_gpio_set_direction()
82 if (ret < 0) in pm8916_gpio_set_direction()
[all …]
H A Dpcf8575_gpio.c59 int ret; in pcf8575_i2c_write_le16() local
61 ret = dm_i2c_write(dev, 0, buf, 2); in pcf8575_i2c_write_le16()
62 if (ret) in pcf8575_i2c_write_le16()
66 return ret; in pcf8575_i2c_write_le16()
73 int ret; in pcf8575_i2c_read_le16() local
75 ret = dm_i2c_read(dev, 0, buf, 2); in pcf8575_i2c_read_le16()
76 if (ret) { in pcf8575_i2c_read_le16()
79 return ret; in pcf8575_i2c_read_le16()
100 int ret; in pcf8575_direction_output() local
107 ret = pcf8575_i2c_write_le16(dev, plat->out); in pcf8575_direction_output()
[all …]
/rk3399_rockchip-uboot/drivers/video/drm/
H A Dpanel-maxim-max96752f.c104 int ret; in max96752f_probe() local
106 ret = i2c_set_chip_offset_len(dev, 2); in max96752f_probe()
107 if (ret) in max96752f_probe()
108 return ret; in max96752f_probe()
114 ret = uclass_get_device_by_phandle(UCLASS_PANEL_BACKLIGHT, dev, in max96752f_probe()
116 if (ret && ret != -ENOENT) { in max96752f_probe()
117 dev_err(dev, "%s: Cannot get backlight: %d\n", __func__, ret); in max96752f_probe()
118 return ret; in max96752f_probe()
134 int ret; \
135 ret = dm_i2c_reg_write(max96752f->serializer, \
[all …]
/rk3399_rockchip-uboot/drivers/misc/
H A Drockchip_decompress.c208 int ret = -EINVAL; in rockchip_decom_ioctl() local
212 ret = rockchip_decom_start(dev, buf); in rockchip_decom_ioctl()
215 ret = rockchip_decom_done_poll(dev); in rockchip_decom_ioctl()
218 ret = rockchip_decom_stop(dev); in rockchip_decom_ioctl()
221 ret = rockchip_decom_capability(buf); in rockchip_decom_ioctl()
224 ret = rockchip_decom_data_size(dev, buf); in rockchip_decom_ioctl()
231 return ret; in rockchip_decom_ioctl()
254 int ret; in rockchip_decom_probe() local
257 ret = reset_get_by_name(dev, "dresetn", &priv->rst); in rockchip_decom_probe()
258 if (ret) { in rockchip_decom_probe()
[all …]
/rk3399_rockchip-uboot/board/technexion/tao3530/
H A Dtao3530.c28 int ret = 0; in tao3530_revision() local
31 ret = gpio_request(65, ""); in tao3530_revision()
32 if (ret) { in tao3530_revision()
38 ret = gpio_request(1, ""); in tao3530_revision()
39 if (ret) { in tao3530_revision()
45 ret = gpio_direction_input(65); in tao3530_revision()
46 if (ret) { in tao3530_revision()
51 ret = gpio_direction_input(1); in tao3530_revision()
52 if (ret) { in tao3530_revision()
57 ret = gpio_get_value(65) << 1 | gpio_get_value(1); in tao3530_revision()
[all …]
/rk3399_rockchip-uboot/drivers/usb/host/
H A Dehci-msm.c98 int ret; in ehci_usb_probe() local
104 ret = board_prepare_usb(USB_INIT_HOST); in ehci_usb_probe()
105 if (ret < 0) in ehci_usb_probe()
106 return ret; in ehci_usb_probe()
115 int ret; in ehci_usb_remove() local
117 ret = ehci_deregister(dev); in ehci_usb_remove()
118 if (ret) in ehci_usb_remove()
119 return ret; in ehci_usb_remove()
126 ret = board_prepare_usb(USB_INIT_DEVICE); /* Board specific hook */ in ehci_usb_remove()
127 if (ret < 0) in ehci_usb_remove()
[all …]
/rk3399_rockchip-uboot/board/compulab/cm_t3517/
H A Dcm_t3517.c149 int ret = cpu_eth_init(bis); in cm_t3517_init_emac() local
151 if (ret > 0) in cm_t3517_init_emac()
152 return ret; in cm_t3517_init_emac()
169 int ret; in cm_t3517_handle_mac_address() local
171 ret = eth_env_get_enetaddr("ethaddr", enetaddr); in cm_t3517_handle_mac_address()
172 if (ret) in cm_t3517_handle_mac_address()
175 ret = cl_eeprom_read_mac_addr(enetaddr, CONFIG_SYS_I2C_EEPROM_BUS); in cm_t3517_handle_mac_address()
176 if (ret) { in cm_t3517_handle_mac_address()
177 ret = am3517_get_efuse_enetaddr(enetaddr); in cm_t3517_handle_mac_address()
178 if (ret) in cm_t3517_handle_mac_address()
[all …]
/rk3399_rockchip-uboot/board/cavium/thunderx/
H A Datf.c187 int ret; in atf_print_part_table() local
198 ret = atf_get_part(part, i); in atf_print_part_table()
200 if (ret < 0) { in atf_print_part_table()
202 ret); in atf_print_part_table()
231 ssize_t ret; in do_atf() local
242 ret = atf_read_mmc(offset, buffer, size); in do_atf()
248 ret = atf_read_nor(offset, buffer, size); in do_atf()
254 ret = atf_write_mmc(offset, buffer, size); in do_atf()
260 ret = atf_write_nor(offset, buffer, size); in do_atf()
267 ret = atf_erase_nor(offset, size); in do_atf()
[all …]
/rk3399_rockchip-uboot/arch/arm/mach-sunxi/
H A Dusb_phy.c336 int i, ret = 0; in sunxi_usb_phy_probe() local
343 ret = gpio_request(phy->gpio_vbus, "usb_vbus"); in sunxi_usb_phy_probe()
344 if (ret) in sunxi_usb_phy_probe()
345 return ret; in sunxi_usb_phy_probe()
346 ret = gpio_direction_output(phy->gpio_vbus, 0); in sunxi_usb_phy_probe()
347 if (ret) in sunxi_usb_phy_probe()
348 return ret; in sunxi_usb_phy_probe()
353 ret = gpio_request(phy->gpio_vbus_det, "usb_vbus_det"); in sunxi_usb_phy_probe()
354 if (ret) in sunxi_usb_phy_probe()
355 return ret; in sunxi_usb_phy_probe()
[all …]
/rk3399_rockchip-uboot/drivers/usb/dwc3/
H A Dgadget.c473 int ret; in __dwc3_gadget_ep_enable() local
478 ret = dwc3_gadget_start_config(dwc, dep); in __dwc3_gadget_ep_enable()
479 if (ret) in __dwc3_gadget_ep_enable()
480 return ret; in __dwc3_gadget_ep_enable()
483 ret = dwc3_gadget_set_ep_config(dwc, dep, desc, comp_desc, ignore, in __dwc3_gadget_ep_enable()
485 if (ret) in __dwc3_gadget_ep_enable()
486 return ret; in __dwc3_gadget_ep_enable()
492 ret = dwc3_gadget_set_xfer_resource(dwc, dep); in __dwc3_gadget_ep_enable()
493 if (ret) in __dwc3_gadget_ep_enable()
494 return ret; in __dwc3_gadget_ep_enable()
[all …]
/rk3399_rockchip-uboot/board/ppcag/bg0900/
H A Dbg0900.c58 int ret; in board_eth_init() local
60 ret = cpu_eth_init(bis); in board_eth_init()
71 ret = fecmxc_initialize_multi(bis, 0, 0, MXS_ENET0_BASE); in board_eth_init()
72 if (ret) { in board_eth_init()
74 return ret; in board_eth_init()
83 return ret; in board_eth_init()
/rk3399_rockchip-uboot/arch/powerpc/cpu/mpc8xxx/
H A Dpamu_table.c50 int ret = 0; in sec_config_pamu_table() local
54 ret = config_pamu(&tbl, num_entries, liodn_ns); in sec_config_pamu_table()
55 if (ret) in sec_config_pamu_table()
56 return ret; in sec_config_pamu_table()
58 ret = config_pamu(&tbl, num_entries, liodn_s); in sec_config_pamu_table()
59 if (ret) in sec_config_pamu_table()
60 return ret; in sec_config_pamu_table()
62 return ret; in sec_config_pamu_table()
/rk3399_rockchip-uboot/board/compulab/cm_t54/
H A Dcm_t54.c162 int ret; in handle_mac_address() local
164 ret = eth_env_get_enetaddr("usbethaddr", enetaddr); in handle_mac_address()
165 if (ret) in handle_mac_address()
168 ret = cl_eeprom_read_mac_addr(enetaddr, CONFIG_SYS_I2C_EEPROM_BUS); in handle_mac_address()
169 if (ret || !is_valid_ethaddr(enetaddr)) in handle_mac_address()
222 int ret; in ehci_hcd_init() local
230 ret = omap_ehci_hcd_init(index, &usbhs_bdata, hccr, hcor); in ehci_hcd_init()
231 if (ret < 0) in ehci_hcd_init()
232 printf("cm_t54: Failed to initialize ehci : %d\n", ret); in ehci_hcd_init()
234 return ret; in ehci_hcd_init()
[all …]
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dsf_probe.c30 int ret; in spi_flash_probe_slave() local
39 ret = spi_claim_bus(spi); in spi_flash_probe_slave()
40 if (ret) { in spi_flash_probe_slave()
41 debug("SF: Failed to claim SPI bus: %d\n", ret); in spi_flash_probe_slave()
42 return ret; in spi_flash_probe_slave()
49 ret = spi_nor_scan(flash); in spi_flash_probe_slave()
50 if (ret) in spi_flash_probe_slave()
54 ret = spi_flash_mtd_register(flash); in spi_flash_probe_slave()
59 return ret; in spi_flash_probe_slave()
148 int ret = 0; in spi_flash_std_bind() local
[all …]
/rk3399_rockchip-uboot/drivers/mmc/
H A Dftsdc010_mci.c37 int ret = -ETIMEDOUT; in ftsdc010_send_cmd() local
65 ret = 0; in ftsdc010_send_cmd()
86 ret = 0; in ftsdc010_send_cmd()
93 if (ret) { in ftsdc010_send_cmd()
100 return ret; in ftsdc010_send_cmd()
129 int ret = -ETIMEDOUT; in ftsdc010_wait() local
137 ret = 0; in ftsdc010_wait()
141 if (ret) in ftsdc010_wait()
144 return ret; in ftsdc010_wait()
154 int ret = -EOPNOTSUPP; in ftsdc010_request() local
[all …]
/rk3399_rockchip-uboot/arch/arm/mach-zynq/
H A Dtimer.c66 int ret; in timer_init() local
68 ret = uclass_get_device_by_driver(UCLASS_CLK, in timer_init()
70 if (ret) in timer_init()
71 return ret; in timer_init()
74 ret = clk_request(dev, &clk); in timer_init()
75 if (ret < 0) in timer_init()
76 return ret; in timer_init()
/rk3399_rockchip-uboot/drivers/qe/
H A Dfdt.c25 int node, ret; in fdt_fixup_qe_firmware() local
40 ret = fdt_setprop(blob, node, "extended-modes", in fdt_fixup_qe_firmware()
42 if (ret < 0) in fdt_fixup_qe_firmware()
45 ret = fdt_setprop_string(blob, node, "id", qe_fw_info->id); in fdt_fixup_qe_firmware()
46 if (ret < 0) in fdt_fixup_qe_firmware()
49 ret = fdt_setprop(blob, node, "virtual-traps", qe_fw_info->vtraps, in fdt_fixup_qe_firmware()
51 if (ret < 0) in fdt_fixup_qe_firmware()

1...<<21222324252627282930>>...69