Lines Matching refs:rc

35 	int rc;  in ti_i2c_eeprom_init()  local
38 rc = i2c_set_bus_num(i2c_bus); in ti_i2c_eeprom_init()
39 if (rc) in ti_i2c_eeprom_init()
40 return rc; in ti_i2c_eeprom_init()
90 int rc; in ti_i2c_eeprom_get() local
96 rc = uclass_get_device_by_seq(UCLASS_I2C, bus_addr, &bus); in ti_i2c_eeprom_get()
97 if (rc) in ti_i2c_eeprom_get()
98 return rc; in ti_i2c_eeprom_get()
99 rc = dm_i2c_probe(bus, dev_addr, 0, &dev); in ti_i2c_eeprom_get()
100 if (rc) in ti_i2c_eeprom_get()
101 return rc; in ti_i2c_eeprom_get()
106 rc = i2c_set_chip_offset_len(dev, 2); in ti_i2c_eeprom_get()
107 if (rc) in ti_i2c_eeprom_get()
108 return rc; in ti_i2c_eeprom_get()
110 rc = dm_i2c_read(dev, 0, (uint8_t *)&hdr_read, 4); in ti_i2c_eeprom_get()
111 if (rc) in ti_i2c_eeprom_get()
112 return rc; in ti_i2c_eeprom_get()
120 rc = i2c_set_chip_offset_len(dev, 1); in ti_i2c_eeprom_get()
121 if (rc) in ti_i2c_eeprom_get()
122 return rc; in ti_i2c_eeprom_get()
124 rc = dm_i2c_read(dev, 0, (uint8_t *)&hdr_read, 4); in ti_i2c_eeprom_get()
125 if (rc) in ti_i2c_eeprom_get()
126 return rc; in ti_i2c_eeprom_get()
131 rc = dm_i2c_read(dev, 0, ep, size); in ti_i2c_eeprom_get()
132 if (rc) in ti_i2c_eeprom_get()
133 return rc; in ti_i2c_eeprom_get()
138 rc = ti_i2c_eeprom_init(bus_addr, dev_addr); in ti_i2c_eeprom_get()
139 if (rc) in ti_i2c_eeprom_get()
140 return rc; in ti_i2c_eeprom_get()
147 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, 4); in ti_i2c_eeprom_get()
148 if (rc) in ti_i2c_eeprom_get()
149 return rc; in ti_i2c_eeprom_get()
158 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, in ti_i2c_eeprom_get()
160 if (rc) in ti_i2c_eeprom_get()
161 return rc; in ti_i2c_eeprom_get()
166 rc = i2c_read(dev_addr, 0x0, byte, ep, size); in ti_i2c_eeprom_get()
167 if (rc) in ti_i2c_eeprom_get()
168 return rc; in ti_i2c_eeprom_get()
175 int rc; in ti_emmc_boardid_get() local
195 rc = mmc_initialize(NULL); in ti_emmc_boardid_get()
196 if (rc) in ti_emmc_boardid_get()
197 return rc; in ti_emmc_boardid_get()
200 rc = uclass_get_device(UCLASS_MMC, 1, &dev); in ti_emmc_boardid_get()
201 if (rc) in ti_emmc_boardid_get()
202 return rc; in ti_emmc_boardid_get()
213 rc = mmc_switch_part(mmc, 2); in ti_emmc_boardid_get()
214 if (rc) in ti_emmc_boardid_get()
215 return rc; in ti_emmc_boardid_get()
225 rc = -EIO; in ti_emmc_boardid_get()
243 return rc; in ti_emmc_boardid_get()
272 int rc; in ti_i2c_eeprom_am_get() local
289 rc = ti_i2c_eeprom_get(bus_addr, dev_addr, TI_EEPROM_HEADER_MAGIC, in ti_i2c_eeprom_am_get()
291 if (rc) in ti_i2c_eeprom_am_get()
292 return rc; in ti_i2c_eeprom_am_get()
318 int rc, offset = 0; in ti_i2c_eeprom_dra7_get() local
337 rc = ti_i2c_eeprom_get(bus_addr, dev_addr, DRA7_EEPROM_HEADER_MAGIC, in ti_i2c_eeprom_dra7_get()
339 if (rc) in ti_i2c_eeprom_dra7_get()
340 return rc; in ti_i2c_eeprom_dra7_get()
436 int rc; in ti_i2c_eeprom_am6_get() local
443 rc = ti_i2c_eeprom_get(bus_addr, dev_addr, TI_EEPROM_HEADER_MAGIC, in ti_i2c_eeprom_am6_get()
445 if (rc) in ti_i2c_eeprom_am6_get()
446 return rc; in ti_i2c_eeprom_am6_get()
454 rc = uclass_get_device_by_seq(UCLASS_I2C, bus_addr, &bus); in ti_i2c_eeprom_am6_get()
455 if (rc) in ti_i2c_eeprom_am6_get()
456 return rc; in ti_i2c_eeprom_am6_get()
457 rc = i2c_get_chip(bus, dev_addr, 1, &dev); in ti_i2c_eeprom_am6_get()
458 if (rc) in ti_i2c_eeprom_am6_get()
459 return rc; in ti_i2c_eeprom_am6_get()
474 rc = dm_i2c_read(dev, eeprom_addr, (uint8_t *)&record.header, in ti_i2c_eeprom_am6_get()
476 if (rc) in ti_i2c_eeprom_am6_get()
477 return rc; in ti_i2c_eeprom_am6_get()
494 rc = dm_i2c_read(dev, eeprom_addr, in ti_i2c_eeprom_am6_get()
497 if (rc) in ti_i2c_eeprom_am6_get()
498 return rc; in ti_i2c_eeprom_am6_get()
501 rc = ti_i2c_eeprom_am6_parse_record(&record, ep, in ti_i2c_eeprom_am6_get()
505 if (rc) { in ti_i2c_eeprom_am6_get()
507 return rc; in ti_i2c_eeprom_am6_get()