/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_vpd.h | 63 vpdnext(vpdbuf_t *vpd) in vpdnext() argument 66 if (vpd->offset < vpd->length) { in vpdnext() 67 rc = vpd->buffer[vpd->offset++]; in vpdnext() 68 vpd->checksum += rc; in vpdnext() 84 vpddone(vpdbuf_t *vpd) in vpddone() argument 86 return vpd->offset >= vpd->length; in vpddone() 99 vpdref(vpdbuf_t *vpd) in vpdref() argument 101 return &vpd->buffer[vpd->offset]; in vpdref()
|
H A D | sli4.c | 1085 sli_cmd_read_rev(sli4_t *sli4, void *buf, size_t size, ocs_dma_t *vpd) in sli_cmd_read_rev() argument 1093 if (vpd && vpd->size) { in sli_cmd_read_rev() 1094 read_rev->vpd = TRUE; in sli_cmd_read_rev() 1096 read_rev->available_length = vpd->size; in sli_cmd_read_rev() 1098 read_rev->physical_address_low = ocs_addr32_lo(vpd->phys); in sli_cmd_read_rev() 1099 read_rev->physical_address_high = ocs_addr32_hi(vpd->phys); in sli_cmd_read_rev() 3909 if (sli_cmd_common_get_cntl_attributes(sli4, sli4->bmbx.virt, SLI4_BMBX_SIZE, &sli4->vpd.data)) { in sli_get_config() 3910 sli4_res_common_get_cntl_attributes_t *attr = sli4->vpd.data.virt; in sli_get_config() 3976 if (sli_cmd_read_rev(sli4, sli4->bmbx.virt, SLI4_BMBX_SIZE, &sli4->vpd.data)) { in sli_get_config() 4013 sli4->vpd.length = read_rev->returned_vpd_length; in sli_get_config() [all …]
|
/freebsd/sys/x86/bios/ |
H A D | vpd.c | 57 struct vpd { struct 76 struct vpd * vpd; member 93 #define RES2VPD(res) ((struct vpd *)rman_get_virtual(res)) 94 #define ADDR2VPD(addr) ((struct vpd *)BIOS_PADDRTOVADDR(addr)) 102 static int vpd_cksum (struct vpd *); 104 static SYSCTL_NODE(_hw, OID_AUTO, vpd, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, 144 child = BUS_ADD_CHILD(parent, 5, "vpd", DEVICE_UNIT_ANY); in vpd_identify() 197 sc->vpd = RES2VPD(sc->res); in vpd_attach() 200 snprintf(sc->MachineType, 5, "%.4s", sc->vpd in vpd_attach() [all...] |
/freebsd/usr.sbin/pciconf/ |
H A D | pciconf.c | 74 int caps, int errors, int vpd, int listmode); 107 int bars, bridge, caps, errors, verbose, vpd; in main() local 110 bars = bridge = caps = errors = verbose = vpd= 0; in main() 161 vpd = 1; in main() 183 bars, bridge, caps, errors, vpd, listmode); in main() 205 int errors, int vpd, int listmode) in list_devs() argument 299 if (vpd) in list_devs() 588 struct pci_vpd_element *vpd, *end; in list_vpd() local 602 vpd = list.plvi_data; in list_vpd() 603 end = (struct pci_vpd_element *)((char *)vpd + list.plvi_len); in list_vpd() [all …]
|
/freebsd/sys/dev/pci/ |
H A D | pci_user.c | 562 struct pcicfg_vpd *vpd; in pci_list_vpd() local 566 vpd = pci_fetch_vpd_list(dev); in pci_list_vpd() 567 if (vpd->vpd_reg == 0 || vpd->vpd_ident == NULL) in pci_list_vpd() 575 len = sizeof(struct pci_vpd_element) + strlen(vpd->vpd_ident); in pci_list_vpd() 576 for (i = 0; i < vpd->vpd_rocnt; i++) in pci_list_vpd() 577 len += sizeof(struct pci_vpd_element) + vpd->vpd_ros[i].len; in pci_list_vpd() 578 for (i = 0; i < vpd->vpd_wcnt; i++) in pci_list_vpd() 579 len += sizeof(struct pci_vpd_element) + vpd->vpd_w[i].len; in pci_list_vpd() 594 datalen = strlen(vpd->vpd_ident); in pci_list_vpd() 604 error = copyout(vpd->vpd_ident, vpd_user->pve_data, datalen); in pci_list_vpd() [all …]
|
H A D | pci.c | 944 cfg->vpd.vpd_reg = ptr; in pci_read_cap() 1019 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg, 2); in pci_read_vpd_reg() 1021 while ((REG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, 2) & 0x8000) != 0x8000) { in pci_read_vpd_reg() 1026 *data = (REG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, 4)); in pci_read_vpd_reg() 1039 WREG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, data, 4); 1040 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg | 0x8000, 2); 1041 while ((REG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, 2) & 0x8000) == 0x8000) { 1209 struct pcicfg_vpd *vpd; in next_vpd_ro_elem() local 1215 vpd = &cfg->vpd; in next_vpd_ro_elem() 1219 vpd->vpd_ros = alloc_buffer(vpd->vpd_ros, sizeof(*vpd->vpd_ros), vpd->vpd_rocnt); in next_vpd_ro_elem() [all …]
|
/freebsd/sys/modules/bios/vpd/ |
H A D | Makefile | 5 KMOD= vpd 6 SRCS= vpd.c \
|
/freebsd/sys/dev/cxgb/common/ |
H A D | cxgb_t3_hw.c | 250 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; in mi1_init() 805 int t3_get_vpd_len(adapter_t * adapter, struct generic_vpd *vpd) in t3_get_vpd_len() argument 810 offset = vpd->offset; in t3_get_vpd_len() 812 while (offset < (vpd->offset + MAX_VPD_BYTES)) { in t3_get_vpd_len() 837 int t3_read_vpd(adapter_t *adapter, struct generic_vpd *vpd) in t3_read_vpd() argument 841 for (i = 0; i < vpd->len; i += 4) { in t3_read_vpd() 842 ret = t3_seeprom_read(adapter, vpd->offset + i, in t3_read_vpd() 843 (u32 *) &(vpd->data[i])); in t3_read_vpd() 862 struct t3_vpd vpd; in get_vpd_params() local 868 ret = t3_seeprom_read(adapter, VPD_BASE, (u32 *)&vpd); in get_vpd_params() [all …]
|
H A D | cxgb_common.h | 389 struct vpd_params vpd; member 662 return adap->params.vpd.cclk / 1000; in core_ticks_per_usec() 716 int t3_get_vpd_len(adapter_t *adapter, struct generic_vpd *vpd); 717 int t3_read_vpd(adapter_t *adapter, struct generic_vpd *vpd);
|
H A D | cxgb_xgmac.c | 76 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | in xaui_serdes_reset() 479 unsigned port_type = adap->params.vpd.port_type[macidx(mac)]; in t3_mac_set_mtu() 544 thres = (adap->params.vpd.cclk * 1000) / 15625; in t3_mac_set_mtu()
|
/freebsd/sys/dev/sfxge/ |
H A D | sfxge.c | 330 switch (ioc->u.vpd.op) { in sfxge_vpd_ioctl() 332 value.evv_tag = ioc->u.vpd.tag; in sfxge_vpd_ioctl() 333 value.evv_keyword = ioc->u.vpd.keyword; in sfxge_vpd_ioctl() 337 ioc->u.vpd.len = MIN(ioc->u.vpd.len, value.evv_length); in sfxge_vpd_ioctl() 338 if (ioc->u.vpd.payload != 0) { in sfxge_vpd_ioctl() 339 rc = copyout(value.evv_value, ioc->u.vpd.payload, in sfxge_vpd_ioctl() 340 ioc->u.vpd.len); in sfxge_vpd_ioctl() 344 if (ioc->u.vpd.len > sizeof(value.evv_value)) in sfxge_vpd_ioctl() 346 value.evv_tag = ioc->u.vpd.tag; in sfxge_vpd_ioctl() 347 value.evv_keyword = ioc->u.vpd.keyword; in sfxge_vpd_ioctl() [all …]
|
H A D | sfxge_ioc.h | 102 } vpd; member
|
/freebsd/sys/modules/bios/ |
H A D | Makefile | 3 SUBDIR= smbios vpd
|
/freebsd/stand/powerpc/ofw/ |
H A D | start.c | 70 startup(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) in startup() argument
|
/freebsd/tools/tools/ath/athprom/ |
H A D | athprom.c | 448 printVpd(FILE *fd, int vpd) in printVpd() argument 450 fprintf(fd, "[%3d]", vpd); in printVpd() 746 int vpd = atoi(var+6); in eevar() local 747 if (vpd < pRaw->pDataPerChannel[curchan].pDataPerPDGain[curpdgain].numVpd) in eevar() 749 pDataPerPDGain[curpdgain].pwr_t4[vpd]); in eevar() 756 int vpd = atoi(var+3); in eevar() local 757 if (vpd < pRaw->pDataPerChannel[curchan].pDataPerPDGain[curpdgain].numVpd) in eevar() 759 pDataPerPDGain[curpdgain].Vpd[vpd]); in eevar()
|
/freebsd/sys/dev/aic7xxx/ |
H A D | aic79xx_pci.c | 548 struct vpd_config vpd; 568 + (sizeof(vpd) * (ahd->channel - 'A'))) / 2; in ahd_check_extport() 570 error = ahd_read_seeprom(ahd, (uint16_t *)&vpd, in ahd_check_extport() 571 start_addr, sizeof(vpd)/2, in ahd_check_extport() 574 error = ahd_parse_vpddata(ahd, &vpd); in ahd_check_extport() 554 struct vpd_config vpd; ahd_check_extport() local
|
H A D | aic79xx.h | 988 int ahd_verify_vpd_cksum(struct vpd_config *vpd); 1411 struct vpd_config *vpd);
|
/freebsd/share/man/man4/man4.i386/ |
H A D | Makefile | 14 vpd.4
|
/freebsd/sys/dev/cxgbe/common/ |
H A D | common.h | 362 struct vpd_params vpd; member 547 return adap->params.vpd.cclk / 1000; in core_ticks_per_usec() 553 return (us * adap->params.vpd.cclk) / 1000; in us_to_core_ticks() 560 return ((ticks * 1000 + adapter->params.vpd.cclk/2) / in core_ticks_to_us() 561 adapter->params.vpd.cclk); in core_ticks_to_us() 573 return (us * adap->params.vpd.cclk / 1000 >> adap->params.tp.tre); in us_to_tcp_ticks()
|
H A D | t4_hw.c | 2961 static int get_vpd_keyword_val(const u8 *vpd, const char *kw, int region) in get_vpd_keyword_val() argument 2968 vpdr = (const void *)(vpd + offset); in get_vpd_keyword_val() 2973 vpdr = (const void *)(vpd + offset); in get_vpd_keyword_val() 2985 if (memcmp(vpd + i , kw , 2) == 0){ in get_vpd_keyword_val() 2990 i += VPD_INFO_FLD_HDR_SIZE + vpd[i+2]; in get_vpd_keyword_val() 3011 const u8 *vpd = (const u8 *)buf; in get_vpd_params() local 3028 addr = *vpd == CHELSIO_VPD_UNIQUE_ID ? VPD_BASE : VPD_BASE_OLD; in get_vpd_params() 3037 var = get_vpd_keyword_val(vpd, name, 0); \ in get_vpd_params() 3046 csum += vpd[i]; in get_vpd_params() 3060 memcpy(p->id, vpd + offsetof(struct t4_vpd_hdr, id_data), ID_LEN); in get_vpd_params() [all …]
|
H A D | t4vf_hw.c | 378 adapter->params.vpd.cclk = 50000; in t4vf_prep_adapter()
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_discovery.c | 899 vpd_volume_status *vpd; in pqisrc_get_dev_vol_status() local 903 vpd = os_mem_alloc(softs, vpd_size); in pqisrc_get_dev_vol_status() 904 if (vpd == NULL) in pqisrc_get_dev_vol_status() 909 (uint8_t *)vpd, vpd_size); in pqisrc_get_dev_vol_status() 916 if (vpd->page_code != SA_VPD_LV_STATUS) { in pqisrc_get_dev_vol_status() 921 page_length = offsetof(vpd_volume_status, volume_status) + vpd->page_length; in pqisrc_get_dev_vol_status() 925 status = vpd->volume_status; in pqisrc_get_dev_vol_status() 926 offline = (vpd->flags & SA_LV_FLAGS_NO_HOST_IO)!=0; in pqisrc_get_dev_vol_status() 932 os_mem_free(softs, (char *)vpd, vpd_size); in pqisrc_get_dev_vol_status()
|
/freebsd/sys/dev/sfxge/common/ |
H A D | siena_nvram.c | 307 __in boolean_t vpd, in siena_nvram_get_dynamic_cfg() argument 375 region = vpd ? vpd_offset + vpd_length : hdr_length; in siena_nvram_get_dynamic_cfg()
|
H A D | siena_impl.h | 172 __in boolean_t vpd,
|
/freebsd/sys/dev/cxgb/ |
H A D | cxgb_main.c | 662 sc->params.vpd.ec, sc->params.vpd.sn); in cxgb_controller_attach() 665 sc->params.vpd.port_type[0], sc->params.vpd.port_type[1], in cxgb_controller_attach() 666 sc->params.vpd.port_type[2], sc->params.vpd.port_type[3]); in cxgb_controller_attach()
|