Searched refs:vpd (Results 1 - 25 of 33) sorted by relevance

12

/freebsd-11-stable/sys/modules/bios/vpd/
H A DMakefile1 # $FreeBSD: stable/11/sys/modules/bios/vpd/Makefile 319182 2017-05-30 04:11:12Z ngie $
6 KMOD= vpd
7 SRCS= vpd.c \
/freebsd-11-stable/sys/dev/ocs_fc/
H A Docs_vpd.h58 * @param vpd pointer to vpd buffer
65 vpdnext(vpdbuf_t *vpd) argument
68 if (vpd->offset < vpd->length) {
69 rc = vpd->buffer[vpd->offset++];
70 vpd->checksum += rc;
76 * @brief return true if no more vpd buffer data
78 * return true if the vpd buffe
86 vpddone(vpdbuf_t *vpd) argument
101 vpdref(vpdbuf_t *vpd) argument
[all...]
H A Dsli4.c990 * @param vpd Pointer to the buffer.
995 sli_cmd_read_rev(sli4_t *sli4, void *buf, size_t size, ocs_dma_t *vpd) argument
1003 if (vpd && vpd->size) {
1004 read_rev->vpd = TRUE;
1006 read_rev->available_length = vpd->size;
1008 read_rev->physical_address_low = ocs_addr32_lo(vpd->phys);
1009 read_rev->physical_address_high = ocs_addr32_hi(vpd->phys);
3803 if (sli_cmd_common_get_cntl_attributes(sli4, sli4->bmbx.virt, SLI4_BMBX_SIZE, &sli4->vpd.data)) {
3804 sli4_res_common_get_cntl_attributes_t *attr = sli4->vpd
[all...]
/freebsd-11-stable/sys/modules/bios/
H A DMakefile4 SUBDIR= smbios vpd
/freebsd-11-stable/stand/powerpc/ofw/
H A Dstart.c73 startup(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) argument
/freebsd-11-stable/sys/x86/bios/
H A Dvpd.c57 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))
104 static int vpd_cksum (struct vpd *);
106 static SYSCTL_NODE(_hw, OID_AUTO, vpd, CTLFLAG_RD, NULL, NULL);
131 child = BUS_ADD_CHILD(parent, 5, "vpd", -1);
184 sc->vpd = RES2VPD(sc->res);
187 snprintf(sc->MachineType, 5, "%.4s", sc->vpd
[all...]
/freebsd-11-stable/share/man/man4/man4.i386/
H A DMakefile33 vpd.4 \
/freebsd-11-stable/usr.sbin/pciconf/
H A Dpciconf.c76 int caps, int errors, int vpd);
104 int bars, bridge, caps, errors, verbose, vpd; local
108 bars = bridge = caps = errors = verbose = vpd = byte = isshort = 0;
154 vpd = 1;
170 bars, bridge, caps, errors, vpd);
188 int errors, int vpd)
264 if (vpd)
553 struct pci_vpd_element *vpd, *end; local
567 vpd = list.plvi_data;
568 end = (struct pci_vpd_element *)((char *)vpd
187 list_devs(const char *name, int verbose, int bars, int bridge, int caps, int errors, int vpd) argument
[all...]
/freebsd-11-stable/sys/dev/sfxge/
H A Dsfxge_ioc.h104 } vpd; member in union:sfxge_ioc_s::__anon11636
H A Dsfxge.c333 switch (ioc->u.vpd.op) {
335 value.evv_tag = ioc->u.vpd.tag;
336 value.evv_keyword = ioc->u.vpd.keyword;
340 ioc->u.vpd.len = MIN(ioc->u.vpd.len, value.evv_length);
341 if (ioc->u.vpd.payload != 0) {
342 rc = copyout(value.evv_value, ioc->u.vpd.payload,
343 ioc->u.vpd.len);
347 if (ioc->u.vpd.len > sizeof(value.evv_value))
349 value.evv_tag = ioc->u.vpd
[all...]
/freebsd-11-stable/sys/dev/pci/
H A Dpci_user.c421 struct pcicfg_vpd *vpd; local
425 vpd = pci_fetch_vpd_list(dev);
426 if (vpd->vpd_reg == 0 || vpd->vpd_ident == NULL)
434 len = sizeof(struct pci_vpd_element) + strlen(vpd->vpd_ident);
435 for (i = 0; i < vpd->vpd_rocnt; i++)
436 len += sizeof(struct pci_vpd_element) + vpd->vpd_ros[i].len;
437 for (i = 0; i < vpd->vpd_wcnt; i++)
438 len += sizeof(struct pci_vpd_element) + vpd->vpd_w[i].len;
457 vpd_element.pve_datalen = strlen(vpd
[all...]
H A Dpci.c912 cfg->vpd.vpd_reg = ptr;
987 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg, 2);
989 while ((REG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, 2) & 0x8000) != 0x8000) {
994 *data = (REG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, 4));
1007 WREG(cfg->vpd.vpd_reg + PCIR_VPD_DATA, data, 4);
1008 WREG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, reg | 0x8000, 2);
1009 while ((REG(cfg->vpd.vpd_reg + PCIR_VPD_ADDR, 2) & 0x8000) == 0x8000) {
1068 /* init vpd reader */
1086 printf("vpd: val: %#x, off: %d, bytesinval: %d, byte: %#hhx, " \
1116 cfg->vpd
[all...]
H A Dpcivar.h216 struct pcicfg_vpd vpd; /* Vital product data */ member in struct:pcicfg
/freebsd-11-stable/sys/dev/cxgb/common/
H A Dcxgb_t3_hw.c252 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1;
736 * get_desc_len - get the length of a vpd descriptor.
738 * @offset: first byte offset of the vpd descriptor
774 * is_end_tag - Check if a vpd tag is the end tag.
800 * t3_get_vpd_len - computes the length of a vpd structure
802 * @vpd: contains the offset of first byte of vpd
804 * Computes the lentgh of the vpd structure starting at vpd
807 t3_get_vpd_len(adapter_t * adapter, struct generic_vpd *vpd) argument
839 t3_read_vpd(adapter_t *adapter, struct generic_vpd *vpd) argument
864 struct t3_vpd vpd; local
4149 const struct vpd_params *vpd = &adapter->params.vpd; local
[all...]
H A Dcxgb_common.h390 struct vpd_params vpd; member in struct:adapter_params
663 return adap->params.vpd.cclk / 1000;
717 int t3_get_vpd_len(adapter_t *adapter, struct generic_vpd *vpd);
718 int t3_read_vpd(adapter_t *adapter, struct generic_vpd *vpd);
H A Dcxgb_xgmac.c77 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] |
469 unsigned port_type = adap->params.vpd.port_type[macidx(mac)];
534 thres = (adap->params.vpd.cclk * 1000) / 15625;
/freebsd-11-stable/tools/tools/ath/athprom/
H A Dathprom.c449 printVpd(FILE *fd, int vpd) argument
451 fprintf(fd, "[%3d]", vpd);
747 int vpd = atoi(var+6); local
748 if (vpd < pRaw->pDataPerChannel[curchan].pDataPerPDGain[curpdgain].numVpd)
750 pDataPerPDGain[curpdgain].pwr_t4[vpd]);
757 int vpd = atoi(var+3); local
758 if (vpd < pRaw->pDataPerChannel[curchan].pDataPerPDGain[curpdgain].numVpd)
760 pDataPerPDGain[curpdgain].Vpd[vpd]);
/freebsd-11-stable/sys/dev/cxgbe/common/
H A Dcommon.h332 struct vpd_params vpd; member in struct:adapter_params
503 return adap->params.vpd.cclk / 1000;
509 return (us * adap->params.vpd.cclk) / 1000;
516 return ((ticks * 1000 + adapter->params.vpd.cclk/2) /
517 adapter->params.vpd.cclk);
529 return (us * adap->params.vpd.cclk / 1000 >> adap->params.tp.tre);
H A Dt4vf_hw.c377 adapter->params.vpd.cclk = 50000;
H A Dt4_hw.c2959 * @vpd: Pointer to buffered vpd data structure
2966 static int get_vpd_keyword_val(const u8 *vpd, const char *kw, int region) argument
2973 vpdr = (const void *)(vpd + offset);
2978 vpdr = (const void *)(vpd + offset);
2990 if (memcmp(vpd + i , kw , 2) == 0){
2995 i += VPD_INFO_FLD_HDR_SIZE + vpd[i+2];
3006 * @vpd: caller provided temporary space to read the VPD into
3016 const u8 *vpd = (const u8 *)buf; local
3033 addr = *vpd
[all...]
/freebsd-11-stable/sys/dev/aic7xxx/
H A Daic79xx_pci.c554 struct vpd_config vpd; local
574 + (sizeof(vpd) * (ahd->channel - 'A'))) / 2;
576 error = ahd_read_seeprom(ahd, (uint16_t *)&vpd,
577 start_addr, sizeof(vpd)/2,
580 error = ahd_parse_vpddata(ahd, &vpd);
H A Daic79xx.h990 int ahd_verify_vpd_cksum(struct vpd_config *vpd);
1415 struct vpd_config *vpd);
/freebsd-11-stable/sys/dev/sfxge/common/
H A Dsiena_nvram.c307 __in boolean_t vpd,
367 * the whole of VPD (there is no vpd length in this structure,
370 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 Dsiena_impl.h163 __in boolean_t vpd,
/freebsd-11-stable/stand/powerpc/boot1.chrp/
H A Dboot1.c120 ofw_init(void *vpd, int res, int (*openfirm)(void *), char *arg, int argl) argument

Completed in 392 milliseconds

12