Home
last modified time | relevance | path

Searched refs:PCIR_BAR (Results 1 – 25 of 99) sorted by relevance

1234

/dragonfly/sys/dev/disk/mpt/
H A Dmpt_pci.c457 val = pci_read_config(dev, PCIR_BAR(0), 4); in mpt_pci_attach()
473 mpt_io_bar = PCIR_BAR(mpt_io_bar); in mpt_pci_attach()
486 mpt_mem_bar = PCIR_BAR(mpt_mem_bar); in mpt_pci_attach()
787 mpt->pci_cfg.IO_BAR = pci_read_config(mpt->dev, PCIR_BAR(0), 4);
788 mpt->pci_cfg.Mem0_BAR[0] = pci_read_config(mpt->dev, PCIR_BAR(1), 4);
814 MPT_CHECK(IO_BAR, PCIR_BAR(0), 4);
815 MPT_CHECK(Mem0_BAR[0], PCIR_BAR(1), 4);
816 MPT_CHECK(Mem0_BAR[1], PCIR_BAR(2), 4);
817 MPT_CHECK(Mem1_BAR[0], PCIR_BAR(3), 4);
818 MPT_CHECK(Mem1_BAR[1], PCIR_BAR(4), 4);
[all …]
/dragonfly/sys/dev/netif/oce/
H A Doce_hw.c169 PCIR_BAR(pci_cfg_barnum), sc->devcfg_res); in oce_hw_pci_free()
179 PCIR_BAR(OCE_PCI_CSR_BAR), sc->csr_res); in oce_hw_pci_free()
189 PCIR_BAR(OCE_PCI_DB_BAR), sc->db_res); in oce_hw_pci_free()
262 rr = PCIR_BAR(pci_cfg_barnum); in oce_hw_pci_alloc()
306 rr = PCIR_BAR(OCE_PCI_CSR_BAR); in oce_hw_pci_alloc()
316 rr = PCIR_BAR(OCE_PCI_DB_BAR); in oce_hw_pci_alloc()
/dragonfly/sys/dev/disk/nata/
H A Data-pci.c202 if (ctlr->legacy || pci_read_config(dev, PCIR_BAR(2), 4) & IOMASK) in ata_pci_attach()
296 myrid = PCIR_BAR(0) + (unit << 3); in ata_pci_alloc_resource()
308 myrid = PCIR_BAR(1) + (unit << 3); in ata_pci_alloc_resource()
342 PCIR_BAR(0) + (unit << 3), r); in ata_pci_release_resource()
348 PCIR_BAR(1) + (unit << 3), r); in ata_pci_release_resource()
570 (!pci_read_config(dev, PCIR_BAR(0), 4) && in ata_legacy()
571 !pci_read_config(dev, PCIR_BAR(1), 4) && in ata_legacy()
572 !pci_read_config(dev, PCIR_BAR(2), 4) && in ata_legacy()
573 !pci_read_config(dev, PCIR_BAR(3), 4) && in ata_legacy()
574 !pci_read_config(dev, PCIR_BAR(5), 4))); in ata_legacy()
/dragonfly/sys/dev/sound/pci/
H A Dsolo.c842 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0), sc->io); in ess_release_resources()
847 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(1), sc->sb); in ess_release_resources()
852 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(2), sc->vc); in ess_release_resources()
857 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(3), sc->mpu); in ess_release_resources()
862 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(4), sc->gp); in ess_release_resources()
886 rid = PCIR_BAR(0); in ess_alloc_resources()
889 rid = PCIR_BAR(1); in ess_alloc_resources()
892 rid = PCIR_BAR(2); in ess_alloc_resources()
895 rid = PCIR_BAR(3); in ess_alloc_resources()
898 rid = PCIR_BAR(4); in ess_alloc_resources()
H A Dhdspe.c130 sc->csid = PCIR_BAR(0); in hdspe_alloc_resources()
371 bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(0), sc->cs); in hdspe_detach()
H A Dneomagic.c619 sc->regid = PCIR_BAR(1); in nm_pci_probe()
676 sc->bufid = PCIR_BAR(0); in nm_pci_attach()
679 sc->regid = PCIR_BAR(1); in nm_pci_attach()
/dragonfly/sys/dev/misc/ipmi/
H A Dipmi_pci.c127 sc->ipmi_io_rid = PCIR_BAR(0); in ipmi_pci_attach()
223 sc->ipmi_io_rid = PCIR_BAR(0); in ipmi2_pci_attach()
224 if (PCI_BAR_IO(pci_read_config(dev, PCIR_BAR(0), 4))) in ipmi2_pci_attach()
/dragonfly/sys/dev/raid/ips/
H A Dips_pci.c101 sc->rid = PCIR_BAR(1); in ips_pci_attach()
103 sc->rid = PCIR_BAR(0); in ips_pci_attach()
110 sc->rid = PCIR_BAR(0); in ips_pci_attach()
/dragonfly/sys/dev/disk/buslogic/
H A Dbt_pci.c44 #define BT_PCI_IOADDR PCIR_BAR(0)
45 #define BT_PCI_MEMADDR PCIR_BAR(1)
/dragonfly/sys/dev/drm/include/linux/
H A Dpci.h256 rle = resource_list_find(&dinfo->resources, SYS_RES_MEMORY, PCIR_BAR(bar)); in _pci_get_rle()
259 SYS_RES_IOPORT, PCIR_BAR(bar)); in _pci_get_rle()
277 rid = PCIR_BAR(bar); in pci_resource_start()
280 kprintf("pci_resource_start(0x%p, 0x%x) failed\n", pdev, PCIR_BAR(bar)); in pci_resource_start()
/dragonfly/sys/dev/netif/em/
H A Dif_em.h180 #define EM_BAR_MEM PCIR_BAR(0)
181 #define EM_BAR_FLASH PCIR_BAR(1)
/dragonfly/sys/dev/netif/emx/
H A Dif_emx.h130 #define EMX_BAR_MEM PCIR_BAR(0)
131 #define EMX_BAR_FLASH PCIR_BAR(1)
/dragonfly/sys/bus/pci/
H A Dpci.c750 msix->msix_pba_bar = PCIR_BAR(val & PCIM_MSIX_BIR_MASK); in pci_read_cap_msix()
2728 rid = PCIR_BAR(0); in pci_ata_maps()
2732 rid = PCIR_BAR(1); in pci_ata_maps()
2743 rid = PCIR_BAR(2); in pci_ata_maps()
2747 rid = PCIR_BAR(3); in pci_ata_maps()
2831 rid = PCIR_BAR(0); in ohci_early_takeover()
2896 rid = PCIR_BAR(0); in ehci_early_takeover()
2952 rid = PCIR_BAR(0); in xhci_early_takeover()
3032 (!pci_read_config(dev, PCIR_BAR(0), 4) && in pci_add_resources()
3033 !pci_read_config(dev, PCIR_BAR(2), 4))) ) in pci_add_resources()
[all …]
/dragonfly/sys/dev/raid/mfi/
H A Dmfi_pci.c253 sc->mfi_regs_rid = PCIR_BAR(0); in mfi_pci_attach()
258 sc->mfi_regs_rid = PCIR_BAR(1); in mfi_pci_attach()
/dragonfly/sys/dev/crypto/hifn/
H A Dhifn7751reg.h57 #define HIFN_BAR0 PCIR_BAR(0) /* PUC register map */
58 #define HIFN_BAR1 PCIR_BAR(1) /* DMA register map */
/dragonfly/sys/dev/netif/stge/
H A Dif_stgereg.h92 #define STGE_PCIR_LOIO PCIR_BAR(0)
93 #define STGE_PCIR_LOMEM PCIR_BAR(1)
/dragonfly/sys/dev/disk/nata/chipsets/
H A Data-acerlabs.c152 rid = PCIR_BAR(0) + (unit01 ? 8 : 0); in ata_ali_sata_allocate()
157 rid = PCIR_BAR(1) + (unit01 ? 8 : 0); in ata_ali_sata_allocate()
H A Data-nvidia.c169 if (pci_read_config(dev, PCIR_BAR(5), 1) & 1) in ata_nvidia_chipinit()
173 ctlr->r_rid2 = PCIR_BAR(5); in ata_nvidia_chipinit()
H A Data-via.c113 ctlr->r_rid2 = PCIR_BAR(5); in ata_via_chipinit()
171 rid = PCIR_BAR(ch->unit); in ata_via_allocate()
H A Data-siliconimage.c101 ctlr->r_rid1 = PCIR_BAR(0); in ata_sii_chipinit()
108 ctlr->r_rid2 = PCIR_BAR(2); in ata_sii_chipinit()
134 ctlr->r_rid2 = PCIR_BAR(5); in ata_sii_chipinit()
/dragonfly/sys/dev/disk/sili/
H A Dsili_attach.c159 sc->sc_rid_regs = PCIR_BAR(0); in sili_pci_attach()
170 sc->sc_rid_pregs = PCIR_BAR(2); in sili_pci_attach()
/dragonfly/sys/dev/raid/aac/
H A Daac_pci.c396 rid = PCIR_BAR(0); in aac_pci_attach()
406 rid = PCIR_BAR(1); in aac_pci_attach()
/dragonfly/usr.sbin/pciconf/
H A Dcap.c351 PCIM_DEBUG_PORT_OFFSET, PCIR_BAR(debug_port >> 13)); in cap_debug()
493 table_bar = PCIR_BAR(val & PCIM_MSIX_BIR_MASK); in cap_msix()
495 pba_bar = PCIR_BAR(val & PCIM_MSIX_BIR_MASK); in cap_msix()
/dragonfly/sys/dev/disk/nvme/
H A Dnvme_attach.c119 sc->rid_regs = PCIR_BAR(0); in nvme_pci_attach()
135 sc->rid_bar4 = PCIR_BAR(4); in nvme_pci_attach()
/dragonfly/sys/dev/raid/amr/
H A Damr_pci.c243 rid = PCIR_BAR(0); in amr_pci_attach()
526 PCIR_BAR(0), sc->amr_reg); in amr_pci_free()

1234