/freebsd-current/sys/modules/bios/vpd/ |
H A D | Makefile | 5 KMOD= vpd 6 SRCS= vpd.c \
|
/freebsd-current/sys/dev/ocs_fc/ |
H A D | ocs_vpd.h | 56 * @param vpd pointer to vpd buffer 63 vpdnext(vpdbuf_t *vpd) argument 66 if (vpd->offset < vpd->length) { 67 rc = vpd->buffer[vpd->offset++]; 68 vpd->checksum += rc; 74 * @brief return true if no more vpd buffer data 76 * return true if the vpd buffe 84 vpddone(vpdbuf_t *vpd) argument 99 vpdref(vpdbuf_t *vpd) argument [all...] |
H A D | sli4.c | 1080 * @param vpd Pointer to the buffer. 1085 sli_cmd_read_rev(sli4_t *sli4, void *buf, size_t size, ocs_dma_t *vpd) argument 1093 if (vpd && vpd->size) { 1094 read_rev->vpd = TRUE; 1096 read_rev->available_length = vpd->size; 1098 read_rev->physical_address_low = ocs_addr32_lo(vpd->phys); 1099 read_rev->physical_address_high = ocs_addr32_hi(vpd->phys); 3909 if (sli_cmd_common_get_cntl_attributes(sli4, sli4->bmbx.virt, SLI4_BMBX_SIZE, &sli4->vpd.data)) { 3910 sli4_res_common_get_cntl_attributes_t *attr = sli4->vpd [all...] |
/freebsd-current/sys/modules/bios/ |
H A D | Makefile | 3 SUBDIR= smbios vpd
|
/freebsd-current/stand/powerpc/ofw/ |
H A D | start.c | 70 startup(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) argument
|
/freebsd-current/sys/x86/bios/ |
H A D | vpd.c | 57 struct vpd { struct 76 struct vpd * vpd; member in struct:vpd_softc 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", -1); 197 sc->vpd = RES2VPD(sc->res); 200 snprintf(sc->MachineType, 5, "%.4s", sc->vpd [all...] |
/freebsd-current/share/man/man4/man4.i386/ |
H A D | Makefile | 15 vpd.4
|
/freebsd-current/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; local 110 bars = bridge = caps = errors = verbose = vpd= 0; 161 vpd = 1; 183 bars, bridge, caps, errors, vpd, listmode); 205 int errors, int vpd, int listmode) 299 if (vpd) 588 struct pci_vpd_element *vpd, *end; local 602 vpd = list.plvi_data; 603 end = (struct pci_vpd_element *)((char *)vpd 204 list_devs(const char *name, int verbose, int bars, int bridge, int caps, int errors, int vpd, int listmode) argument [all...] |
/freebsd-current/sys/dev/sfxge/ |
H A D | sfxge_ioc.h | 102 } vpd; member in union:sfxge_ioc_s::__anon4536
|
H A D | sfxge.c | 330 switch (ioc->u.vpd.op) { 332 value.evv_tag = ioc->u.vpd.tag; 333 value.evv_keyword = ioc->u.vpd.keyword; 337 ioc->u.vpd.len = MIN(ioc->u.vpd.len, value.evv_length); 338 if (ioc->u.vpd.payload != 0) { 339 rc = copyout(value.evv_value, ioc->u.vpd.payload, 340 ioc->u.vpd.len); 344 if (ioc->u.vpd.len > sizeof(value.evv_value)) 346 value.evv_tag = ioc->u.vpd [all...] |
/freebsd-current/sys/dev/pci/ |
H A D | pci_user.c | 562 struct pcicfg_vpd *vpd; local 566 vpd = pci_fetch_vpd_list(dev); 567 if (vpd->vpd_reg == 0 || vpd->vpd_ident == NULL) 575 len = sizeof(struct pci_vpd_element) + strlen(vpd->vpd_ident); 576 for (i = 0; i < vpd->vpd_rocnt; i++) 577 len += sizeof(struct pci_vpd_element) + vpd->vpd_ros[i].len; 578 for (i = 0; i < vpd->vpd_wcnt; i++) 579 len += sizeof(struct pci_vpd_element) + vpd->vpd_w[i].len; 594 datalen = strlen(vpd [all...] |
H A D | pci.c | 952 cfg->vpd.vpd_reg = ptr; 1027 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg, 2); 1029 while ((REG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, 2) & 0x8000) != 0x8000) { 1034 *data = (REG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, 4)); 1047 WREG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, data, 4); 1048 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg | 0x8000, 2); 1049 while ((REG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, 2) & 0x8000) == 0x8000) { 1217 struct pcicfg_vpd *vpd; local 1223 vpd = &cfg->vpd; 1251 struct pcicfg_vpd *vpd; local 1280 vpd_free(struct pcicfg_vpd *vpd) argument [all...] |
H A D | pcivar.h | 220 struct pcicfg_vpd vpd; /* Vital product data */ member in struct:pcicfg
|
/freebsd-current/sys/dev/cxgb/common/ |
H A D | cxgb_t3_hw.c | 250 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; 734 * get_desc_len - get the length of a vpd descriptor. 736 * @offset: first byte offset of the vpd descriptor 772 * is_end_tag - Check if a vpd tag is the end tag. 798 * t3_get_vpd_len - computes the length of a vpd structure 800 * @vpd: contains the offset of first byte of vpd 802 * Computes the lentgh of the vpd structure starting at vpd 805 t3_get_vpd_len(adapter_t * adapter, struct generic_vpd *vpd) argument 837 t3_read_vpd(adapter_t *adapter, struct generic_vpd *vpd) argument 862 struct t3_vpd vpd; local 4147 const struct vpd_params *vpd = &adapter->params.vpd; local [all...] |
H A D | cxgb_common.h | 389 struct vpd_params vpd; member in struct:adapter_params 662 return adap->params.vpd.cclk / 1000; 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)] | 479 unsigned port_type = adap->params.vpd.port_type[macidx(mac)]; 544 thres = (adap->params.vpd.cclk * 1000) / 15625;
|
/freebsd-current/tools/tools/ath/athprom/ |
H A D | athprom.c | 448 printVpd(FILE *fd, int vpd) argument 450 fprintf(fd, "[%3d]", vpd); 746 int vpd = atoi(var+6); local 747 if (vpd < pRaw->pDataPerChannel[curchan].pDataPerPDGain[curpdgain].numVpd) 749 pDataPerPDGain[curpdgain].pwr_t4[vpd]); 756 int vpd = atoi(var+3); local 757 if (vpd < pRaw->pDataPerChannel[curchan].pDataPerPDGain[curpdgain].numVpd) 759 pDataPerPDGain[curpdgain].Vpd[vpd]);
|
/freebsd-current/sys/dev/smartpqi/ |
H A D | smartpqi_discovery.c | 890 /* Determine logical volume status from vpd buffer.*/ 899 vpd_volume_status *vpd; local 903 vpd = os_mem_alloc(softs, vpd_size); 904 if (vpd == NULL) 909 (uint8_t *)vpd, vpd_size); 916 if (vpd->page_code != SA_VPD_LV_STATUS) { 921 page_length = offsetof(vpd_volume_status, volume_status) + vpd->page_length; 925 status = vpd->volume_status; 926 offline = (vpd->flags & SA_LV_FLAGS_NO_HOST_IO)!=0; 932 os_mem_free(softs, (char *)vpd, vpd_siz [all...] |
/freebsd-current/sys/dev/aic7xxx/ |
H A D | aic79xx_pci.c | 548 struct vpd_config vpd; local 568 + (sizeof(vpd) * (ahd->channel - 'A'))) / 2; 570 error = ahd_read_seeprom(ahd, (uint16_t *)&vpd, 571 start_addr, sizeof(vpd)/2, 574 error = ahd_parse_vpddata(ahd, &vpd);
|
H A D | aic79xx.h | 988 int ahd_verify_vpd_cksum(struct vpd_config *vpd); 1411 struct vpd_config *vpd);
|
/freebsd-current/sys/dev/cxgbe/common/ |
H A D | common.h | 362 struct vpd_params vpd; member in struct:adapter_params 547 return adap->params.vpd.cclk / 1000; 553 return (us * adap->params.vpd.cclk) / 1000; 560 return ((ticks * 1000 + adapter->params.vpd.cclk/2) / 561 adapter->params.vpd.cclk); 573 return (us * adap->params.vpd.cclk / 1000 >> adap->params.tp.tre);
|
H A D | t4vf_hw.c | 375 adapter->params.vpd.cclk = 50000;
|
H A D | t4_hw.c | 2954 * @vpd: Pointer to buffered vpd data structure 2961 static int get_vpd_keyword_val(const u8 *vpd, const char *kw, int region) argument 2968 vpdr = (const void *)(vpd + offset); 2973 vpdr = (const void *)(vpd + offset); 2985 if (memcmp(vpd + i , kw , 2) == 0){ 2990 i += VPD_INFO_FLD_HDR_SIZE + vpd[i+2]; 3001 * @vpd: caller provided temporary space to read the VPD into 3011 const u8 *vpd = (const u8 *)buf; local 3028 addr = *vpd [all...] |
/freebsd-current/sys/dev/sfxge/common/ |
H A D | siena_nvram.c | 307 __in boolean_t vpd, 372 * the whole of VPD (there is no vpd length in this structure, 375 region = vpd ? vpd_offset + vpd_length : hdr_length; 304 siena_nvram_get_dynamic_cfg( __in efx_nic_t *enp, __in uint32_t partn, __in boolean_t vpd, __out siena_mc_dynamic_config_hdr_t **dcfgp, __out size_t *sizep) argument
|
H A D | siena_impl.h | 172 __in boolean_t vpd,
|