Home
last modified time | relevance | path

Searched refs:hdrtype (Results 1 – 13 of 13) sorted by relevance

/freebsd-12.1/sys/arm/annapurna/alpine/
H A Dalpine_pci.c124 uint8_t hdrtype; in al_pcib_fixup() local
132 hdrtype = PCIB_READ_CONFIG(dev, bus, slot, func, in al_pcib_fixup()
135 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in al_pcib_fixup()
138 if (func == 0 && (hdrtype & PCIM_MFDEV) != 0) in al_pcib_fixup()
/freebsd-12.1/sys/powerpc/ofw/
H A Dofw_pcibus.c241 uint8_t hdrtype; in ofw_pcibus_enum_bus() local
250 hdrtype = PCIB_READ_CONFIG(pcib, busno, s, f, PCIR_HDRTYPE, 1); in ofw_pcibus_enum_bus()
251 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in ofw_pcibus_enum_bus()
253 if (hdrtype & PCIM_MFDEV) in ofw_pcibus_enum_bus()
/freebsd-12.1/sys/mips/cavium/
H A Doctopci.c558 uint8_t hdrtype; in octopci_init_device() local
561 hdrtype = octopci_read_config(dev, b, s, f, PCIR_HDRTYPE, 1); in octopci_init_device()
573 switch (hdrtype & PCIM_HDRTYPE) { in octopci_init_device()
585 b, s, f, hdrtype); in octopci_init_device()
714 uint8_t hdrtype; in octopci_init_bus() local
721 hdrtype = octopci_read_config(dev, b, s, f, PCIR_HDRTYPE, 1); in octopci_init_bus()
723 if (hdrtype == 0xff) { in octopci_init_bus()
731 if (f == 0 && (hdrtype & PCIM_MFDEV) == 0) in octopci_init_bus()
/freebsd-12.1/sys/x86/pci/
H A Dpci_bus.c381 uint8_t hdrtype; in legacy_pcib_identify() local
405 hdrtype = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_identify()
413 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in legacy_pcib_identify()
415 if ((hdrtype & PCIM_MFDEV) && in legacy_pcib_identify()
416 (!found_orion || hdrtype != 0xff)) in legacy_pcib_identify()
/freebsd-12.1/sys/mips/nlm/
H A Dxlp_pci.c89 uint8_t hdrtype; in xlp_pci_attach() local
101 hdrtype = PCIB_READ_CONFIG(pcib, busno, s, f, PCIR_HDRTYPE, 1); in xlp_pci_attach()
102 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in xlp_pci_attach()
104 if (hdrtype & PCIM_MFDEV) in xlp_pci_attach()
/freebsd-12.1/sys/powerpc/mpc85xx/
H A Dpci_mpc85xx.c565 uint8_t command, hdrtype, subclass; in fsl_pcib_init() local
571 hdrtype = fsl_pcib_read_config(sc->sc_dev, bus, slot, in fsl_pcib_init()
574 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in fsl_pcib_init()
577 if (func == 0 && (hdrtype & PCIM_MFDEV)) in fsl_pcib_init()
606 if (hdrtype != PCIM_HDRTYPE_BRIDGE) in fsl_pcib_init()
/freebsd-12.1/sys/arm/mv/
H A Dmv_pci.c812 uint8_t hdrtype, command, class, subclass; in mv_pcib_init() local
817 hdrtype = mv_pcib_read_config(sc->sc_dev, bus, slot, in mv_pcib_init()
820 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in mv_pcib_init()
823 if (func == 0 && (hdrtype & PCIM_MFDEV)) in mv_pcib_init()
833 hdrtype); in mv_pcib_init()
865 int func, int hdrtype) in mv_pcib_init_all_bars() argument
869 maxbar = (hdrtype & PCIM_HDRTYPE) ? 0 : 6; in mv_pcib_init_all_bars()
/freebsd-12.1/sys/dev/pci/
H A Dpci.c606 cfg->hdrtype = PCIM_HDRTYPE_BRIDGE; in pci_fixancient()
615 switch (cfg->hdrtype & PCIM_HDRTYPE) { in pci_hdrtypedata()
691 cfg->hdrtype = REG(PCIR_HDRTYPE, 1); in pci_fill_devinfo()
698 cfg->hdrtype &= ~PCIM_MFDEV; in pci_fill_devinfo()
820 switch (cfg->hdrtype & PCIM_HDRTYPE) { in pci_read_cap()
4064 uint8_t hdrtype; in pci_add_children() local
4088 hdrtype = REG(PCIR_HDRTYPE, 1); in pci_add_children()
4091 if (hdrtype & PCIM_MFDEV) in pci_add_children()
4107 uint8_t hdrtype; in pci_rescan_method() local
4132 hdrtype = REG(PCIR_HDRTYPE, 1); in pci_rescan_method()
[all …]
H A Dpcivar.h197 uint8_t hdrtype; /* chip config header type */ member
/freebsd-12.1/sys/dev/hyperv/pcib/
H A Dvmbus_pcib.c614 uint8_t hdrtype; in pci_rescan() local
640 hdrtype = REG(PCIR_HDRTYPE, 1); in pci_rescan()
641 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in pci_rescan()
643 if (hdrtype & PCIM_MFDEV) in pci_rescan()
/freebsd-12.1/sys/amd64/vmm/io/
H A Dppt.c140 if ((dinfo->cfg.hdrtype & PCIM_HDRTYPE) != PCIM_HDRTYPE_NORMAL) in ppt_probe()
/freebsd-12.1/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_sendrecv.c3707 int hdrtype; in zfs_receive_impl() local
3767 hdrtype = DMU_GET_STREAM_HDRTYPE(drrb->drr_versioninfo); in zfs_receive_impl()
3770 (hdrtype != DMU_SUBSTREAM && hdrtype != DMU_COMPOUNDSTREAM)) { in zfs_receive_impl()
/freebsd-12.1/sys/dev/cxgb/
H A Dcxgb_main.c1163 switch (cfg->hdrtype & PCIM_HDRTYPE) { in t3_os_find_pci_capability()