/titanic_41/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_hba.c | 948 emlxs_vpd_t *vpd; in emlxs_process_link_speed() local 956 vpd = &VPD; in emlxs_process_link_speed() 963 if (vpd->link_speed & LMT_1GB_CAPABLE) { in emlxs_process_link_speed() 968 if (vpd->link_speed & LMT_2GB_CAPABLE) { in emlxs_process_link_speed() 973 if (vpd->link_speed & LMT_4GB_CAPABLE) { in emlxs_process_link_speed() 978 if (vpd->link_speed & LMT_8GB_CAPABLE) { in emlxs_process_link_speed() 983 if (vpd->link_speed & LMT_10GB_CAPABLE) { in emlxs_process_link_speed() 988 if (vpd->link_speed & LMT_16GB_CAPABLE) { in emlxs_process_link_speed() 1023 emlxs_vpd_t *vpd; in emlxs_parse_vpd() local 1025 vpd = &VPD; in emlxs_parse_vpd() [all …]
|
H A D | emlxs_sli3.c | 192 emlxs_vpd_t *vpd; in emlxs_sli3_online() local 217 vpd = &VPD; in emlxs_sli3_online() 342 vpd->opFwRev = 0; in emlxs_sli3_online() 343 vpd->postKernRev = 0; in emlxs_sli3_online() 344 vpd->sli1FwRev = 0; in emlxs_sli3_online() 345 vpd->sli2FwRev = 0; in emlxs_sli3_online() 346 vpd->sli3FwRev = 0; in emlxs_sli3_online() 347 vpd->sli4FwRev = 0; in emlxs_sli3_online() 349 vpd->postKernName[0] = 0; in emlxs_sli3_online() 350 vpd->opFwName[0] = 0; in emlxs_sli3_online() [all …]
|
H A D | emlxs_sli4.c | 280 emlxs_vpd_t *vpd; in emlxs_sli4_online() local 299 vpd = &VPD; in emlxs_sli4_online() 413 vpd->opFwRev = 0; in emlxs_sli4_online() 414 vpd->postKernRev = 0; in emlxs_sli4_online() 415 vpd->sli1FwRev = 0; in emlxs_sli4_online() 416 vpd->sli2FwRev = 0; in emlxs_sli4_online() 417 vpd->sli3FwRev = 0; in emlxs_sli4_online() 418 vpd->sli4FwRev = 0; in emlxs_sli4_online() 420 vpd->postKernName[0] = 0; in emlxs_sli4_online() 421 vpd->opFwName[0] = 0; in emlxs_sli4_online() [all …]
|
H A D | emlxs_dfc.c | 1235 emlxs_vpd_t *vpd = &VPD; in emlxs_fcio_get_adapter_attrs() local 1259 (void) strncpy(hba_attrs->SerialNumber, vpd->serial_num, in emlxs_fcio_get_adapter_attrs() 1273 "%x", vpd->biuRev); in emlxs_fcio_get_adapter_attrs() 1278 vpd->fcode_version, in emlxs_fcio_get_adapter_attrs() 1282 "%s (%s)", vpd->fw_version, vpd->fw_label); in emlxs_fcio_get_adapter_attrs() 1305 (void) strncpy(hba_attrs->SerialNumber, vpd->serial_num, in emlxs_fcio_get_adapter_attrs() 1319 "%x", vpd->biuRev); in emlxs_fcio_get_adapter_attrs() 1324 vpd->fcode_version, in emlxs_fcio_get_adapter_attrs() 1328 "%s (%s)", vpd->fw_version, vpd->fw_label); in emlxs_fcio_get_adapter_attrs() 1353 emlxs_vpd_t *vpd = &VPD; in emlxs_fcio_get_adapter_port_attrs() local [all …]
|
H A D | emlxs_solaris.c | 1453 emlxs_vpd_t *vpd; in emlxs_fca_bind_port() local 1469 vpd = &VPD; in emlxs_fca_bind_port() 1772 (void) strncpy(port_info->pi_attrs.serial_number, vpd->serial_num, in emlxs_fca_bind_port() 1777 vpd->fw_version, vpd->fw_label); in emlxs_fca_bind_port() 1782 "Boot:%s", vpd->boot_version); in emlxs_fca_bind_port() 1786 "Boot:%s Fcode:%s", vpd->boot_version, vpd->fcode_version); in emlxs_fca_bind_port() 1880 length = strlen(vpd->serial_num); in emlxs_fca_bind_port() 1882 bcopy(&vpd->serial_num[(length - len)], in emlxs_fca_bind_port() 1886 vpd->port_index; in emlxs_fca_bind_port() 1924 "%x", vpd->biuRev); in emlxs_fca_bind_port() [all …]
|
H A D | emlxs_download.c | 4409 emlxs_vpd_t *vpd = &VPD; in emlxs_verify_image() local 4415 if (fw_image->awc.version == vpd->postKernRev) { in emlxs_verify_image() 4421 vpd->postKernName, in emlxs_verify_image() 4428 if (strcmp(vpd->fcode_version, fw_image->bwc.label) == 0) { in emlxs_verify_image() 4434 vpd->fcode_version, in emlxs_verify_image() 4465 if (vpd->opFwRev && in emlxs_verify_image() 4467 vpd->opFwRev)) { in emlxs_verify_image() 4473 vpd->opFwName, in emlxs_verify_image() 4480 if (vpd->sli1FwRev && in emlxs_verify_image() 4482 vpd->sli1FwRev)) { in emlxs_verify_image() [all …]
|
H A D | emlxs_dump.c | 1422 emlxs_vpd_t *vpd = &VPD; in emlxs_dump_model() local 1430 (void) snprintf(buf2, sizeof (buf2), "%s", vpd->model); in emlxs_dump_model() 1435 (void) snprintf(buf2, sizeof (buf2), "%s", vpd->model_desc); in emlxs_dump_model() 1505 emlxs_vpd_t *vpd = &VPD; in emlxs_dump_serial_number() local 1513 (void) snprintf(buf2, sizeof (buf2), "%s", vpd->serial_num); in emlxs_dump_serial_number() 1537 emlxs_vpd_t *vpd = &VPD; in emlxs_dump_fw_version() local 1552 (void) snprintf(buf2, buf2_size, "%s", vpd->fw_version); in emlxs_dump_fw_version() 1558 (void) snprintf(buf2, buf2_size, "%s", vpd->opFwName); in emlxs_dump_fw_version() 1565 (void) snprintf(buf2, buf2_size, "%s", vpd->sli1FwName); in emlxs_dump_fw_version() 1572 (void) snprintf(buf2, buf2_size, "%s", vpd->sli2FwName); in emlxs_dump_fw_version() [all …]
|
H A D | emlxs_fct.c | 1372 emlxs_vpd_t *vpd = &VPD; local 1376 (void) strncpy(port_attrs->serial_number, vpd->serial_num, 1385 "%x", vpd->biuRev); 1390 (void) strncpy(port_attrs->option_rom_version, vpd->fcode_version, 1394 "%s (%s)", vpd->fw_version, 1395 vpd->fw_label); 1404 if (vpd->link_speed & LMT_16GB_CAPABLE) { 1407 if (vpd->link_speed & LMT_10GB_CAPABLE) { 1410 if (vpd->link_speed & LMT_8GB_CAPABLE) { 1413 if (vpd->link_speed & LMT_4GB_CAPABLE) { [all …]
|
H A D | emlxs_mbox.c | 2092 emlxs_vpd_t *vpd = &VPD; in emlxs_mb_init_link() local 2143 if (!(vpd->link_speed & LMT_1GB_CAPABLE)) { in emlxs_mb_init_link() 2149 if (!(vpd->link_speed & LMT_2GB_CAPABLE)) { in emlxs_mb_init_link() 2155 if (!(vpd->link_speed & LMT_4GB_CAPABLE)) { in emlxs_mb_init_link() 2161 if (!(vpd->link_speed & LMT_8GB_CAPABLE)) { in emlxs_mb_init_link() 2167 if (!(vpd->link_speed & LMT_10GB_CAPABLE)) { in emlxs_mb_init_link() 2173 if (!(vpd->link_speed & LMT_16GB_CAPABLE)) { in emlxs_mb_init_link() 2184 if ((linkspeed > 0) && (vpd->feaLevelHigh >= 0x02)) { in emlxs_mb_init_link()
|
H A D | emlxs_els.c | 2661 if ((hba->vpd.feaLevelHigh >= 0x02) && in emlxs_els_reply()
|
/titanic_41/usr/src/uts/common/io/cxgbe/common/ |
H A D | common.c | 34 return (adap->params.vpd.cclk / 1000); in core_ticks_per_usec() 46 return ((us * adap->params.vpd.cclk) / 1000); in us_to_core_ticks() 53 return ((ticks * 1000 + adapter->params.vpd.cclk/2) / in core_ticks_to_us() 54 adapter->params.vpd.cclk); in core_ticks_to_us()
|
H A D | t4_hw.c | 624 u8 vpd[VPD_LEN], csum; in get_vpd_params() local 632 ret = t4_seeprom_read(adapter, VPD_BASE, (u32 *)(vpd)); in get_vpd_params() 633 addr = *vpd == 0x82 ? VPD_BASE : VPD_BASE_OLD; in get_vpd_params() 635 for (i = 0; i < sizeof (vpd); i += 4) { in get_vpd_params() 637 ret = t4_seeprom_read(adapter, addr + i, (u32 *)(vpd + i)); in get_vpd_params() 641 v = (const struct t4_vpd_hdr *)vpd; in get_vpd_params() 654 csum += vpd[i]; in get_vpd_params() 672 (void) memcpy(p->ec, vpd + ec, EC_LEN); in get_vpd_params() 674 i = vpd[sn - VPD_INFO_FLD_HDR_SIZE + 2]; in get_vpd_params() 675 (void) memcpy(p->sn, vpd + sn, min(i, SERNUM_LEN)); in get_vpd_params() [all …]
|
H A D | common.h | 239 struct vpd_params vpd; member
|
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_ioctl.c | 1152 uint8_t *vpd, *vpdptr, *vbuf; in ql_vpd_load() local 1165 if ((vpd = kmem_zalloc(vpd_size, KM_SLEEP)) == NULL) { in ql_vpd_load() 1170 if (ddi_copyin(bp, vpd, vpd_size, mode) != 0) { in ql_vpd_load() 1172 kmem_free(vpd, vpd_size); in ql_vpd_load() 1177 if ((vpdptr = ql_vpd_findtag(ha, vpd, "RV")) == NULL) { in ql_vpd_load() 1179 kmem_free(vpd, vpd_size); in ql_vpd_load() 1185 vbuf = vpd; in ql_vpd_load() 1192 kmem_free(vpd, vpd_size); in ql_vpd_load() 1199 kmem_free(vpd, vpd_size); in ql_vpd_load() 1206 kmem_free(vpd, vpd_size); in ql_vpd_load() [all …]
|
/titanic_41/usr/src/lib/libvscan/common/ |
H A D | libvscan.c | 593 const vs_propdef_t *vpd; in vs_scf_values_get() local 618 if ((vpd = vs_get_propdef(propid)) == NULL) { in vs_scf_values_get() 631 if (scf_pg_get_property(vsc.vscf_pgroup, vpd->vpd_name, in vs_scf_values_get() 634 vs_default_value(prop_hd, vpd->vpd_id); in vs_scf_values_get() 641 if ((rc = vs_scf_get(vpd, prop_hd, &vsc, np)) != VS_ERR_NONE) in vs_scf_values_get() 661 vs_scf_get(const vs_propdef_t *vpd, vs_prop_hd_t *prop_hd, in vs_scf_get() argument 674 vs_default_value(prop_hd, vpd->vpd_id); in vs_scf_get() 681 switch (vpd->vpd_id) { in vs_scf_get() 716 vpd->vpd_type, vep->vep_host, sizeof (vep->vep_host)); in vs_scf_get() 737 (vs_validate(prop_hd, vpd->vpd_id) != VS_ERR_NONE)) { in vs_scf_get() [all …]
|
/titanic_41/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor.c | 3047 } vpd; in tavor_pci_capability_vpd() local 3055 err = tavor_pci_read_vpd(hdl, offset, i << 2, &vpd.vpd_int[i]); in tavor_pci_capability_vpd() 3067 data32 = vpd.vpd_int[i]; in tavor_pci_capability_vpd() 3068 vpd.vpd_char[(i << 2) + 3] = in tavor_pci_capability_vpd() 3070 vpd.vpd_char[(i << 2) + 2] = in tavor_pci_capability_vpd() 3072 vpd.vpd_char[(i << 2) + 1] = in tavor_pci_capability_vpd() 3074 vpd.vpd_char[i << 2] = (uchar_t)(data32 & 0x000000FF); in tavor_pci_capability_vpd() 3079 if (vpd.vpd_char[vpd_str_id] == 0x82) { in tavor_pci_capability_vpd() 3081 name_length = (uint8_t)vpd.vpd_char[vpd_str_id + 1]; in tavor_pci_capability_vpd() 3087 (void) memcpy(state->ts_hca_name, &vpd.vpd_char[vpd_str_id + 3], in tavor_pci_capability_vpd() [all …]
|
/titanic_41/usr/src/uts/common/io/chxge/com/ |
H A D | ch_subr.c | 785 static int t1_eeprom_vpd_get(adapter_t *adapter, chelsio_vpd_t *vpd) in t1_eeprom_vpd_get() argument 789 for (addr = 0; !ret && addr < sizeof (*vpd); addr += sizeof (u32)) in t1_eeprom_vpd_get() 791 (u32 *)((u8 *)vpd + addr)); in t1_eeprom_vpd_get() 801 chelsio_vpd_t vpd; in vpd_macaddress_get() local 803 if (t1_eeprom_vpd_get(adapter, &vpd)) in vpd_macaddress_get() 805 memcpy(mac_addr, vpd.mac_base_address, 5); in vpd_macaddress_get() 806 mac_addr[5] = vpd.mac_base_address[5] + index; in vpd_macaddress_get()
|
/titanic_41/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon.c | 4235 } vpd; in hermon_pci_capability_vpd() local 4243 err = hermon_pci_read_vpd(hdl, offset, i << 2, &vpd.vpd_int[i]); in hermon_pci_capability_vpd() 4253 data32 = vpd.vpd_int[i]; in hermon_pci_capability_vpd() 4254 vpd.vpd_char[(i << 2) + 3] = in hermon_pci_capability_vpd() 4256 vpd.vpd_char[(i << 2) + 2] = in hermon_pci_capability_vpd() 4258 vpd.vpd_char[(i << 2) + 1] = in hermon_pci_capability_vpd() 4260 vpd.vpd_char[i << 2] = (uchar_t)(data32 & 0x000000FF); in hermon_pci_capability_vpd() 4265 if (vpd.vpd_char[vpd_str_id] == 0x82) { in hermon_pci_capability_vpd() 4267 name_length = (uint8_t)vpd.vpd_char[vpd_str_id + 1]; in hermon_pci_capability_vpd() 4273 (void) memcpy(state->hs_hca_name, &vpd.vpd_char[vpd_str_id + 3], in hermon_pci_capability_vpd() [all …]
|
/titanic_41/usr/src/uts/common/io/bnxe/577xx/hsi/mcp/ |
H A D | nvm_map.h | 303 media_vpd_t vpd; /* 0x540 (0x100) */ member
|
/titanic_41/usr/src/uts/common/sys/fibre-channel/fca/emlxs/ |
H A D | emlxs_extern.h | 612 extern int32_t emlxs_parse_vpd(emlxs_hba_t *hba, uint8_t *vpd, 620 emlxs_vpd_t *vpd);
|
H A D | emlxs_fc.h | 1736 emlxs_vpd_t vpd; /* vital product data */ member 2165 #define VPD hba->vpd
|
/titanic_41/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_nexus.c | 1269 sc->params.vpd.cclk = val[1]; in get_params__pre_init() 1884 struct vpd_params *v = &sc->params.vpd; in setup_kstats()
|