sys/arm/mv/mv_pci.c
739
reg = PCIR_BAR(barno);
sys/arm64/cavium/thunder_pcie_pem.c
779
rid = PCIR_BAR(0);
sys/compat/linuxkpi/common/include/linux/pci.h
417
pm = pci_find_bar(pdev->dev.bsddev, PCIR_BAR(bar));
sys/compat/linuxkpi/common/src/linux_pci.c
1157
bar = PCIR_BAR(bar);
sys/compat/linuxkpi/common/src/linux_pci.c
1229
rid = PCIR_BAR(bar);
sys/compat/linuxkpi/common/src/linux_pci.c
1235
__func__, bar, type, PCIR_BAR(bar));
sys/compat/linuxkpi/common/src/linux_pci.c
1258
mmio->rid = PCIR_BAR(bar);
sys/compat/linuxkpi/common/src/linux_pci.c
848
if (mmio->type == type && mmio->rid == PCIR_BAR(bar)) {
sys/compat/linuxkpi/common/src/linux_pci.c
854
mmio->rid = PCIR_BAR(bar);
sys/compat/linuxkpi/common/src/linux_pci.c
861
__func__, bar, type, PCIR_BAR(bar));
sys/crypto/ccp/ccp_hardware.c
344
sc->pci_resource_id = PCIR_BAR(2);
sys/crypto/ccp/ccp_hardware.c
352
sc->pci_resource_id_msix = PCIR_BAR(5);
sys/dev/aac/aac_pci.c
396
rid = PCIR_BAR(0);
sys/dev/aac/aac_pci.c
406
rid = PCIR_BAR(1);
sys/dev/aacraid/aacraid_pci.c
204
sc->aac_regs_rid0 = PCIR_BAR(0);
sys/dev/aacraid/aacraid_pci.c
214
sc->aac_regs_rid1 = PCIR_BAR(2);
sys/dev/adlink/adlink.c
374
{ SYS_RES_IOPORT, PCIR_BAR(0), RF_ACTIVE},
sys/dev/adlink/adlink.c
375
{ SYS_RES_IOPORT, PCIR_BAR(1), RF_ACTIVE},
sys/dev/ae/if_ae.c
90
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/age/if_age.c
184
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/agp/agpreg.h
35
#define AGP_APBASE PCIR_BAR(0)
sys/dev/ahci/ahci_pci.c
513
ctlr->r_rid = PCIR_BAR(0);
sys/dev/ahci/ahci_pci.c
515
ctlr->r_rid = PCIR_BAR(5);
sys/dev/aic7xxx/aic79xx.h
1362
#define AHD_PCI_IOADDR0 PCIR_BAR(0) /* I/O BAR*/
sys/dev/aic7xxx/aic79xx.h
1363
#define AHD_PCI_MEMADDR PCIR_BAR(1) /* Memory BAR */
sys/dev/aic7xxx/aic79xx.h
1364
#define AHD_PCI_IOADDR1 PCIR_BAR(3) /* Second I/O BAR */
sys/dev/aic7xxx/aic7xxx.h
1155
#define AHC_PCI_IOADDR PCIR_BAR(0) /* I/O Address */
sys/dev/aic7xxx/aic7xxx.h
1156
#define AHC_PCI_MEMADDR PCIR_BAR(1) /* Mem I/O Address */
sys/dev/al_eth/al_eth.c
302
bar_udma = PCIR_BAR(AL_ETH_UDMA_BAR);
sys/dev/al_eth/al_eth.c
313
bar_mac = PCIR_BAR(AL_ETH_MAC_BAR);
sys/dev/al_eth/al_eth.c
325
bar_ec = PCIR_BAR(AL_ETH_EC_BAR);
sys/dev/alc/if_alc.c
252
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/ale/if_ale.c
181
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/alpm/alpm.c
102
#define SMBBA PCIR_BAR(1)
sys/dev/amdsmb/amdsmb.c
149
amdsmb_sc->rid = PCIR_BAR(0);
sys/dev/aq/aq_main.c
342
softc->mmio_rid = PCIR_BAR(0);
sys/dev/arcmsr/arcmsr.c
4570
bus_release_resource(acb->pci_dev, SYS_RES_MEMORY, PCIR_BAR(0), acb->sys_res_arcmsr[0]);
sys/dev/arcmsr/arcmsr.c
4574
bus_release_resource(acb->pci_dev, SYS_RES_MEMORY, PCIR_BAR(0), acb->sys_res_arcmsr[0]);
sys/dev/arcmsr/arcmsr.c
4576
bus_release_resource(acb->pci_dev, SYS_RES_MEMORY, PCIR_BAR(2), acb->sys_res_arcmsr[1]);
sys/dev/arcmsr/arcmsr.c
4580
bus_release_resource(acb->pci_dev, SYS_RES_MEMORY, PCIR_BAR(1), acb->sys_res_arcmsr[0]);
sys/dev/arcmsr/arcmsr.c
4584
bus_release_resource(acb->pci_dev, SYS_RES_MEMORY, PCIR_BAR(0), acb->sys_res_arcmsr[0]);
sys/dev/arcmsr/arcmsr.c
4588
bus_release_resource(acb->pci_dev, SYS_RES_MEMORY, PCIR_BAR(1), acb->sys_res_arcmsr[0]);
sys/dev/arcmsr/arcmsr.c
4592
bus_release_resource(acb->pci_dev, SYS_RES_MEMORY, PCIR_BAR(0), acb->sys_res_arcmsr[0]);
sys/dev/arcmsr/arcmsr.c
4713
u_int32_t rid0 = PCIR_BAR(0);
sys/dev/arcmsr/arcmsr.c
4740
u_int32_t rid[]={ PCIR_BAR(0), PCIR_BAR(2) };
sys/dev/arcmsr/arcmsr.c
4772
u_int32_t rid0 = PCIR_BAR(1);
sys/dev/arcmsr/arcmsr.c
4799
u_int32_t rid0 = PCIR_BAR(0);
sys/dev/arcmsr/arcmsr.c
4826
u_int32_t rid0 = PCIR_BAR(1);
sys/dev/arcmsr/arcmsr.c
4858
u_int32_t rid0 = PCIR_BAR(0);
sys/dev/ata/ata-pci.c
238
myrid = PCIR_BAR(0) + (unit << 3);
sys/dev/ata/ata-pci.c
250
myrid = PCIR_BAR(1) + (unit << 3);
sys/dev/ata/ata-pci.c
778
(!pci_read_config(dev, PCIR_BAR(0), 4) &&
sys/dev/ata/ata-pci.c
779
!pci_read_config(dev, PCIR_BAR(1), 4) &&
sys/dev/ata/ata-pci.c
780
!pci_read_config(dev, PCIR_BAR(2), 4) &&
sys/dev/ata/ata-pci.c
781
!pci_read_config(dev, PCIR_BAR(3), 4) &&
sys/dev/ata/ata-pci.c
782
!pci_read_config(dev, PCIR_BAR(5), 4)));
sys/dev/ata/ata-pci.c
92
if (ctlr->legacy || pci_read_config(dev, PCIR_BAR(2), 4) & IOMASK)
sys/dev/ata/chipsets/ata-acerlabs.c
122
rid = PCIR_BAR(i);
sys/dev/ata/chipsets/ata-acerlabs.c
129
PCIR_BAR(i), res->bars[i]);
sys/dev/ata/chipsets/ata-acerlabs.c
182
PCIR_BAR(i), res->bars[i]);
sys/dev/ata/chipsets/ata-intel.c
229
ctlr->r_rid2 = PCIR_BAR(0);
sys/dev/ata/chipsets/ata-intel.c
269
ctlr->r_rid2 = PCIR_BAR(5);
sys/dev/ata/chipsets/ata-intel.c
284
ctlr->r_rid2 = PCIR_BAR(5);
sys/dev/ata/chipsets/ata-nvidia.c
199
if (pci_read_config(dev, PCIR_BAR(5), 1) & 1)
sys/dev/ata/chipsets/ata-nvidia.c
203
ctlr->r_rid2 = PCIR_BAR(5);
sys/dev/ata/chipsets/ata-promise.c
243
ctlr->r_rid1 = PCIR_BAR(4);
sys/dev/ata/chipsets/ata-promise.c
249
ctlr->r_rid2 = PCIR_BAR(3);
sys/dev/ata/chipsets/ata-serverworks.c
132
ctlr->r_rid2 = PCIR_BAR(5);
sys/dev/ata/chipsets/ata-siliconimage.c
113
ctlr->r_rid2 = PCIR_BAR(5);
sys/dev/ata/chipsets/ata-sis.c
183
ctlr->r_rid2 = PCIR_BAR(5);
sys/dev/ata/chipsets/ata-via.c
163
ctlr->r_rid2 = PCIR_BAR(5);
sys/dev/ata/chipsets/ata-via.c
219
rid = PCIR_BAR(ch->unit);
sys/dev/ata/chipsets/ata-via.c
273
rid = PCIR_BAR(ch->unit);
sys/dev/axgbe/if_axgbe_pci.c
142
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE }, /* MAC regs */
sys/dev/axgbe/if_axgbe_pci.c
143
{ SYS_RES_MEMORY, PCIR_BAR(1), RF_ACTIVE }, /* PCS regs */
sys/dev/bce/if_bce.c
1063
rid = PCIR_BAR(0);
sys/dev/bce/if_bce.c
3835
bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(0),
sys/dev/bfe/if_bfe.c
1139
bus_release_resource(sc->bfe_dev, SYS_RES_MEMORY, PCIR_BAR(0),
sys/dev/bfe/if_bfe.c
447
rid = PCIR_BAR(0);
sys/dev/bge/if_bge.c
3309
rid = PCIR_BAR(0);
sys/dev/bge/if_bge.c
3440
rid = PCIR_BAR(2);
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
119
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
132
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
147
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
285
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
298
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
306
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
327
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
343
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
367
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
380
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
388
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
403
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
418
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
442
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
455
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
463
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
478
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
493
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
522
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
535
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
546
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
561
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
576
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
605
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
618
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
629
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
644
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
659
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
86
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/bhnd/bhndb/bhndb_pci_hwdata.c
99
.res = { SYS_RES_MEMORY, PCIR_BAR(0) }
sys/dev/bnxt/bnxt_en/if_bnxt.c
4684
bar->rid = PCIR_BAR(bar_num);
sys/dev/bwi/if_bwireg.h
347
#define BWI_PCIR_BAR PCIR_BAR(0)
sys/dev/bxe/bxe.c
13048
i, PCIR_BAR(i));
sys/dev/bxe/bxe.c
13069
sc->bar[i].rid = PCIR_BAR(i);
sys/dev/bxe/bxe.c
13089
i, PCIR_BAR(i),
sys/dev/cardbus/cardbus.c
152
pci_write_config(dev, PCIR_BAR(i), 0, 4);
sys/dev/cardbus/cardbus_cis.c
316
bar = PCIR_BAR(bar - 1);
sys/dev/cardbus/cardbus_cis.c
466
*rid = PCIR_BAR(space - PCIM_CIS_ASI_BAR0);
sys/dev/cas/if_cas.c
2626
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE }, /* CAS_RES_MEM */
sys/dev/cxgb/cxgb_main.c
494
sc->regs_rid = PCIR_BAR(0);
sys/dev/cxgb/cxgb_main.c
515
sc->udbs_rid = PCIR_BAR(2);
sys/dev/cxgbe/t4_iov.c
243
sc->regs_rid = PCIR_BAR(0);
sys/dev/cxgbe/t4_main.c
3994
sc->regs_rid = PCIR_BAR(0);
sys/dev/cxgbe/t4_main.c
4004
sc->msix_rid = PCIR_BAR(4);
sys/dev/cxgbe/t4_main.c
4026
sc->udbs_rid = PCIR_BAR(2);
sys/dev/cxgbe/t4_main.c
4118
bar0 = t4_hw_pci_read_cfg4(sc, PCIR_BAR(0));
sys/dev/dc/if_dcreg.h
1057
#define DC_PCI_CFBIO PCIR_BAR(0) /* Base I/O address */
sys/dev/dc/if_dcreg.h
1058
#define DC_PCI_CFBMA PCIR_BAR(1) /* Base memory address */
sys/dev/drm2/drm_bufs.c
61
rid = PCIR_BAR(resource);
sys/dev/e1000/if_em.c
2403
rid = PCIR_BAR(0);
sys/dev/e1000/if_em.c
2421
for (rid = PCIR_BAR(0); rid < PCIR_CIS;) {
sys/dev/ena/ena.c
2733
rid = PCIR_BAR(ENA_MEM_BAR);
sys/dev/ena/ena.c
285
PCIR_BAR(ENA_MEM_BAR), adapter->memory);
sys/dev/ena/ena.c
290
PCIR_BAR(ENA_REG_BAR), adapter->registers);
sys/dev/ena/ena.c
3813
rid = PCIR_BAR(ENA_REG_BAR);
sys/dev/enetc/if_enetc.c
381
rid = PCIR_BAR(ENETC_BAR_REGS);
sys/dev/enic/if_enic.c
1596
bar->rid = PCIR_BAR(bar_num);
sys/dev/et/if_et.c
249
sc->sc_mem_rid = PCIR_BAR(0);
sys/dev/etherswitch/felix/felix.c
366
rid = PCIR_BAR(FELIX_BAR_MDIO);
sys/dev/etherswitch/felix/felix.c
374
rid = PCIR_BAR(FELIX_BAR_REGS);
sys/dev/firewire/fwohcireg.h
38
#define PCI_CBMEM PCIR_BAR(0)
sys/dev/gem/if_gem_pci.c
136
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE }, /* GEM_RES_MEM */
sys/dev/glxiic/glxiic.c
325
sc->smb_rid = PCIR_BAR(0);
sys/dev/glxiic/glxiic.c
334
sc->gpio_rid = PCIR_BAR(1);
sys/dev/glxsb/glxsb.c
272
sc->sc_rid = PCIR_BAR(0);
sys/dev/gve/gve_main.c
1055
rid = PCIR_BAR(GVE_REGISTER_BAR);
sys/dev/gve/gve_main.c
1064
rid = PCIR_BAR(GVE_DOORBELL_BAR);
sys/dev/hyperv/pcib/vmbus_pcib.c
1421
_hv_pcifront_read_config(hpdev, PCIR_BAR(i),
sys/dev/hyperv/pcib/vmbus_pcib.c
1429
_hv_pcifront_write_config(hpdev, PCIR_BAR(i),
sys/dev/hyperv/pcib/vmbus_pcib.c
1433
_hv_pcifront_write_config(hpdev, PCIR_BAR(i),
sys/dev/iavf/iavf_lib.c
101
rid = PCIR_BAR(0);
sys/dev/ice/ice_lib.c
285
bar->rid = PCIR_BAR(bar_num);
sys/dev/ichiic/ig4_pci.c
366
sc->regs_rid = PCIR_BAR(0);
sys/dev/ichwd/i6300esbwd.c
186
sc->res_id = PCIR_BAR(0);
sys/dev/ida/ida_pci.c
250
ida->regs_res_id = PCIR_BAR(0);
sys/dev/ida/ida_pci.c
55
#define IDA_PCI_MEMADDR PCIR_BAR(1) /* Mem I/O Address */
sys/dev/igc/if_igc.c
1499
rid = PCIR_BAR(0);
sys/dev/igc/if_igc.c
575
scctx->isc_msix_bar = PCIR_BAR(IGC_MSIX_BAR);
sys/dev/intel/pchtherm.c
157
sc->tbarrid = PCIR_BAR(0);
sys/dev/intel/spi_pci.c
89
sc->sc_mem_rid = PCIR_BAR(0);
sys/dev/ioat/ioat.c
676
ioat->pci_resource_id = PCIR_BAR(0);
sys/dev/ipmi/ipmi_pci.c
128
sc->ipmi_io_rid = PCIR_BAR(0);
sys/dev/ipmi/ipmi_pci.c
225
sc->ipmi_io_rid = PCIR_BAR(0);
sys/dev/ipmi/ipmi_pci.c
226
if (PCI_BAR_IO(pci_read_config(dev, PCIR_BAR(0), 4)))
sys/dev/ips/ips_pci.c
102
sc->rid = PCIR_BAR(0);
sys/dev/ips/ips_pci.c
94
sc->rid = PCIR_BAR(1);
sys/dev/ips/ips_pci.c
96
sc->rid = PCIR_BAR(0);
sys/dev/ipw/if_ipw.c
243
i = PCIR_BAR(0);
sys/dev/isci/isci.c
138
pci_bar->resource_id = PCIR_BAR(i*2);
sys/dev/ismt/ismt.c
596
sc->mmio_rid = PCIR_BAR(0);
sys/dev/isp/isp_pci.c
538
pcs->rgd = PCIR_BAR(0);
sys/dev/isp/isp_pci.c
542
pcs->rgd1 = PCIR_BAR(2);
sys/dev/isp/isp_pci.c
546
pcs->rgd2 = PCIR_BAR(4);
sys/dev/isp/isp_pci.c
551
pcs->rgd = PCIR_BAR(1);
sys/dev/isp/isp_pci.c
556
pcs->rgd = PCIR_BAR(0);
sys/dev/iwi/if_iwi.c
306
i = PCIR_BAR(0);
sys/dev/iwm/if_iwm.c
5927
rid = PCIR_BAR(0);
sys/dev/iwn/if_iwn.c
458
rid = PCIR_BAR(0);
sys/dev/iwx/if_iwx.c
10242
rid = PCIR_BAR(0);
sys/dev/ixgbe/if_ix.c
3534
rid = PCIR_BAR(0);
sys/dev/ixgbe/if_ixv.c
1126
rid = PCIR_BAR(0);
sys/dev/ixl/if_ixl.c
368
rid = PCIR_BAR(0);
sys/dev/ixl/if_ixl.c
431
scctx->isc_msix_bar = PCIR_BAR(IXL_MSIX_BAR);
sys/dev/jme/if_jme.c
194
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/liquidio/lio_main.h
74
PCIR_BAR(baridx * 2),
sys/dev/liquidio/lio_main.h
88
int rid = PCIR_BAR(baridx * 2);
sys/dev/malo/if_malo_pci.c
111
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/malo/if_malo_pci.c
112
{ SYS_RES_MEMORY, PCIR_BAR(1), RF_ACTIVE },
sys/dev/mana/gdma_main.c
1523
pm = pci_find_bar(dev, PCIR_BAR(bar));
sys/dev/mana/gdma_main.c
1534
rid = PCIR_BAR(bar);
sys/dev/mana/gdma_main.c
1555
PCIR_BAR(GDMA_BAR0), gc->bar0);
sys/dev/mfi/mfi_pci.c
221
sc->mfi_regs_rid = PCIR_BAR(0);
sys/dev/mfi/mfi_pci.c
227
sc->mfi_regs_rid = PCIR_BAR(1);
sys/dev/mgb/if_mgb.c
1203
rid = PCIR_BAR(MGB_BAR);
sys/dev/mpi3mr/mpi3mr_pci.c
274
sc->mpi3mr_regs_rid = PCIR_BAR(i);
sys/dev/mpr/mpr_pci.c
249
sc->mpr_regs_rid = PCIR_BAR(i);
sys/dev/mps/mps_pci.c
201
sc->mps_regs_rid = PCIR_BAR(1);
sys/dev/mpt/mpt_pci.c
416
val = pci_read_config(dev, PCIR_BAR(0), 4);
sys/dev/mpt/mpt_pci.c
432
mpt_io_bar = PCIR_BAR(mpt_io_bar);
sys/dev/mpt/mpt_pci.c
445
mpt_mem_bar = PCIR_BAR(mpt_mem_bar);
sys/dev/mpt/mpt_pci.c
734
mpt->pci_cfg.IO_BAR = pci_read_config(mpt->dev, PCIR_BAR(0), 4);
sys/dev/mpt/mpt_pci.c
735
mpt->pci_cfg.Mem0_BAR[0] = pci_read_config(mpt->dev, PCIR_BAR(1), 4);
sys/dev/mpt/mpt_pci.c
736
mpt->pci_cfg.Mem0_BAR[1] = pci_read_config(mpt->dev, PCIR_BAR(2), 4);
sys/dev/mpt/mpt_pci.c
737
mpt->pci_cfg.Mem1_BAR[0] = pci_read_config(mpt->dev, PCIR_BAR(3), 4);
sys/dev/mpt/mpt_pci.c
738
mpt->pci_cfg.Mem1_BAR[1] = pci_read_config(mpt->dev, PCIR_BAR(4), 4);
sys/dev/mpt/mpt_pci.c
761
MPT_CHECK(IO_BAR, PCIR_BAR(0), 4);
sys/dev/mpt/mpt_pci.c
762
MPT_CHECK(Mem0_BAR[0], PCIR_BAR(1), 4);
sys/dev/mpt/mpt_pci.c
763
MPT_CHECK(Mem0_BAR[1], PCIR_BAR(2), 4);
sys/dev/mpt/mpt_pci.c
764
MPT_CHECK(Mem1_BAR[0], PCIR_BAR(3), 4);
sys/dev/mpt/mpt_pci.c
765
MPT_CHECK(Mem1_BAR[1], PCIR_BAR(4), 4);
sys/dev/mpt/mpt_pci.c
775
pci_write_config(mpt->dev, PCIR_BAR(0), mpt->pci_cfg.IO_BAR, 4);
sys/dev/mpt/mpt_pci.c
776
pci_write_config(mpt->dev, PCIR_BAR(1), mpt->pci_cfg.Mem0_BAR[0], 4);
sys/dev/mpt/mpt_pci.c
777
pci_write_config(mpt->dev, PCIR_BAR(2), mpt->pci_cfg.Mem0_BAR[1], 4);
sys/dev/mpt/mpt_pci.c
778
pci_write_config(mpt->dev, PCIR_BAR(3), mpt->pci_cfg.Mem1_BAR[0], 4);
sys/dev/mpt/mpt_pci.c
779
pci_write_config(mpt->dev, PCIR_BAR(4), mpt->pci_cfg.Mem1_BAR[1], 4);
sys/dev/mrsas/mrsas.c
880
sc->reg_res_id = PCIR_BAR(0); /* BAR0 offset */
sys/dev/mrsas/mrsas.c
882
sc->reg_res_id = PCIR_BAR(1); /* BAR1 offset */
sys/dev/msk/if_msk.c
377
{ SYS_RES_IOPORT, PCIR_BAR(1), RF_ACTIVE },
sys/dev/msk/if_msk.c
382
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/mvs/mvs_pci.c
136
ctlr->r_rid = PCIR_BAR(0);
sys/dev/mxge/if_mxge.c
4404
rid = PCIR_BAR(2);
sys/dev/mxge/if_mxge.c
4498
bus_release_resource(sc->dev, SYS_RES_MEMORY, PCIR_BAR(2),
sys/dev/mxge/if_mxge.c
4561
bus_release_resource(sc->dev, SYS_RES_MEMORY, PCIR_BAR(2),
sys/dev/netmap/if_ptnet.c
299
rid = PCIR_BAR(PTNETMAP_IO_PCI_BAR);
sys/dev/netmap/if_ptnet.c
563
PCIR_BAR(PTNETMAP_IO_PCI_BAR), sc->iomem);
sys/dev/netmap/if_ptnet.c
607
int rid = PCIR_BAR(PTNETMAP_MSIX_PCI_BAR);
sys/dev/netmap/if_ptnet.c
728
PCIR_BAR(PTNETMAP_MSIX_PCI_BAR),
sys/dev/netmap/netmap_freebsd.c
815
rid = PCIR_BAR(PTNETMAP_MEM_PCI_BAR);
sys/dev/netmap/netmap_freebsd.c
854
PCIR_BAR(PTNETMAP_MEM_PCI_BAR), ptn_dev->pci_mem);
sys/dev/netmap/netmap_freebsd.c
887
rid = PCIR_BAR(PTNETMAP_IO_PCI_BAR);
sys/dev/netmap/netmap_freebsd.c
926
PCIR_BAR(PTNETMAP_MEM_PCI_BAR), ptn_dev->pci_mem);
sys/dev/netmap/netmap_freebsd.c
931
PCIR_BAR(PTNETMAP_IO_PCI_BAR), ptn_dev->pci_io);
sys/dev/nfe/if_nfe.c
294
rid = PCIR_BAR(2);
sys/dev/nfe/if_nfe.c
302
rid = PCIR_BAR(3);
sys/dev/nfe/if_nfe.c
308
bus_release_resource(sc->nfe_dev, SYS_RES_MEMORY, PCIR_BAR(2),
sys/dev/nfe/if_nfe.c
326
PCIR_BAR(3), sc->nfe_msix_pba_res);
sys/dev/nfe/if_nfe.c
328
PCIR_BAR(2), sc->nfe_msix_res);
sys/dev/nfe/if_nfe.c
375
rid = PCIR_BAR(0);
sys/dev/nfe/if_nfe.c
744
bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(3),
sys/dev/nfe/if_nfe.c
749
bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(2),
sys/dev/nfe/if_nfe.c
754
bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(0),
sys/dev/nfsmb/nfsmb.c
71
#define NF2PCI_SMBASE_1 PCIR_BAR(4)
sys/dev/nfsmb/nfsmb.c
72
#define NF2PCI_SMBASE_2 PCIR_BAR(5)
sys/dev/nge/if_nge.c
838
sc->nge_res_id = PCIR_BAR(0);
sys/dev/nge/if_nge.c
841
sc->nge_res_id = PCIR_BAR(1);
sys/dev/nge/if_nge.c
849
sc->nge_res_id = PCIR_BAR(0);
sys/dev/nge/if_nge.c
852
sc->nge_res_id = PCIR_BAR(1);
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
1149
ntb->bar_info[NTB_CONFIG_BAR].pci_resource_id = PCIR_BAR(0);
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
1155
ntb->bar_info[NTB_BAR_1].pci_resource_id = PCIR_BAR(1);
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
1163
ntb->bar_info[NTB_BAR_2].pci_resource_id = PCIR_BAR(2);
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
1171
ntb->bar_info[NTB_BAR_3].pci_resource_id = PCIR_BAR(4);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
1029
if (bar->pci_resource_id == PCIR_BAR(2))
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
881
bar->pci_resource_id = PCIR_BAR(0);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
910
bar->pci_resource_id = PCIR_BAR(2);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
929
bar->pci_resource_id = PCIR_BAR(4);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
957
bar->pci_resource_id = PCIR_BAR(5);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
184
PNTX_WRITE(sc, PCIR_BAR(0), val64);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
185
PNTX_WRITE(sc, PCIR_BAR(0) + 4, val64 >> 32);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
189
PNTX_WRITE(sc, PCIR_BAR(0), val);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
334
sc->conf_rid = PCIR_BAR(0);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
363
mw->mw_rid = PCIR_BAR(mw->mw_bar);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
376
val = pci_read_config(dev, PCIR_BAR(mw->mw_bar), 4);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
747
PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar), val64);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
748
PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar) + 4, val64 >> 32);
sys/dev/ntb/ntb_hw/ntb_hw_plx.c
756
PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar), val64);
sys/dev/nvme/nvme_pci.c
156
ctrlr->resource_id = PCIR_BAR(0);
sys/dev/oce/oce_hw.c
162
PCIR_BAR(pci_cfg_barnum), sc->devcfg_res);
sys/dev/oce/oce_hw.c
172
PCIR_BAR(OCE_PCI_CSR_BAR), sc->csr_res);
sys/dev/oce/oce_hw.c
182
PCIR_BAR(OCE_PCI_DB_BAR), sc->db_res);
sys/dev/oce/oce_hw.c
252
rr = PCIR_BAR(pci_cfg_barnum);
sys/dev/oce/oce_hw.c
295
rr = PCIR_BAR(OCE_PCI_CSR_BAR);
sys/dev/oce/oce_hw.c
305
rr = PCIR_BAR(OCE_PCI_DB_BAR);
sys/dev/ocs_fc/ocs_pci.c
122
val = pci_read_config(dev, PCIR_BAR(i), 4);
sys/dev/ocs_fc/ocs_pci.c
130
ocs->reg[r].rid = PCIR_BAR(i);
sys/dev/ocs_fc/ocs_pci.c
164
ocs->reg[0].rid = PCIR_BAR(PCI_64BIT_BAR0);
sys/dev/p2sb/p2sb.c
142
sc->rid = PCIR_BAR(0);
sys/dev/pci/pci.c
3542
if (pci_mapbase(pci_read_config(dev, PCIR_BAR(0), 4)) &&
sys/dev/pci/pci.c
3543
pci_mapbase(pci_read_config(dev, PCIR_BAR(2), 4))) {
sys/dev/pci/pci.c
3552
pci_add_map(bus, dev, PCIR_BAR(0), rl, force,
sys/dev/pci/pci.c
3554
pci_add_map(bus, dev, PCIR_BAR(1), rl, force,
sys/dev/pci/pci.c
3557
rid = PCIR_BAR(0);
sys/dev/pci/pci.c
3561
rid = PCIR_BAR(1);
sys/dev/pci/pci.c
3567
pci_add_map(bus, dev, PCIR_BAR(2), rl, force,
sys/dev/pci/pci.c
3569
pci_add_map(bus, dev, PCIR_BAR(3), rl, force,
sys/dev/pci/pci.c
3572
rid = PCIR_BAR(2);
sys/dev/pci/pci.c
3576
rid = PCIR_BAR(3);
sys/dev/pci/pci.c
3581
pci_add_map(bus, dev, PCIR_BAR(4), rl, force,
sys/dev/pci/pci.c
3583
pci_add_map(bus, dev, PCIR_BAR(5), rl, force,
sys/dev/pci/pci.c
3644
rid = PCIR_BAR(0);
sys/dev/pci/pci.c
3709
rid = PCIR_BAR(0);
sys/dev/pci/pci.c
3765
rid = PCIR_BAR(0);
sys/dev/pci/pci.c
3988
return (PCIR_BAR(bei));
sys/dev/pci/pci.c
4161
(!pci_read_config(dev, PCIR_BAR(0), 4) &&
sys/dev/pci/pci.c
4162
!pci_read_config(dev, PCIR_BAR(2), 4))) )
sys/dev/pci/pci.c
4167
if ((resource_list_find(rl, SYS_RES_MEMORY, PCIR_BAR(i)) != NULL) ||
sys/dev/pci/pci.c
4168
(resource_list_find(rl, SYS_RES_IOPORT, PCIR_BAR(i)) != NULL) ||
sys/dev/pci/pci.c
4169
pci_ea_is_enabled(dev, PCIR_BAR(i))) {
sys/dev/pci/pci.c
4180
q->arg1 == PCIR_BAR(i))
sys/dev/pci/pci.c
4186
i += pci_add_map(bus, dev, PCIR_BAR(i), rl, force,
sys/dev/pci/pci.c
970
cfg->msix.msix_table_bar = PCIR_BAR(val &
sys/dev/pci/pci.c
974
cfg->msix.msix_pba_bar = PCIR_BAR(val &
sys/dev/pci/pci_dw.c
338
DBI_WR4(sc, PCIR_BAR(0), 4);
sys/dev/pci/pci_dw.c
339
DBI_WR4(sc, PCIR_BAR(1), 0);
sys/dev/pci/pci_iov.c
381
pci_add_bar(dinfo->cfg.dev, PCIR_BAR(i), bar_start,
sys/dev/pci/pci_user.c
1037
bar = PCIR_BAR(pbi->pbi_bar);
sys/dev/pms/freebsd/driver/common/lxcommon.h
228
#define PCI_BASE_ADDRESS_0 PCIR_BAR(0)
sys/dev/pms/freebsd/driver/common/lxcommon.h
229
#define PCI_BASE_ADDRESS_1 PCIR_BAR(1)
sys/dev/pms/freebsd/driver/common/lxcommon.h
230
#define PCI_BASE_ADDRESS_2 PCIR_BAR(2)
sys/dev/pms/freebsd/driver/common/lxcommon.h
231
#define PCI_BASE_ADDRESS_3 PCIR_BAR(3)
sys/dev/pms/freebsd/driver/common/lxcommon.h
232
#define PCI_BASE_ADDRESS_4 PCIR_BAR(4)
sys/dev/pms/freebsd/driver/common/lxutil.c
159
thisCardInst->pciMemBaseRIDSpc[lBar] = PCIR_BAR(bar);
sys/dev/proto/proto_bus_pci.c
87
rid = PCIR_BAR(bar);
sys/dev/pst/pst-pci.c
112
bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(0), sc->r_mem);
sys/dev/pst/pst-pci.c
76
rid = PCIR_BAR(0);
sys/dev/puc/pucdata.c
1774
i = PCIR_BAR(0);
sys/dev/qat/qat_hw/qat_200xx/adf_drv.c
202
rid = PCIR_BAR(bar_nr);
sys/dev/qat/qat_hw/qat_4xxx/adf_drv.c
266
rid = PCIR_BAR(bar_nr);
sys/dev/qat/qat_hw/qat_4xxxvf/adf_drv.c
177
rid = PCIR_BAR(bar_nr);
sys/dev/qat/qat_hw/qat_c3xxx/adf_drv.c
191
rid = PCIR_BAR(bar_nr);
sys/dev/qat/qat_hw/qat_c4xxx/adf_drv.c
190
rid = PCIR_BAR(bar_nr);
sys/dev/qat/qat_hw/qat_c62x/adf_drv.c
191
rid = PCIR_BAR(bar_nr);
sys/dev/qat/qat_hw/qat_dh895xcc/adf_drv.c
180
rid = PCIR_BAR(bar_nr);
sys/dev/qat_c2xxx/qat.c
375
uint32_t val = pci_read_config(dev, PCIR_BAR(bar), 4);
sys/dev/qat_c2xxx/qat.c
379
sc->sc_rid[i] = PCIR_BAR(bar);
sys/dev/qlnx/qlnxe/qlnx_os.c
5053
PCIR_BAR(bar_id));
sys/dev/qlnx/qlnxe/qlnx_os.c
764
ha->reg_rid = PCIR_BAR(0);
sys/dev/qlnx/qlnxe/qlnx_os.c
776
ha->dbells_rid = PCIR_BAR(2);
sys/dev/qlnx/qlnxe/qlnx_os.c
799
ha->msix_rid = PCIR_BAR(4);
sys/dev/qlxgb/qla_os.c
259
ha->reg_rid = PCIR_BAR(0);
sys/dev/qlxgbe/ql_os.c
347
ha->reg_rid = PCIR_BAR(0);
sys/dev/qlxgbe/ql_os.c
369
ha->reg_rid1 = PCIR_BAR(2);
sys/dev/qlxge/qls_os.c
350
ha->reg_rid = PCIR_BAR(1);
sys/dev/qlxge/qls_os.c
359
ha->reg_rid1 = PCIR_BAR(3);
sys/dev/ral/if_ral_pci.c
219
rid = PCIR_BAR(0);
sys/dev/re/if_re.c
1249
sc->rl_res_id = PCIR_BAR(1);
sys/dev/re/if_re.c
1253
sc->rl_res_id = PCIR_BAR(2);
sys/dev/re/if_re.c
1255
sc->rl_res_id = PCIR_BAR(0);
sys/dev/re/if_re.c
1261
sc->rl_res_id = PCIR_BAR(0);
sys/dev/re/if_re.c
1292
rid = PCIR_BAR(4);
sys/dev/re/if_re.c
1836
rid = PCIR_BAR(4);
sys/dev/rge/if_rge.c
219
rid = PCIR_BAR(2);
sys/dev/rl/if_rl.c
679
sc->rl_res_id = PCIR_BAR(0);
sys/dev/rl/if_rl.c
685
sc->rl_res_id = PCIR_BAR(1);
sys/dev/rtsx/rtsx.c
3681
sc->rtsx_mem_res_id = PCIR_BAR(1);
sys/dev/rtsx/rtsx.c
3683
sc->rtsx_mem_res_id = PCIR_BAR(0);
sys/dev/rtwn/pci/rtwn_pci_attach.c
624
rid = PCIR_BAR(2);
sys/dev/sbni/if_sbni_pci.c
89
sc->io_rid = PCIR_BAR(0);
sys/dev/sdhci/sdhci_pci.c
382
rid = PCIR_BAR(bar + i);
sys/dev/sfxge/sfxge.c
642
esbp->esb_rid = PCIR_BAR(sc->mem_bar);
sys/dev/sfxge/sfxge_intr.c
312
rid = PCIR_BAR(4);
sys/dev/sge/if_sge.c
572
sc->sge_res_id = PCIR_BAR(0);
sys/dev/siis/siis.c
151
ctlr->r_grid = PCIR_BAR(0);
sys/dev/siis/siis.c
157
ctlr->r_rid = PCIR_BAR(2);
sys/dev/sk/if_sk.c
333
{ SYS_RES_IOPORT, PCIR_BAR(1), RF_ACTIVE },
sys/dev/sk/if_sk.c
339
{ SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
sys/dev/smartpqi/smartpqi_main.c
306
softs->os_specific.pqi_regs_rid0 = PCIR_BAR(0);
sys/dev/sound/pci/als4000.c
758
sc->regid = PCIR_BAR(0);
sys/dev/sound/pci/atiixp.c
1204
sc->regid = PCIR_BAR(0);
sys/dev/sound/pci/cmi.c
941
sc->regid = PCIR_BAR(0);
sys/dev/sound/pci/cs4281.c
775
sc->regid = PCIR_BAR(0);
sys/dev/sound/pci/cs4281.c
790
sc->memid = PCIR_BAR(1);
sys/dev/sound/pci/csa.c
238
resp->io_rid = PCIR_BAR(0);
sys/dev/sound/pci/csa.c
243
resp->mem_rid = PCIR_BAR(1);
sys/dev/sound/pci/csa.c
373
case PCIR_BAR(0):
sys/dev/sound/pci/csa.c
376
case PCIR_BAR(1):
sys/dev/sound/pci/csamidi.c
209
scp->io_rid = PCIR_BAR(0);
sys/dev/sound/pci/csapcm.c
795
resp->io_rid = PCIR_BAR(0);
sys/dev/sound/pci/csapcm.c
796
resp->mem_rid = PCIR_BAR(1);
sys/dev/sound/pci/emu10k1.c
2086
i = PCIR_BAR(0);
sys/dev/sound/pci/emu10k1.c
2147
if (sc->reg) bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0), sc->reg);
sys/dev/sound/pci/emu10k1.c
2170
bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0), sc->reg);
sys/dev/sound/pci/emu10kx.c
3156
i = PCIR_BAR(0);
sys/dev/sound/pci/emu10kx.c
3331
bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0), sc->reg);
sys/dev/sound/pci/emu10kx.c
3377
bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0), sc->reg);
sys/dev/sound/pci/es137x.c
1727
es->regid = PCIR_BAR(0);
sys/dev/sound/pci/fm801.c
584
fm801->regid = PCIR_BAR(i);
sys/dev/sound/pci/fm801.c
719
if (type == SYS_RES_IOPORT && rid == PCIR_BAR(0))
sys/dev/sound/pci/hda/hdac.c
725
mem->mem_rid = PCIR_BAR(0);
sys/dev/sound/pci/hdsp.c
1001
bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(0), sc->cs);
sys/dev/sound/pci/hdsp.c
145
sc->csid = PCIR_BAR(0);
sys/dev/sound/pci/hdspe.c
155
sc->csid = PCIR_BAR(0);
sys/dev/sound/pci/hdspe.c
893
bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(0), sc->cs);
sys/dev/sound/pci/maestro3.c
1354
sc->regid = PCIR_BAR(0);
sys/dev/sound/pci/neomagic.c
619
sc->regid = PCIR_BAR(1);
sys/dev/sound/pci/neomagic.c
676
sc->bufid = PCIR_BAR(0);
sys/dev/sound/pci/neomagic.c
679
sc->regid = PCIR_BAR(1);
sys/dev/sound/pci/solo.c
829
bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0), sc->io);
sys/dev/sound/pci/solo.c
834
bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(1), sc->sb);
sys/dev/sound/pci/solo.c
839
bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(2), sc->vc);
sys/dev/sound/pci/solo.c
844
bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(3), sc->mpu);
sys/dev/sound/pci/solo.c
849
bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(4), sc->gp);
sys/dev/sound/pci/solo.c
868
rid = PCIR_BAR(0);
sys/dev/sound/pci/solo.c
871
rid = PCIR_BAR(1);
sys/dev/sound/pci/solo.c
874
rid = PCIR_BAR(2);
sys/dev/sound/pci/solo.c
877
rid = PCIR_BAR(3);
sys/dev/sound/pci/solo.c
880
rid = PCIR_BAR(4);
sys/dev/sound/pci/t4dwave.c
857
tr->regid = PCIR_BAR(0);
sys/dev/sound/pci/via8233.c
1187
via->regid = PCIR_BAR(0);
sys/dev/sound/pci/via82c686.c
511
via->regid = PCIR_BAR(0);
sys/dev/ste/if_ste.c
943
sc->ste_res_id = PCIR_BAR(1);
sys/dev/ste/if_ste.c
949
sc->ste_res_id = PCIR_BAR(0);
sys/dev/stge/if_stge.c
231
{ SYS_RES_IOPORT, PCIR_BAR(0), RF_ACTIVE },
sys/dev/stge/if_stge.c
237
{ SYS_RES_MEMORY, PCIR_BAR(1), RF_ACTIVE },
sys/dev/stge/if_stge.c
452
val = pci_read_config(dev, PCIR_BAR(1), 4);
sys/dev/stge/if_stge.c
456
val = pci_read_config(dev, PCIR_BAR(0), 4);
sys/dev/sume/if_sume.c
568
adapter->rid = PCIR_BAR(0);
sys/dev/sym/sym_hipd.c
1008
#define SYM_PCI_IO PCIR_BAR(0)
sys/dev/sym/sym_hipd.c
1009
#define SYM_PCI_MMIO PCIR_BAR(1)
sys/dev/sym/sym_hipd.c
1010
#define SYM_PCI_RAM PCIR_BAR(2)
sys/dev/sym/sym_hipd.c
1011
#define SYM_PCI_RAM64 PCIR_BAR(3)
sys/dev/tdfx/tdfx_pci.c
147
int rid = PCIR_BAR(0);
sys/dev/thunderbolt/nhi_pci.c
198
sc->regs_rid = PCIR_BAR(0);
sys/dev/ti/if_ti.c
2396
rid = PCIR_BAR(0);
sys/dev/ti/if_ti.c
2599
bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(0),
sys/dev/ufshci/ufshci_pci.c
93
ctrlr->resource_id = PCIR_BAR(0);
sys/dev/vge/if_vge.c
1012
rid = PCIR_BAR(1);
sys/dev/vge/if_vge.c
1189
PCIR_BAR(1), sc->vge_res);
sys/dev/virtio/pci/virtio_pci_legacy.c
539
if (rid != PCIR_BAR(0)) {
sys/dev/virtio/pci/virtio_pci_legacy.c
547
if (rid != table_rid && rid != PCIR_BAR(0)) {
sys/dev/virtio/pci/virtio_pci_legacy.c
592
rid = PCIR_BAR(0);
sys/dev/virtio/pci/virtio_pci_legacy.c
613
bus_release_resource(dev, sc->vtpci_res_type, PCIR_BAR(0),
sys/dev/virtio/pci/virtio_pci_modern.c
1025
rid = PCIR_BAR(bar);
sys/dev/virtio/pci/virtio_pci_modern.c
1050
rid = PCIR_BAR(bar);
sys/dev/virtio/pci/virtio_pci_modern.c
990
val = pci_read_config(sc->vtpci_dev, PCIR_BAR(bar), 4);
sys/dev/vmd/vmd.c
267
sc->vmd_regs_rid[i] = PCIR_BAR(j);
sys/dev/vmd/vmd.c
268
bar = pci_read_config(dev, PCIR_BAR(0), 4);
sys/dev/vmware/pvscsi/pvscsi.c
1611
rid = PCIR_BAR(barid);
sys/dev/vmware/vmci/vmci.c
308
rid = PCIR_BAR(0);
sys/dev/vmware/vmci/vmci.c
321
rid = PCIR_BAR(1);
sys/dev/vmware/vmci/vmci.c
357
rid = PCIR_BAR(0);
sys/dev/vmware/vmci/vmci.c
364
rid = PCIR_BAR(1);
sys/dev/vmware/vmxnet3/if_vmx.c
608
rid = PCIR_BAR(0);
sys/dev/vmware/vmxnet3/if_vmx.c
620
rid = PCIR_BAR(1);
sys/dev/vnic/nic_main.c
83
#define VNIC_PF_REG_RID PCIR_BAR(PCI_CFG_REG_BAR_NUM)
sys/dev/vnic/nicvf_main.c
85
#define VNIC_VF_REG_RID PCIR_BAR(PCI_CFG_REG_BAR_NUM)
sys/dev/vnic/thunder_bgx.c
145
rid = PCIR_BAR(PCI_CFG_REG_BAR_NUM);
sys/dev/vr/if_vr.c
636
sc->vr_res_id = PCIR_BAR(0);
sys/dev/vte/if_vte.c
390
sc->vte_res_id = PCIR_BAR(1);
sys/dev/vte/if_vte.c
395
sc->vte_res_id = PCIR_BAR(0);
sys/dev/wpi/if_wpi.c
383
rid = PCIR_BAR(0);
sys/i386/i386/geode.c
295
gpio = pci_read_config(self, PCIR_BAR(0), 4);
sys/powerpc/powermac/macio.c
350
sc->sc_memrid = PCIR_BAR(0);
sys/riscv/starfive/jh7110_pcie.c
175
if (bus == 0 && (offset == PCIR_BAR(0) || offset == PCIR_BAR(1)))
sys/riscv/starfive/jh7110_pcie.c
206
if (bus == 0 && (offset == PCIR_BAR(0) || offset == PCIR_BAR(1)))
sys/riscv/starfive/jh7110_pcie.c
879
WR4(sc, PCI_CONF_SPACE_REGS + PCIR_BAR(0), 0);
sys/riscv/starfive/jh7110_pcie.c
880
WR4(sc, PCI_CONF_SPACE_REGS + PCIR_BAR(1), 0);
sys/x86/x86/io_apic.c
999
rid = PCIR_BAR(0);
usr.sbin/bhyve/pci_emul.c
193
return (coff >= PCIR_BAR(0) && coff < PCIR_BAR(PCI_BARMAX + 1));
usr.sbin/bhyve/pci_emul.c
2346
idx = (coff - PCIR_BAR(0)) / 4;
usr.sbin/bhyve/pci_emul.c
973
pci_set_cfgdata32(pdi, PCIR_BAR(idx), bar);
usr.sbin/bhyve/pci_emul.c
978
pci_set_cfgdata32(pdi, PCIR_BAR(idx + 1), bar >> 32);
usr.sbin/bhyve/pci_passthru.c
542
pbm.pbm_reg = PCIR_BAR(pi->pi_msix.table_bar);
usr.sbin/bhyve/pci_passthru.c
597
bar.pbi_reg = PCIR_BAR(i);
usr.sbin/bhyve/pci_passthru.c
641
PCIR_BAR(i), 0x01);
usr.sbin/pciconf/cap.c
364
PCIM_DEBUG_PORT_OFFSET, PCIR_BAR(debug_port >> 13));
usr.sbin/pciconf/cap.c
699
table_bar = PCIR_BAR(val & PCIM_MSIX_BIR_MASK);
usr.sbin/pciconf/cap.c
703
pba_bar = PCIR_BAR(val & PCIM_MSIX_BIR_MASK);
usr.sbin/pciconf/pciconf.c
790
print_bar(fd, p, "bar ", PCIR_BAR(i));
usr.sbin/pciconf/pciconf.c
906
PCIR_BAR((unsigned int)vpd->pve_data[1]),