/linux-master/drivers/firmware/google/ |
H A D | Makefile | 13 vpd-sysfs-y := vpd.o vpd_decode.o 14 obj-$(CONFIG_GOOGLE_VPD) += vpd-sysfs.o
|
/linux-master/drivers/pci/ |
H A D | vpd.c | 101 struct pci_vpd *vpd = &dev->vpd; local 103 if (!vpd->cap) 106 if (vpd->len == 0 && check_size) { 107 vpd->len = pci_vpd_size(dev); 108 if (vpd->len == PCI_VPD_SZ_INVALID) { 109 vpd->cap = 0; 128 struct pci_vpd *vpd = &dev->vpd; local 135 ret = pci_user_read_config_word(dev, vpd 158 struct pci_vpd *vpd = &dev->vpd; local 222 struct pci_vpd *vpd = &dev->vpd; local 522 const u8 *vpd = buf; local [all...] |
H A D | Makefile | 7 rom.o setup-res.o irq.o vpd.o \
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_common.h | 263 struct vpd_params vpd; /* Vital Product Data */ member in struct:adapter_params 311 return adapter->params.vpd.cclk / 1000; 317 return (us * adapter->params.vpd.cclk) / 1000; 323 return (ticks * 1000) / adapter->params.vpd.cclk;
|
/linux-master/drivers/hwmon/ |
H A D | drivetemp.c | 327 struct scsi_vpd *vpd; local 340 vpd = rcu_dereference(sdev->vpd_pg89); 346 if (!vpd || vpd->len < 572 || vpd->data[56] != ATA_CMD_ID_ATA || 347 vpd->data[36] != 0x34) { 351 ata_id = (u16 *)&vpd->data[60];
|
/linux-master/drivers/misc/cxl/ |
H A D | of.c | 113 char vpd[256]; local 115 size_t len = sizeof(vpd); 117 memset(vpd, 0, len); 120 rc = cxl_guest_read_adapter_vpd(adapter, vpd, len); 122 rc = cxl_guest_read_afu_vpd(afu, vpd, len); 125 cxl_dump_debug_buffer(vpd, rc); 204 read_prop_dword(np, "ibm,vpd-size", &val);
|
/linux-master/drivers/target/ |
H A D | target_core_transport.c | 1068 struct t10_vpd *vpd, 1078 switch (vpd->protocol_identifier) { 1110 vpd->protocol_identifier); 1121 transport_set_vpd_proto_id(struct t10_vpd *vpd, unsigned char *page_83) argument 1129 vpd->protocol_identifier = (page_83[0] & 0xf0); 1130 vpd->protocol_identifier_set = 1; 1131 transport_dump_vpd_proto_id(vpd, NULL, 0); 1137 struct t10_vpd *vpd, 1148 switch (vpd->association) { 1159 sprintf(buf+len, "Unknown 0x%02x\n", vpd 1067 transport_dump_vpd_proto_id( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument 1136 transport_dump_vpd_assoc( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument 1172 transport_set_vpd_assoc(struct t10_vpd *vpd, unsigned char *page_83) argument 1184 transport_dump_vpd_ident_type( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument 1233 transport_set_vpd_ident_type(struct t10_vpd *vpd, unsigned char *page_83) argument 1245 transport_dump_vpd_ident( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument 1287 transport_set_vpd_ident(struct t10_vpd *vpd, unsigned char *page_83) argument [all...] |
H A D | target_core_pscsi.c | 220 struct t10_vpd *vpd; local 249 vpd = kzalloc(sizeof(struct t10_vpd), GFP_KERNEL); 250 if (!vpd) { 255 INIT_LIST_HEAD(&vpd->vpd_list); 257 transport_set_vpd_proto_id(vpd, page_83); 258 transport_set_vpd_assoc(vpd, page_83); 260 if (transport_set_vpd_ident_type(vpd, page_83) < 0) { 263 kfree(vpd); 266 if (transport_set_vpd_ident(vpd, page_83) < 0) { 269 kfree(vpd); [all...] |
H A D | target_core_device.c | 479 struct t10_vpd *vpd, *vpd_tmp; local 482 list_for_each_entry_safe(vpd, vpd_tmp, 484 list_del(&vpd->vpd_list); 485 kfree(vpd);
|
/linux-master/drivers/scsi/ |
H A D | scsi.c | 290 * Returns size of the vpd page on success or a negative error number. 338 unsigned char vpd[SCSI_VPD_LIST_SIZE] __aligned(4); 349 result = scsi_vpd_inquiry(sdev, vpd, 0, sizeof(vpd)); 354 if (!memchr(&vpd[SCSI_VPD_HEADER_SIZE], page, result)) 363 result = scsi_vpd_inquiry(sdev, vpd, page, SCSI_VPD_HEADER_SIZE); 686 struct scsi_vpd *vpd; local 695 vpd = rcu_dereference(sdev->vpd_pg89); 696 if (vpd)
|
H A D | sd.c | 1759 const struct scsi_vpd *vpd; local 1764 vpd = rcu_dereference(sdev->vpd_pg83); 1765 if (!vpd) 1769 for (d = vpd->data + 4; d < vpd->data + vpd->len; d += d[3] + 4) { 3205 struct scsi_vpd *vpd; local 3209 vpd = rcu_dereference(sdkp->device->vpd_pgb0); 3210 if (!vpd || vpd 3263 struct scsi_vpd *vpd; local 3279 struct scsi_vpd *vpd; local 3338 struct scsi_vpd *vpd; local 3369 struct scsi_vpd *vpd; local [all...] |
H A D | ipr.h | 346 struct ipr_vpd vpd; member in struct:ipr_ext_vpd 351 struct ipr_vpd vpd; member in struct:ipr_ext_vpd64 807 struct ipr_vpd vpd; member in struct:ipr_hostrcb_device_data_entry 816 struct ipr_ext_vpd vpd; member in struct:ipr_hostrcb_device_data_entry_enhanced 826 struct ipr_ext_vpd vpd; member in struct:ipr_hostrcb64_device_data_entry_enhanced 836 struct ipr_vpd vpd; member in struct:ipr_hostrcb_array_data_entry 842 struct ipr_ext_vpd vpd; member in struct:ipr_hostrcb64_array_data_entry 849 struct ipr_ext_vpd vpd; member in struct:ipr_hostrcb_array_data_entry_enhanced 964 struct ipr_vpd vpd; member in struct:ipr_hostrcb_type_07_error 970 struct ipr_ext_vpd vpd; member in struct:ipr_hostrcb_type_17_error [all...] |
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | Makefile | 7 papr-vpd.o \
|
H A D | papr-vpd.c | 3 #define pr_fmt(fmt) "papr-vpd: " fmt 19 #include <asm/papr-vpd.h> 22 #include <uapi/asm/papr-vpd.h> 25 * Function-specific return values for ibm,get-vpd, derived from PAPR+ 26 * v2.13 7.3.20 "ibm,get-vpd RTAS Call". 33 * struct rtas_ibm_get_vpd_params - Parameters (in and out) for ibm,get-vpd. 37 * @written: Out: Bytes written by ibm,get-vpd to @work_area. 49 * rtas_ibm_get_vpd() - Call ibm,get-vpd to fill a work area buffer. 52 * Calls ibm,get-vpd until it errors or successfully deposits data 113 pr_err_ratelimited("unexpected ibm,get-vpd statu [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | t3_hw.c | 199 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; 648 struct t3_vpd vpd; local 661 ret = pci_read_vpd(adapter->pdev, addr, sizeof(vpd), &vpd); 665 ret = vpdstrtouint(vpd.cclk_data, vpd.cclk_len, 10, &p->cclk); 668 ret = vpdstrtouint(vpd.mclk_data, vpd.mclk_len, 10, &p->mclk); 671 ret = vpdstrtouint(vpd 3312 const struct vpd_params *vpd = &adapter->params.vpd; local [all...] |
H A D | common.h | 385 struct vpd_params vpd; member in struct:adapter_params 634 return adap->params.vpd.cclk / 1000;
|
/linux-master/drivers/scsi/csiostor/ |
H A D | csio_hw.h | 510 struct csio_vpd vpd; member in struct:csio_hw 582 return (ticks * 1000 + hw->vpd.cclk/2) / hw->vpd.cclk; 588 return (us * hw->vpd.cclk) / 1000;
|
H A D | csio_hw.c | 254 * @v: Pointer to buffered vpd data structure 306 uint8_t *vpd, csum; local 319 vpd = kzalloc(VPD_LEN, GFP_ATOMIC); 320 if (vpd == NULL) 327 ret = csio_hw_seeprom_read(hw, VPD_BASE, (uint32_t *)(vpd)); 328 addr = *vpd == 0x82 ? VPD_BASE : VPD_BASE_OLD; 331 ret = csio_hw_seeprom_read(hw, addr + i, (uint32_t *)(vpd + i)); 333 kfree(vpd); 341 v = (const struct t4_vpd_hdr *)vpd; 347 kfree(vpd); \ [all...] |
/linux-master/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) argument 594 for (addr = 0; !ret && addr < sizeof(*vpd); addr += sizeof(u32)) 596 (__le32 *)((u8 *)vpd + addr)); 606 struct chelsio_vpd_t vpd; local 608 if (t1_eeprom_vpd_get(adapter, &vpd)) 610 memcpy(mac_addr, vpd.mac_base_address, 5); 611 mac_addr[5] = vpd.mac_base_address[5] + index;
|
/linux-master/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_defs.h | 48 struct bfa_mfg_vpd vpd; member in struct:bfa_adapter_attr
|
H A D | bfi.h | 202 struct bfa_mfg_vpd vpd; member in struct:bfi_ioc_attr
|
/linux-master/drivers/net/ethernet/sun/ |
H A D | niu.c | 6799 struct niu_vpd *vpd = &np->vpd; local 6804 vpd->fcode_major, vpd->fcode_minor); 8062 struct niu_vpd *vpd = &np->vpd; local 8063 int len = strlen(vpd->version) + 1; 8064 const char *s = vpd->version; 8075 sscanf(s, "%d.%d", &vpd->fcode_major, &vpd 8332 struct niu_vpd *vpd = &np->vpd; local [all...] |
/linux-master/drivers/net/ethernet/ibm/ |
H A D | ibmvnic.c | 1170 if (!adapter->vpd) 1173 kfree(adapter->vpd->buff); 1174 kfree(adapter->vpd); 1176 adapter->vpd = NULL; 1752 if (adapter->vpd->buff) 1753 len = adapter->vpd->len; 1775 if (!adapter->vpd->len) 1778 if (!adapter->vpd->buff) 1779 adapter->vpd->buff = kzalloc(adapter->vpd [all...] |
/linux-master/drivers/scsi/aic7xxx/ |
H A D | aic79xx_pci.c | 506 struct vpd_config vpd; local 526 + (sizeof(vpd) * (ahd->channel - 'A'))) / 2; 528 error = ahd_read_seeprom(ahd, (uint16_t *)&vpd, 529 start_addr, sizeof(vpd)/2, 532 error = ahd_parse_vpddata(ahd, &vpd);
|
/linux-master/tools/testing/selftests/powerpc/papr_vpd/ |
H A D | papr_vpd.c | 10 #include <asm/papr-vpd.h> 14 #define DEVPATH "/dev/papr-vpd"
|