vpd 113 drivers/misc/cxl/of.c char vpd[256]; vpd 115 drivers/misc/cxl/of.c size_t len = sizeof(vpd); vpd 117 drivers/misc/cxl/of.c memset(vpd, 0, len); vpd 120 drivers/misc/cxl/of.c rc = cxl_guest_read_adapter_vpd(adapter, vpd, len); vpd 122 drivers/misc/cxl/of.c rc = cxl_guest_read_afu_vpd(afu, vpd, len); vpd 125 drivers/misc/cxl/of.c cxl_dump_debug_buffer(vpd, rc); vpd 48 drivers/net/ethernet/brocade/bna/bfa_defs.h struct bfa_mfg_vpd vpd; vpd 2757 drivers/net/ethernet/brocade/bna/bfa_ioc.c memcpy(&ad_attr->vpd, &ioc_attr->vpd, vpd 202 drivers/net/ethernet/brocade/bna/bfi.h struct bfa_mfg_vpd vpd; vpd 587 drivers/net/ethernet/chelsio/cxgb/subr.c static int t1_eeprom_vpd_get(adapter_t *adapter, struct chelsio_vpd_t *vpd) vpd 591 drivers/net/ethernet/chelsio/cxgb/subr.c for (addr = 0; !ret && addr < sizeof(*vpd); addr += sizeof(u32)) vpd 593 drivers/net/ethernet/chelsio/cxgb/subr.c (__le32 *)((u8 *)vpd + addr)); vpd 603 drivers/net/ethernet/chelsio/cxgb/subr.c struct chelsio_vpd_t vpd; vpd 605 drivers/net/ethernet/chelsio/cxgb/subr.c if (t1_eeprom_vpd_get(adapter, &vpd)) vpd 607 drivers/net/ethernet/chelsio/cxgb/subr.c memcpy(mac_addr, vpd.mac_base_address, 5); vpd 608 drivers/net/ethernet/chelsio/cxgb/subr.c mac_addr[5] = vpd.mac_base_address[5] + index; vpd 385 drivers/net/ethernet/chelsio/cxgb3/common.h struct vpd_params vpd; vpd 634 drivers/net/ethernet/chelsio/cxgb3/common.h return adap->params.vpd.cclk / 1000; vpd 819 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c v = (adap->params.vpd.cclk * 1000) / cpt; vpd 3168 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (adap->name == dev->name && adap->params.vpd.mclk) vpd 3173 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c adap->params.vpd.sn); vpd 198 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; vpd 712 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c struct t3_vpd vpd; vpd 718 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = t3_seeprom_read(adapter, VPD_BASE, (__le32 *)&vpd); vpd 721 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c addr = vpd.id_tag == 0x82 ? VPD_BASE : 0; vpd 723 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c for (i = 0; i < sizeof(vpd); i += 4) { vpd 725 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c (__le32 *)((u8 *)&vpd + i)); vpd 730 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = vpdstrtouint(vpd.cclk_data, vpd.cclk_len, 10, &p->cclk); vpd 733 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = vpdstrtouint(vpd.mclk_data, vpd.mclk_len, 10, &p->mclk); vpd 736 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = vpdstrtouint(vpd.uclk_data, vpd.uclk_len, 10, &p->uclk); vpd 739 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = vpdstrtouint(vpd.mdc_data, vpd.mdc_len, 10, &p->mdc); vpd 742 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = vpdstrtouint(vpd.mt_data, vpd.mt_len, 10, &p->mem_timing); vpd 745 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c memcpy(p->sn, vpd.sn_data, SERNUM_LEN); vpd 748 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (adapter->params.rev == 0 && !vpd.port0_data[0]) { vpd 752 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c p->port_type[0] = hex_to_bin(vpd.port0_data[0]); vpd 753 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c p->port_type[1] = hex_to_bin(vpd.port1_data[0]); vpd 754 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = vpdstrtou16(vpd.xaui0cfg_data, vpd.xaui0cfg_len, 16, vpd 758 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = vpdstrtou16(vpd.xaui1cfg_data, vpd.xaui1cfg_len, 16, vpd 764 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = hex2bin(p->eth_base, vpd.na_data, 6); vpd 3039 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int clk = adap->params.vpd.cclk * 1000; vpd 3080 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c tp_set_timers(adap, adap->params.vpd.cclk * 1000); vpd 3376 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c const struct vpd_params *vpd = &adapter->params.vpd; vpd 3383 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (vpd->mclk) { vpd 3386 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (mc7_init(&adapter->pmrx, vpd->mclk, vpd->mem_timing) || vpd 3387 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c mc7_init(&adapter->pmtx, vpd->mclk, vpd->mem_timing) || vpd 3388 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c mc7_init(&adapter->cm, vpd->mclk, vpd->mem_timing) || vpd 3428 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c t3_write_reg(adapter, A_CIM_HOST_ACC_DATA, vpd->uclk | fw_params); vpd 3546 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (devid == 0x37 && !adapter->params.vpd.xauicfg[1]) vpd 3566 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c V_I2C_CLKDIV(adapter->params.vpd.cclk / 80 - 1)); vpd 3680 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c ret = get_vpd_params(adapter, &adapter->params.vpd); vpd 3689 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (adapter->params.vpd.mclk) { vpd 3735 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c while (!adapter->params.vpd.port_type[++j]) vpd 3738 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c pti = &port_types[adapter->params.vpd.port_type[j]]; vpd 3741 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c adapter->params.vpd.port_type[j]); vpd 3757 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c memcpy(hw_addr, adapter->params.vpd.eth_base, 5); vpd 3758 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c hw_addr[5] = adapter->params.vpd.eth_base[5] + i; vpd 3799 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c while (!adapter->params.vpd.port_type[++j]) vpd 3802 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c pti = &port_types[adapter->params.vpd.port_type[j]]; vpd 57 drivers/net/ethernet/chelsio/cxgb3/xgmac.c t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | vpd 407 drivers/net/ethernet/chelsio/cxgb3/xgmac.c thres = (adap->params.vpd.cclk * 1000) / 15625; vpd 1235 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (!padap->params.vpd.cclk) vpd 1553 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c if (!padap->params.vpd.cclk) vpd 1562 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c clk_info_buff->cclk_ps = 1000000000 / padap->params.vpd.cclk; /* psec */ vpd 2288 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c struct vpd_params vpd = { 0 }; vpd 2291 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c rc = t4_get_raw_vpd_params(padap, &vpd); vpd 2333 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c memcpy(vpd_data->sn, vpd.sn, SERNUM_LEN + 1); vpd 2334 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c memcpy(vpd_data->bn, vpd.pn, PN_LEN + 1); vpd 2335 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c memcpy(vpd_data->na, vpd.na, MACADDR_LEN + 1); vpd 2336 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c memcpy(vpd_data->mn, vpd.id, ID_LEN + 1); vpd 366 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h struct vpd_params vpd; vpd 1476 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h return adap->params.vpd.cclk / 1000; vpd 1482 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h return (us * adap->params.vpd.cclk) / 1000; vpd 1489 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h return ((ticks * 1000 + adapter->params.vpd.cclk/2) / vpd 1490 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h adapter->params.vpd.cclk); vpd 906 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c unsigned int cclk_ps = 1000000000 / adap->params.vpd.cclk; /* in ps */ vpd 2770 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_get_raw_vpd_params(adap, &adap->params.vpd); vpd 2774 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c na = adap->params.vpd.na; vpd 4450 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_get_vpd_params(adap, &adap->params.vpd); vpd 5424 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c dev->name, adap->params.vpd.id, adap->name, buf); vpd 5927 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c u8 *na = adapter->params.vpd.na; vpd 5929 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c err = t4_get_raw_vpd_params(adapter, &adapter->params.vpd); vpd 672 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c lld->cclk_ps = 1000000000 / adap->params.vpd.cclk; vpd 2731 drivers/net/ethernet/chelsio/cxgb4/sge.c u64 tmp = (sgetstamp * 1000 * 1000 + adap->params.vpd.cclk / 2); vpd 2733 drivers/net/ethernet/chelsio/cxgb4/sge.c ns = div_u64(tmp, adap->params.vpd.cclk); vpd 2754 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c u8 *vpd, csum; vpd 2757 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c vpd = vmalloc(VPD_LEN); vpd 2758 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (!vpd) vpd 2764 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = pci_read_vpd(adapter->pdev, VPD_BASE, sizeof(u32), vpd); vpd 2774 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c addr = *vpd == CHELSIO_VPD_UNIQUE_ID ? VPD_BASE : VPD_BASE_OLD; vpd 2776 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = pci_read_vpd(adapter->pdev, addr, VPD_LEN, vpd); vpd 2780 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (vpd[0] != PCI_VPD_LRDT_ID_STRING) { vpd 2786 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c id_len = pci_vpd_lrdt_size(vpd); vpd 2790 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c i = pci_vpd_find_tag(vpd, 0, VPD_LEN, PCI_VPD_LRDT_RO_DATA); vpd 2797 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c vpdr_len = pci_vpd_lrdt_size(&vpd[i]); vpd 2806 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c var = pci_vpd_find_info_keyword(vpd, kw_offset, vpdr_len, name); \ vpd 2817 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c csum += vpd[i]; vpd 2832 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c memcpy(p->id, vpd + PCI_VPD_LRDT_TAG_SIZE, id_len); vpd 2834 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c memcpy(p->ec, vpd + ec, EC_LEN); vpd 2836 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c i = pci_vpd_info_field_size(vpd + sn - PCI_VPD_INFO_FLD_HDR_SIZE); vpd 2837 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c memcpy(p->sn, vpd + sn, min(i, SERNUM_LEN)); vpd 2839 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c i = pci_vpd_info_field_size(vpd + pn - PCI_VPD_INFO_FLD_HDR_SIZE); vpd 2840 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c memcpy(p->pn, vpd + pn, min(i, PN_LEN)); vpd 2842 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c memcpy(p->na, vpd + na, min(i, MACADDR_LEN)); vpd 2846 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c vfree(vpd); vpd 3322 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c adapter->params.vpd.id, vpd 3325 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c adapter->params.vpd.sn, adapter->params.vpd.pn); vpd 5906 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c u64 v = bytes256 * adap->params.vpd.cclk; vpd 9180 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c adapter->params.vpd.cclk = 50000; vpd 10275 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c v = (adap->params.vpd.cclk * 1000) / cpt; /* ticks/s */ vpd 263 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h struct vpd_params vpd; /* Vital Product Data */ vpd 311 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h return adapter->params.vpd.cclk / 1000; vpd 317 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h return (us * adapter->params.vpd.cclk) / 1000; vpd 323 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h return (ticks * 1000) / adapter->params.vpd.cclk; vpd 969 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c struct vpd_params *vpd_params = &adapter->params.vpd; vpd 2158 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c adapter->params.vpd.cclk = 50000; vpd 604 drivers/net/ethernet/ibm/ibmvnic.c if (!adapter->vpd) vpd 607 drivers/net/ethernet/ibm/ibmvnic.c kfree(adapter->vpd->buff); vpd 608 drivers/net/ethernet/ibm/ibmvnic.c kfree(adapter->vpd); vpd 610 drivers/net/ethernet/ibm/ibmvnic.c adapter->vpd = NULL; vpd 943 drivers/net/ethernet/ibm/ibmvnic.c if (adapter->vpd->buff) vpd 944 drivers/net/ethernet/ibm/ibmvnic.c len = adapter->vpd->len; vpd 954 drivers/net/ethernet/ibm/ibmvnic.c if (!adapter->vpd->len) vpd 957 drivers/net/ethernet/ibm/ibmvnic.c if (!adapter->vpd->buff) vpd 958 drivers/net/ethernet/ibm/ibmvnic.c adapter->vpd->buff = kzalloc(adapter->vpd->len, GFP_KERNEL); vpd 959 drivers/net/ethernet/ibm/ibmvnic.c else if (adapter->vpd->len != len) vpd 960 drivers/net/ethernet/ibm/ibmvnic.c adapter->vpd->buff = vpd 961 drivers/net/ethernet/ibm/ibmvnic.c krealloc(adapter->vpd->buff, vpd 962 drivers/net/ethernet/ibm/ibmvnic.c adapter->vpd->len, GFP_KERNEL); vpd 964 drivers/net/ethernet/ibm/ibmvnic.c if (!adapter->vpd->buff) { vpd 969 drivers/net/ethernet/ibm/ibmvnic.c adapter->vpd->dma_addr = vpd 970 drivers/net/ethernet/ibm/ibmvnic.c dma_map_single(dev, adapter->vpd->buff, adapter->vpd->len, vpd 972 drivers/net/ethernet/ibm/ibmvnic.c if (dma_mapping_error(dev, adapter->vpd->dma_addr)) { vpd 974 drivers/net/ethernet/ibm/ibmvnic.c kfree(adapter->vpd->buff); vpd 975 drivers/net/ethernet/ibm/ibmvnic.c adapter->vpd->buff = NULL; vpd 982 drivers/net/ethernet/ibm/ibmvnic.c crq.get_vpd.ioba = cpu_to_be32(adapter->vpd->dma_addr); vpd 983 drivers/net/ethernet/ibm/ibmvnic.c crq.get_vpd.len = cpu_to_be32((u32)adapter->vpd->len); vpd 986 drivers/net/ethernet/ibm/ibmvnic.c kfree(adapter->vpd->buff); vpd 987 drivers/net/ethernet/ibm/ibmvnic.c adapter->vpd->buff = NULL; vpd 1004 drivers/net/ethernet/ibm/ibmvnic.c adapter->vpd = kzalloc(sizeof(*adapter->vpd), GFP_KERNEL); vpd 1005 drivers/net/ethernet/ibm/ibmvnic.c if (!adapter->vpd) vpd 3812 drivers/net/ethernet/ibm/ibmvnic.c adapter->vpd->len = be64_to_cpu(crq->get_vpd_size_rsp.len); vpd 3825 drivers/net/ethernet/ibm/ibmvnic.c dma_unmap_single(dev, adapter->vpd->dma_addr, adapter->vpd->len, vpd 3837 drivers/net/ethernet/ibm/ibmvnic.c substr = strnstr(adapter->vpd->buff, "RM", adapter->vpd->len); vpd 3844 drivers/net/ethernet/ibm/ibmvnic.c if ((substr + 2) < (adapter->vpd->buff + adapter->vpd->len)) { vpd 3853 drivers/net/ethernet/ibm/ibmvnic.c (adapter->vpd->buff + adapter->vpd->len)) { vpd 979 drivers/net/ethernet/ibm/ibmvnic.h struct ibmvnic_vpd *vpd; vpd 6783 drivers/net/ethernet/sun/niu.c struct niu_vpd *vpd = &np->vpd; vpd 6788 drivers/net/ethernet/sun/niu.c vpd->fcode_major, vpd->fcode_minor); vpd 8046 drivers/net/ethernet/sun/niu.c struct niu_vpd *vpd = &np->vpd; vpd 8047 drivers/net/ethernet/sun/niu.c int len = strlen(vpd->version) + 1; vpd 8048 drivers/net/ethernet/sun/niu.c const char *s = vpd->version; vpd 8059 drivers/net/ethernet/sun/niu.c sscanf(s, "%d.%d", &vpd->fcode_major, &vpd->fcode_minor); vpd 8063 drivers/net/ethernet/sun/niu.c vpd->fcode_major, vpd->fcode_minor); vpd 8064 drivers/net/ethernet/sun/niu.c if (vpd->fcode_major > NIU_VPD_MIN_MAJOR || vpd 8065 drivers/net/ethernet/sun/niu.c (vpd->fcode_major == NIU_VPD_MIN_MAJOR && vpd 8066 drivers/net/ethernet/sun/niu.c vpd->fcode_minor >= NIU_VPD_MIN_MINOR)) vpd 8111 drivers/net/ethernet/sun/niu.c prop_buf = np->vpd.model; vpd 8115 drivers/net/ethernet/sun/niu.c prop_buf = np->vpd.board_model; vpd 8119 drivers/net/ethernet/sun/niu.c prop_buf = np->vpd.version; vpd 8123 drivers/net/ethernet/sun/niu.c prop_buf = np->vpd.local_mac; vpd 8127 drivers/net/ethernet/sun/niu.c prop_buf = &np->vpd.mac_num; vpd 8131 drivers/net/ethernet/sun/niu.c prop_buf = np->vpd.phy_type; vpd 8291 drivers/net/ethernet/sun/niu.c if ((!strcmp(np->vpd.model, NIU_QGC_LP_MDL_STR)) || vpd 8292 drivers/net/ethernet/sun/niu.c (!strcmp(np->vpd.model, NIU_QGC_PEM_MDL_STR)) || vpd 8293 drivers/net/ethernet/sun/niu.c (!strcmp(np->vpd.model, NIU_MARAMBA_MDL_STR)) || vpd 8294 drivers/net/ethernet/sun/niu.c (!strcmp(np->vpd.model, NIU_KIMI_MDL_STR)) || vpd 8295 drivers/net/ethernet/sun/niu.c (!strcmp(np->vpd.model, NIU_ALONSO_MDL_STR))) { vpd 8297 drivers/net/ethernet/sun/niu.c } else if ((!strcmp(np->vpd.model, NIU_2XGF_LP_MDL_STR)) || vpd 8298 drivers/net/ethernet/sun/niu.c (!strcmp(np->vpd.model, NIU_2XGF_PEM_MDL_STR)) || vpd 8299 drivers/net/ethernet/sun/niu.c (!strcmp(np->vpd.model, NIU_FOXXY_MDL_STR)) || vpd 8300 drivers/net/ethernet/sun/niu.c (!strcmp(np->vpd.model, NIU_2XGF_MRVL_MDL_STR))) { vpd 8310 drivers/net/ethernet/sun/niu.c struct niu_vpd *vpd = &np->vpd; vpd 8313 drivers/net/ethernet/sun/niu.c if (!is_valid_ether_addr(&vpd->local_mac[0])) { vpd 8320 drivers/net/ethernet/sun/niu.c if (!strcmp(np->vpd.model, NIU_ALONSO_MDL_STR) || vpd 8321 drivers/net/ethernet/sun/niu.c !strcmp(np->vpd.model, NIU_KIMI_MDL_STR)) { vpd 8332 drivers/net/ethernet/sun/niu.c } else if (!strcmp(np->vpd.model, NIU_FOXXY_MDL_STR)) { vpd 8335 drivers/net/ethernet/sun/niu.c } else if (niu_phy_type_prop_decode(np, np->vpd.phy_type)) { vpd 8337 drivers/net/ethernet/sun/niu.c np->vpd.phy_type); vpd 8343 drivers/net/ethernet/sun/niu.c memcpy(dev->dev_addr, vpd->local_mac, ETH_ALEN); vpd 8476 drivers/net/ethernet/sun/niu.c np->vpd.model[i + 3] = (tmp >> 0) & 0xff; vpd 8477 drivers/net/ethernet/sun/niu.c np->vpd.model[i + 2] = (tmp >> 8) & 0xff; vpd 8478 drivers/net/ethernet/sun/niu.c np->vpd.model[i + 1] = (tmp >> 16) & 0xff; vpd 8479 drivers/net/ethernet/sun/niu.c np->vpd.model[i + 0] = (tmp >> 24) & 0xff; vpd 8481 drivers/net/ethernet/sun/niu.c np->vpd.model[val] = '\0'; vpd 8492 drivers/net/ethernet/sun/niu.c np->vpd.board_model[i + 3] = (tmp >> 0) & 0xff; vpd 8493 drivers/net/ethernet/sun/niu.c np->vpd.board_model[i + 2] = (tmp >> 8) & 0xff; vpd 8494 drivers/net/ethernet/sun/niu.c np->vpd.board_model[i + 1] = (tmp >> 16) & 0xff; vpd 8495 drivers/net/ethernet/sun/niu.c np->vpd.board_model[i + 0] = (tmp >> 24) & 0xff; vpd 8497 drivers/net/ethernet/sun/niu.c np->vpd.board_model[val] = '\0'; vpd 8499 drivers/net/ethernet/sun/niu.c np->vpd.mac_num = vpd 8502 drivers/net/ethernet/sun/niu.c "SPROM: NUM_PORTS_MACS[%d]\n", np->vpd.mac_num); vpd 8795 drivers/net/ethernet/sun/niu.c if (!strcmp(np->vpd.model, NIU_ALONSO_MDL_STR) || vpd 8796 drivers/net/ethernet/sun/niu.c !strcmp(np->vpd.model, NIU_KIMI_MDL_STR)) { vpd 8805 drivers/net/ethernet/sun/niu.c } else if (!strcmp(np->vpd.model, NIU_FOXXY_MDL_STR)) { vpd 9216 drivers/net/ethernet/sun/niu.c strcpy(np->vpd.phy_type, phy_type); vpd 9218 drivers/net/ethernet/sun/niu.c if (niu_phy_type_prop_decode(np, np->vpd.phy_type)) { vpd 9220 drivers/net/ethernet/sun/niu.c dp, np->vpd.phy_type); vpd 9244 drivers/net/ethernet/sun/niu.c strcpy(np->vpd.model, model); vpd 9690 drivers/net/ethernet/sun/niu.c np->vpd.phy_type); vpd 9701 drivers/net/ethernet/sun/niu.c np->vpd.phy_type); vpd 3299 drivers/net/ethernet/sun/niu.h struct niu_vpd vpd; vpd 2522 drivers/net/wireless/ath/ath5k/phy.c const s16 *pwr, const u8 *vpd, vpd 2558 drivers/net/wireless/ath/ath5k/phy.c vpd[idx[0]], vpd[idx[1]]); vpd 42 drivers/pci/vpd.c if (!dev->vpd || !dev->vpd->ops) vpd 44 drivers/pci/vpd.c return dev->vpd->ops->read(dev, pos, count, buf); vpd 57 drivers/pci/vpd.c if (!dev->vpd || !dev->vpd->ops) vpd 59 drivers/pci/vpd.c return dev->vpd->ops->write(dev, pos, count, buf); vpd 70 drivers/pci/vpd.c if (!dev->vpd || !dev->vpd->ops) vpd 72 drivers/pci/vpd.c return dev->vpd->ops->set_size(dev, len); vpd 140 drivers/pci/vpd.c struct pci_vpd *vpd = dev->vpd; vpd 146 drivers/pci/vpd.c if (!vpd->busy) vpd 150 drivers/pci/vpd.c ret = pci_user_read_config_word(dev, vpd->cap + PCI_VPD_ADDR, vpd 155 drivers/pci/vpd.c if ((status & PCI_VPD_ADDR_F) == vpd->flag) { vpd 156 drivers/pci/vpd.c vpd->busy = 0; vpd 178 drivers/pci/vpd.c struct pci_vpd *vpd = dev->vpd; vpd 186 drivers/pci/vpd.c if (!vpd->valid) { vpd 187 drivers/pci/vpd.c vpd->valid = 1; vpd 188 drivers/pci/vpd.c vpd->len = pci_vpd_size(dev, vpd->len); vpd 191 drivers/pci/vpd.c if (vpd->len == 0) vpd 194 drivers/pci/vpd.c if (pos > vpd->len) vpd 197 drivers/pci/vpd.c if (end > vpd->len) { vpd 198 drivers/pci/vpd.c end = vpd->len; vpd 202 drivers/pci/vpd.c if (mutex_lock_killable(&vpd->lock)) vpd 213 drivers/pci/vpd.c ret = pci_user_write_config_word(dev, vpd->cap + PCI_VPD_ADDR, vpd 217 drivers/pci/vpd.c vpd->busy = 1; vpd 218 drivers/pci/vpd.c vpd->flag = PCI_VPD_ADDR_F; vpd 223 drivers/pci/vpd.c ret = pci_user_read_config_dword(dev, vpd->cap + PCI_VPD_DATA, &val); vpd 238 drivers/pci/vpd.c mutex_unlock(&vpd->lock); vpd 245 drivers/pci/vpd.c struct pci_vpd *vpd = dev->vpd; vpd 253 drivers/pci/vpd.c if (!vpd->valid) { vpd 254 drivers/pci/vpd.c vpd->valid = 1; vpd 255 drivers/pci/vpd.c vpd->len = pci_vpd_size(dev, vpd->len); vpd 258 drivers/pci/vpd.c if (vpd->len == 0) vpd 261 drivers/pci/vpd.c if (end > vpd->len) vpd 264 drivers/pci/vpd.c if (mutex_lock_killable(&vpd->lock)) vpd 279 drivers/pci/vpd.c ret = pci_user_write_config_dword(dev, vpd->cap + PCI_VPD_DATA, val); vpd 282 drivers/pci/vpd.c ret = pci_user_write_config_word(dev, vpd->cap + PCI_VPD_ADDR, vpd 287 drivers/pci/vpd.c vpd->busy = 1; vpd 288 drivers/pci/vpd.c vpd->flag = 0; vpd 296 drivers/pci/vpd.c mutex_unlock(&vpd->lock); vpd 302 drivers/pci/vpd.c struct pci_vpd *vpd = dev->vpd; vpd 307 drivers/pci/vpd.c vpd->valid = 1; vpd 308 drivers/pci/vpd.c vpd->len = len; vpd 371 drivers/pci/vpd.c struct pci_vpd *vpd; vpd 378 drivers/pci/vpd.c vpd = kzalloc(sizeof(*vpd), GFP_ATOMIC); vpd 379 drivers/pci/vpd.c if (!vpd) vpd 382 drivers/pci/vpd.c vpd->len = PCI_VPD_MAX_SIZE; vpd 384 drivers/pci/vpd.c vpd->ops = &pci_vpd_f0_ops; vpd 386 drivers/pci/vpd.c vpd->ops = &pci_vpd_ops; vpd 387 drivers/pci/vpd.c mutex_init(&vpd->lock); vpd 388 drivers/pci/vpd.c vpd->cap = cap; vpd 389 drivers/pci/vpd.c vpd->busy = 0; vpd 390 drivers/pci/vpd.c vpd->valid = 0; vpd 391 drivers/pci/vpd.c dev->vpd = vpd; vpd 397 drivers/pci/vpd.c kfree(dev->vpd); vpd 437 drivers/pci/vpd.c if (!dev->vpd) vpd 456 drivers/pci/vpd.c dev->vpd->attr = attr; vpd 461 drivers/pci/vpd.c if (dev->vpd && dev->vpd->attr) { vpd 462 drivers/pci/vpd.c sysfs_remove_bin_file(&dev->dev.kobj, dev->vpd->attr); vpd 463 drivers/pci/vpd.c kfree(dev->vpd->attr); vpd 537 drivers/pci/vpd.c if (f0->vpd && dev->class == f0->class && vpd 555 drivers/pci/vpd.c if (dev->vpd) { vpd 556 drivers/pci/vpd.c dev->vpd->len = 0; vpd 604 drivers/pci/vpd.c if (dev->vpd) vpd 605 drivers/pci/vpd.c dev->vpd->len = 0x80; vpd 1353 drivers/scsi/aic7xxx/aic79xx.h struct vpd_config *vpd); vpd 255 drivers/scsi/aic7xxx/aic79xx_core.c static int ahd_verify_vpd_cksum(struct vpd_config *vpd); vpd 7792 drivers/scsi/aic7xxx/aic79xx_core.c ahd_parse_vpddata(struct ahd_softc *ahd, struct vpd_config *vpd) vpd 7796 drivers/scsi/aic7xxx/aic79xx_core.c error = ahd_verify_vpd_cksum(vpd); vpd 7799 drivers/scsi/aic7xxx/aic79xx_core.c if ((vpd->bios_flags & VPDBOOTHOST) != 0) vpd 10086 drivers/scsi/aic7xxx/aic79xx_core.c ahd_verify_vpd_cksum(struct vpd_config *vpd) vpd 10093 drivers/scsi/aic7xxx/aic79xx_core.c vpdarray = (uint8_t *)vpd; vpd 10099 drivers/scsi/aic7xxx/aic79xx_core.c || (-checksum & 0xFF) != vpd->vpd_checksum) vpd 10108 drivers/scsi/aic7xxx/aic79xx_core.c || (-checksum & 0xFF) != vpd->checksum) vpd 508 drivers/scsi/aic7xxx/aic79xx_pci.c struct vpd_config vpd; vpd 528 drivers/scsi/aic7xxx/aic79xx_pci.c + (sizeof(vpd) * (ahd->channel - 'A'))) / 2; vpd 530 drivers/scsi/aic7xxx/aic79xx_pci.c error = ahd_read_seeprom(ahd, (uint16_t *)&vpd, vpd 531 drivers/scsi/aic7xxx/aic79xx_pci.c start_addr, sizeof(vpd)/2, vpd 534 drivers/scsi/aic7xxx/aic79xx_pci.c error = ahd_parse_vpddata(ahd, &vpd); vpd 277 drivers/scsi/bfa/bfa_defs.h struct bfa_mfg_vpd_s vpd; vpd 2704 drivers/scsi/bfa/bfa_ioc.c memcpy(&ad_attr->vpd, &ioc_attr->vpd, vpd 285 drivers/scsi/bfa/bfi.h struct bfa_mfg_vpd_s vpd; vpd 306 drivers/scsi/csiostor/csio_hw.c uint8_t *vpd, csum; vpd 319 drivers/scsi/csiostor/csio_hw.c vpd = kzalloc(VPD_LEN, GFP_ATOMIC); vpd 320 drivers/scsi/csiostor/csio_hw.c if (vpd == NULL) vpd 327 drivers/scsi/csiostor/csio_hw.c ret = csio_hw_seeprom_read(hw, VPD_BASE, (uint32_t *)(vpd)); vpd 328 drivers/scsi/csiostor/csio_hw.c addr = *vpd == 0x82 ? VPD_BASE : VPD_BASE_OLD; vpd 331 drivers/scsi/csiostor/csio_hw.c ret = csio_hw_seeprom_read(hw, addr + i, (uint32_t *)(vpd + i)); vpd 333 drivers/scsi/csiostor/csio_hw.c kfree(vpd); vpd 341 drivers/scsi/csiostor/csio_hw.c v = (const struct t4_vpd_hdr *)vpd; vpd 347 drivers/scsi/csiostor/csio_hw.c kfree(vpd); \ vpd 354 drivers/scsi/csiostor/csio_hw.c csum += vpd[i]; vpd 358 drivers/scsi/csiostor/csio_hw.c kfree(vpd); vpd 367 drivers/scsi/csiostor/csio_hw.c memcpy(p->ec, vpd + ec, EC_LEN); vpd 369 drivers/scsi/csiostor/csio_hw.c i = vpd[sn - VPD_INFO_FLD_HDR_SIZE + 2]; vpd 370 drivers/scsi/csiostor/csio_hw.c memcpy(p->sn, vpd + sn, min(i, SERNUM_LEN)); vpd 375 drivers/scsi/csiostor/csio_hw.c kfree(vpd); vpd 1405 drivers/scsi/csiostor/csio_hw.c hw->vpd.cclk = param[1]; vpd 2522 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_get_vpd_params(hw, &hw->vpd); vpd 510 drivers/scsi/csiostor/csio_hw.h struct csio_vpd vpd; vpd 582 drivers/scsi/csiostor/csio_hw.h return (ticks * 1000 + hw->vpd.cclk/2) / hw->vpd.cclk; vpd 588 drivers/scsi/csiostor/csio_hw.h return (us * hw->vpd.cclk) / 1000; vpd 468 drivers/scsi/csiostor/csio_lnode.c hw->vpd.sn, sizeof(hw->vpd.sn)); vpd 470 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_MODEL, hw->vpd.id, vpd 471 drivers/scsi/csiostor/csio_lnode.c sizeof(hw->vpd.id)); vpd 1549 drivers/scsi/ipr.c struct ipr_vpd *vpd) vpd 1554 drivers/scsi/ipr.c memcpy(buffer, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN); vpd 1557 drivers/scsi/ipr.c memcpy(&buffer[i], vpd->vpids.product_id, IPR_PROD_ID_LEN); vpd 1560 drivers/scsi/ipr.c memcpy(&buffer[i], vpd->sn, IPR_SERIAL_NUM_LEN); vpd 1573 drivers/scsi/ipr.c static void ipr_log_vpd(struct ipr_vpd *vpd) vpd 1578 drivers/scsi/ipr.c memcpy(buffer, vpd->vpids.vendor_id, IPR_VENDOR_ID_LEN); vpd 1579 drivers/scsi/ipr.c memcpy(buffer + IPR_VENDOR_ID_LEN, vpd->vpids.product_id, vpd 1584 drivers/scsi/ipr.c memcpy(buffer, vpd->sn, IPR_SERIAL_NUM_LEN); vpd 1599 drivers/scsi/ipr.c struct ipr_ext_vpd *vpd) vpd 1601 drivers/scsi/ipr.c ipr_log_vpd_compact(prefix, hostrcb, &vpd->vpd); vpd 1603 drivers/scsi/ipr.c be32_to_cpu(vpd->wwid[0]), be32_to_cpu(vpd->wwid[1])); vpd 1613 drivers/scsi/ipr.c static void ipr_log_ext_vpd(struct ipr_ext_vpd *vpd) vpd 1615 drivers/scsi/ipr.c ipr_log_vpd(&vpd->vpd); vpd 1616 drivers/scsi/ipr.c ipr_err(" WWN: %08X%08X\n", be32_to_cpu(vpd->wwid[0]), vpd 1617 drivers/scsi/ipr.c be32_to_cpu(vpd->wwid[1])); vpd 1715 drivers/scsi/ipr.c ipr_log_ext_vpd(&dev_entry->vpd); vpd 1758 drivers/scsi/ipr.c ipr_log_ext_vpd(&dev_entry->vpd); vpd 1798 drivers/scsi/ipr.c ipr_log_vpd(&dev_entry->vpd); vpd 1852 drivers/scsi/ipr.c if (!memcmp(array_entry->vpd.vpd.sn, zero_sn, IPR_SERIAL_NUM_LEN)) vpd 1860 drivers/scsi/ipr.c ipr_log_ext_vpd(&array_entry->vpd); vpd 1901 drivers/scsi/ipr.c if (!memcmp(array_entry->vpd.sn, zero_sn, IPR_SERIAL_NUM_LEN)) vpd 1909 drivers/scsi/ipr.c ipr_log_vpd(&array_entry->vpd); vpd 1975 drivers/scsi/ipr.c ipr_log_ext_vpd_compact("Remote IOA", hostrcb, &error->vpd); vpd 2001 drivers/scsi/ipr.c ipr_log_vpd_compact("Remote IOA", hostrcb, &error->vpd); vpd 2340 drivers/scsi/ipr.c if (!memcmp(array_entry->vpd.vpd.sn, zero_sn, IPR_SERIAL_NUM_LEN)) vpd 2349 drivers/scsi/ipr.c ipr_log_ext_vpd(&array_entry->vpd); vpd 349 drivers/scsi/ipr.h struct ipr_vpd vpd; vpd 354 drivers/scsi/ipr.h struct ipr_vpd vpd; vpd 859 drivers/scsi/ipr.h struct ipr_vpd vpd; vpd 868 drivers/scsi/ipr.h struct ipr_ext_vpd vpd; vpd 878 drivers/scsi/ipr.h struct ipr_ext_vpd vpd; vpd 888 drivers/scsi/ipr.h struct ipr_vpd vpd; vpd 894 drivers/scsi/ipr.h struct ipr_ext_vpd vpd; vpd 901 drivers/scsi/ipr.h struct ipr_ext_vpd vpd; vpd 1016 drivers/scsi/ipr.h struct ipr_vpd vpd; vpd 1022 drivers/scsi/ipr.h struct ipr_ext_vpd vpd; vpd 900 drivers/scsi/lpfc/lpfc.h lpfc_vpd_t vpd; /* vital product data */ vpd 841 drivers/scsi/lpfc/lpfc_attr.c lpfc_vpd_t *vp = &phba->vpd; vpd 2163 drivers/scsi/lpfc/lpfc_ct.c lpfc_vpd_t *vp = &phba->vpd; vpd 3302 drivers/scsi/lpfc/lpfc_ct.c lpfc_vpd_t *vp = &phba->vpd; vpd 2421 drivers/scsi/lpfc/lpfc_els.c if (phba->vpd.rev.feaLevelHigh >= 0x02) { vpd 4827 drivers/scsi/lpfc/lpfc_els.c lpfc_vpd_t *vpd; vpd 4885 drivers/scsi/lpfc/lpfc_els.c vpd = &phba->vpd; vpd 4895 drivers/scsi/lpfc/lpfc_els.c (vpd->rev.feaLevelHigh >= 0x02)) { vpd 121 drivers/scsi/lpfc/lpfc_init.c lpfc_vpd_t *vp = &phba->vpd; vpd 2124 drivers/scsi/lpfc/lpfc_init.c lpfc_parse_vpd(struct lpfc_hba *phba, uint8_t *vpd, int len) vpd 2132 drivers/scsi/lpfc/lpfc_init.c if (!vpd) vpd 2138 drivers/scsi/lpfc/lpfc_init.c (uint32_t) vpd[0], (uint32_t) vpd[1], (uint32_t) vpd[2], vpd 2139 drivers/scsi/lpfc/lpfc_init.c (uint32_t) vpd[3]); vpd 2141 drivers/scsi/lpfc/lpfc_init.c switch (vpd[index]) { vpd 2145 drivers/scsi/lpfc/lpfc_init.c lenlo = vpd[index]; vpd 2147 drivers/scsi/lpfc/lpfc_init.c lenhi = vpd[index]; vpd 2154 drivers/scsi/lpfc/lpfc_init.c lenlo = vpd[index]; vpd 2156 drivers/scsi/lpfc/lpfc_init.c lenhi = vpd[index]; vpd 2163 drivers/scsi/lpfc/lpfc_init.c if ((vpd[index] == 'S') && (vpd[index+1] == 'N')) { vpd 2165 drivers/scsi/lpfc/lpfc_init.c i = vpd[index]; vpd 2170 drivers/scsi/lpfc/lpfc_init.c phba->SerialNumber[j++] = vpd[index++]; vpd 2177 drivers/scsi/lpfc/lpfc_init.c else if ((vpd[index] == 'V') && (vpd[index+1] == '1')) { vpd 2180 drivers/scsi/lpfc/lpfc_init.c i = vpd[index]; vpd 2185 drivers/scsi/lpfc/lpfc_init.c phba->ModelDesc[j++] = vpd[index++]; vpd 2192 drivers/scsi/lpfc/lpfc_init.c else if ((vpd[index] == 'V') && (vpd[index+1] == '2')) { vpd 2195 drivers/scsi/lpfc/lpfc_init.c i = vpd[index]; vpd 2200 drivers/scsi/lpfc/lpfc_init.c phba->ModelName[j++] = vpd[index++]; vpd 2207 drivers/scsi/lpfc/lpfc_init.c else if ((vpd[index] == 'V') && (vpd[index+1] == '3')) { vpd 2210 drivers/scsi/lpfc/lpfc_init.c i = vpd[index]; vpd 2215 drivers/scsi/lpfc/lpfc_init.c phba->ProgramType[j++] = vpd[index++]; vpd 2222 drivers/scsi/lpfc/lpfc_init.c else if ((vpd[index] == 'V') && (vpd[index+1] == '4')) { vpd 2225 drivers/scsi/lpfc/lpfc_init.c i = vpd[index]; vpd 2236 drivers/scsi/lpfc/lpfc_init.c phba->Port[j++] = vpd[index++]; vpd 2248 drivers/scsi/lpfc/lpfc_init.c i = vpd[index]; vpd 2317 drivers/scsi/lpfc/lpfc_init.c vp = &phba->vpd; vpd 490 drivers/scsi/lpfc/lpfc_mbox.c lpfc_vpd_t *vpd; vpd 529 drivers/scsi/lpfc/lpfc_mbox.c vpd = &phba->vpd; vpd 530 drivers/scsi/lpfc/lpfc_mbox.c if (vpd->rev.feaLevelHigh >= 0x02){ vpd 1298 drivers/scsi/lpfc/lpfc_mbox.c if (phba->sli_rev == LPFC_SLI_REV3 && phba->vpd.sli3Feat.cerbm) { vpd 1307 drivers/scsi/lpfc/lpfc_mbox.c phba->vpd.sli3Feat.cmv) { vpd 4215 drivers/scsi/lpfc/lpfc_sli.c (FC_JEDEC_ID(phba->vpd.rev.biuRev) != HELIOS_JEDEC_ID && vpd 4216 drivers/scsi/lpfc/lpfc_sli.c FC_JEDEC_ID(phba->vpd.rev.biuRev) != THOR_JEDEC_ID)) vpd 5290 drivers/scsi/lpfc/lpfc_sli.c uint8_t *vpd, uint32_t *vpd_size) vpd 5342 drivers/scsi/lpfc/lpfc_sli.c memcpy(vpd, dmabuf->virt, *vpd_size); vpd 7164 drivers/scsi/lpfc/lpfc_sli.c uint8_t *vpd; vpd 7197 drivers/scsi/lpfc/lpfc_sli.c vpd = kzalloc(vpd_size, GFP_KERNEL); vpd 7198 drivers/scsi/lpfc/lpfc_sli.c if (!vpd) { vpd 7203 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli4_read_rev(phba, mboxq, vpd, &vpd_size); vpd 7205 drivers/scsi/lpfc/lpfc_sli.c kfree(vpd); vpd 7232 drivers/scsi/lpfc/lpfc_sli.c kfree(vpd); vpd 7267 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_parse_vpd(phba, vpd, vpd_size); vpd 7274 drivers/scsi/lpfc/lpfc_sli.c kfree(vpd); vpd 7277 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.biuRev = mqe->un.read_rev.first_hw_rev; vpd 7278 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.smRev = mqe->un.read_rev.second_hw_rev; vpd 7286 drivers/scsi/lpfc/lpfc_sli.c (phba->vpd.rev.biuRev == LPFC_G7_ASIC_1) && vpd 7287 drivers/scsi/lpfc/lpfc_sli.c (phba->vpd.rev.smRev == 0) && vpd 7291 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.endecRev = mqe->un.read_rev.third_hw_rev; vpd 7292 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.fcphHigh = bf_get(lpfc_mbx_rd_rev_fcph_high, vpd 7294 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.fcphLow = bf_get(lpfc_mbx_rd_rev_fcph_low, vpd 7296 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.feaLevelHigh = bf_get(lpfc_mbx_rd_rev_ftr_lvl_high, vpd 7298 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.feaLevelLow = bf_get(lpfc_mbx_rd_rev_ftr_lvl_low, vpd 7300 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.sli1FwRev = mqe->un.read_rev.fw_id_rev; vpd 7301 drivers/scsi/lpfc/lpfc_sli.c memcpy(phba->vpd.rev.sli1FwName, mqe->un.read_rev.fw_name, 16); vpd 7302 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.sli2FwRev = mqe->un.read_rev.ulp_fw_id_rev; vpd 7303 drivers/scsi/lpfc/lpfc_sli.c memcpy(phba->vpd.rev.sli2FwName, mqe->un.read_rev.ulp_fw_name, 16); vpd 7304 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.opFwRev = mqe->un.read_rev.fw_id_rev; vpd 7305 drivers/scsi/lpfc/lpfc_sli.c memcpy(phba->vpd.rev.opFwName, mqe->un.read_rev.fw_name, 16); vpd 7311 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.opFwName, vpd 7312 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.fcphHigh, phba->vpd.rev.fcphLow, vpd 7313 drivers/scsi/lpfc/lpfc_sli.c phba->vpd.rev.feaLevelHigh, phba->vpd.rev.feaLevelLow); vpd 552 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->read_optrom(vha, ha->vpd, faddr, ha->vpd_size); vpd 555 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->read_optrom(vha, ha->vpd, faddr, ha->vpd_size); vpd 557 drivers/scsi/qla2xxx/qla_attr.c return memory_read_from_buffer(buf, count, &off, ha->vpd, ha->vpd_size); vpd 594 drivers/scsi/qla2xxx/qla_attr.c ha->isp_ops->read_nvram(vha, ha->vpd, ha->vpd_base, count); vpd 3924 drivers/scsi/qla2xxx/qla_def.h void *vpd; vpd 7105 drivers/scsi/qla2xxx/qla_init.c ha->vpd = ha->nvram + VPD_OFFSET; vpd 7106 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->read_nvram(vha, ha->vpd, vpd 8283 drivers/scsi/qla2xxx/qla_init.c ha->vpd = ha->nvram + VPD_OFFSET; vpd 8294 drivers/scsi/qla2xxx/qla_init.c ha->isp_ops->read_optrom(vha, ha->vpd, faddr << 2, ha->vpd_size); vpd 3566 drivers/scsi/qla2xxx/qla_sup.c uint8_t *pos = ha->vpd; vpd 1258 drivers/scsi/smartpqi/smartpqi_init.c struct ciss_vpd_logical_volume_status *vpd; vpd 1260 drivers/scsi/smartpqi/smartpqi_init.c vpd = kmalloc(sizeof(*vpd), GFP_KERNEL); vpd 1261 drivers/scsi/smartpqi/smartpqi_init.c if (!vpd) vpd 1265 drivers/scsi/smartpqi/smartpqi_init.c VPD_PAGE | CISS_VPD_LV_STATUS, vpd, sizeof(*vpd)); vpd 1269 drivers/scsi/smartpqi/smartpqi_init.c if (vpd->page_code != CISS_VPD_LV_STATUS) vpd 1273 drivers/scsi/smartpqi/smartpqi_init.c volume_status) + vpd->page_length; vpd 1274 drivers/scsi/smartpqi/smartpqi_init.c if (page_length < sizeof(*vpd)) vpd 1277 drivers/scsi/smartpqi/smartpqi_init.c volume_status = vpd->volume_status; vpd 1278 drivers/scsi/smartpqi/smartpqi_init.c volume_flags = get_unaligned_be32(&vpd->flags); vpd 1282 drivers/scsi/smartpqi/smartpqi_init.c kfree(vpd); vpd 1492 drivers/target/target_core_configfs.c struct t10_vpd *vpd; vpd 1499 drivers/target/target_core_configfs.c list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { vpd 1500 drivers/target/target_core_configfs.c if (!vpd->protocol_identifier_set) vpd 1503 drivers/target/target_core_configfs.c transport_dump_vpd_proto_id(vpd, buf, VPD_TMP_BUF_SIZE); vpd 1523 drivers/target/target_core_configfs.c struct t10_vpd *vpd; \ vpd 1528 drivers/target/target_core_configfs.c list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { \ vpd 1529 drivers/target/target_core_configfs.c if (vpd->association != _assoc) \ vpd 1533 drivers/target/target_core_configfs.c transport_dump_vpd_assoc(vpd, buf, VPD_TMP_BUF_SIZE); \ vpd 1539 drivers/target/target_core_configfs.c transport_dump_vpd_ident_type(vpd, buf, VPD_TMP_BUF_SIZE); \ vpd 1545 drivers/target/target_core_configfs.c transport_dump_vpd_ident(vpd, buf, VPD_TMP_BUF_SIZE); \ vpd 520 drivers/target/target_core_device.c struct t10_vpd *vpd, *vpd_tmp; vpd 523 drivers/target/target_core_device.c list_for_each_entry_safe(vpd, vpd_tmp, vpd 525 drivers/target/target_core_device.c list_del(&vpd->vpd_list); vpd 526 drivers/target/target_core_device.c kfree(vpd); vpd 224 drivers/target/target_core_pscsi.c struct t10_vpd *vpd; vpd 254 drivers/target/target_core_pscsi.c vpd = kzalloc(sizeof(struct t10_vpd), GFP_KERNEL); vpd 255 drivers/target/target_core_pscsi.c if (!vpd) { vpd 260 drivers/target/target_core_pscsi.c INIT_LIST_HEAD(&vpd->vpd_list); vpd 262 drivers/target/target_core_pscsi.c transport_set_vpd_proto_id(vpd, page_83); vpd 263 drivers/target/target_core_pscsi.c transport_set_vpd_assoc(vpd, page_83); vpd 265 drivers/target/target_core_pscsi.c if (transport_set_vpd_ident_type(vpd, page_83) < 0) { vpd 268 drivers/target/target_core_pscsi.c kfree(vpd); vpd 271 drivers/target/target_core_pscsi.c if (transport_set_vpd_ident(vpd, page_83) < 0) { vpd 274 drivers/target/target_core_pscsi.c kfree(vpd); vpd 278 drivers/target/target_core_pscsi.c list_add_tail(&vpd->vpd_list, &wwn->t10_vpd_list); vpd 975 drivers/target/target_core_transport.c struct t10_vpd *vpd, vpd 985 drivers/target/target_core_transport.c switch (vpd->protocol_identifier) { vpd 1017 drivers/target/target_core_transport.c vpd->protocol_identifier); vpd 1028 drivers/target/target_core_transport.c transport_set_vpd_proto_id(struct t10_vpd *vpd, unsigned char *page_83) vpd 1036 drivers/target/target_core_transport.c vpd->protocol_identifier = (page_83[0] & 0xf0); vpd 1037 drivers/target/target_core_transport.c vpd->protocol_identifier_set = 1; vpd 1038 drivers/target/target_core_transport.c transport_dump_vpd_proto_id(vpd, NULL, 0); vpd 1044 drivers/target/target_core_transport.c struct t10_vpd *vpd, vpd 1055 drivers/target/target_core_transport.c switch (vpd->association) { vpd 1066 drivers/target/target_core_transport.c sprintf(buf+len, "Unknown 0x%02x\n", vpd->association); vpd 1079 drivers/target/target_core_transport.c int transport_set_vpd_assoc(struct t10_vpd *vpd, unsigned char *page_83) vpd 1086 drivers/target/target_core_transport.c vpd->association = (page_83[1] & 0x30); vpd 1087 drivers/target/target_core_transport.c return transport_dump_vpd_assoc(vpd, NULL, 0); vpd 1092 drivers/target/target_core_transport.c struct t10_vpd *vpd, vpd 1103 drivers/target/target_core_transport.c switch (vpd->device_identifier_type) { vpd 1124 drivers/target/target_core_transport.c vpd->device_identifier_type); vpd 1140 drivers/target/target_core_transport.c int transport_set_vpd_ident_type(struct t10_vpd *vpd, unsigned char *page_83) vpd 1147 drivers/target/target_core_transport.c vpd->device_identifier_type = (page_83[1] & 0x0f); vpd 1148 drivers/target/target_core_transport.c return transport_dump_vpd_ident_type(vpd, NULL, 0); vpd 1153 drivers/target/target_core_transport.c struct t10_vpd *vpd, vpd 1162 drivers/target/target_core_transport.c switch (vpd->device_identifier_code_set) { vpd 1166 drivers/target/target_core_transport.c &vpd->device_identifier[0]); vpd 1171 drivers/target/target_core_transport.c &vpd->device_identifier[0]); vpd 1176 drivers/target/target_core_transport.c &vpd->device_identifier[0]); vpd 1180 drivers/target/target_core_transport.c " 0x%02x", vpd->device_identifier_code_set); vpd 1194 drivers/target/target_core_transport.c transport_set_vpd_ident(struct t10_vpd *vpd, unsigned char *page_83) vpd 1204 drivers/target/target_core_transport.c vpd->device_identifier_code_set = (page_83[0] & 0x0f); vpd 1205 drivers/target/target_core_transport.c switch (vpd->device_identifier_code_set) { vpd 1207 drivers/target/target_core_transport.c vpd->device_identifier[j++] = vpd 1208 drivers/target/target_core_transport.c hex_str[vpd->device_identifier_type]; vpd 1210 drivers/target/target_core_transport.c vpd->device_identifier[j++] = vpd 1212 drivers/target/target_core_transport.c vpd->device_identifier[j++] = vpd 1220 drivers/target/target_core_transport.c vpd->device_identifier[j++] = page_83[i++]; vpd 1226 drivers/target/target_core_transport.c return transport_dump_vpd_ident(vpd, NULL, 0); vpd 447 include/linux/pci.h struct pci_vpd *vpd;