Lines Matching refs:res
75 int res; in tpm_atmel_twi_xfer() local
85 res = i2c_write(0x29, 0, 0, (uchar *)sendbuf, send_size); in tpm_atmel_twi_xfer()
87 res = dm_i2c_write(dev, 0, sendbuf, send_size); in tpm_atmel_twi_xfer()
89 if (res) { in tpm_atmel_twi_xfer()
90 printf("i2c_write returned %d\n", res); in tpm_atmel_twi_xfer()
96 while ((res = i2c_read(0x29, 0, 0, recvbuf, 10))) in tpm_atmel_twi_xfer()
98 while ((res = dm_i2c_read(dev, 0, recvbuf, 10))) in tpm_atmel_twi_xfer()
108 if (!res) { in tpm_atmel_twi_xfer()
120 res = i2c_read(0x29, 0, 0, recvbuf, *recv_len); in tpm_atmel_twi_xfer()
122 res = dm_i2c_read(dev, 0, recvbuf, *recv_len); in tpm_atmel_twi_xfer()
127 if (res) { in tpm_atmel_twi_xfer()
128 printf("i2c_read returned %d (rlen=%d)\n", res, *recv_len); in tpm_atmel_twi_xfer()
135 if (!res) { in tpm_atmel_twi_xfer()
141 return res; in tpm_atmel_twi_xfer()