/drivers/pci/ |
H A D | access.c | 93 * @pos: offset in vpd space 100 if (!dev->vpd || !dev->vpd->ops) 102 return dev->vpd->ops->read(dev, pos, count, buf); 109 * @pos: offset in vpd space 116 if (!dev->vpd || !dev->vpd->ops) 118 return dev->vpd->ops->write(dev, pos, count, buf); 215 struct pci_vpd_pci22 *vpd = local 216 container_of(dev->vpd, struc 252 struct pci_vpd_pci22 *vpd = local 304 struct pci_vpd_pci22 *vpd = local 362 struct pci_vpd_pci22 *vpd; local [all...] |
/drivers/net/ethernet/chelsio/cxgb/ |
H A D | subr.c | 588 static int t1_eeprom_vpd_get(adapter_t *adapter, struct chelsio_vpd_t *vpd) argument 592 for (addr = 0; !ret && addr < sizeof(*vpd); addr += sizeof(u32)) 594 (__le32 *)((u8 *)vpd + addr)); 604 struct chelsio_vpd_t vpd; local 606 if (t1_eeprom_vpd_get(adapter, &vpd)) 608 memcpy(mac_addr, vpd.mac_base_address, 5); 609 mac_addr[5] = vpd.mac_base_address[5] + index;
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_common.h | 184 struct vpd_params vpd; /* Vital Product Data */ member in struct:adapter_params 206 return adapter->params.vpd.cclk / 1000; 212 return (us * adapter->params.vpd.cclk) / 1000; 218 return (ticks * 1000) / adapter->params.vpd.cclk;
|
/drivers/scsi/aic7xxx/ |
H A D | aic79xx_pci.c | 516 struct vpd_config vpd; local 536 + (sizeof(vpd) * (ahd->channel - 'A'))) / 2; 538 error = ahd_read_seeprom(ahd, (uint16_t *)&vpd, 539 start_addr, sizeof(vpd)/2, 542 error = ahd_parse_vpddata(ahd, &vpd);
|
H A D | aic79xx_core.c | 263 static int ahd_verify_vpd_cksum(struct vpd_config *vpd); 7844 ahd_parse_vpddata(struct ahd_softc *ahd, struct vpd_config *vpd) argument 7848 error = ahd_verify_vpd_cksum(vpd); 7851 if ((vpd->bios_flags & VPDBOOTHOST) != 0) 10138 ahd_verify_vpd_cksum(struct vpd_config *vpd) argument 10145 vpdarray = (uint8_t *)vpd; 10151 || (-checksum & 0xFF) != vpd->vpd_checksum) 10160 || (-checksum & 0xFF) != vpd->checksum)
|
/drivers/target/ |
H A D | target_core_device.c | 738 struct t10_vpd *vpd, *vpd_tmp; local 741 list_for_each_entry_safe(vpd, vpd_tmp, 743 list_del(&vpd->vpd_list); 744 kfree(vpd);
|
H A D | target_core_pscsi.c | 234 struct t10_vpd *vpd; local 265 vpd = kzalloc(sizeof(struct t10_vpd), GFP_KERNEL); 266 if (!vpd) { 271 INIT_LIST_HEAD(&vpd->vpd_list); 273 transport_set_vpd_proto_id(vpd, page_83); 274 transport_set_vpd_assoc(vpd, page_83); 276 if (transport_set_vpd_ident_type(vpd, page_83) < 0) { 279 kfree(vpd); 282 if (transport_set_vpd_ident(vpd, page_83) < 0) { 285 kfree(vpd); [all...] |
H A D | target_core_configfs.c | 864 struct t10_vpd *vpd; local 875 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { 876 if (!vpd->protocol_identifier_set) 879 transport_dump_vpd_proto_id(vpd, buf, VPD_TMP_BUF_SIZE); 911 struct t10_vpd *vpd; \ 920 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { \ 921 if (vpd->association != _assoc) \ 925 transport_dump_vpd_assoc(vpd, buf, VPD_TMP_BUF_SIZE); \ 931 transport_dump_vpd_ident_type(vpd, buf, VPD_TMP_BUF_SIZE); \ 937 transport_dump_vpd_ident(vpd, bu [all...] |
H A D | target_core_transport.c | 1008 struct t10_vpd *vpd, 1018 switch (vpd->protocol_identifier) { 1050 vpd->protocol_identifier); 1061 transport_set_vpd_proto_id(struct t10_vpd *vpd, unsigned char *page_83) argument 1069 vpd->protocol_identifier = (page_83[0] & 0xf0); 1070 vpd->protocol_identifier_set = 1; 1071 transport_dump_vpd_proto_id(vpd, NULL, 0); 1077 struct t10_vpd *vpd, 1088 switch (vpd->association) { 1099 sprintf(buf+len, "Unknown 0x%02x\n", vpd 1007 transport_dump_vpd_proto_id( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument 1076 transport_dump_vpd_assoc( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument 1112 transport_set_vpd_assoc(struct t10_vpd *vpd, unsigned char *page_83) argument 1124 transport_dump_vpd_ident_type( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument 1173 transport_set_vpd_ident_type(struct t10_vpd *vpd, unsigned char *page_83) argument 1185 transport_dump_vpd_ident( struct t10_vpd *vpd, unsigned char *p_buf, int p_buf_len) argument 1224 transport_set_vpd_ident(struct t10_vpd *vpd, unsigned char *page_83) argument [all...] |
/drivers/scsi/lpfc/ |
H A D | lpfc_mbox.c | 484 lpfc_vpd_t *vpd; local 518 vpd = &phba->vpd; 519 if (vpd->rev.feaLevelHigh >= 0x02){ 1278 if (phba->sli_rev == LPFC_SLI_REV3 && phba->vpd.sli3Feat.cerbm) { 1287 phba->vpd.sli3Feat.cmv) {
|
H A D | lpfc_els.c | 2009 if (phba->vpd.rev.feaLevelHigh >= 0x02) { 4006 lpfc_vpd_t *vpd; local 4044 vpd = &phba->vpd; 4050 (vpd->rev.feaLevelHigh >= 0x02)) {
|
H A D | lpfc_init.c | 98 lpfc_vpd_t *vp = &phba->vpd; 1661 * @vpd: pointer to the vital product data. 1673 lpfc_parse_vpd(struct lpfc_hba *phba, uint8_t *vpd, int len) argument 1681 if (!vpd) 1687 (uint32_t) vpd[0], (uint32_t) vpd[1], (uint32_t) vpd[2], 1688 (uint32_t) vpd[3]); 1690 switch (vpd[index]) { 1694 lenlo = vpd[inde [all...] |
H A D | lpfc.h | 132 uint32_t status; /* vpd status value */ 709 lpfc_vpd_t vpd; /* vital product data */ member in struct:lpfc_hba 758 #define VPD_MODEL_DESC 0x1 /* valid vpd model description */ 759 #define VPD_MODEL_NAME 0x2 /* valid vpd model name */ 760 #define VPD_PROGRAM_TYPE 0x4 /* valid vpd program type */ 761 #define VPD_PORT 0x8 /* valid vpd port data */ 762 #define VPD_MASK 0xf /* mask for any vpd data */
|
/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_defs.h | 60 struct bfa_mfg_vpd vpd; member in struct:bfa_adapter_attr
|
H A D | bfi.h | 230 struct bfa_mfg_vpd vpd; member in struct:bfi_ioc_attr
|
/drivers/net/wireless/ath/ath5k/ |
H A D | phy.c | 2509 * @vpd: Array of matching PCDAC/PDADC steps (y values) 2514 * Interpolate (pwr,vpd) points to create a Power to PDADC or a 2527 const s16 *pwr, const u8 *vpd, 2563 vpd[idx[0]], vpd[idx[1]]); 2526 ath5k_create_power_curve(s16 pmin, s16 pmax, const s16 *pwr, const u8 *vpd, u8 num_points, u8 *vpd_table, u8 type) argument
|
/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | t4_hw.c | 362 u8 vpd[VPD_LEN], csum; local 365 ret = pci_read_vpd(adapter->pdev, VPD_BASE, sizeof(vpd), vpd); 369 if (vpd[0] != PCI_VPD_LRDT_ID_STRING) { 374 id_len = pci_vpd_lrdt_size(vpd); 378 i = pci_vpd_find_tag(vpd, 0, VPD_LEN, PCI_VPD_LRDT_RO_DATA); 384 vpdr_len = pci_vpd_lrdt_size(&vpd[i]); 392 var = pci_vpd_find_info_keyword(vpd, kw_offset, vpdr_len, name); \ 402 csum += vpd[i]; 414 memcpy(p->id, vpd [all...] |
H A D | cxgb4.h | 219 struct vpd_params vpd; member in struct:adapter_params 614 return adap->params.vpd.cclk / 1000; 620 return (us * adap->params.vpd.cclk) / 1000;
|
/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | common.h | 387 struct vpd_params vpd; member in struct:adapter_params 636 return adap->params.vpd.cclk / 1000;
|
H A D | t3_hw.c | 198 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; 694 struct t3_vpd vpd; local 700 ret = t3_seeprom_read(adapter, VPD_BASE, (__le32 *)&vpd); 703 addr = vpd.id_tag == 0x82 ? VPD_BASE : 0; 705 for (i = 0; i < sizeof(vpd); i += 4) { 707 (__le32 *)((u8 *)&vpd + i)); 712 p->cclk = simple_strtoul(vpd.cclk_data, NULL, 10); 713 p->mclk = simple_strtoul(vpd.mclk_data, NULL, 10); 714 p->uclk = simple_strtoul(vpd 3346 const struct vpd_params *vpd = &adapter->params.vpd; local [all...] |
/drivers/scsi/bfa/ |
H A D | bfa_defs.h | 110 u8 version; /* vpd data version */ 114 u8 len; /* vpd data length excluding header */ 116 u8 data[BFA_MFG_VPD_LEN]; /* vpd data */ 237 struct bfa_mfg_vpd_s vpd; member in struct:bfa_adapter_attr_s 1032 BFA_FLASH_PART_VPD = 9, /* vpd data of OEM info */
|
H A D | bfi.h | 289 struct bfa_mfg_vpd_s vpd; member in struct:bfi_ioc_attr_s
|
/drivers/scsi/ |
H A D | ipr.c | 1370 * @vpd: vendor/product id/sn struct 1376 struct ipr_vpd *vpd) 1381 memcpy(buffer, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN); 1384 memcpy(&buffer[i], vpd->vpids.product_id, IPR_PROD_ID_LEN); 1387 memcpy(&buffer[i], vpd->sn, IPR_SERIAL_NUM_LEN); 1395 * @vpd: vendor/product id/sn struct 1400 static void ipr_log_vpd(struct ipr_vpd *vpd) argument 1405 memcpy(buffer, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN); 1406 memcpy(buffer + IPR_VENDOR_ID_LEN, vpd->vpids.product_id, 1411 memcpy(buffer, vpd 1375 ipr_log_vpd_compact(char *prefix, struct ipr_hostrcb *hostrcb, struct ipr_vpd *vpd) argument 1425 ipr_log_ext_vpd_compact(char *prefix, struct ipr_hostrcb *hostrcb, struct ipr_ext_vpd *vpd) argument 1440 ipr_log_ext_vpd(struct ipr_ext_vpd *vpd) argument [all...] |
H A D | ipr.h | 326 struct ipr_vpd vpd; member in struct:ipr_ext_vpd 331 struct ipr_vpd vpd; member in struct:ipr_ext_vpd64 794 struct ipr_vpd vpd; member in struct:ipr_hostrcb_device_data_entry 803 struct ipr_ext_vpd vpd; member in struct:ipr_hostrcb_device_data_entry_enhanced 813 struct ipr_ext_vpd vpd; member in struct:ipr_hostrcb64_device_data_entry_enhanced 823 struct ipr_vpd vpd; member in struct:ipr_hostrcb_array_data_entry 829 struct ipr_ext_vpd vpd; member in struct:ipr_hostrcb64_array_data_entry 836 struct ipr_ext_vpd vpd; member in struct:ipr_hostrcb_array_data_entry_enhanced 939 struct ipr_vpd vpd; member in struct:ipr_hostrcb_type_07_error 945 struct ipr_ext_vpd vpd; member in struct:ipr_hostrcb_type_17_error [all...] |
/drivers/net/ethernet/sun/ |
H A D | niu.c | 6813 struct niu_vpd *vpd = &np->vpd; local 6818 vpd->fcode_major, vpd->fcode_minor); 8076 struct niu_vpd *vpd = &np->vpd; local 8077 int len = strlen(vpd->version) + 1; 8078 const char *s = vpd->version; 8089 sscanf(s, "%d.%d", &vpd->fcode_major, &vpd 8336 struct niu_vpd *vpd = &np->vpd; local [all...] |