Lines Matching full:vpd

281  * scsi_vpd_inquiry - Request a device provide us with a VPD page
290 * Returns size of the vpd page on success or a negative error number.
309 * I'm not convinced we need to try quite this hard to get VPD, but in scsi_vpd_inquiry()
338 unsigned char vpd[SCSI_VPD_LIST_SIZE] __aligned(4); in scsi_get_vpd_size() local
345 * Fetch the supported pages VPD and validate that the requested page in scsi_get_vpd_size()
349 result = scsi_vpd_inquiry(sdev, vpd, 0, sizeof(vpd)); in scsi_get_vpd_size()
353 if (result > sizeof(vpd)) { in scsi_get_vpd_size()
355 "%s: long VPD page 0 length: %d bytes\n", in scsi_get_vpd_size()
357 result = sizeof(vpd); in scsi_get_vpd_size()
361 if (!memchr(&vpd[SCSI_VPD_HEADER_SIZE], page, result)) in scsi_get_vpd_size()
365 * Fetch the VPD page header to find out how big the page in scsi_get_vpd_size()
370 result = scsi_vpd_inquiry(sdev, vpd, page, SCSI_VPD_HEADER_SIZE); in scsi_get_vpd_size()
376 "%s: short VPD page 0x%02x length: %d bytes\n", in scsi_get_vpd_size()
388 * @buf: where to store the VPD
389 * @buf_len: number of bytes in the VPD buffer area
392 * of VPD is defined in the appropriate SCSI document (eg SPC, SBC).
393 * If the device supports this VPD page, this routine fills @buf
394 * with the data from that page and return 0. If the VPD page is not
421 "%s: VPD page 0x%02x result %d > %d bytes\n", in scsi_get_vpd_page()
460 "%s: VPD page 0x%02x result %d > %d bytes\n", in scsi_get_vpd_buf()
494 * Attach the 'Device Identification' VPD page (0x83) and the
495 * 'Unit Serial Number' VPD page (0x80) to a SCSI device
700 struct scsi_vpd *vpd; in scsi_cdl_enable() local
709 vpd = rcu_dereference(sdev->vpd_pg89); in scsi_cdl_enable()
710 if (vpd) in scsi_cdl_enable()