Home
last modified time | relevance | path

Searched refs:vpd_buf (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/scsi/
Dscsi.c402 struct scsi_vpd *vpd_buf; in scsi_get_vpd_buf() local
414 vpd_buf = kmalloc(sizeof(*vpd_buf) + vpd_len, GFP_KERNEL); in scsi_get_vpd_buf()
415 if (!vpd_buf) in scsi_get_vpd_buf()
418 result = scsi_vpd_inquiry(sdev, vpd_buf->data, page, vpd_len); in scsi_get_vpd_buf()
420 kfree(vpd_buf); in scsi_get_vpd_buf()
428 kfree(vpd_buf); in scsi_get_vpd_buf()
432 vpd_buf->len = result; in scsi_get_vpd_buf()
434 return vpd_buf; in scsi_get_vpd_buf()
440 struct scsi_vpd *vpd_buf; in scsi_update_vpd_page() local
442 vpd_buf = scsi_get_vpd_buf(sdev, page); in scsi_update_vpd_page()
[all …]
/linux-6.1.9/drivers/misc/cxl/
Dguest.c74 unsigned long **vpd_buf = NULL; in guest_collect_vpd() local
94 vpd_buf = kcalloc(entries, sizeof(unsigned long *), GFP_KERNEL); in guest_collect_vpd()
95 if (!vpd_buf) in guest_collect_vpd()
105 vpd_buf[i] = (unsigned long *)get_zeroed_page(GFP_KERNEL); in guest_collect_vpd()
106 if (!vpd_buf[i]) { in guest_collect_vpd()
110 le[i].phys_addr = cpu_to_be64(virt_to_phys(vpd_buf[i])); in guest_collect_vpd()
139 memcpy(buf, vpd_buf[i], tocopy); in guest_collect_vpd()
147 if (vpd_buf[i]) in guest_collect_vpd()
148 free_page((unsigned long) vpd_buf[i]); in guest_collect_vpd()
152 kfree(vpd_buf); in guest_collect_vpd()