Lines Matching refs:n
253 int fd, n; in read_sysfs_string() local
263 n = read(fd, buf, bufsize - 1); in read_sysfs_string()
266 if (n < 0) in read_sysfs_string()
269 buf[n] = '\0'; in read_sysfs_string()
271 return n; in read_sysfs_string()
313 int n, in, out, ifc; in find_usb_device() local
339 n = read(fd, desc, sizeof(desc)); in find_usb_device()
341 if(filter_usb_device(de->d_name, desc, n, writable, callback, in find_usb_device()
349 n = ioctl(fd, USBDEVFS_CLAIMINTERFACE, &ifc); in find_usb_device()
350 if(n != 0) { in find_usb_device()
371 int n; in usb_write() local
386 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_write()
387 if(n != xfer) { in usb_write()
389 n, errno, strerror(errno)); in usb_write()
406 int n, retry; in usb_read() local
423 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_read()
424 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, h->fname, retry); in usb_read()
426 if( n < 0 ) { in usb_read()
427 DBG1("ERROR: n = %d, errno = %d (%s)\n",n, errno, strerror(errno)); in usb_read()
432 while( n < 0 ); in usb_read()
434 count += n; in usb_read()
435 len -= n; in usb_read()
436 data += n; in usb_read()
438 if(n < xfer) { in usb_read()