Lines Matching refs:ret
22 int ret; in check_boco2() local
25 ret = i2c_read(BOCO_ADDR, ID_REG, 1, &id, 1); in check_boco2()
26 if (ret) { in check_boco2()
28 return ret; in check_boco2()
36 int ret; in boco_clear_bits() local
40 ret = i2c_read(BOCO_ADDR, reg, 1, ®val, 1); in boco_clear_bits()
41 if (ret) { in boco_clear_bits()
44 return ret; in boco_clear_bits()
47 ret = i2c_write(BOCO_ADDR, reg, 1, ®val, 1); in boco_clear_bits()
48 if (ret) { in boco_clear_bits()
51 return ret; in boco_clear_bits()
59 int ret; in boco_set_bits() local
63 ret = i2c_read(BOCO_ADDR, reg, 1, ®val, 1); in boco_set_bits()
64 if (ret) { in boco_set_bits()
67 return ret; in boco_set_bits()
70 ret = i2c_write(BOCO_ADDR, reg, 1, ®val, 1); in boco_set_bits()
71 if (ret) { in boco_set_bits()
74 return ret; in boco_set_bits()
89 int ret = 0; in fpga_done() local
96 ret = i2c_read(BOCO_ADDR, SPI_REG, 1, ®val, 1); in fpga_done()
97 if (ret) { in fpga_done()
111 int ret = 0; in trigger_fpga_config() local
130 ret = boco_clear_bits(SPI_REG, CFG_EEPROM); in trigger_fpga_config()
131 if (ret) in trigger_fpga_config()
132 return ret; in trigger_fpga_config()
135 ret = boco_clear_bits(SPI_REG, FPGA_PROG | FPGA_INIT_B); in trigger_fpga_config()
136 if (ret) in trigger_fpga_config()
137 return ret; in trigger_fpga_config()
143 ret = boco_set_bits(SPI_REG, FPGA_PROG); in trigger_fpga_config()
144 if (ret) in trigger_fpga_config()
145 return ret; in trigger_fpga_config()
148 ret = boco_set_bits(SPI_REG, FPGA_INIT_B); in trigger_fpga_config()
149 if (ret) in trigger_fpga_config()
150 return ret; in trigger_fpga_config()
166 int ret = 0; in wait_for_fpga_config() local
180 ret = i2c_read(BOCO_ADDR, SPI_REG, 1, &spictrl, 1); in wait_for_fpga_config()
181 if (ret) { in wait_for_fpga_config()
184 return ret; in wait_for_fpga_config()
212 int ret = 0; in fpga_reset() local
223 ret = boco_clear_bits(PRST1, resets); in fpga_reset()
224 if (ret) in fpga_reset()
225 return ret; in fpga_reset()
230 ret = boco_set_bits(PRST1, resets); in fpga_reset()
231 if (ret) in fpga_reset()
232 return ret; in fpga_reset()
243 int ret = 0; in toggle_eeprom_spi_bus() local
250 ret = boco_set_bits(SPI_REG, CFG_EEPROM); in toggle_eeprom_spi_bus()
251 if (ret) in toggle_eeprom_spi_bus()
252 return ret; in toggle_eeprom_spi_bus()