Lines Matching defs:read

172 /* set # of head moves per CIS read */
181 * read one register at given index
211 DBG (5, "rts88xx_read_reg: bulk read failed\n");
842 /* free the read buffer */
1000 /* as stated in sanei_lexmark_low_search_home_bwd, we read
1011 /* read available data size again */
1040 size_t size, read, needed;
1099 read = 0;
1104 rts88xx_read_data (dev->devnum, needed - read, (*data) + read, &size);
1107 read += size;
1109 while (read < needed);
1119 DBG (5, "low_simple_scan: register read failed ...\n");
1147 * open USB device ,read initial registers values and probe sensor
1196 /* it seems that at first read after reset, registers hold information
1197 * about the scanner. Register 0x00 is overwritten with 0, so only first read
1225 * We could avoid this if attach() did open and read registers, not init */
1830 /* set # of head moves per CIS read */
1955 The scan is set to read between vertical coordinates from 0x0a to 0x0f46,
1958 0x0F3C (13"*300dpi) lines can be read.
1960 To read the scan data we create a buffer space large enough to hold 10
1961 lines of data. For each read we poll twice, ignoring the first poll. This
1968 After data is read from the scanner each line is checked if it is on the
1969 home dot. Lines are continued to be read until we are no longer on the home
2097 /* set # of head moves per CIS read */
2472 enough lines at 600dpi to read past the dot. We return the number of
2473 entirely white lines read consecutively, so we know how far past the
2488 to read the entire buffer. For each byte in a line we check if the
2638 /* set # of head moves per CIS read */
3335 /* set # of head moves per CIS read */
3775 /* set # of head moves per CIS read */
4169 /* set # of head moves per CIS read */
4417 /* set # of head moves per CIS read */
4536 /* set # of head moves per CIS read */
4623 /* set # of head moves per CIS read */
4649 /* set # of head moves per CIS read */
4740 /* set # of head moves per CIS read */
4870 /* We start with 0 bytes remaining to be read */
4891 /* Initialize the read buffer */
4988 /* advance by the amount actually read from device */
5003 DBG (5, " read ptr: %p\n", (void *) dev->read_buffer->readptr);
5011 /* If there is space in the read buffer, copy the transfer buffer over */
5063 DBG (5, " read ptr: %p\n", (void *) dev->read_buffer->readptr);
5070 /* Read blocks out of read buffer */
5080 /* if no more bytes to xfer and read buffer empty we're at the end */
5385 /* are we at the last line in the read buffer ? */
5425 /* We can read from the read pointer up to the write pointer */
5433 /* We can read from the full request size */
5441 /* The read pointer is ahead of the write pointer. Its wrapped around. */
5442 /* We can read to the end of the buffer and make a recursive call to */
5443 /* read any available lines at the beginning of the buffer */
5447 /* We can read from the read pointer up to the end of the buffer */
5458 /* We can read from the full request size */