Lines Matching refs:buffer
283 * @buffer: Where to put the result
285 * @len: The length of the buffer
292 static int scsi_vpd_inquiry(struct scsi_device *sdev, unsigned char *buffer,
312 result = scsi_execute_cmd(sdev, cmd, REQ_OP_DRV_IN, buffer, len,
321 if (buffer[1] != page)
324 result = get_unaligned_be16(&buffer[2]);
382 * @buf_len: number of bytes in the VPD buffer area
527 * @buffer: scratch buffer (must be at least 20 bytes long)
528 * @len: length of buffer
538 int scsi_report_opcode(struct scsi_device *sdev, unsigned char *buffer,
573 memset(buffer, 0, len);
575 result = scsi_execute_cmd(sdev, cmd, REQ_OP_DRV_IN, buffer,
584 if ((buffer[1] & 3) == 3) /* Command supported */