Lines Matching refs:buffer

517       DBG (4, "dev_open: wanted %d kbytes, got %d kbytes buffer\n",
521 DBG (1, "dev_open: sanei_scsi_open buffer too small\n");
658 SANE_Byte buffer[6];
675 len = sizeof (buffer);
677 sizeof (scsi_get_image_status), buffer, &len);
682 memset (buffer, 0, sizeof (buffer));
683 buffer[0] = MUSTEK_SCSI_READ_SCANNED_DATA;
684 buffer[2] = (lines >> 16) & 0xff;
685 buffer[3] = (lines >> 8) & 0xff;
686 buffer[4] = (lines >> 0) & 0xff;
687 buffer[5] = 0x04;
688 return sanei_scsi_cmd (s->fd, buffer, sizeof (buffer), 0, 0);
728 command[6] = bank; /* buffer bank not used ??? */
771 DBG (5, "sense_handler: no sense buffer\n");
1129 dev->max_buffer_size = 128 * 1024; /* SCSI buffer -> use 64 k per buffer */
2124 cmd[5] = 0x80; /* get back buffer size and number of buffers */
2157 s->hw->cal.buffer + line * len, &len);
2208 *(s->hw->cal.buffer + column * 6 + color_seq[color] * 2 + 0)
2210 (*(s->hw->cal.buffer + column * 6 + color_seq[color] * 2 + 1)
2260 s->hw->cal.buffer = (SANE_Byte *) malloc (s->hw->cal.bytes *
2262 if (!s->hw->cal.buffer)
2264 DBG (1, "calibration_pro: failed to malloc %d bytes for buffer\n",
2277 free (s->hw->cal.buffer);
2311 s->hw->cal.buffer, &len);
2361 cali_word += *(s->hw->cal.buffer
2402 s->hw->cal.buffer = (SANE_Byte *) malloc (s->hw->cal.bytes
2404 if (!s->hw->cal.buffer)
2406 DBG (1, "calibration_se: failed to malloc %d bytes for buffer\n",
2426 free (s->hw->cal.buffer);
3408 /* This buffer must be big enough to hold maximum line distance
3412 "fix_line_distance_n_2: allocating temp buffer of %d*%d bytes\n",
3418 "fix_line_distance_n_2: failed to malloc temporary buffer\n");
3488 /* This buffer must be big enough to hold maximum line distance
3492 "fix_line_distance_n_1: allocating temp buffer of %d*%d bytes\n",
3498 "fix_line_distance_n_1: failed to malloc temporary buffer\n");
3600 /* This buffer must be big enough to hold maximum line distance times
3602 DBG (5, "fix_line_distance_se: allocating temp buffer of %d*%d bytes\n",
3609 "fix_line_distance_se: failed to malloc temporary buffer\n");
3761 Then shuffle current color line to output buffer. */
4025 DBG (5, "fix_line_distance_block: allocating temp buffer of %d*%d "
4031 "buffer\n");
4054 "ld.buf to buffer (max=%d, min=%d)\n", num_saved_lines, max_index,
4847 SANE_Byte *data; /* data buffer */
4848 SANE_Byte *command; /* command buffer */
4849 SANE_Int lines; /* # lines in buffer */
4892 /* buffer size is scanner dependent */
4913 DBG (1, "reader_process: bpl (%d) > SCSI buffer size / 2 (%d)\n",
4918 DBG (4, "reader_process: %d lines per buffer, %d bytes per line, "
4919 "%d bytes per buffer\n", lines_per_buffer, bpl,
4925 DBG (1, "reader_process: failed to malloc %ld bytes for data buffer\n",
4935 "reader_process: failed to malloc %d bytes for command buffer\n",
4941 /* Touch all pages of the buffer to fool the memory management. */
4951 /* get temporary buffer for line-distance correction and/or bit
4962 DBG (1, "reader_process: failed to malloc extra buffer\n");
5009 DBG (4, "reader_process: buffer %d: waiting for request to be "
5014 DBG (4, "reader_process: buffer %d is ready, wanted %d, "
5022 "buffer: %d\n", sane_strstatus (status),
5027 "Probably the size of the kernel SCSI buffer is "
5039 DBG (4, "reader_process: buffer %d: sending %ld bytes to "
5049 /* Enter only one buffer at once */
5081 "reader_process: buffer %d: entering read request for %d "
5082 "bytes (buffer %d)\n", buffernumber + 1,
5096 DBG (5, "reader_process: buffer %d: entered (line %d of %d,"
5097 " buffer %d)\n", buffernumber + 1, s->line,
5102 DBG (1, "reader_process: buffer %d: failed to enter read "
5195 DBG (5, "sane_init: using sanei_scsi_open with buffer size = %d bytes\n",
6639 DBG (5, "sane_read: read buffer of %d bytes "
6679 DBG (5, "sane_read: read last buffer of %d bytes "
6685 DBG (5, "sane_read: read full buffer of %d bytes (%d total bytes)\n",