Lines Matching refs:rv
192 int rv; in skel_do_read_io() local
213 rv = usb_submit_urb(dev->bulk_in_urb, GFP_KERNEL); in skel_do_read_io()
214 if (rv < 0) { in skel_do_read_io()
217 __func__, rv); in skel_do_read_io()
218 rv = (rv == -ENOMEM) ? rv : -EIO; in skel_do_read_io()
224 return rv; in skel_do_read_io()
231 int rv; in skel_read() local
241 rv = mutex_lock_interruptible(&dev->io_mutex); in skel_read()
242 if (rv < 0) in skel_read()
243 return rv; in skel_read()
246 rv = -ENODEV; in skel_read()
259 rv = -EAGAIN; in skel_read()
266 rv = wait_event_interruptible(dev->bulk_in_wait, (!dev->ongoing_read)); in skel_read()
267 if (rv < 0) in skel_read()
272 rv = dev->errors; in skel_read()
273 if (rv < 0) { in skel_read()
277 rv = (rv == -EPIPE) ? rv : -EIO; in skel_read()
297 rv = skel_do_read_io(dev, count); in skel_read()
298 if (rv < 0) in skel_read()
311 rv = -EFAULT; in skel_read()
313 rv = chunk; in skel_read()
325 rv = skel_do_read_io(dev, count); in skel_read()
326 if (rv < 0) in skel_read()
330 rv = -EAGAIN; in skel_read()
334 return rv; in skel_read()