Lines Matching refs:retval
142 int retval,cnt; in bttv_i2c_sendbytes() local
153 retval = bttv_i2c_wait_done(btv); in bttv_i2c_sendbytes()
154 if (retval < 0) in bttv_i2c_sendbytes()
156 if (retval == 0) in bttv_i2c_sendbytes()
168 retval = bttv_i2c_wait_done(btv); in bttv_i2c_sendbytes()
169 if (retval < 0) in bttv_i2c_sendbytes()
171 if (retval == 0) in bttv_i2c_sendbytes()
181 retval = -EIO; in bttv_i2c_sendbytes()
184 pr_cont(" ERR: %d\n",retval); in bttv_i2c_sendbytes()
185 return retval; in bttv_i2c_sendbytes()
193 int retval; in bttv_i2c_readbytes() local
210 retval = bttv_i2c_wait_done(btv); in bttv_i2c_readbytes()
211 if (retval < 0) in bttv_i2c_readbytes()
213 if (retval == 0) in bttv_i2c_readbytes()
227 retval = -EIO; in bttv_i2c_readbytes()
230 pr_cont(" ERR: %d\n",retval); in bttv_i2c_readbytes()
231 return retval; in bttv_i2c_readbytes()
238 int retval = 0; in bttv_i2c_xfer() local
248 retval = bttv_i2c_readbytes(btv, &msgs[i], i+1 == num); in bttv_i2c_xfer()
249 if (retval < 0) in bttv_i2c_xfer()
253 retval = bttv_i2c_sendbytes(btv, &msgs[i], i+1 == num); in bttv_i2c_xfer()
254 if (retval < 0) in bttv_i2c_xfer()
261 return retval; in bttv_i2c_xfer()