Lines Matching refs:buffer
4216 DBG(1, "scsi_send_gamma: Couldn't get buffer for gamma table\n");
4245 DBG(1, "scsi_send_gamma: Couldn't get buffer for gamma table\n");
4663 scsi_read_image(Microtek2_Scanner *ms, uint8_t *buffer, int bytes_per_pixel)
4673 DBG(30, "scsi_read_image: ms=%p, buffer=%p\n",
4674 (void *) ms, (void *) buffer);
4688 status = sanei_scsi_cmd(ms->sfd, cmd, sizeof(cmd), buffer, &size);
4690 if ( buffer && ( ms->dev->model_flags & MD_PHANTOM_C6 ) && endiantype )
4698 tmp = buffer[i-1];
4699 buffer[i-1] = buffer[i];
4700 buffer[i] = tmp;
4712 dump_area2(buffer, ms->transfer_length, "readimageresult");
4791 scsi_read_shading(Microtek2_Scanner *ms, uint8_t *buffer, uint32_t length)
4799 (void *) buffer, length, ms->word, ms->current_color, ms->dark);
4816 ms->sfd, (void *) cmd, (u_long) sizeof(cmd), (void *) buffer,
4819 status = sanei_scsi_cmd(ms->sfd, cmd, sizeof(cmd), buffer, &size);
4824 dump_area2(buffer,
4854 DBG(1, "scsi_send_shading: Couldn't get buffer for shading table\n");
4966 uint8_t buffer[100];
4977 size = sizeof(buffer);
4979 buffer, &size);
4988 dump_area2(buffer, size, "requestsenseresult");
4990 dump_area(buffer, RQS_LENGTH(buffer), "RequestSense");
4991 asl = RQS_ASL(buffer);
4992 if ( (as_info_length = RQS_ASINFOLENGTH(buffer)) > 0 )
4994 as_info_length, RQS_ASINFO(buffer));
5535 /* calculate number of lines that fit into the source buffer */
5543 DBG(1, "sane_start: Scan buffer too small\n");
5555 /* segments. We allocate a second buffer to read new lines in */
5556 /* and hold undelivered pixels in the other buffer */
5573 DBG(1, "sane_start: malloc for scan buffer failed\n");
5581 ms->buf.current_src = 0; /* index to current buffer */
5592 DBG(1, "sane_start: malloc for scan buffer failed\n");
5605 /* allocate a temporary buffer for the data, if auto_adjust threshold */
5615 DBG(1, "sane_start: malloc() for temporary buffer failed\n");
5625 /* per line, that is copied into the frontend's buffer */
5673 DBG(1, "Output of shading buffer unsupported for"
6116 DBG(1, "read_shading_image: malloc for buffer failed\n");
6129 DBG(1, "read_shading_image: buffer too small\n");
6257 DBG(1, "read_shading_image: malloc for buffer failed\n");
6269 DBG(1, "read_shading_image: buffer too small\n");
6400 DBG(1, "prepare_shading_data: malloc for sort buffer failed\n");
6613 DBG(1, "read_cx_shading: malloc for cx_shading buffer failed\n");
6687 DBG(1, "calc_cx_shading: malloc for sort buffer failed\n");
7422 /* determine how many planes of each color are in the source buffer */
7498 /* we have copied from the prehold buffer and are */
7499 /* done now, we continue with the source buffer */
7575 DBG(100, "segreg_copy_pixels: buffer 0x%p, right_to_left=%d, depth=%d\n",