Lines Matching defs:buffer
390 /* at present, Linux's SCSI system limits the sense buffer to 16 bytes
392 let's set the sense buffer size to 64.
518 static PVOID aspi_buf = 0; /* Big data buffer locked by driver. */
594 DBG (1, "sanei_scsi_open_aspi: Can't lock buffer. rc= %lu \n", rc);
687 PSRBlock->u.cmd.sense_len = 32; /* length of sense buffer */
688 PSRBlock->u.cmd.data_ptr = NULL; /* pointer to data buffer */
710 PSRBlock->u.cmd.sense_len = 32; /* length of sense buffer */
711 PSRBlock->u.cmd.data_ptr = NULL; /* pointer to data buffer */
778 if (aspi_buf) /* Free buffer. */
908 With newer versions of the SG driver, check the available buffer
911 buffer size, and take the smallest value.
914 buffer size, try to read /proc/sys/kernel/sg-big-biff ; if
1346 we have the new SG driver, and we can increase the buffer size
1373 /* try to reserve a SG buffer of the size specified by *buffersize
1378 as requested, thus we read the actual buffer size.
1384 sanei_scsi_open to check the buffer size exactly.
1392 DBG (1, "sanei_scsi_open: cannot read SG buffer size - %s\n",
1397 DBG (1, "sanei_scsi_open_extended: using %i bytes as SCSI buffer\n",
1442 "sanei_scsi_open: SG driver can change buffer size at run time\n");
1538 DBG (1, "sanei_scsi_open: could not allocate SG buffer memory "
1708 /* dest buffer specified, must be a read */
1716 /* no dest buffer, must be a write */
1796 /* If a read, copy the data into the destination buffer */
2190 the kernel locks the buffer. This can lead to conflicts,
2274 buffer. */
2298 a valid looking sense buffer, but the DRIVER_SENSE
2314 "sense buffer: %02x %02x %02x %02x %02x %02x %02x %02x"
2385 "sense buffer: %02x %02x %02x %02x %02x %02x %02x %02x"
3373 /* result buffer */
3378 /* pattern buffer */
3459 /* result buffer */
3464 /* pattern buffer */
4315 PSRBlock->u.cmd.sense_len = 32; /* length of sense buffer */
4316 PSRBlock->u.cmd.data_ptr = NULL; /* pointer to data buffer already registered */
4384 static u_char *cmdbuf = NULL, /* Command buffer */
4385 *sensebuf = NULL, /* Request sense buffer */
4386 *databuf = NULL; /* Data buffer */
4390 * to do this to avoid buffer alignment problems, since some
4509 u_char inqdata[128], /* Inquiry data buffer */
4510 inqcommand[6]; /* Inquiry command (0x12) buffer */
5109 char buffer[4096];
5141 buffer,
5142 sizeof(buffer),
5152 adapter = (PSCSI_ADAPTER_BUS_INFO)buffer;
5161 inquiry = (PSCSI_INQUIRY_DATA) (buffer +
5189 inquiry = (PSCSI_INQUIRY_DATA) (buffer +
5700 /* Zero the buffer. */
5703 /* Configure the virtual range for the buffer. */
5714 /* Configure the virtual range for the buffer. */