| /kernel/linux/linux-5.10/drivers/pci/ |
| D | vpd.c | 3 * PCI VPD support 14 /* VPD access through PCI 2.2+ VPD capability */ 24 struct bin_attribute *attr; /* Descriptor for sysfs VPD entry */ 36 * @pos: offset in vpd space 42 if (!dev->vpd || !dev->vpd->ops) in pci_read_vpd() 44 return dev->vpd->ops->read(dev, pos, count, buf); in pci_read_vpd() 51 * @pos: offset in vpd space 57 if (!dev->vpd || !dev->vpd->ops) in pci_write_vpd() 59 return dev->vpd->ops->write(dev, pos, count, buf); in pci_write_vpd() 66 * @len: size of vpd space [all …]
|
| /kernel/linux/linux-6.6/drivers/pci/ |
| D | vpd.c | 3 * PCI VPD support 41 /* VPD access through PCI 2.2+ VPD capability */ 69 pci_warn(dev, "failed VPD read at offset %zu\n", in pci_vpd_size() 93 pci_info(dev, "invalid VPD tag %#04x (size %zu) at offset %zu%s\n", in pci_vpd_size() 101 struct pci_vpd *vpd = &dev->vpd; in pci_vpd_available() local 103 if (!vpd->cap) in pci_vpd_available() 106 if (vpd->len == 0 && check_size) { in pci_vpd_available() 107 vpd->len = pci_vpd_size(dev); in pci_vpd_available() 108 if (vpd->len == PCI_VPD_SZ_INVALID) { in pci_vpd_available() 109 vpd->cap = 0; in pci_vpd_available() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/ |
| D | bfa_defs_mfg_comm.h | 109 /* VPD data length */ 117 /* VPD vendor tag */ 123 BFA_MFG_VPD_PCI_IBM = 0x08, /*!< PCI VPD IBM */ 124 BFA_MFG_VPD_PCI_HP = 0x10, /*!< PCI VPD HP */ 125 BFA_MFG_VPD_PCI_DELL = 0x20, /*!< PCI VPD DELL */ 126 BFA_MFG_VPD_PCI_BRCD = 0xf8, /*!< PCI VPD Brocade */ 129 /* BFA adapter flash vpd data definition. 134 u8 version; /*!< vpd data version */ 138 u8 len; /*!< vpd data length excluding header */ 140 u8 data[BFA_MFG_VPD_LEN]; /*!< vpd data */
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/brocade/bna/ |
| D | bfa_defs_mfg_comm.h | 109 /* VPD data length */ 117 /* VPD vendor tag */ 123 BFA_MFG_VPD_PCI_IBM = 0x08, /*!< PCI VPD IBM */ 124 BFA_MFG_VPD_PCI_HP = 0x10, /*!< PCI VPD HP */ 125 BFA_MFG_VPD_PCI_DELL = 0x20, /*!< PCI VPD DELL */ 126 BFA_MFG_VPD_PCI_BRCD = 0xf8, /*!< PCI VPD Brocade */ 129 /* BFA adapter flash vpd data definition. 134 u8 version; /*!< vpd data version */ 138 u8 len; /*!< vpd data length excluding header */ 140 u8 data[BFA_MFG_VPD_LEN]; /*!< vpd data */
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/nvmem/layouts/ |
| D | kontron,sl28-vpd.yaml | 4 $id: http://devicetree.org/schemas/nvmem/layouts/kontron,sl28-vpd.yaml# 13 The vital product data (VPD) of the sl28 boards contains a serial 22 const: kontron,sl28-vpd 53 compatible = "kontron,sl28-vpd";
|
| /kernel/linux/linux-5.10/drivers/firmware/google/ |
| D | Makefile | 10 vpd-sysfs-y := vpd.o vpd_decode.o 11 obj-$(CONFIG_GOOGLE_VPD) += vpd-sysfs.o
|
| D | vpd.c | 3 * vpd.c 5 * Driver for exporting VPD content to sysfs. 42 struct kobject *kobj; /* vpd/name directory */ 44 struct bin_attribute bin_attr; /* vpd/name_raw bin_attribute */ 71 * The VPD specification supports only [a-zA-Z0-9_]+ characters in key names but 288 vpd_kobj = kobject_create_and_add("vpd", firmware_kobj); in vpd_probe() 315 .name = "vpd",
|
| /kernel/linux/linux-6.6/drivers/scsi/ |
| D | scsi.c | 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() [all …]
|
| D | sd.c | 1734 const struct scsi_vpd *vpd; in sd_get_unique_id() local 1739 vpd = rcu_dereference(sdev->vpd_pg83); in sd_get_unique_id() 1740 if (!vpd) in sd_get_unique_id() 1744 for (d = vpd->data + 4; d < vpd->data + vpd->len; d += d[3] + 4) { in sd_get_unique_id() 3056 struct scsi_vpd *vpd; in sd_read_block_limits() local 3060 vpd = rcu_dereference(sdkp->device->vpd_pgb0); in sd_read_block_limits() 3061 if (!vpd || vpd->len < 16) in sd_read_block_limits() 3064 sdkp->min_xfer_blocks = get_unaligned_be16(&vpd->data[6]); in sd_read_block_limits() 3065 sdkp->max_xfer_blocks = get_unaligned_be32(&vpd->data[8]); in sd_read_block_limits() 3066 sdkp->opt_xfer_blocks = get_unaligned_be32(&vpd->data[12]); in sd_read_block_limits() [all …]
|
| /kernel/linux/linux-6.6/drivers/firmware/google/ |
| D | Makefile | 13 vpd-sysfs-y := vpd.o vpd_decode.o 14 obj-$(CONFIG_GOOGLE_VPD) += vpd-sysfs.o
|
| D | vpd.c | 3 * vpd.c 5 * Driver for exporting VPD content to sysfs. 42 struct kobject *kobj; /* vpd/name directory */ 44 struct bin_attribute bin_attr; /* vpd/name_raw bin_attribute */ 71 * The VPD specification supports only [a-zA-Z0-9_]+ characters in key names but 288 vpd_kobj = kobject_create_and_add("vpd", firmware_kobj); in vpd_probe() 313 .name = "vpd",
|
| /kernel/linux/linux-5.10/drivers/target/ |
| D | target_core_transport.c | 985 struct t10_vpd *vpd, in transport_dump_vpd_proto_id() argument 993 len = sprintf(buf, "T10 VPD Protocol Identifier: "); in transport_dump_vpd_proto_id() 995 switch (vpd->protocol_identifier) { in transport_dump_vpd_proto_id() 1027 vpd->protocol_identifier); in transport_dump_vpd_proto_id() 1038 transport_set_vpd_proto_id(struct t10_vpd *vpd, unsigned char *page_83) in transport_set_vpd_proto_id() argument 1046 vpd->protocol_identifier = (page_83[0] & 0xf0); in transport_set_vpd_proto_id() 1047 vpd->protocol_identifier_set = 1; in transport_set_vpd_proto_id() 1048 transport_dump_vpd_proto_id(vpd, NULL, 0); in transport_set_vpd_proto_id() 1054 struct t10_vpd *vpd, in transport_dump_vpd_assoc() argument 1063 len = sprintf(buf, "T10 VPD Identifier Association: "); in transport_dump_vpd_assoc() [all …]
|
| D | target_core_pscsi.c | 197 cdb[1] = 0x01; /* Query VPD */ in pscsi_get_inquiry_vpd_serial() 224 struct t10_vpd *vpd; in pscsi_get_inquiry_vpd_device_ident() local 232 cdb[1] = 0x01; /* Query VPD */ in pscsi_get_inquiry_vpd_device_ident() 252 pr_debug("T10 VPD Identifier Length: %d\n", ident_len); in pscsi_get_inquiry_vpd_device_ident() 254 vpd = kzalloc(sizeof(struct t10_vpd), GFP_KERNEL); in pscsi_get_inquiry_vpd_device_ident() 255 if (!vpd) { in pscsi_get_inquiry_vpd_device_ident() 260 INIT_LIST_HEAD(&vpd->vpd_list); in pscsi_get_inquiry_vpd_device_ident() 262 transport_set_vpd_proto_id(vpd, page_83); in pscsi_get_inquiry_vpd_device_ident() 263 transport_set_vpd_assoc(vpd, page_83); in pscsi_get_inquiry_vpd_device_ident() 265 if (transport_set_vpd_ident_type(vpd, page_83) < 0) { in pscsi_get_inquiry_vpd_device_ident() [all …]
|
| /kernel/linux/linux-6.6/drivers/target/ |
| D | target_core_pscsi.c | 193 cdb[1] = 0x01; /* Query VPD */ in pscsi_get_inquiry_vpd_serial() 220 struct t10_vpd *vpd; in pscsi_get_inquiry_vpd_device_ident() local 228 cdb[1] = 0x01; /* Query VPD */ in pscsi_get_inquiry_vpd_device_ident() 247 pr_debug("T10 VPD Identifier Length: %d\n", ident_len); in pscsi_get_inquiry_vpd_device_ident() 249 vpd = kzalloc(sizeof(struct t10_vpd), GFP_KERNEL); in pscsi_get_inquiry_vpd_device_ident() 250 if (!vpd) { in pscsi_get_inquiry_vpd_device_ident() 255 INIT_LIST_HEAD(&vpd->vpd_list); in pscsi_get_inquiry_vpd_device_ident() 257 transport_set_vpd_proto_id(vpd, page_83); in pscsi_get_inquiry_vpd_device_ident() 258 transport_set_vpd_assoc(vpd, page_83); in pscsi_get_inquiry_vpd_device_ident() 260 if (transport_set_vpd_ident_type(vpd, page_83) < 0) { in pscsi_get_inquiry_vpd_device_ident() [all …]
|
| D | target_core_transport.c | 1068 struct t10_vpd *vpd, in transport_dump_vpd_proto_id() argument 1076 len = sprintf(buf, "T10 VPD Protocol Identifier: "); in transport_dump_vpd_proto_id() 1078 switch (vpd->protocol_identifier) { in transport_dump_vpd_proto_id() 1110 vpd->protocol_identifier); in transport_dump_vpd_proto_id() 1121 transport_set_vpd_proto_id(struct t10_vpd *vpd, unsigned char *page_83) in transport_set_vpd_proto_id() argument 1129 vpd->protocol_identifier = (page_83[0] & 0xf0); in transport_set_vpd_proto_id() 1130 vpd->protocol_identifier_set = 1; in transport_set_vpd_proto_id() 1131 transport_dump_vpd_proto_id(vpd, NULL, 0); in transport_set_vpd_proto_id() 1137 struct t10_vpd *vpd, in transport_dump_vpd_assoc() argument 1146 len = sprintf(buf, "T10 VPD Identifier Association: "); in transport_dump_vpd_assoc() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/ |
| D | t3_hw.c | 198 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; in mi1_init() 571 * VPD-R sections. 603 * t3_seeprom_read - read a VPD EEPROM location 608 * Read a 32-bit word from a location in VPD EEPROM using the card's PCI 609 * VPD ROM capability. A zero is written to the flag bit when the 639 * t3_seeprom_write - write a VPD EEPROM location 644 * Write a 32-bit word to a location in VPD EEPROM using the card's PCI 645 * VPD ROM capability. 703 * get_vpd_params - read VPD parameters from VPD EEPROM 707 * Reads card parameters stored in VPD EEPROM. [all …]
|
| /kernel/linux/linux-6.6/drivers/nvmem/layouts/ |
| D | Kconfig | 6 tristate "Kontron sl28 VPD layout support" 9 Say Y here if you want to support the VPD layout of the Kontron
|
| D | sl28vpd.c | 138 { .compatible = "kontron,sl28-vpd" }, 144 .name = "sl28-vpd", 152 MODULE_DESCRIPTION("NVMEM layout driver for the VPD of Kontron sl28 boards");
|
| /kernel/linux/linux-5.10/tools/arch/x86/lib/ |
| D | x86-opcode-map.txt | 351 10: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1) 352 11: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(… 380 28: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66) 381 29: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66) 382 2a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,E… 383 2b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66) 424 51: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F… 427 54: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66) 428 55: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66) 429 56: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66) [all …]
|
| /kernel/linux/linux-5.10/arch/x86/lib/ |
| D | x86-opcode-map.txt | 351 10: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1) 352 11: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(… 380 28: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66) 381 29: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66) 382 2a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,E… 383 2b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66) 424 51: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F… 427 54: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66) 428 55: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66) 429 56: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66) [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb3/ |
| D | t3_hw.c | 199 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; in mi1_init() 572 * VPD-R sections. 614 /* EEPROM_STAT_ADDR is outside VPD area, use pci_write_vpd_any() */ in t3_seeprom_wp() 640 * get_vpd_params - read VPD parameters from VPD EEPROM 644 * Reads card parameters stored in VPD EEPROM. 648 struct t3_vpd vpd; in get_vpd_params() local 661 ret = pci_read_vpd(adapter->pdev, addr, sizeof(vpd), &vpd); in get_vpd_params() 665 ret = vpdstrtouint(vpd.cclk_data, vpd.cclk_len, 10, &p->cclk); in get_vpd_params() 668 ret = vpdstrtouint(vpd.mclk_data, vpd.mclk_len, 10, &p->mclk); in get_vpd_params() 671 ret = vpdstrtouint(vpd.uclk_data, vpd.uclk_len, 10, &p->uclk); in get_vpd_params() [all …]
|
| /kernel/linux/linux-6.6/drivers/hwmon/ |
| D | drivetemp.c | 331 struct scsi_vpd *vpd; in drivetemp_identify_sata() local 344 vpd = rcu_dereference(sdev->vpd_pg89); in drivetemp_identify_sata() 348 * VPD and that the drive implements the SATA protocol. in drivetemp_identify_sata() 350 if (!vpd || vpd->len < 572 || vpd->data[56] != ATA_CMD_ID_ATA || in drivetemp_identify_sata() 351 vpd->data[36] != 0x34) { in drivetemp_identify_sata() 355 ata_id = (u16 *)&vpd->data[60]; in drivetemp_identify_sata()
|
| /kernel/linux/linux-5.10/drivers/hwmon/ |
| D | drivetemp.c | 328 struct scsi_vpd *vpd; in drivetemp_identify_sata() local 341 vpd = rcu_dereference(sdev->vpd_pg89); in drivetemp_identify_sata() 345 * VPD and that the drive implements the SATA protocol. in drivetemp_identify_sata() 347 if (!vpd || vpd->len < 572 || vpd->data[56] != ATA_CMD_ID_ATA || in drivetemp_identify_sata() 348 vpd->data[36] != 0x34) { in drivetemp_identify_sata() 352 ata_id = (u16 *)&vpd->data[60]; in drivetemp_identify_sata()
|
| /kernel/linux/linux-6.6/arch/x86/lib/ |
| D | x86-opcode-map.txt | 351 10: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1) 352 11: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(… 380 28: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66) 381 29: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66) 382 2a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,E… 383 2b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66) 424 51: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F… 427 54: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66) 428 55: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66) 429 56: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66) [all …]
|
| /kernel/linux/linux-6.6/tools/arch/x86/lib/ |
| D | x86-opcode-map.txt | 351 10: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1) 352 11: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(… 380 28: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66) 381 29: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66) 382 2a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,E… 383 2b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66) 424 51: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F… 427 54: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66) 428 55: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66) 429 56: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66) [all …]
|