| /drivers/pci/ |
| A D | vpd.c | 101 struct pci_vpd *vpd = &dev->vpd; in pci_vpd_available() local 103 if (!vpd->cap) in pci_vpd_available() 109 vpd->cap = 0; in pci_vpd_available() 128 struct pci_vpd *vpd = &dev->vpd; in pci_vpd_wait() local 158 struct pci_vpd *vpd = &dev->vpd; in pci_vpd_read() local 222 struct pci_vpd *vpd = &dev->vpd; in pci_vpd_write() local 332 if (!pdev->vpd.cap) in vpd_attr_is_visible() 352 len = dev->vpd.len; in pci_vpd_alloc() 522 const u8 *vpd = buf; in pci_vpd_check_csum() local 618 dev->vpd.len = 8192; in quirk_chelsio_extend_vpd() [all …]
|
| A D | Makefile | 7 rom.o setup-res.o irq.o vpd.o \
|
| /drivers/firmware/google/ |
| A D | Makefile | 13 vpd-sysfs-y := vpd.o vpd_decode.o 14 obj-$(CONFIG_GOOGLE_VPD) += vpd-sysfs.o
|
| A D | Kconfig | 82 under /sys/firmware/vpd.
|
| /drivers/net/ethernet/chelsio/cxgb3/ |
| A D | t3_hw.c | 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() 674 ret = vpdstrtouint(vpd.mdc_data, vpd.mdc_len, 10, &p->mdc); in get_vpd_params() 689 ret = vpdstrtou16(vpd.xaui0cfg_data, vpd.xaui0cfg_len, 16, in get_vpd_params() 693 ret = vpdstrtou16(vpd.xaui1cfg_data, vpd.xaui1cfg_len, 16, in get_vpd_params() 3312 const struct vpd_params *vpd = &adapter->params.vpd; in t3_init_hw() local 3322 if (mc7_init(&adapter->pmrx, vpd->mclk, vpd->mem_timing) || in t3_init_hw() 3323 mc7_init(&adapter->pmtx, vpd->mclk, vpd->mem_timing) || in t3_init_hw() [all …]
|
| /drivers/target/ |
| A D | target_core_transport.c | 1068 struct t10_vpd *vpd, in transport_dump_vpd_proto_id() argument 1110 vpd->protocol_identifier); in transport_dump_vpd_proto_id() 1137 struct t10_vpd *vpd, in transport_dump_vpd_assoc() argument 1148 switch (vpd->association) { in transport_dump_vpd_assoc() 1185 struct t10_vpd *vpd, in transport_dump_vpd_ident_type() argument 1246 struct t10_vpd *vpd, in transport_dump_vpd_ident() argument 1259 &vpd->device_identifier[0]); in transport_dump_vpd_ident() 1264 &vpd->device_identifier[0]); in transport_dump_vpd_ident() 1269 &vpd->device_identifier[0]); in transport_dump_vpd_ident() 1300 vpd->device_identifier[j++] = in transport_set_vpd_ident() [all …]
|
| A D | target_core_pscsi.c | 220 struct t10_vpd *vpd; in pscsi_get_inquiry_vpd_device_ident() local 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() 263 kfree(vpd); in pscsi_get_inquiry_vpd_device_ident() 266 if (transport_set_vpd_ident(vpd, page_83) < 0) { in pscsi_get_inquiry_vpd_device_ident() 269 kfree(vpd); in pscsi_get_inquiry_vpd_device_ident() [all …]
|
| A D | target_core_device.c | 499 struct t10_vpd *vpd, *vpd_tmp; in se_release_vpd_for_dev() local 502 list_for_each_entry_safe(vpd, vpd_tmp, in se_release_vpd_for_dev() 504 list_del(&vpd->vpd_list); in se_release_vpd_for_dev() 505 kfree(vpd); in se_release_vpd_for_dev()
|
| A D | target_core_configfs.c | 1708 struct t10_vpd *vpd; in target_wwn_vpd_protocol_identifier_show() local 1713 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { in target_wwn_vpd_protocol_identifier_show() 1714 if (!vpd->protocol_identifier_set) in target_wwn_vpd_protocol_identifier_show() 1717 transport_dump_vpd_proto_id(vpd, buf, VPD_TMP_BUF_SIZE); in target_wwn_vpd_protocol_identifier_show() 1737 struct t10_vpd *vpd; \ 1742 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { \ 1743 if (vpd->association != _assoc) \ 1747 transport_dump_vpd_assoc(vpd, buf, VPD_TMP_BUF_SIZE); \ 1753 transport_dump_vpd_ident_type(vpd, buf, VPD_TMP_BUF_SIZE); \ 1759 transport_dump_vpd_ident(vpd, buf, VPD_TMP_BUF_SIZE); \
|
| /drivers/hwmon/ |
| 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() 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()
|
| /drivers/scsi/ |
| A D | sd.c | 1873 if (!vpd) in sd_get_unique_id() 1877 for (d = vpd->data + 4; d < vpd->data + vpd->len; d += d[3] + 4) { in sd_get_unique_id() 3339 struct scsi_vpd *vpd; in sd_read_block_limits() local 3344 if (!vpd || vpd->len < 16) in sd_read_block_limits() 3351 if (vpd->len >= 64) { in sd_read_block_limits() 3388 struct scsi_vpd *vpd; in sd_read_block_limits_ext() local 3392 if (vpd && vpd->len >= 6) in sd_read_block_limits_ext() 3401 struct scsi_vpd *vpd; in sd_read_block_characteristics() local 3407 if (!vpd || vpd->len <= 8) { in sd_read_block_characteristics() 3436 struct scsi_vpd *vpd; in sd_read_block_provisioning() local [all …]
|
| A D | scsi.c | 340 unsigned char vpd[SCSI_VPD_LIST_SIZE] __aligned(4); in scsi_get_vpd_size() local 351 result = scsi_vpd_inquiry(sdev, vpd, 0, sizeof(vpd)); in scsi_get_vpd_size() 355 if (result > sizeof(vpd)) { in scsi_get_vpd_size() 359 result = sizeof(vpd); in scsi_get_vpd_size() 363 if (!memchr(&vpd[SCSI_VPD_HEADER_SIZE], page, result)) in scsi_get_vpd_size() 372 result = scsi_vpd_inquiry(sdev, vpd, page, SCSI_VPD_HEADER_SIZE); in scsi_get_vpd_size()
|
| 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
|
| A D | ipr.c | 1459 struct ipr_vpd *vpd) in ipr_log_vpd_compact() argument 1511 struct ipr_ext_vpd *vpd) in ipr_log_ext_vpd_compact() argument 1513 ipr_log_vpd_compact(prefix, hostrcb, &vpd->vpd); in ipr_log_ext_vpd_compact() 1515 be32_to_cpu(vpd->wwid[0]), be32_to_cpu(vpd->wwid[1])); in ipr_log_ext_vpd_compact() 1527 ipr_log_vpd(&vpd->vpd); in ipr_log_ext_vpd() 1529 be32_to_cpu(vpd->wwid[1])); in ipr_log_ext_vpd() 1627 ipr_log_ext_vpd(&dev_entry->vpd); in ipr_log_enhanced_config_error() 1710 ipr_log_vpd(&dev_entry->vpd); in ipr_log_config_error() 1764 if (!memcmp(array_entry->vpd.vpd.sn, zero_sn, IPR_SERIAL_NUM_LEN)) in ipr_log_enhanced_array_error() 1821 ipr_log_vpd(&array_entry->vpd); in ipr_log_array_error() [all …]
|
| A D | scsi_transport_sas.c | 431 struct scsi_vpd *vpd; in sas_ata_ncq_prio_supported() local 435 vpd = rcu_dereference(sdev->vpd_pg89); in sas_ata_ncq_prio_supported() 436 if (vpd && vpd->len >= 214) in sas_ata_ncq_prio_supported() 437 ncq_prio_supported = (vpd->data[213] >> 4) & 1; in sas_ata_ncq_prio_supported()
|
| /drivers/net/ethernet/chelsio/cxgb4vf/ |
| 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()
|
| /drivers/net/ethernet/ibm/ |
| A D | ibmvnic.c | 1175 if (!adapter->vpd) in release_vpd_data() 1179 kfree(adapter->vpd); in release_vpd_data() 1181 adapter->vpd = NULL; in release_vpd_data() 1784 adapter->vpd->buff = kzalloc(adapter->vpd->len, GFP_KERNEL); in ibmvnic_get_vpd() 1796 dma_map_single(dev, adapter->vpd->buff, adapter->vpd->len, in ibmvnic_get_vpd() 1843 adapter->vpd = kzalloc(sizeof(*adapter->vpd), GFP_KERNEL); in init_resources() 1844 if (!adapter->vpd) in init_resources() 5304 dma_unmap_single(dev, adapter->vpd->dma_addr, adapter->vpd->len, in handle_vpd_rsp() 5316 substr = strnstr(adapter->vpd->buff, "RM", adapter->vpd->len); in handle_vpd_rsp() 5323 if ((substr + 2) < (adapter->vpd->buff + adapter->vpd->len)) { in handle_vpd_rsp() [all …]
|
| /drivers/scsi/csiostor/ |
| A D | csio_hw.h | 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()
|
| A D | csio_hw.c | 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() 333 kfree(vpd); in csio_hw_get_vpd_params() 341 v = (const struct t4_vpd_hdr *)vpd; in csio_hw_get_vpd_params() 347 kfree(vpd); \ in csio_hw_get_vpd_params() 354 csum += vpd[i]; in csio_hw_get_vpd_params() 358 kfree(vpd); in csio_hw_get_vpd_params() 367 memcpy(p->ec, vpd + ec, EC_LEN); in csio_hw_get_vpd_params() 375 kfree(vpd); in csio_hw_get_vpd_params() [all …]
|
| /drivers/net/ethernet/sun/ |
| 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 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() 8356 struct niu_vpd *vpd = &np->vpd; in niu_pci_vpd_validate() local 8384 np->vpd.phy_type); in niu_pci_vpd_validate() 8533 np->vpd.model[val] = '\0'; in niu_pci_probe_sprom() 8551 np->vpd.mac_num = in niu_pci_probe_sprom() 9753 np->vpd.phy_type); in niu_device_announce() [all …]
|
| /drivers/scsi/aic7xxx/ |
| A D | aic79xx_pci.c | 506 struct vpd_config vpd; in ahd_check_extport() local 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()
|
| /drivers/net/ethernet/chelsio/cxgb/ |
| 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() 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()
|
| /drivers/scsi/lpfc/ |
| A D | lpfc_init.c | 2262 if ((vpd[*pindex] == 'S') && (vpd[*pindex + 1] == 'N')) { in lpfc_fill_vpd() 2264 i = vpd[*pindex]; in lpfc_fill_vpd() 2275 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '1')) { in lpfc_fill_vpd() 2278 i = vpd[*pindex]; in lpfc_fill_vpd() 2289 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '2')) { in lpfc_fill_vpd() 2292 i = vpd[*pindex]; in lpfc_fill_vpd() 2303 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '3')) { in lpfc_fill_vpd() 2317 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '4')) { in lpfc_fill_vpd() 2373 if (!vpd) in lpfc_parse_vpd() 2379 (uint32_t) vpd[0], (uint32_t) vpd[1], (uint32_t) vpd[2], in lpfc_parse_vpd() [all …]
|
| /drivers/net/ethernet/brocade/bna/ |
| A D | bfa_defs.h | 48 struct bfa_mfg_vpd vpd; member
|
| /drivers/net/ethernet/chelsio/cxgb4/ |
| A D | t4_hw.c | 2748 u8 *vpd, base_val = 0; in t4_get_raw_vpd_params() local 2750 vpd = vmalloc(VPD_LEN); in t4_get_raw_vpd_params() 2751 if (!vpd) in t4_get_raw_vpd_params() 2772 ret = pci_vpd_check_csum(vpd, VPD_LEN); in t4_get_raw_vpd_params() 2779 ret = pci_vpd_find_ro_info_keyword(vpd, VPD_LEN, in t4_get_raw_vpd_params() 2785 ret = pci_vpd_find_ro_info_keyword(vpd, VPD_LEN, in t4_get_raw_vpd_params() 2806 vfree(vpd); in t4_get_raw_vpd_params() 3295 adapter->params.vpd.id, in t4_dump_version_info() 3298 adapter->params.vpd.sn, adapter->params.vpd.pn); in t4_dump_version_info() 5893 u64 v = bytes256 * adap->params.vpd.cclk; in chan_rate() [all …]
|