Lines Matching defs:read
59 . . - sane_read() : read image-data (from pipe)
702 size_t size, read = 0;
708 /* poll for data-to-be-read (using K_Request_Timeout) */
721 while (read < wanted) {
722 DBG(50, "reading: read %lu, wanted %lu\n",read, wanted);
723 size = sanei_tcp_read(s->fd, buf + read, wanted - read);
725 DBG(1, "No data read. Scanner may have disconnected\n");
728 read += size;
731 if (read == 0)
734 DBG(32, "net read %lu bytes:%x,%x,%x,%x,%x,%x,%x,%x\n",(unsigned long)read,buf[0],buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7]);
739 return read;
1036 and returns number of bytes read
1161 Old mc cmd read this stuff from the scanner. I don't think kodak can do that easily */
1314 read data using k_recv until you get the ackstring
1380 DBG(min(1,DBG_READ), "%s: tiny read, got %lu bytes of %lu\n", __func__, (unsigned long) bytecount, (unsigned long) *len);
1405 DBG(min(2,DBG_READ), "%s: Page fully read %d blocks, %ld bytes unread\n", __func__, s->counter, (long) s->bytes_unread);
1407 DBG(min(20,DBG_READ), "%s: Image data successfully read %ld bytes, %ld bytes unread\n", __func__, (long) bytecount, (long) s->bytes_unread);
1409 DBG(min(2,DBG_READ), "%s: scanner data read ended %d blocks %ld bytes, %ld bytes unread\n", __func__, s->counter, (long) bytecount, (long) s->bytes_unread);
1411 DBG(min(1,DBG_READ), "%s: Image data read stopped with %s after %d blocks %ld bytes, %ld bytes unread\n", __func__, sane_strstatus(status), s->counter, (long) bytecount, (long) s->bytes_unread);
1681 /* If we have not yet read all data, cancel the scan */
1697 /* copies the read data from s->line_buffer to the position in data pointer to by s->ptr
1876 /* have we passed everything we read to sane? */
2588 /* Timeout for all other read requests */
3484 DBG(18, "sane-read, bytes unread %d\n",s->bytes_unread);
3495 DBG(18, "%d lines read, status: %s\n",