Lines Matching refs:buffer
474 /* Display a buffer in the log. */
539 NULL, 0, dev->buffer, &size);
548 hexdump (DBG_info2, "document size", dev->buffer, 16);
552 assert (dev->params.lines == B32TOI (&dev->buffer[4]));
553 assert (dev->params.pixels_per_line == B32TOI (&dev->buffer[0]));
579 /* Allocate the buffer used to transfer the SCSI data. */
581 dev->buffer = malloc (dev->buffer_size);
582 if (dev->buffer == NULL)
588 /* Allocate a buffer to store the temporary image. */
593 free (dev->buffer);
636 if (dev->buffer)
638 free (dev->buffer);
673 NULL, 0, dev->buffer, &size);
683 size = dev->buffer[4] + 5; /* total length of the inquiry data */
694 NULL, 0, dev->buffer, &size);
704 hexdump (DBG_info2, "inquiry", dev->buffer, size);
706 dev->scsi_type = dev->buffer[0] & 0x1f;
707 memcpy (dev->scsi_vendor, dev->buffer + 0x08, 0x08);
709 memcpy (dev->scsi_product, dev->buffer + 0x10, 0x010);
711 memcpy (dev->scsi_version, dev->buffer + 0x20, 0x04);
1505 /* Read the image from the scanner and fill the temporary buffer with it. */
1545 /* Probably reached the end of the buffer.
1561 NULL, 0, dev->buffer, &size);
1584 unsigned char *src = dev->buffer;
1623 unsigned char *src = dev->buffer;
1643 memcpy (dev->image + dev->image_end, dev->buffer, size);
1654 /* Copy from the raw buffer to the buffer given by the backend.
2390 /* Copy the data to the frontend buffer. */