| /linux/drivers/pci/ |
| H A 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 …]
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A 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 */
|
| /linux/tools/testing/selftests/powerpc/papr_vpd/ |
| H A D | papr_vpd.c | 10 #include <asm/papr-vpd.h> 14 #define DEVPATH "/dev/papr-vpd" 61 /* Verify that the buffer looks like VPD */ in dev_papr_vpd_get_handle_all() 62 static const char needle[] = "System VPD"; in dev_papr_vpd_get_handle_all() 293 /* Verify that the buffer looks like VPD */ in papr_vpd_system_loc_code() 294 static const char needle[] = "System VPD"; in papr_vpd_system_loc_code() 320 .description = "get handle for all VPD" 324 .description = "close handle without consuming VPD" 328 .description = "read all VPD one byte at a time" 336 .description = "get handle for system VPD"
|
| /linux/drivers/firmware/google/ |
| H A 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() 319 .name = "vpd",
|
| H A D | Makefile | 13 vpd-sysfs-y := vpd.o vpd_decode.o 14 obj-$(CONFIG_GOOGLE_VPD) += vpd-sysfs.o
|
| H A D | Kconfig | 81 This option enables the kernel to expose the content of Google VPD 82 under /sys/firmware/vpd.
|
| /linux/drivers/target/ |
| H A 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 …]
|
| H A D | target_core_configfs.c | 1415 * STANDARD and VPD page 0x83 T10 Vendor Identification 1634 * VPD page 0x80 Unit serial 1639 return sprintf(page, "T10 VPD Unit Serial Number: %s\n", in target_wwn_vpd_unit_serial_show() 1651 * If Linux/SCSI subsystem_api_t plugin got a VPD Unit Serial in target_wwn_vpd_unit_serial_store() 1653 * VPD Unit Serial to be emulated. in target_wwn_vpd_unit_serial_store() 1655 * Note this struct scsi_device could also be emulating VPD in target_wwn_vpd_unit_serial_store() 1658 * VPD Unit Serial Number that OS dependent multipath can depend on. in target_wwn_vpd_unit_serial_store() 1661 pr_err("Underlying SCSI device firmware provided VPD" in target_wwn_vpd_unit_serial_store() 1667 pr_err("Emulated VPD Unit Serial exceeds" in target_wwn_vpd_unit_serial_store() 1678 pr_err("Unable to set VPD Unit Serial while" in target_wwn_vpd_unit_serial_store() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb3/ |
| H A 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 …]
|
| /linux/drivers/hwmon/ |
| H A 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()
|
| /linux/arch/powerpc/include/uapi/asm/ |
| H A D | papr-vpd.h | 17 * ioctl for /dev/papr-vpd. Returns a VPD handle fd corresponding to
|
| /linux/tools/arch/x86/lib/ |
| H A D | x86-opcode-map.txt | 361 10: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1) 362 11: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(… 390 28: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66) 391 29: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66) 392 2a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,E… 393 2b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66) 434 51: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F… 437 54: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66) 438 55: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66) 439 56: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66) [all …]
|
| /linux/arch/x86/lib/ |
| H A D | x86-opcode-map.txt | 361 10: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1) 362 11: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(… 390 28: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66) 391 29: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66) 392 2a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,E… 393 2b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66) 434 51: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F… 437 54: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66) 438 55: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66) 439 56: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66) [all …]
|
| /linux/drivers/nvmem/layouts/ |
| H A D | Kconfig | 12 tristate "Kontron sl28 VPD layout support" 15 Say Y here if you want to support the VPD layout of the Kontron
|
| /linux/include/scsi/ |
| H A D | scsi_device.h | 95 * @data: VPD data as defined in various T10 SCSI standard documents. 144 #define SCSI_DEFAULT_VPD_LEN 255 /* default SCSI VPD page size (max) */ 220 unsigned skip_vpd_pages:1; /* do not read VPD pages */ 221 unsigned try_vpd_pages:1; /* attempt to read VPD pages */ 247 unsigned no_vpd_size:1; /* No VPD size reported in header */ 666 * scsi_device_supports_vpd - test if a device supports VPD pages 670 * Otherwise we will assume VPD pages are supported if the 675 /* Attempt VPD inquiry if the device blacklist explicitly calls in scsi_device_supports_vpd() 681 * Although VPD inquiries can go to SCSI-2 type devices, in scsi_device_supports_vpd()
|
| H A D | scsi_devinfo.h | 35 /* do not ask for VPD page size first on some broken targets */ 57 /* Ignore SBC-3 VPD pages */ 60 /* Attempt to read VPD pages */
|
| /linux/drivers/scsi/aic7xxx/ |
| H A D | aic79xx_pci.c | 506 struct vpd_config vpd; in ahd_check_extport() local 518 * Fetch VPD for this function and parse it. in ahd_check_extport() 521 printk("%s: Reading VPD from SEEPROM...", in ahd_check_extport() 526 + (sizeof(vpd) * (ahd->channel - 'A'))) / 2; in ahd_check_extport() 528 error = ahd_read_seeprom(ahd, (uint16_t *)&vpd, in ahd_check_extport() 529 start_addr, sizeof(vpd)/2, in ahd_check_extport() 532 error = ahd_parse_vpddata(ahd, &vpd); in ahd_check_extport() 534 printk("%s: VPD parsing %s\n", in ahd_check_extport()
|
| /linux/drivers/scsi/bfa/ |
| H A D | bfa_defs.h | 83 * VPD data length 88 * VPD vendor tag 95 BFA_MFG_VPD_PCI_IBM = 0x08, /* PCI VPD IBM */ 96 BFA_MFG_VPD_PCI_HP = 0x10, /* PCI VPD HP */ 97 BFA_MFG_VPD_PCI_DELL = 0x20, /* PCI VPD DELL */ 98 BFA_MFG_VPD_PCI_BRCD = 0xf8, /* PCI VPD Brocade */ 105 u8 version; /* vpd data version */ 109 u8 len; /* vpd data length excluding header */ 111 u8 data[BFA_MFG_VPD_LEN]; /* vpd data */ 277 struct bfa_mfg_vpd_s vpd; member [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb/ |
| H A D | subr.c | 590 static int t1_eeprom_vpd_get(adapter_t *adapter, struct chelsio_vpd_t *vpd) in t1_eeprom_vpd_get() argument 594 for (addr = 0; !ret && addr < sizeof(*vpd); addr += sizeof(u32)) in t1_eeprom_vpd_get() 596 (__le32 *)((u8 *)vpd + addr)); in t1_eeprom_vpd_get() 602 * Read a port's MAC address from the VPD ROM. 606 struct chelsio_vpd_t vpd; in vpd_macaddress_get() local 608 if (t1_eeprom_vpd_get(adapter, &vpd)) in vpd_macaddress_get() 610 memcpy(mac_addr, vpd.mac_base_address, 5); in vpd_macaddress_get() 611 mac_addr[5] = vpd.mac_base_address[5] + index; in vpd_macaddress_get() 1130 pr_err("%s: could not read MAC address from VPD ROM\n", in t1_init_sw_modules()
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | niu.c | 6822 struct niu_vpd *vpd = &np->vpd; in niu_get_drvinfo() local 6827 vpd->fcode_major, vpd->fcode_minor); in niu_get_drvinfo() 8086 struct niu_vpd *vpd = &np->vpd; in niu_vpd_parse_version() local 8087 int len = strlen(vpd->version) + 1; in niu_vpd_parse_version() 8088 const char *s = vpd->version; in niu_vpd_parse_version() 8099 sscanf(s, "%d.%d", &vpd->fcode_major, &vpd->fcode_minor); in niu_vpd_parse_version() 8103 vpd->fcode_major, vpd->fcode_minor); in niu_vpd_parse_version() 8104 if (vpd->fcode_major > NIU_VPD_MIN_MAJOR || in niu_vpd_parse_version() 8105 (vpd->fcode_major == NIU_VPD_MIN_MAJOR && in niu_vpd_parse_version() 8106 vpd->fcode_minor >= NIU_VPD_MIN_MINOR)) in niu_vpd_parse_version() [all …]
|
| /linux/drivers/scsi/ |
| H A D | ipr.h | 346 struct ipr_vpd vpd; member 351 struct ipr_vpd vpd; member 807 struct ipr_vpd vpd; member 816 struct ipr_ext_vpd vpd; member 826 struct ipr_ext_vpd vpd; member 836 struct ipr_vpd vpd; member 842 struct ipr_ext_vpd vpd; member 849 struct ipr_ext_vpd vpd; member 964 struct ipr_vpd vpd; member 970 struct ipr_ext_vpd vpd; member
|
| /linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
| H A D | t4vf_common.h | 263 struct vpd_params vpd; /* Vital Product Data */ member 311 return adapter->params.vpd.cclk / 1000; in core_ticks_per_usec() 317 return (us * adapter->params.vpd.cclk) / 1000; in us_to_core_ticks() 323 return (ticks * 1000) / adapter->params.vpd.cclk; in core_ticks_to_us()
|
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_hw.c | 208 * VPD capability. Note that this function must be called with a virtual 241 * VPD-R sections. 253 * the VPD 254 * @v: Pointer to buffered vpd data structure 296 * csio_hw_get_vpd_params - read VPD parameters from VPD EEPROM 300 * Reads card parameters stored in VPD EEPROM. 306 uint8_t *vpd, csum; in csio_hw_get_vpd_params() local 319 vpd = kzalloc(VPD_LEN, GFP_ATOMIC); in csio_hw_get_vpd_params() 320 if (vpd == NULL) in csio_hw_get_vpd_params() 327 ret = csio_hw_seeprom_read(hw, VPD_BASE, (uint32_t *)(vpd)); in csio_hw_get_vpd_params() [all …]
|
| H A D | csio_hw.h | 414 #define CSIO_HWF_VPD_VALID 0x00000020 /* Valid VPD copied */ 510 struct csio_vpd vpd; member 582 return (ticks * 1000 + hw->vpd.cclk/2) / hw->vpd.cclk; in csio_core_ticks_to_us() 588 return (us * hw->vpd.cclk) / 1000; in csio_us_to_core_ticks()
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | rtas-work-area.c | 30 * The smallest known work area size is for ibm,get-vpd's 34 * PAPR+ 7.3.20 ibm,get-vpd RTAS Call
|