Lines Matching refs:rv
372 int i, rv = 0;
380 rv = hsi2c_prepare_transaction
382 if (rv != I2C_OK)
383 return rv;
387 rv = hsi2c_poll_fifo(i2c, false);
388 if (rv != I2C_OK) {
396 rv = hsi2c_poll_fifo(i2c, false);
397 if (rv != I2C_OK) {
404 rv = hsi2c_wait_for_trx(i2c);
409 if (rv == I2C_OK)
410 rv = tmp_ret;
414 return rv;
424 int i, rv, tmp_ret;
436 rv = hsi2c_write(i2c, chip, addr, alen, NULL, 0, false);
437 if (rv != I2C_OK)
438 return rv;
441 rv = hsi2c_prepare_transaction(i2c, chip, len, true, true);
443 if (rv != I2C_OK)
444 return rv;
447 rv = hsi2c_poll_fifo(i2c, true);
448 if (rv != I2C_OK)
455 rv = hsi2c_wait_for_trx(i2c);
459 if (rv == I2C_OK)
460 rv = tmp_ret;
463 return rv;