Lines Matching refs:rc
33 int rc; in ti_i2c_set_alen() local
35 rc = uclass_get_device_by_seq(UCLASS_I2C, bus_addr, &bus); in ti_i2c_set_alen()
36 if (rc) in ti_i2c_set_alen()
37 return rc; in ti_i2c_set_alen()
38 rc = i2c_get_chip(bus, dev_addr, 1, &dev); in ti_i2c_set_alen()
39 if (rc) in ti_i2c_set_alen()
40 return rc; in ti_i2c_set_alen()
41 rc = i2c_set_chip_offset_len(dev, alen); in ti_i2c_set_alen()
42 if (rc) in ti_i2c_set_alen()
43 return rc; in ti_i2c_set_alen()
63 int rc; in ti_i2c_eeprom_init() local
66 rc = i2c_set_bus_num(i2c_bus); in ti_i2c_eeprom_init()
67 if (rc) in ti_i2c_eeprom_init()
68 return rc; in ti_i2c_eeprom_init()
86 int bus_num, rc, alen; in ti_i2c_eeprom_read() local
92 rc = ti_i2c_set_alen(bus_num, dev_addr, alen); in ti_i2c_eeprom_read()
93 if (rc) in ti_i2c_eeprom_read()
94 return rc; in ti_i2c_eeprom_read()
127 int rc; in ti_i2c_eeprom_get() local
130 rc = ti_i2c_eeprom_init(bus_addr, dev_addr); in ti_i2c_eeprom_get()
131 if (rc) in ti_i2c_eeprom_get()
132 return rc; in ti_i2c_eeprom_get()
139 rc = ti_i2c_set_alen(bus_addr, dev_addr, byte); in ti_i2c_eeprom_get()
140 if (rc) in ti_i2c_eeprom_get()
141 return rc; in ti_i2c_eeprom_get()
143 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, 4); in ti_i2c_eeprom_get()
144 if (rc) in ti_i2c_eeprom_get()
145 return rc; in ti_i2c_eeprom_get()
149 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, 4); in ti_i2c_eeprom_get()
155 if (rc) { in ti_i2c_eeprom_get()
156 rc = ti_i2c_set_alen(bus_addr, dev_addr, byte); in ti_i2c_eeprom_get()
157 if (rc) in ti_i2c_eeprom_get()
158 return rc; in ti_i2c_eeprom_get()
160 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, in ti_i2c_eeprom_get()
163 if (rc) in ti_i2c_eeprom_get()
164 return rc; in ti_i2c_eeprom_get()
169 rc = i2c_read(dev_addr, 0x0, byte, ep, size); in ti_i2c_eeprom_get()
170 if (rc) in ti_i2c_eeprom_get()
171 return rc; in ti_i2c_eeprom_get()
202 int rc; in ti_i2c_eeprom_am_get() local
219 rc = ti_i2c_eeprom_get(bus_addr, dev_addr, TI_EEPROM_HEADER_MAGIC, in ti_i2c_eeprom_am_get()
221 if (rc) in ti_i2c_eeprom_am_get()
222 return rc; in ti_i2c_eeprom_am_get()
248 int rc, offset = 0; in ti_i2c_eeprom_dra7_get() local
267 rc = ti_i2c_eeprom_get(bus_addr, dev_addr, DRA7_EEPROM_HEADER_MAGIC, in ti_i2c_eeprom_dra7_get()
269 if (rc) in ti_i2c_eeprom_dra7_get()
270 return rc; in ti_i2c_eeprom_dra7_get()