Home
last modified time | relevance | path

Searched refs:vpd (Results 1 – 25 of 64) sorted by relevance

123

/linux/drivers/pci/
A Dvpd.c101 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
302 if (!pdev->vpd.cap) in vpd_attr_is_visible()
322 len = dev->vpd.len; in pci_vpd_alloc()
492 const u8 *vpd = buf; in pci_vpd_check_csum() local
588 dev->vpd.len = 8192; in quirk_chelsio_extend_vpd()
[all …]
A D.vpd.o.cmd1vpd.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aarc…
3 source_drivers/pci/vpd.o := drivers/pci/vpd.c
5 deps_drivers/pci/vpd.o := \
1110 drivers/pci/vpd.o: $(deps_drivers/pci/vpd.o)
1112 $(deps_drivers/pci/vpd.o):
A DMakefile7 pci-sysfs.o rom.o setup-res.o irq.o vpd.o \
A D.built-in.a.cmd1 ….o drivers/pci/rom.o drivers/pci/setup-res.o drivers/pci/irq.o drivers/pci/vpd.o drivers/pci/setup…
A Dbuilt-in.a15 vpd.o/
/linux/drivers/firmware/google/
A DMakefile10 vpd-sysfs-y := vpd.o vpd_decode.o
11 obj-$(CONFIG_GOOGLE_VPD) += vpd-sysfs.o
A DKconfig75 under /sys/firmware/vpd.
/linux/drivers/net/ethernet/chelsio/cxgb3/
A Dt3_hw.c661 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 …]
/linux/drivers/target/
A Dtarget_core_transport.c1035 struct t10_vpd *vpd, in transport_dump_vpd_proto_id() argument
1077 vpd->protocol_identifier); in transport_dump_vpd_proto_id()
1104 struct t10_vpd *vpd, in transport_dump_vpd_assoc() argument
1115 switch (vpd->association) { in transport_dump_vpd_assoc()
1152 struct t10_vpd *vpd, in transport_dump_vpd_ident_type() argument
1213 struct t10_vpd *vpd, in transport_dump_vpd_ident() argument
1226 &vpd->device_identifier[0]); in transport_dump_vpd_ident()
1231 &vpd->device_identifier[0]); in transport_dump_vpd_ident()
1236 &vpd->device_identifier[0]); in transport_dump_vpd_ident()
1267 vpd->device_identifier[j++] = in transport_set_vpd_ident()
[all …]
A Dtarget_core_pscsi.c222 struct t10_vpd *vpd; in pscsi_get_inquiry_vpd_device_ident() local
252 vpd = kzalloc(sizeof(struct t10_vpd), GFP_KERNEL); in pscsi_get_inquiry_vpd_device_ident()
253 if (!vpd) { in pscsi_get_inquiry_vpd_device_ident()
258 INIT_LIST_HEAD(&vpd->vpd_list); in pscsi_get_inquiry_vpd_device_ident()
260 transport_set_vpd_proto_id(vpd, page_83); in pscsi_get_inquiry_vpd_device_ident()
261 transport_set_vpd_assoc(vpd, page_83); in pscsi_get_inquiry_vpd_device_ident()
263 if (transport_set_vpd_ident_type(vpd, page_83) < 0) { in pscsi_get_inquiry_vpd_device_ident()
266 kfree(vpd); in pscsi_get_inquiry_vpd_device_ident()
269 if (transport_set_vpd_ident(vpd, page_83) < 0) { in pscsi_get_inquiry_vpd_device_ident()
272 kfree(vpd); in pscsi_get_inquiry_vpd_device_ident()
[all …]
A Dtarget_core_device.c516 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()
A Dtarget_core_configfs.c1614 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/drivers/hwmon/
A Ddrivetemp.c328 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/drivers/misc/cxl/
A Dof.c113 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/drivers/net/ethernet/chelsio/cxgb4vf/
A Dt4vf_common.h263 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/net/ethernet/ibm/
A Dibmvnic.c764 if (!adapter->vpd) in release_vpd_data()
768 kfree(adapter->vpd); in release_vpd_data()
770 adapter->vpd = NULL; in release_vpd_data()
1306 adapter->vpd->buff = kzalloc(adapter->vpd->len, GFP_KERNEL); in ibmvnic_get_vpd()
1318 dma_map_single(dev, adapter->vpd->buff, adapter->vpd->len, in ibmvnic_get_vpd()
1365 adapter->vpd = kzalloc(sizeof(*adapter->vpd), GFP_KERNEL); in init_resources()
1366 if (!adapter->vpd) in init_resources()
4598 dma_unmap_single(dev, adapter->vpd->dma_addr, adapter->vpd->len, in handle_vpd_rsp()
4610 substr = strnstr(adapter->vpd->buff, "RM", adapter->vpd->len); in handle_vpd_rsp()
4617 if ((substr + 2) < (adapter->vpd->buff + adapter->vpd->len)) { in handle_vpd_rsp()
[all …]
/linux/drivers/scsi/csiostor/
A Dcsio_hw.h510 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 Dcsio_hw.c306 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 …]
/linux/drivers/net/ethernet/sun/
A Dniu.c6781 struct niu_vpd *vpd = &np->vpd; in niu_get_drvinfo() local
6786 vpd->fcode_major, vpd->fcode_minor); in niu_get_drvinfo()
8044 struct niu_vpd *vpd = &np->vpd; in niu_vpd_parse_version() local
8057 sscanf(s, "%d.%d", &vpd->fcode_major, &vpd->fcode_minor); in niu_vpd_parse_version()
8061 vpd->fcode_major, vpd->fcode_minor); in niu_vpd_parse_version()
8314 struct niu_vpd *vpd = &np->vpd; in niu_pci_vpd_validate() local
8342 np->vpd.phy_type); in niu_pci_vpd_validate()
8491 np->vpd.model[val] = '\0'; in niu_pci_probe_sprom()
8509 np->vpd.mac_num = in niu_pci_probe_sprom()
9703 np->vpd.phy_type); in niu_device_announce()
[all …]
/linux/drivers/scsi/
A Dipr.h349 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
A Dipr.c1548 struct ipr_vpd *vpd) in ipr_log_vpd_compact() argument
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()
1602 be32_to_cpu(vpd->wwid[0]), be32_to_cpu(vpd->wwid[1])); in ipr_log_ext_vpd_compact()
1614 ipr_log_vpd(&vpd->vpd); in ipr_log_ext_vpd()
1616 be32_to_cpu(vpd->wwid[1])); in ipr_log_ext_vpd()
1714 ipr_log_ext_vpd(&dev_entry->vpd); in ipr_log_enhanced_config_error()
1797 ipr_log_vpd(&dev_entry->vpd); in ipr_log_config_error()
1851 if (!memcmp(array_entry->vpd.vpd.sn, zero_sn, IPR_SERIAL_NUM_LEN)) in ipr_log_enhanced_array_error()
1908 ipr_log_vpd(&array_entry->vpd); in ipr_log_array_error()
[all …]
/linux/drivers/scsi/aic7xxx/
A Daic79xx_pci.c506 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/
A Dsubr.c599 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/drivers/net/ethernet/brocade/bna/
A Dbfa_defs.h48 struct bfa_mfg_vpd vpd; member
/linux/drivers/scsi/lpfc/
A Dlpfc_init.c2283 if (!vpd) in lpfc_parse_vpd()
2289 (uint32_t) vpd[0], (uint32_t) vpd[1], (uint32_t) vpd[2], in lpfc_parse_vpd()
2314 if ((vpd[index] == 'S') && (vpd[index+1] == 'N')) { in lpfc_parse_vpd()
2316 i = vpd[index]; in lpfc_parse_vpd()
2328 else if ((vpd[index] == 'V') && (vpd[index+1] == '1')) { in lpfc_parse_vpd()
2331 i = vpd[index]; in lpfc_parse_vpd()
2343 else if ((vpd[index] == 'V') && (vpd[index+1] == '2')) { in lpfc_parse_vpd()
2346 i = vpd[index]; in lpfc_parse_vpd()
2358 else if ((vpd[index] == 'V') && (vpd[index+1] == '3')) { in lpfc_parse_vpd()
2373 else if ((vpd[index] == 'V') && (vpd[index+1] == '4')) { in lpfc_parse_vpd()
[all …]

Completed in 132 milliseconds

123