Lines Matching defs:buffer
286 * @buffer: Where to put the result
288 * @len: The length of the buffer
295 static int scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer,
315 result = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buffer,
324 if (buffer[1] != page)
327 result = get_unaligned_be16(&buffer[2]);
339 * @buf_len: number of bytes in the VPD buffer area
344 * to a buffer containing the data from that page. The caller is
370 /* ran off the end of the buffer, give us benefit of doubt */
476 * @buffer: scratch buffer (must be at least 20 bytes long)
477 * @len: length of buffer
484 int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer,
500 memset(buffer, 0, len);
502 result = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buffer, len,
510 if ((buffer[1] & 3) == 3) /* Command supported */