Lines Matching refs:res
314 int res;
329 res = -1;
333 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb);
334 } while((res < 0) && (errno == EINTR));
336 if(res < 0) {
340 res = -1;
347 res = pthread_cond_timedwait(&h->notify, &h->lock, &ts);
348 if(res < 0 || h->dead) {
353 res = urb->actual_length;
361 return res;
368 int res;
380 res = -1;
384 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb);
385 } while((res < 0) && (errno == EINTR));
387 if(res < 0) {
396 res = ioctl(h->desc, USBDEVFS_REAPURB, &out);
401 res = -1;
404 if(res < 0) {
418 res = urb->actual_length;
420 res = -1;
432 return res;