/linux-master/drivers/scsi/ |
H A D | ipr.c | 1453 * @vpd: vendor/product id/sn struct 1459 struct ipr_vpd *vpd) 1465 memcpy(vendor_id, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN); 1468 memcpy(product_id, vpd->vpids.product_id, IPR_PROD_ID_LEN); 1471 memcpy(sn, vpd->sn, IPR_SERIAL_NUM_LEN); 1480 * @vpd: vendor/product id/sn struct 1485 static void ipr_log_vpd(struct ipr_vpd *vpd) argument 1490 memcpy(buffer, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN); 1491 memcpy(buffer + IPR_VENDOR_ID_LEN, vpd->vpids.product_id, 1496 memcpy(buffer, vpd 1458 ipr_log_vpd_compact(char *prefix, struct ipr_hostrcb *hostrcb, struct ipr_vpd *vpd) argument 1510 ipr_log_ext_vpd_compact(char *prefix, struct ipr_hostrcb *hostrcb, struct ipr_ext_vpd *vpd) argument 1525 ipr_log_ext_vpd(struct ipr_ext_vpd *vpd) argument [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4.h | 439 struct vpd_params vpd; member in struct:adapter_params 1683 return adap->params.vpd.cclk / 1000; 1689 return (us * adap->params.vpd.cclk) / 1000; 1696 return ((ticks * 1000 + adapter->params.vpd.cclk/2) / 1697 adapter->params.vpd.cclk);
|
H A D | cudbg_lib.c | 1637 if (!padap->params.vpd.cclk) 1970 if (!padap->params.vpd.cclk) 1979 clk_info_buff->cclk_ps = 1000000000 / padap->params.vpd.cclk; /* psec */ 2706 struct vpd_params vpd = { 0 }; local 2710 rc = t4_get_raw_vpd_params(padap, &vpd); 2734 memcpy(vpd_data->sn, vpd.sn, SERNUM_LEN + 1); 2735 memcpy(vpd_data->bn, vpd.pn, PN_LEN + 1); 2736 memcpy(vpd_data->na, vpd.na, MACADDR_LEN + 1); 2737 memcpy(vpd_data->mn, vpd.id, ID_LEN + 1);
|
H A D | t4_hw.c | 2748 u8 *vpd, base_val = 0; local 2750 vpd = vmalloc(VPD_LEN); 2751 if (!vpd) 2763 ret = pci_read_vpd(adapter->pdev, addr, VPD_LEN, vpd); 2767 ret = pci_vpd_find_id_string(vpd, VPD_LEN, &id_len); 2772 ret = pci_vpd_check_csum(vpd, VPD_LEN); 2779 ret = pci_vpd_find_ro_info_keyword(vpd, VPD_LEN, 2785 ret = pci_vpd_find_ro_info_keyword(vpd, VPD_LEN, 2791 ret = pci_vpd_find_ro_info_keyword(vpd, VPD_LEN, "NA", &na_len); 2796 memcpy(p->id, vpd [all...] |
H A D | cxgb4_uld.c | 618 lld->cclk_ps = 1000000000 / adap->params.vpd.cclk;
|
H A D | cxgb4_main.c | 3206 err = t4_get_raw_vpd_params(adap, &adap->params.vpd); 3210 na = adap->params.vpd.na; 4924 ret = t4_get_vpd_params(adap, &adap->params.vpd); 6160 netdev_info(dev, "Chelsio %s %s\n", adap->params.vpd.id, buf); 6880 u8 *na = adapter->params.vpd.na; 6882 err = t4_get_raw_vpd_params(adapter, &adapter->params.vpd);
|
/linux-master/drivers/target/ |
H A D | target_core_configfs.c | 1710 struct t10_vpd *vpd; local 1715 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { 1716 if (!vpd->protocol_identifier_set) 1719 transport_dump_vpd_proto_id(vpd, buf, VPD_TMP_BUF_SIZE); 1739 struct t10_vpd *vpd; \ 1744 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { \ 1745 if (vpd->association != _assoc) \ 1749 transport_dump_vpd_assoc(vpd, buf, VPD_TMP_BUF_SIZE); \ 1755 transport_dump_vpd_ident_type(vpd, buf, VPD_TMP_BUF_SIZE); \ 1761 transport_dump_vpd_ident(vpd, bu [all...] |
/linux-master/drivers/scsi/lpfc/ |
H A D | lpfc_mbox.c | 551 lpfc_vpd_t *vpd; local 593 vpd = &phba->vpd; 594 if (vpd->rev.feaLevelHigh >= 0x02){ 1349 if (phba->sli_rev == LPFC_SLI_REV3 && phba->vpd.sli3Feat.cerbm) { 1356 phba->vpd.sli3Feat.cmv) {
|
H A D | lpfc_init.c | 124 lpfc_vpd_t *vp = &phba->vpd; 2265 lpfc_fill_vpd(struct lpfc_hba *phba, uint8_t *vpd, int length, int *pindex) argument 2271 if ((vpd[*pindex] == 'S') && (vpd[*pindex + 1] == 'N')) { 2273 i = vpd[*pindex]; 2278 phba->SerialNumber[j++] = vpd[(*pindex)++]; 2284 } else if ((vpd[*pindex] == 'V') && (vpd[*pindex + 1] == '1')) { 2287 i = vpd[*pindex]; 2292 phba->ModelDesc[j++] = vpd[(*pinde 2374 lpfc_parse_vpd(struct lpfc_hba *phba, uint8_t *vpd, int len) argument [all...] |
H A D | lpfc_sli.c | 4884 (FC_JEDEC_ID(phba->vpd.rev.biuRev) != HELIOS_JEDEC_ID && 4885 FC_JEDEC_ID(phba->vpd.rev.biuRev) != THOR_JEDEC_ID)) 5865 * lpfc_sli4_read_rev - Issue READ_REV and collect vpd data 5868 * @vpd: pointer to the memory to hold resulting port vpd data. 5869 * @vpd_size: On input, the number of bytes allocated to @vpd. 5870 * On output, the number of data bytes in @vpd. 5873 * addition, this routine gets the port vpd data. 5881 uint8_t *vpd, uint32_t *vpd_size) 5893 * Get a DMA buffer for the vpd dat 5880 lpfc_sli4_read_rev(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq, uint8_t *vpd, uint32_t *vpd_size) argument 8457 uint8_t *vpd; local [all...] |
H A D | lpfc.h | 190 uint32_t status; /* vpd status value */ 1197 lpfc_vpd_t vpd; /* vital product data */ member in struct:lpfc_hba 1264 #define VPD_MODEL_DESC 0x1 /* valid vpd model description */ 1265 #define VPD_MODEL_NAME 0x2 /* valid vpd model name */ 1266 #define VPD_PROGRAM_TYPE 0x4 /* valid vpd program type */ 1267 #define VPD_PORT 0x8 /* valid vpd port data */ 1268 #define VPD_MASK 0xf /* mask for any vpd data */
|
/linux-master/drivers/scsi/csiostor/ |
H A D | csio_lnode.c | 468 hw->vpd.sn, sizeof(hw->vpd.sn)); 470 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_MODEL, hw->vpd.id, 471 sizeof(hw->vpd.id));
|
/linux-master/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | xgmac.c | 57 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | 407 thres = (adap->params.vpd.cclk * 1000) / 15625;
|
H A D | cxgb3_main.c | 816 v = (adap->params.vpd.cclk * 1000) / cpt; 3166 if (adap->name == dev->name && adap->params.vpd.mclk) 3171 adap->params.vpd.sn);
|
/linux-master/drivers/net/wireless/ath/ath5k/ |
H A D | phy.c | 2501 * @vpd: Array of matching PCDAC/PDADC steps (y values) 2506 * Interpolate (pwr,vpd) points to create a Power to PDADC or a 2519 const s16 *pwr, const u8 *vpd, 2555 vpd[idx[0]], vpd[idx[1]]); 2518 ath5k_create_power_curve(s16 pmin, s16 pmax, const s16 *pwr, const u8 *vpd, u8 num_points, u8 *vpd_table, u8 type) argument
|
/linux-master/drivers/scsi/smartpqi/ |
H A D | smartpqi_init.c | 1603 struct ciss_vpd_logical_volume_status *vpd; local 1605 vpd = kmalloc(sizeof(*vpd), GFP_KERNEL); 1606 if (!vpd) 1610 VPD_PAGE | CISS_VPD_LV_STATUS, vpd, sizeof(*vpd)); 1614 if (vpd->page_code != CISS_VPD_LV_STATUS) 1618 volume_status) + vpd->page_length; 1619 if (page_length < sizeof(*vpd)) 1622 volume_status = vpd [all...] |
/linux-master/drivers/scsi/elx/libefc_sli/ |
H A D | sli4.c | 3223 sli_cmd_read_rev(struct sli4 *sli4, void *buf, struct efc_dma *vpd) argument 3231 if (vpd && vpd->size) { 3235 cpu_to_le32(vpd->size & 3239 cpu_to_le32(lower_32_bits(vpd->phys)); 3241 cpu_to_le32(upper_32_bits(vpd->phys));
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_hw.c | 964 * are stored in @adapter->params.vpd. 968 struct vpd_params *vpd_params = &adapter->params.vpd; 2156 adapter->params.vpd.cclk = 50000;
|
/linux-master/drivers/scsi/bfa/ |
H A D | bfa_defs.h | 105 u8 version; /* vpd data version */ 109 u8 len; /* vpd data length excluding header */ 111 u8 data[BFA_MFG_VPD_LEN]; /* vpd data */ 277 struct bfa_mfg_vpd_s vpd; member in struct:bfa_adapter_attr_s 1111 BFA_FLASH_PART_VPD = 9, /* vpd data of OEM info */
|
H A D | bfi.h | 285 struct bfa_mfg_vpd_s vpd; member in struct:bfi_ioc_attr_s
|
/linux-master/drivers/scsi/aic7xxx/ |
H A D | aic79xx.h | 1349 struct vpd_config *vpd);
|
H A D | aic79xx_core.c | 255 static int ahd_verify_vpd_cksum(struct vpd_config *vpd); 7751 ahd_parse_vpddata(struct ahd_softc *ahd, struct vpd_config *vpd) argument 7755 error = ahd_verify_vpd_cksum(vpd); 7758 if ((vpd->bios_flags & VPDBOOTHOST) != 0) 10040 ahd_verify_vpd_cksum(struct vpd_config *vpd) argument 10047 vpdarray = (uint8_t *)vpd; 10053 || (-checksum & 0xFF) != vpd->vpd_checksum) 10062 || (-checksum & 0xFF) != vpd->checksum)
|
/linux-master/drivers/net/ethernet/ibm/ |
H A D | ibmvnic.h | 930 struct ibmvnic_vpd *vpd; member in struct:ibmvnic_adapter
|
/linux-master/drivers/scsi/qla2xxx/ |
H A D | qla_attr.c | 580 ha->isp_ops->read_optrom(vha, ha->vpd, faddr, ha->vpd_size); 583 ha->isp_ops->read_optrom(vha, ha->vpd, faddr, ha->vpd_size); 585 return memory_read_from_buffer(buf, count, &off, ha->vpd, ha->vpd_size); 622 ha->isp_ops->read_nvram(vha, ha->vpd, ha->vpd_base, count); 647 .name = "vpd", 1008 { "vpd", &sysfs_vpd_attr, 1 },
|
/linux-master/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_ioc.c | 2762 memcpy(&ad_attr->vpd, &ioc_attr->vpd,
|