/linux-5.19.10/drivers/pci/ |
D | vpd.c | 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() 128 struct pci_vpd *vpd = &dev->vpd; in pci_vpd_wait() local 135 ret = pci_user_read_config_word(dev, vpd->cap + PCI_VPD_ADDR, in pci_vpd_wait() 158 struct pci_vpd *vpd = &dev->vpd; in pci_vpd_read() local 170 max_len = check_size ? vpd->len : PCI_VPD_MAX_SIZE; in pci_vpd_read() [all …]
|
D | Makefile | 7 pci-sysfs.o rom.o setup-res.o irq.o vpd.o \
|
/linux-5.19.10/drivers/firmware/google/ |
D | Makefile | 10 vpd-sysfs-y := vpd.o vpd_decode.o 11 obj-$(CONFIG_GOOGLE_VPD) += vpd-sysfs.o
|
D | Kconfig | 75 under /sys/firmware/vpd.
|
/linux-5.19.10/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() 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() 674 ret = vpdstrtouint(vpd.mdc_data, vpd.mdc_len, 10, &p->mdc); in get_vpd_params() 677 ret = vpdstrtouint(vpd.mt_data, vpd.mt_len, 10, &p->mem_timing); in get_vpd_params() 680 memcpy(p->sn, vpd.sn_data, SERNUM_LEN); in get_vpd_params() 683 if (adapter->params.rev == 0 && !vpd.port0_data[0]) { in get_vpd_params() [all …]
|
D | common.h | 385 struct vpd_params vpd; member 634 return adap->params.vpd.cclk / 1000; in core_ticks_per_usec()
|
/linux-5.19.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() 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()
|
/linux-5.19.10/drivers/target/ |
D | target_core_transport.c | 1035 struct t10_vpd *vpd, in transport_dump_vpd_proto_id() argument 1045 switch (vpd->protocol_identifier) { in transport_dump_vpd_proto_id() 1077 vpd->protocol_identifier); in transport_dump_vpd_proto_id() 1088 transport_set_vpd_proto_id(struct t10_vpd *vpd, unsigned char *page_83) in transport_set_vpd_proto_id() argument 1096 vpd->protocol_identifier = (page_83[0] & 0xf0); in transport_set_vpd_proto_id() 1097 vpd->protocol_identifier_set = 1; in transport_set_vpd_proto_id() 1098 transport_dump_vpd_proto_id(vpd, NULL, 0); in transport_set_vpd_proto_id() 1104 struct t10_vpd *vpd, in transport_dump_vpd_assoc() argument 1115 switch (vpd->association) { in transport_dump_vpd_assoc() 1126 sprintf(buf+len, "Unknown 0x%02x\n", vpd->association); in transport_dump_vpd_assoc() [all …]
|
D | target_core_pscsi.c | 221 struct t10_vpd *vpd; in pscsi_get_inquiry_vpd_device_ident() local 251 vpd = kzalloc(sizeof(struct t10_vpd), GFP_KERNEL); in pscsi_get_inquiry_vpd_device_ident() 252 if (!vpd) { in pscsi_get_inquiry_vpd_device_ident() 257 INIT_LIST_HEAD(&vpd->vpd_list); in pscsi_get_inquiry_vpd_device_ident() 259 transport_set_vpd_proto_id(vpd, page_83); in pscsi_get_inquiry_vpd_device_ident() 260 transport_set_vpd_assoc(vpd, page_83); in pscsi_get_inquiry_vpd_device_ident() 262 if (transport_set_vpd_ident_type(vpd, page_83) < 0) { in pscsi_get_inquiry_vpd_device_ident() 265 kfree(vpd); in pscsi_get_inquiry_vpd_device_ident() 268 if (transport_set_vpd_ident(vpd, page_83) < 0) { in pscsi_get_inquiry_vpd_device_ident() 271 kfree(vpd); in pscsi_get_inquiry_vpd_device_ident() [all …]
|
D | target_core_device.c | 516 struct t10_vpd *vpd, *vpd_tmp; in se_release_vpd_for_dev() local 519 list_for_each_entry_safe(vpd, vpd_tmp, in se_release_vpd_for_dev() 521 list_del(&vpd->vpd_list); in se_release_vpd_for_dev() 522 kfree(vpd); in se_release_vpd_for_dev()
|
D | target_core_configfs.c | 1614 struct t10_vpd *vpd; in target_wwn_vpd_protocol_identifier_show() local 1619 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { in target_wwn_vpd_protocol_identifier_show() 1620 if (!vpd->protocol_identifier_set) in target_wwn_vpd_protocol_identifier_show() 1623 transport_dump_vpd_proto_id(vpd, buf, VPD_TMP_BUF_SIZE); in target_wwn_vpd_protocol_identifier_show() 1643 struct t10_vpd *vpd; \ 1648 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { \ 1649 if (vpd->association != _assoc) \ 1653 transport_dump_vpd_assoc(vpd, buf, VPD_TMP_BUF_SIZE); \ 1659 transport_dump_vpd_ident_type(vpd, buf, VPD_TMP_BUF_SIZE); \ 1665 transport_dump_vpd_ident(vpd, buf, VPD_TMP_BUF_SIZE); \
|
/linux-5.19.10/drivers/scsi/ |
D | sd.c | 1650 const struct scsi_vpd *vpd; in sd_get_unique_id() local 1655 vpd = rcu_dereference(sdev->vpd_pg83); in sd_get_unique_id() 1656 if (!vpd) in sd_get_unique_id() 1660 for (d = vpd->data + 4; d < vpd->data + vpd->len; d += d[3] + 4) { in sd_get_unique_id() 2852 struct scsi_vpd *vpd; in sd_read_block_limits() local 2856 vpd = rcu_dereference(sdkp->device->vpd_pgb0); in sd_read_block_limits() 2857 if (!vpd || vpd->len < 16) in sd_read_block_limits() 2860 sdkp->min_xfer_blocks = get_unaligned_be16(&vpd->data[6]); in sd_read_block_limits() 2861 sdkp->max_xfer_blocks = get_unaligned_be32(&vpd->data[8]); in sd_read_block_limits() 2862 sdkp->opt_xfer_blocks = get_unaligned_be32(&vpd->data[12]); in sd_read_block_limits() [all …]
|
D | ipr.h | 349 struct ipr_vpd vpd; member 354 struct ipr_vpd vpd; member 860 struct ipr_vpd vpd; member 869 struct ipr_ext_vpd vpd; member 879 struct ipr_ext_vpd vpd; member 889 struct ipr_vpd vpd; member 895 struct ipr_ext_vpd vpd; member 902 struct ipr_ext_vpd vpd; member 1017 struct ipr_vpd vpd; member 1023 struct ipr_ext_vpd vpd; member
|
D | ipr.c | 1548 struct ipr_vpd *vpd) in ipr_log_vpd_compact() argument 1553 memcpy(buffer, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN); in ipr_log_vpd_compact() 1556 memcpy(&buffer[i], vpd->vpids.product_id, IPR_PROD_ID_LEN); in ipr_log_vpd_compact() 1559 memcpy(&buffer[i], vpd->sn, IPR_SERIAL_NUM_LEN); in ipr_log_vpd_compact() 1572 static void ipr_log_vpd(struct ipr_vpd *vpd) in ipr_log_vpd() argument 1577 memcpy(buffer, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN); in ipr_log_vpd() 1578 memcpy(buffer + IPR_VENDOR_ID_LEN, vpd->vpids.product_id, in ipr_log_vpd() 1583 memcpy(buffer, vpd->sn, IPR_SERIAL_NUM_LEN); in ipr_log_vpd() 1598 struct ipr_ext_vpd *vpd) in ipr_log_ext_vpd_compact() argument 1600 ipr_log_vpd_compact(prefix, hostrcb, &vpd->vpd); in ipr_log_ext_vpd_compact() [all …]
|
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb4vf/ |
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-5.19.10/drivers/misc/cxl/ |
D | of.c | 113 char vpd[256]; in read_vpd() local 115 size_t len = sizeof(vpd); in read_vpd() 117 memset(vpd, 0, len); in read_vpd() 120 rc = cxl_guest_read_adapter_vpd(adapter, vpd, len); in read_vpd() 122 rc = cxl_guest_read_afu_vpd(afu, vpd, len); in read_vpd() 125 cxl_dump_debug_buffer(vpd, rc); in read_vpd()
|
/linux-5.19.10/drivers/scsi/csiostor/ |
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()
|
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() 327 ret = csio_hw_seeprom_read(hw, VPD_BASE, (uint32_t *)(vpd)); in csio_hw_get_vpd_params() 328 addr = *vpd == 0x82 ? VPD_BASE : VPD_BASE_OLD; in csio_hw_get_vpd_params() 331 ret = csio_hw_seeprom_read(hw, addr + i, (uint32_t *)(vpd + i)); 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() [all …]
|
/linux-5.19.10/drivers/net/ethernet/ibm/ |
D | ibmvnic.c | 977 if (!adapter->vpd) in release_vpd_data() 980 kfree(adapter->vpd->buff); in release_vpd_data() 981 kfree(adapter->vpd); in release_vpd_data() 983 adapter->vpd = NULL; in release_vpd_data() 1492 if (adapter->vpd->buff) in ibmvnic_get_vpd() 1493 len = adapter->vpd->len; in ibmvnic_get_vpd() 1515 if (!adapter->vpd->len) in ibmvnic_get_vpd() 1518 if (!adapter->vpd->buff) in ibmvnic_get_vpd() 1519 adapter->vpd->buff = kzalloc(adapter->vpd->len, GFP_KERNEL); in ibmvnic_get_vpd() 1520 else if (adapter->vpd->len != len) in ibmvnic_get_vpd() [all …]
|
/linux-5.19.10/drivers/net/ethernet/sun/ |
D | niu.c | 6799 struct niu_vpd *vpd = &np->vpd; in niu_get_drvinfo() local 6804 vpd->fcode_major, vpd->fcode_minor); in niu_get_drvinfo() 8062 struct niu_vpd *vpd = &np->vpd; in niu_vpd_parse_version() local 8063 int len = strlen(vpd->version) + 1; in niu_vpd_parse_version() 8064 const char *s = vpd->version; in niu_vpd_parse_version() 8075 sscanf(s, "%d.%d", &vpd->fcode_major, &vpd->fcode_minor); in niu_vpd_parse_version() 8079 vpd->fcode_major, vpd->fcode_minor); in niu_vpd_parse_version() 8080 if (vpd->fcode_major > NIU_VPD_MIN_MAJOR || in niu_vpd_parse_version() 8081 (vpd->fcode_major == NIU_VPD_MIN_MAJOR && in niu_vpd_parse_version() 8082 vpd->fcode_minor >= NIU_VPD_MIN_MINOR)) in niu_vpd_parse_version() [all …]
|
/linux-5.19.10/drivers/scsi/aic7xxx/ |
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()
|
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb/ |
D | subr.c | 599 static int t1_eeprom_vpd_get(adapter_t *adapter, struct chelsio_vpd_t *vpd) in t1_eeprom_vpd_get() argument 603 for (addr = 0; !ret && addr < sizeof(*vpd); addr += sizeof(u32)) in t1_eeprom_vpd_get() 605 (__le32 *)((u8 *)vpd + addr)); in t1_eeprom_vpd_get() 615 struct chelsio_vpd_t vpd; in vpd_macaddress_get() local 617 if (t1_eeprom_vpd_get(adapter, &vpd)) in vpd_macaddress_get() 619 memcpy(mac_addr, vpd.mac_base_address, 5); in vpd_macaddress_get() 620 mac_addr[5] = vpd.mac_base_address[5] + index; in vpd_macaddress_get()
|
/linux-5.19.10/drivers/net/ethernet/brocade/bna/ |
D | bfa_defs.h | 48 struct bfa_mfg_vpd vpd; member
|
/linux-5.19.10/drivers/scsi/lpfc/ |
D | lpfc_init.c | 123 lpfc_vpd_t *vp = &phba->vpd; in lpfc_config_port_prep() 2273 lpfc_parse_vpd(struct lpfc_hba *phba, uint8_t *vpd, int len) in lpfc_parse_vpd() argument 2281 if (!vpd) in lpfc_parse_vpd() 2287 (uint32_t) vpd[0], (uint32_t) vpd[1], (uint32_t) vpd[2], in lpfc_parse_vpd() 2288 (uint32_t) vpd[3]); in lpfc_parse_vpd() 2290 switch (vpd[index]) { in lpfc_parse_vpd() 2294 lenlo = vpd[index]; in lpfc_parse_vpd() 2296 lenhi = vpd[index]; in lpfc_parse_vpd() 2303 lenlo = vpd[index]; in lpfc_parse_vpd() 2305 lenhi = vpd[index]; in lpfc_parse_vpd() [all …]
|
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb4/ |
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() 2763 ret = pci_read_vpd(adapter->pdev, addr, VPD_LEN, vpd); in t4_get_raw_vpd_params() 2767 ret = pci_vpd_find_id_string(vpd, VPD_LEN, &id_len); 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() 2791 ret = pci_vpd_find_ro_info_keyword(vpd, VPD_LEN, "NA", &na_len); in t4_get_raw_vpd_params() 2796 memcpy(p->id, vpd + id, min_t(unsigned int, id_len, ID_LEN)); in t4_get_raw_vpd_params() [all …]
|