| /linux/drivers/pci/ |
| H A 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 …]
|
| H A D | Makefile | 7 rebar.o rom.o setup-res.o irq.o vpd.o \
|
| /linux/drivers/firmware/google/ |
| 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 | 82 under /sys/firmware/vpd.
|
| /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() 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 …]
|
| /linux/drivers/target/ |
| H A D | target_core_transport.c | 1068 struct t10_vpd *vpd, in transport_dump_vpd_proto_id() argument 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 1148 switch (vpd->association) { in transport_dump_vpd_assoc() 1159 sprintf(buf+len, "Unknown 0x%02x\n", vpd->association); in transport_dump_vpd_assoc() [all …]
|
| H 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()
|
| H A D | target_core_configfs.c | 1723 struct t10_vpd *vpd; in target_wwn_vpd_protocol_identifier_show() local 1728 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { in target_wwn_vpd_protocol_identifier_show() 1729 if (!vpd->protocol_identifier_set) in target_wwn_vpd_protocol_identifier_show() 1732 transport_dump_vpd_proto_id(vpd, buf, VPD_TMP_BUF_SIZE); in target_wwn_vpd_protocol_identifier_show() 1752 struct t10_vpd *vpd; \ 1757 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { \ 1758 if (vpd->association != _assoc) \ 1762 transport_dump_vpd_assoc(vpd, buf, VPD_TMP_BUF_SIZE); \ 1768 transport_dump_vpd_ident_type(vpd, buf, VPD_TMP_BUF_SIZE); \ 1774 transport_dump_vpd_ident(vpd, buf, VPD_TMP_BUF_SIZE); \
|
| /linux/drivers/scsi/ |
| H A D | sd.c | 1897 const struct scsi_vpd *vpd; in sd_get_unique_id() local 1902 vpd = rcu_dereference(sdev->vpd_pg83); in sd_get_unique_id() 1903 if (!vpd) in sd_get_unique_id() 1907 for (d = vpd->data + 4; d < vpd->data + vpd->len; d += d[3] + 4) { in sd_get_unique_id() 3379 struct scsi_vpd *vpd; in sd_read_block_limits() local 3383 vpd = rcu_dereference(sdkp->device->vpd_pgb0); in sd_read_block_limits() 3384 if (!vpd || vpd->len < 16) in sd_read_block_limits() 3387 sdkp->min_xfer_blocks = get_unaligned_be16(&vpd->data[6]); in sd_read_block_limits() 3388 sdkp->max_xfer_blocks = get_unaligned_be32(&vpd->data[8]); in sd_read_block_limits() 3389 sdkp->opt_xfer_blocks = get_unaligned_be32(&vpd->data[12]); in sd_read_block_limits() [all …]
|
| H A D | scsi.c | 345 unsigned char vpd[SCSI_VPD_LIST_SIZE] __aligned(4); in scsi_get_vpd_size() local 356 result = scsi_vpd_inquiry(sdev, vpd, 0, sizeof(vpd)); in scsi_get_vpd_size() 360 if (result > sizeof(vpd)) { in scsi_get_vpd_size() 364 result = sizeof(vpd); in scsi_get_vpd_size() 368 if (!memchr(&vpd[SCSI_VPD_HEADER_SIZE], page, result)) in scsi_get_vpd_size() 377 result = scsi_vpd_inquiry(sdev, vpd, page, SCSI_VPD_HEADER_SIZE); in scsi_get_vpd_size()
|
| 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
|
| H A D | ipr.c | 1459 struct ipr_vpd *vpd) in ipr_log_vpd_compact() argument 1465 memcpy(vendor_id, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN); in ipr_log_vpd_compact() 1468 memcpy(product_id, vpd->vpids.product_id, IPR_PROD_ID_LEN); in ipr_log_vpd_compact() 1471 memcpy(sn, vpd->sn, IPR_SERIAL_NUM_LEN); in ipr_log_vpd_compact() 1485 static void ipr_log_vpd(struct ipr_vpd *vpd) in ipr_log_vpd() argument 1490 memcpy(buffer, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN); in ipr_log_vpd() 1491 memcpy(buffer + IPR_VENDOR_ID_LEN, vpd->vpids.product_id, in ipr_log_vpd() 1496 memcpy(buffer, vpd->sn, IPR_SERIAL_NUM_LEN); in ipr_log_vpd() 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() [all …]
|
| /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.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()
|
| H 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() 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/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/aic7xxx/ |
| H 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()
|
| /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() 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()
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | Makefile | 6 papr-rtas-common.o papr-vpd.o papr-indices.o \
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | pm4125.dtsi | 57 "vpd-detect",
|
| H A D | pmi632.dtsi | 65 "vpd-detect",
|
| H A D | pm8150b.dtsi | 83 "vpd-detect",
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bfa_defs.h | 48 struct bfa_mfg_vpd vpd; member
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_init.c | 124 lpfc_vpd_t *vp = &phba->vpd; in lpfc_config_port_prep() 2256 lpfc_fill_vpd(struct lpfc_hba *phba, uint8_t *vpd, int length, int *pindex) in lpfc_fill_vpd() argument 2262 if ((vpd[*pindex] == 'S') && (vpd[*pindex + 1] == 'N')) { in lpfc_fill_vpd() 2264 i = vpd[*pindex]; in lpfc_fill_vpd() 2269 phba->SerialNumber[j++] = 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() 2283 phba->ModelDesc[j++] = 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() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H 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() 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 …]
|