bar                71 arch/alpha/kernel/pci-sysfs.c 	struct pci_bus_region bar;
bar                86 arch/alpha/kernel/pci-sysfs.c 	pcibios_resource_to_bus(pdev->bus, &bar, res);
bar                87 arch/alpha/kernel/pci-sysfs.c 	vma->vm_pgoff += bar.start >> (PAGE_SHIFT - (sparse ? 5 : 0));
bar               137 arch/alpha/kernel/pci-sysfs.c 	struct pci_bus_region bar;
bar               142 arch/alpha/kernel/pci-sysfs.c 	pcibios_resource_to_bus(pdev->bus, &bar, &pdev->resource[num]);
bar               151 arch/alpha/kernel/pci-sysfs.c 	return bar.end < sparse_size;
bar                48 arch/arm/mach-shmobile/pm-rcar-gen2.c 	u32 bar;
bar               107 arch/arm/mach-shmobile/pm-rcar-gen2.c 	bar = phys_to_sbar(res.start);
bar               109 arch/arm/mach-shmobile/pm-rcar-gen2.c 		writel_relaxed(bar, p + CA15BAR);
bar               110 arch/arm/mach-shmobile/pm-rcar-gen2.c 		writel_relaxed(bar | SBAR_BAREN, p + CA15BAR);
bar               118 arch/arm/mach-shmobile/pm-rcar-gen2.c 		writel_relaxed(bar, p + CA7BAR);
bar               119 arch/arm/mach-shmobile/pm-rcar-gen2.c 		writel_relaxed(bar | SBAR_BAREN, p + CA7BAR);
bar               101 arch/arm/mm/cache-b15-rac.c #define BUILD_RAC_CACHE_OP(name, bar)				\
bar               109 arch/arm/mm/cache-b15-rac.c 		bar;						\
bar               119 arch/arm/mm/cache-b15-rac.c 		bar;						\
bar               140 arch/arm/mm/pmsa-v8.c static int __init __pmsav8_setup_region(unsigned int number, u32 bar, u32 lar)
bar               149 arch/arm/mm/pmsa-v8.c 	prbar_write(bar);
bar               152 arch/arm/mm/pmsa-v8.c 	mpu_rgn_info.rgns[number].prbar = bar;
bar               162 arch/arm/mm/pmsa-v8.c 	u32 bar, lar;
bar               167 arch/arm/mm/pmsa-v8.c 	bar = start;
bar               170 arch/arm/mm/pmsa-v8.c 	bar |= PMSAv8_AP_PL1RW_PL0RW | PMSAv8_RGN_SHARED;
bar               173 arch/arm/mm/pmsa-v8.c 	return __pmsav8_setup_region(number, bar, lar);
bar               178 arch/arm/mm/pmsa-v8.c 	u32 bar, lar;
bar               183 arch/arm/mm/pmsa-v8.c 	bar = start;
bar               186 arch/arm/mm/pmsa-v8.c 	bar |= PMSAv8_AP_PL1RW_PL0RW | PMSAv8_RGN_SHARED | PMSAv8_BAR_XN;
bar               189 arch/arm/mm/pmsa-v8.c 	return __pmsav8_setup_region(number, bar, lar);
bar               194 arch/arm/mm/pmsa-v8.c 	u32 bar, lar;
bar               199 arch/arm/mm/pmsa-v8.c 	bar = start;
bar               202 arch/arm/mm/pmsa-v8.c 	bar |= PMSAv8_AP_PL1RW_PL0NA | PMSAv8_RGN_SHARED;
bar               208 arch/arm/mm/pmsa-v8.c 	if (prbar_read() != bar || prlar_read() != lar)
bar               212 arch/arm/mm/pmsa-v8.c 	mpu_rgn_info.rgns[number].prbar = bar;
bar               223 arch/arm/mm/pmsa-v8.c 	u32 bar, lar;
bar               228 arch/arm/mm/pmsa-v8.c 	bar = start;
bar               231 arch/arm/mm/pmsa-v8.c 	bar |= PMSAv8_AP_PL1RW_PL0NA | PMSAv8_RGN_SHARED;
bar               234 arch/arm/mm/pmsa-v8.c 	return __pmsav8_setup_region(number, bar, lar);
bar               153 arch/microblaze/pci/pci-common.c int pci_iobar_pfn(struct pci_dev *pdev, int bar, struct vm_area_struct *vma)
bar               156 arch/microblaze/pci/pci-common.c 	resource_size_t ioaddr = pci_resource_start(pdev, bar);
bar               359 arch/microblaze/pci/pci-common.c void pci_resource_to_user(const struct pci_dev *dev, int bar,
bar                47 arch/mips/pci/pci.c void pci_resource_to_user(const struct pci_dev *dev, int bar,
bar              1935 arch/powerpc/kernel/eeh.c 	struct resource *bar = NULL;
bar              1951 arch/powerpc/kernel/eeh.c 		bar = r;
bar              1955 arch/powerpc/kernel/eeh.c 	if (!bar) {
bar              1960 arch/powerpc/kernel/eeh.c 	pci_err(pdev, "Going to break: %pR\n", bar);
bar              2011 arch/powerpc/kernel/eeh.c 	mapped = ioremap(bar->start, PAGE_SIZE);
bar              2013 arch/powerpc/kernel/eeh.c 		pci_err(pdev, "Unable to map MMIO BAR %pR\n", bar);
bar               417 arch/powerpc/kernel/pci-common.c int pci_iobar_pfn(struct pci_dev *pdev, int bar, struct vm_area_struct *vma)
bar               420 arch/powerpc/kernel/pci-common.c 	resource_size_t ioaddr = pci_resource_start(pdev, bar);
bar               619 arch/powerpc/kernel/pci-common.c void pci_resource_to_user(const struct pci_dev *dev, int bar,
bar               197 arch/powerpc/platforms/embedded6xx/holly.c 	unsigned long bar;
bar               216 arch/powerpc/platforms/embedded6xx/holly.c 	bar = ioread32be(ocn_bar1);
bar               217 arch/powerpc/platforms/embedded6xx/holly.c 	bar |= 2;
bar               218 arch/powerpc/platforms/embedded6xx/holly.c 	iowrite32be(bar, ocn_bar1);
bar                52 arch/powerpc/platforms/pseries/pci.c 	__be64     bar;       /* Input:  Virtual Function BAR */
bar               127 arch/powerpc/platforms/pseries/pci.c 			vf_pe_array[vf_index].bar =
bar               103 arch/s390/include/asm/pci_clp.h 	__le32 bar[PCI_BAR_COUNT];
bar                26 arch/s390/include/asm/pci_io.h 	u8 bar;
bar               265 arch/s390/pci/pci.c static void __iomem *pci_iomap_range_fh(struct pci_dev *pdev, int bar,
bar               271 arch/s390/pci/pci.c 	idx = zdev->bars[bar].map_idx;
bar               276 arch/s390/pci/pci.c 	zpci_iomap_start[idx].bar = bar;
bar               282 arch/s390/pci/pci.c static void __iomem *pci_iomap_range_mio(struct pci_dev *pdev, int bar,
bar               286 arch/s390/pci/pci.c 	unsigned long barsize = pci_resource_len(pdev, bar);
bar               290 arch/s390/pci/pci.c 	iova = ioremap((unsigned long) zdev->bars[bar].mio_wt, barsize);
bar               294 arch/s390/pci/pci.c void __iomem *pci_iomap_range(struct pci_dev *pdev, int bar,
bar               297 arch/s390/pci/pci.c 	if (!pci_resource_len(pdev, bar) || bar >= PCI_BAR_COUNT)
bar               301 arch/s390/pci/pci.c 		return pci_iomap_range_mio(pdev, bar, offset, max);
bar               303 arch/s390/pci/pci.c 		return pci_iomap_range_fh(pdev, bar, offset, max);
bar               307 arch/s390/pci/pci.c void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)
bar               309 arch/s390/pci/pci.c 	return pci_iomap_range(dev, bar, 0, maxlen);
bar               313 arch/s390/pci/pci.c static void __iomem *pci_iomap_wc_range_mio(struct pci_dev *pdev, int bar,
bar               316 arch/s390/pci/pci.c 	unsigned long barsize = pci_resource_len(pdev, bar);
bar               320 arch/s390/pci/pci.c 	iova = ioremap((unsigned long) zdev->bars[bar].mio_wb, barsize);
bar               324 arch/s390/pci/pci.c void __iomem *pci_iomap_wc_range(struct pci_dev *pdev, int bar,
bar               327 arch/s390/pci/pci.c 	if (!pci_resource_len(pdev, bar) || bar >= PCI_BAR_COUNT)
bar               331 arch/s390/pci/pci.c 		return pci_iomap_wc_range_mio(pdev, bar, offset, max);
bar               333 arch/s390/pci/pci.c 		return pci_iomap_range_fh(pdev, bar, offset, max);
bar               337 arch/s390/pci/pci.c void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long maxlen)
bar               339 arch/s390/pci/pci.c 	return pci_iomap_wc_range(dev, bar, 0, maxlen);
bar               352 arch/s390/pci/pci.c 		zpci_iomap_start[idx].bar = 0;
bar               435 arch/s390/pci/pci.c 		int bar = i + PCI_IOV_RESOURCES;
bar               437 arch/s390/pci/pci.c 		len = pci_resource_len(pdev, bar);
bar               440 arch/s390/pci/pci.c 		pdev->resource[bar].parent = &iov_res;
bar               149 arch/s390/pci/pci_clp.c 		zdev->bars[i].val = le32_to_cpu(response->bar[i]);
bar               169 arch/s390/pci/pci_insn.c 	u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, len);
bar               253 arch/s390/pci/pci_insn.c 	u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, len);
bar               333 arch/s390/pci/pci_insn.c 	u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, len);
bar                41 arch/sh/include/asm/suspend.h 	unsigned long bar;
bar                48 arch/sh/kernel/asm-offsets.c 	DEFINE(SH_SLEEP_REG_BAR, offsetof(struct sh_sleep_regs, bar));
bar                89 arch/sh/kernel/cpu/shmobile/pm.c 	sdp->addr.bar = 0xa4150040; /* BAR */
bar               886 arch/sparc/kernel/pci.c int pci_mmap_page_range(struct pci_dev *dev, int bar,
bar               990 arch/sparc/kernel/pci.c void pci_resource_to_user(const struct pci_dev *pdev, int bar,
bar               506 arch/x86/kernel/pci-calgary_64.c static inline void __iomem* calgary_reg(void __iomem *bar, unsigned long offset)
bar               508 arch/x86/kernel/pci-calgary_64.c 	unsigned long target = ((unsigned long)bar) | offset;
bar               130 arch/x86/pci/common.c 	int bar;
bar               138 arch/x86/pci/common.c 		for (bar = 0; bar <= PCI_STD_RESOURCE_END; bar++) {
bar               139 arch/x86/pci/common.c 			bar_r = &dev->resource[bar];
bar                99 arch/x86/pci/intel_mid_pci.c 	int bar = (reg - PCI_BASE_ADDRESS_0) >> 2;
bar               108 arch/x86/pci/intel_mid_pci.c 			       offset + 8 + (bar * 4), 4, &size);
bar                74 arch/xtensa/kernel/pci.c int pci_iobar_pfn(struct pci_dev *pdev, int bar, struct vm_area_struct *vma)
bar                77 arch/xtensa/kernel/pci.c 	resource_size_t ioaddr = pci_resource_start(pdev, bar);
bar                64 arch/xtensa/lib/pci-auto.c 	int bar, bar_nr;
bar                68 arch/xtensa/lib/pci-auto.c 	for (bar = PCI_BASE_ADDRESS_0, bar_nr = 0;
bar                69 arch/xtensa/lib/pci-auto.c 	     bar <= bar_limit;
bar                70 arch/xtensa/lib/pci-auto.c 	     bar+=4, bar_nr++)
bar                73 arch/xtensa/lib/pci-auto.c 		pci_write_config_dword(dev, bar, 0xffffffff);
bar                74 arch/xtensa/lib/pci-auto.c 		pci_read_config_dword(dev, bar, &bar_size);
bar               102 arch/xtensa/lib/pci-auto.c 		pci_write_config_dword(dev, bar, *upper_limit);
bar               111 arch/xtensa/lib/pci-auto.c 			pci_write_config_dword(dev, (bar+=4), 0x00000000);
bar              1476 drivers/ata/ahci.c static void ahci_remap_check(struct pci_dev *pdev, int bar,
bar              1486 drivers/ata/ahci.c 	    pci_resource_len(pdev, bar) < SZ_512K ||
bar              1487 drivers/ata/ahci.c 	    bar != AHCI_PCI_BAR_STANDARD ||
bar               270 drivers/ata/libata-eh.c void ata_port_pbar_desc(struct ata_port *ap, int bar, ssize_t offset,
bar               277 drivers/ata/libata-eh.c 	if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM)
bar               279 drivers/ata/libata-eh.c 	else if (pci_resource_flags(pdev, bar) & IORESOURCE_IO)
bar               282 drivers/ata/libata-eh.c 	start = (unsigned long long)pci_resource_start(pdev, bar);
bar               283 drivers/ata/libata-eh.c 	len = (unsigned long long)pci_resource_len(pdev, bar);
bar              2321 drivers/ata/sata_nv.c 	u32 bar;
bar              2328 drivers/ata/sata_nv.c 	for (bar = 0; bar < 6; bar++)
bar              2329 drivers/ata/sata_nv.c 		if (pci_resource_start(pdev, bar) == 0)
bar               605 drivers/char/agp/intel-gtt.c 	int ret, bar;
bar               657 drivers/char/agp/intel-gtt.c 		bar = I810_GMADR_BAR;
bar               659 drivers/char/agp/intel-gtt.c 		bar = I915_GMADR_BAR;
bar               661 drivers/char/agp/intel-gtt.c 	intel_private.gma_bus_addr = pci_bus_address(intel_private.pcidev, bar);
bar                53 drivers/crypto/ccp/sp-dev.h 	const unsigned int bar;
bar               195 drivers/crypto/ccp/sp-pci.c 	sp->io_map = iomap_table[sp->dev_vdata->bar];
bar               286 drivers/crypto/ccp/sp-pci.c 		.bar = 2,
bar               292 drivers/crypto/ccp/sp-pci.c 		.bar = 2,
bar               301 drivers/crypto/ccp/sp-pci.c 		.bar = 2,
bar               307 drivers/crypto/ccp/sp-pci.c 		.bar = 2,
bar                35 drivers/crypto/ccp/sp-platform.c 		.bar = 0,
bar               405 drivers/crypto/hifn_795x.c 	void __iomem		*bar[3];
bar               630 drivers/crypto/hifn_795x.c 	return readl(dev->bar[0] + reg);
bar               635 drivers/crypto/hifn_795x.c 	return readl(dev->bar[1] + reg);
bar               640 drivers/crypto/hifn_795x.c 	writel((__force u32)cpu_to_le32(val), dev->bar[0] + reg);
bar               645 drivers/crypto/hifn_795x.c 	writel((__force u32)cpu_to_le32(val), dev->bar[1] + reg);
bar              2509 drivers/crypto/hifn_795x.c 		dev->bar[i] = ioremap_nocache(addr, size);
bar              2510 drivers/crypto/hifn_795x.c 		if (!dev->bar[i]) {
bar              2579 drivers/crypto/hifn_795x.c 		if (dev->bar[i])
bar              2580 drivers/crypto/hifn_795x.c 			iounmap(dev->bar[i]);
bar              2615 drivers/crypto/hifn_795x.c 			if (dev->bar[i])
bar              2616 drivers/crypto/hifn_795x.c 				iounmap(dev->bar[i]);
bar                97 drivers/crypto/qat/qat_c3xxx/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i];
bar                99 drivers/crypto/qat/qat_c3xxx/adf_drv.c 		if (bar->virt_addr)
bar               100 drivers/crypto/qat/qat_c3xxx/adf_drv.c 			pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr);
bar               235 drivers/crypto/qat/qat_c3xxx/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i++];
bar               237 drivers/crypto/qat/qat_c3xxx/adf_drv.c 		bar->base_addr = pci_resource_start(pdev, bar_nr);
bar               238 drivers/crypto/qat/qat_c3xxx/adf_drv.c 		if (!bar->base_addr)
bar               240 drivers/crypto/qat/qat_c3xxx/adf_drv.c 		bar->size = pci_resource_len(pdev, bar_nr);
bar               241 drivers/crypto/qat/qat_c3xxx/adf_drv.c 		bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0);
bar               242 drivers/crypto/qat/qat_c3xxx/adf_drv.c 		if (!bar->virt_addr) {
bar                97 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i];
bar                99 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c 		if (bar->virt_addr)
bar               100 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c 			pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr);
bar               215 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i++];
bar               217 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c 		bar->base_addr = pci_resource_start(pdev, bar_nr);
bar               218 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c 		if (!bar->base_addr)
bar               220 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c 		bar->size = pci_resource_len(pdev, bar_nr);
bar               221 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c 		bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0);
bar               222 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c 		if (!bar->virt_addr) {
bar                97 drivers/crypto/qat/qat_c62x/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i];
bar                99 drivers/crypto/qat/qat_c62x/adf_drv.c 		if (bar->virt_addr)
bar               100 drivers/crypto/qat/qat_c62x/adf_drv.c 			pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr);
bar               235 drivers/crypto/qat/qat_c62x/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i++];
bar               237 drivers/crypto/qat/qat_c62x/adf_drv.c 		bar->base_addr = pci_resource_start(pdev, bar_nr);
bar               238 drivers/crypto/qat/qat_c62x/adf_drv.c 		if (!bar->base_addr)
bar               240 drivers/crypto/qat/qat_c62x/adf_drv.c 		bar->size = pci_resource_len(pdev, bar_nr);
bar               241 drivers/crypto/qat/qat_c62x/adf_drv.c 		bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0);
bar               242 drivers/crypto/qat/qat_c62x/adf_drv.c 		if (!bar->virt_addr) {
bar                97 drivers/crypto/qat/qat_c62xvf/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i];
bar                99 drivers/crypto/qat/qat_c62xvf/adf_drv.c 		if (bar->virt_addr)
bar               100 drivers/crypto/qat/qat_c62xvf/adf_drv.c 			pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr);
bar               215 drivers/crypto/qat/qat_c62xvf/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i++];
bar               217 drivers/crypto/qat/qat_c62xvf/adf_drv.c 		bar->base_addr = pci_resource_start(pdev, bar_nr);
bar               218 drivers/crypto/qat/qat_c62xvf/adf_drv.c 		if (!bar->base_addr)
bar               220 drivers/crypto/qat/qat_c62xvf/adf_drv.c 		bar->size = pci_resource_len(pdev, bar_nr);
bar               221 drivers/crypto/qat/qat_c62xvf/adf_drv.c 		bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0);
bar               222 drivers/crypto/qat/qat_c62xvf/adf_drv.c 		if (!bar->virt_addr) {
bar                97 drivers/crypto/qat/qat_dh895xcc/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i];
bar                99 drivers/crypto/qat/qat_dh895xcc/adf_drv.c 		if (bar->virt_addr)
bar               100 drivers/crypto/qat/qat_dh895xcc/adf_drv.c 			pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr);
bar               237 drivers/crypto/qat/qat_dh895xcc/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i++];
bar               239 drivers/crypto/qat/qat_dh895xcc/adf_drv.c 		bar->base_addr = pci_resource_start(pdev, bar_nr);
bar               240 drivers/crypto/qat/qat_dh895xcc/adf_drv.c 		if (!bar->base_addr)
bar               242 drivers/crypto/qat/qat_dh895xcc/adf_drv.c 		bar->size = pci_resource_len(pdev, bar_nr);
bar               243 drivers/crypto/qat/qat_dh895xcc/adf_drv.c 		bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0);
bar               244 drivers/crypto/qat/qat_dh895xcc/adf_drv.c 		if (!bar->virt_addr) {
bar                97 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i];
bar                99 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c 		if (bar->virt_addr)
bar               100 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c 			pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr);
bar               215 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c 		struct adf_bar *bar = &accel_pci_dev->pci_bars[i++];
bar               217 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c 		bar->base_addr = pci_resource_start(pdev, bar_nr);
bar               218 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c 		if (!bar->base_addr)
bar               220 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c 		bar->size = pci_resource_len(pdev, bar_nr);
bar               221 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c 		bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0);
bar               222 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c 		if (!bar->virt_addr) {
bar               676 drivers/dma/mxs-dma.c 		u32 bar;
bar               681 drivers/dma/mxs-dma.c 		bar = readl(mxs_dma->base +
bar               683 drivers/dma/mxs-dma.c 		residue -= bar;
bar                34 drivers/fpga/dfl-pci.c static void __iomem *cci_pci_ioremap_bar(struct pci_dev *pcidev, int bar)
bar                36 drivers/fpga/dfl-pci.c 	if (pcim_iomap_regions(pcidev, BIT(bar), DRV_NAME))
bar                39 drivers/fpga/dfl-pci.c 	return pcim_iomap_table(pcidev)[bar];
bar                90 drivers/fpga/dfl-pci.c 	int port_num, bar, i, ret = 0;
bar               138 drivers/fpga/dfl-pci.c 			bar = FIELD_GET(FME_PORT_OFST_BAR_ID, v);
bar               140 drivers/fpga/dfl-pci.c 			base = cci_pci_ioremap_bar(pcidev, bar);
bar               144 drivers/fpga/dfl-pci.c 			start = pci_resource_start(pcidev, bar) + offset;
bar               145 drivers/fpga/dfl-pci.c 			len = pci_resource_len(pcidev, bar) - offset;
bar               127 drivers/gpu/drm/i915/gvt/cfg_space.c 	if (map == vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_APERTURE].tracked)
bar               145 drivers/gpu/drm/i915/gvt/cfg_space.c 	vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_APERTURE].tracked = map;
bar               155 drivers/gpu/drm/i915/gvt/cfg_space.c 	if (trap == vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_GTTMMIO].tracked)
bar               165 drivers/gpu/drm/i915/gvt/cfg_space.c 	end = start + vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_GTTMMIO].size - 1;
bar               171 drivers/gpu/drm/i915/gvt/cfg_space.c 	vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_GTTMMIO].tracked = trap;
bar               229 drivers/gpu/drm/i915/gvt/cfg_space.c 	struct intel_vgpu_pci_bar *bars = vgpu->cfg_space.bar;
bar               393 drivers/gpu/drm/i915/gvt/cfg_space.c 	vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_GTTMMIO].size =
bar               395 drivers/gpu/drm/i915/gvt/cfg_space.c 	vgpu->cfg_space.bar[INTEL_GVT_PCI_BAR_APERTURE].size =
bar               108 drivers/gpu/drm/i915/gvt/gvt.h 	struct intel_vgpu_pci_bar bar[INTEL_GVT_MAX_BAR_NUM];
bar               538 drivers/gpu/drm/i915/gvt/gvt.h static inline u64 intel_vgpu_get_bar_gpa(struct intel_vgpu *vgpu, int bar)
bar               541 drivers/gpu/drm/i915/gvt/gvt.h 	return (*(u64 *)(vgpu->cfg_space.virtual_cfg_space + bar)) &
bar               857 drivers/gpu/drm/i915/gvt/kvmgt.c static u64 intel_vgpu_get_bar_addr(struct intel_vgpu *vgpu, int bar)
bar               862 drivers/gpu/drm/i915/gvt/kvmgt.c 	start_lo = (*(u32 *)(vgpu->cfg_space.virtual_cfg_space + bar)) &
bar               864 drivers/gpu/drm/i915/gvt/kvmgt.c 	mem_type = (*(u32 *)(vgpu->cfg_space.virtual_cfg_space + bar)) &
bar               870 drivers/gpu/drm/i915/gvt/kvmgt.c 						+ bar + 4));
bar               884 drivers/gpu/drm/i915/gvt/kvmgt.c static int intel_vgpu_bar_rw(struct intel_vgpu *vgpu, int bar, u64 off,
bar               887 drivers/gpu/drm/i915/gvt/kvmgt.c 	u64 bar_start = intel_vgpu_get_bar_addr(vgpu, bar);
bar              1329 drivers/gpu/drm/i915/gvt/kvmgt.c 			info.size = vgpu->cfg_space.bar[info.index].size;
bar               132 drivers/gpu/drm/nouveau/include/nvkm/core/device.h 	struct nvkm_bar *bar;
bar               192 drivers/gpu/drm/nouveau/include/nvkm/core/device.h 	resource_size_t (*resource_addr)(struct nvkm_device *, unsigned bar);
bar               193 drivers/gpu/drm/nouveau/include/nvkm/core/device.h 	resource_size_t (*resource_size)(struct nvkm_device *, unsigned bar);
bar               205 drivers/gpu/drm/nouveau/include/nvkm/core/device.h 	int (*bar     )(struct nvkm_device *, int idx, struct nvkm_bar **);
bar               813 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = nv50_bar_new,
bar               920 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar               952 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar               984 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1016 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1048 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1080 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1112 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1144 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1178 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1211 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1244 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1276 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1308 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = g84_bar_new,
bar              1341 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1378 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1414 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1450 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1487 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1524 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1561 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1597 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1632 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1668 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1707 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1746 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1785 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gk20a_bar_new,
bar              1810 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1848 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1886 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1924 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gf100_bar_new,
bar              1962 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              1996 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2030 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2065 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2100 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2135 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm20b_bar_new,
bar              2160 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2196 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2232 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2268 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2304 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2340 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2376 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm20b_bar_new,
bar              2400 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = gm107_bar_new,
bar              2441 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = tu102_bar_new,
bar              2476 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = tu102_bar_new,
bar              2511 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = tu102_bar_new,
bar              2546 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = tu102_bar_new,
bar              2581 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.bar = tu102_bar_new,
bar              2641 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	_(BAR     , device->bar     , &device->bar->subdev);
bar              3147 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 		_(NVKM_SUBDEV_BAR     ,      bar);
bar              1564 drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c nvkm_device_pci_resource_addr(struct nvkm_device *device, unsigned bar)
bar              1567 drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c 	return pci_resource_start(pdev->pdev, bar);
bar              1571 drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c nvkm_device_pci_resource_size(struct nvkm_device *device, unsigned bar)
bar              1574 drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c 	return pci_resource_len(pdev->pdev, bar);
bar               193 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c nvkm_device_tegra_resource(struct nvkm_device *device, unsigned bar)
bar               196 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c 	return platform_get_resource(tdev->pdev, IORESOURCE_MEM, bar);
bar               200 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c nvkm_device_tegra_resource_addr(struct nvkm_device *device, unsigned bar)
bar               202 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c 	struct resource *res = nvkm_device_tegra_resource(device, bar);
bar               207 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c nvkm_device_tegra_resource_size(struct nvkm_device *device, unsigned bar)
bar               209 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c 	struct resource *res = nvkm_device_tegra_resource(device, bar);
bar               355 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c 		    u64 hvmm, u64 push, u64 engines, int bar, u32 base,
bar               416 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c 	chan->addr = device->func->resource_addr(device, bar) +
bar                25 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.h 			u64 engines, int bar, u32 base, u32 user,
bar               579 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 	struct nvkm_vmm *bar = nvkm_bar_bar1_vmm(device);
bar               605 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 	ret = nvkm_vmm_get(bar, 12, nvkm_memory_size(fifo->user.mem),
bar               606 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 			   &fifo->user.bar);
bar               610 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 	return nvkm_memory_map(fifo->user.mem, 0, bar, fifo->user.bar, NULL, 0);
bar               649 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 	nvkm_wr32(device, 0x002254, 0x10000000 | fifo->user.bar->addr >> 12);
bar               661 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 	nvkm_vmm_put(nvkm_bar_bar1_vmm(device), &fifo->user.bar);
bar                30 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.h 		struct nvkm_vma *bar;
bar               908 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	struct nvkm_vmm *bar = nvkm_bar_bar1_vmm(device);
bar               969 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	ret = nvkm_vmm_get(bar, 12, nvkm_memory_size(fifo->user.mem),
bar               970 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 			   &fifo->user.bar);
bar               974 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	return nvkm_memory_map(fifo->user.mem, 0, bar, fifo->user.bar, NULL, 0);
bar              1000 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	nvkm_wr32(device, 0x002254, 0x10000000 | fifo->user.bar->addr >> 12);
bar              1016 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	nvkm_vmm_put(nvkm_bar_bar1_vmm(device), &fifo->user.bar);
bar                43 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h 		struct nvkm_vma *bar;
bar               253 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c 				  1, fifo->user.bar->addr, 0x1000,
bar               277 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c 				  1, fifo->user.bar->addr, 0x200,
bar               156 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c 				  0, subdevs, 1, fifo->user.bar->addr, 0x200,
bar                48 drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c 	nvkm_bar_flush(device->bar);
bar                48 drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c 	nvkm_bar_flush(device->bar);
bar                27 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c nvkm_bar_flush(struct nvkm_bar *bar)
bar                29 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	if (bar && bar->func->flush)
bar                30 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->func->flush(bar);
bar                36 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	return device->bar->func->bar1.vmm(device->bar);
bar                42 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	struct nvkm_bar *bar = device->bar;
bar                43 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	if (bar) {
bar                44 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->func->bar1.init(bar);
bar                45 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->func->bar1.wait(bar);
bar                55 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	struct nvkm_bar *bar = device->bar;
bar                56 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	if (bar && bar->bar2)
bar                57 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		return bar->func->bar2.vmm(bar);
bar                64 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	struct nvkm_bar *bar = device->bar;
bar                65 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	if (bar && bar->bar2) {
bar                66 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->func->bar2.init(bar);
bar                67 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->func->bar2.wait(bar);
bar                74 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	struct nvkm_bar *bar = device->bar;
bar                75 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	if (bar && bar->bar2) {
bar                76 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->func->bar2.fini(bar);
bar                77 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->bar2 = false;
bar                84 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	struct nvkm_bar *bar = device->bar;
bar                85 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	if (bar && bar->subdev.oneinit && !bar->bar2 && bar->func->bar2.init) {
bar                86 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->func->bar2.init(bar);
bar                87 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->func->bar2.wait(bar);
bar                88 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->bar2 = true;
bar                95 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	struct nvkm_bar *bar = nvkm_bar(subdev);
bar                96 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	if (bar->func->bar1.fini)
bar                97 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->func->bar1.fini(bar);
bar               104 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	struct nvkm_bar *bar = nvkm_bar(subdev);
bar               105 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	bar->func->bar1.init(bar);
bar               106 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	bar->func->bar1.wait(bar);
bar               107 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	if (bar->func->init)
bar               108 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 		bar->func->init(bar);
bar               115 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	struct nvkm_bar *bar = nvkm_bar(subdev);
bar               116 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	return bar->func->oneinit(bar);
bar               122 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	struct nvkm_bar *bar = nvkm_bar(subdev);
bar               124 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	return bar->func->dtor(bar);
bar               137 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	      int index, struct nvkm_bar *bar)
bar               139 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	nvkm_subdev_ctor(&nvkm_bar, device, index, &bar->subdev);
bar               140 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	bar->func = func;
bar               141 drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c 	spin_lock_init(&bar->lock);
bar                29 drivers/gpu/drm/nouveau/nvkm/subdev/bar/g84.c g84_bar_flush(struct nvkm_bar *bar)
bar                31 drivers/gpu/drm/nouveau/nvkm/subdev/bar/g84.c 	struct nvkm_device *device = bar->subdev.device;
bar                33 drivers/gpu/drm/nouveau/nvkm/subdev/bar/g84.c 	spin_lock_irqsave(&bar->lock, flags);
bar                39 drivers/gpu/drm/nouveau/nvkm/subdev/bar/g84.c 	spin_unlock_irqrestore(&bar->lock, flags);
bar                34 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	return gf100_bar(base)->bar[1].vmm;
bar                46 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c gf100_bar_bar1_fini(struct nvkm_bar *bar)
bar                48 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	nvkm_mask(bar->subdev.device, 0x001704, 0x80000000, 0x00000000);
bar                55 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	struct gf100_bar *bar = gf100_bar(base);
bar                56 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	const u32 addr = nvkm_memory_addr(bar->bar[1].inst) >> 12;
bar                63 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	return gf100_bar(base)->bar[0].vmm;
bar                67 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c gf100_bar_bar2_fini(struct nvkm_bar *bar)
bar                69 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	nvkm_mask(bar->subdev.device, 0x001714, 0x80000000, 0x00000000);
bar                76 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	struct gf100_bar *bar = gf100_bar(base);
bar                77 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	u32 addr = nvkm_memory_addr(bar->bar[0].inst) >> 12;
bar                78 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	if (bar->bar2_halve)
bar                84 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c gf100_bar_oneinit_bar(struct gf100_bar *bar, struct gf100_barN *bar_vm,
bar                87 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	struct nvkm_device *device = bar->base.subdev.device;
bar                99 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	if (bar_nr == 3 && bar->bar2_halve)
bar               108 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	bar_vm->vmm->debug = bar->base.subdev.debug;
bar               127 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	struct gf100_bar *bar = gf100_bar(base);
bar               131 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	if (bar->base.func->bar2.init) {
bar               132 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 		ret = gf100_bar_oneinit_bar(bar, &bar->bar[0], &bar2_lock, 3);
bar               136 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 		bar->base.subdev.oneinit = true;
bar               137 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 		nvkm_bar_bar2_init(bar->base.subdev.device);
bar               141 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	ret = gf100_bar_oneinit_bar(bar, &bar->bar[1], &bar1_lock, 1);
bar               151 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	struct gf100_bar *bar = gf100_bar(base);
bar               153 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	nvkm_vmm_part(bar->bar[1].vmm, bar->bar[1].inst);
bar               154 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	nvkm_vmm_unref(&bar->bar[1].vmm);
bar               155 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	nvkm_memory_unref(&bar->bar[1].inst);
bar               157 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	nvkm_vmm_part(bar->bar[0].vmm, bar->bar[0].inst);
bar               158 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	nvkm_vmm_unref(&bar->bar[0].vmm);
bar               159 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	nvkm_memory_unref(&bar->bar[0].inst);
bar               160 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	return bar;
bar               167 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	struct gf100_bar *bar;
bar               168 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	if (!(bar = kzalloc(sizeof(*bar), GFP_KERNEL)))
bar               170 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	nvkm_bar_ctor(func, device, index, &bar->base);
bar               171 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	bar->bar2_halve = nvkm_boolopt(device->cfgopt, "NvBar2Halve", false);
bar               172 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c 	*pbar = &bar->base;
bar                15 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.h 	struct gf100_barN bar[2];
bar                27 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gm107.c gm107_bar_bar1_wait(struct nvkm_bar *bar)
bar                29 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gm107.c 	struct nvkm_device *device = bar->subdev.device;
bar                37 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gm107.c gm107_bar_bar2_wait(struct nvkm_bar *bar)
bar                39 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gm107.c 	struct nvkm_device *device = bar->subdev.device;
bar                34 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	struct nv50_bar *bar = nv50_bar(base);
bar                35 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	struct nvkm_device *device = bar->base.subdev.device;
bar                37 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	spin_lock_irqsave(&bar->base.lock, flags);
bar                43 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	spin_unlock_irqrestore(&bar->base.lock, flags);
bar                59 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c nv50_bar_bar1_fini(struct nvkm_bar *bar)
bar                61 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wr32(bar->subdev.device, 0x001708, 0x00000000);
bar                68 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	struct nv50_bar *bar = nv50_bar(base);
bar                69 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wr32(device, 0x001708, 0x80000000 | bar->bar1->node->offset >> 4);
bar                79 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c nv50_bar_bar2_fini(struct nvkm_bar *bar)
bar                81 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wr32(bar->subdev.device, 0x00170c, 0x00000000);
bar                88 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	struct nv50_bar *bar = nv50_bar(base);
bar                89 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wr32(device, 0x001704, 0x00000000 | bar->mem->addr >> 12);
bar                90 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wr32(device, 0x001704, 0x40000000 | bar->mem->addr >> 12);
bar                91 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wr32(device, 0x00170c, 0x80000000 | bar->bar2->node->offset >> 4);
bar                97 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	struct nv50_bar *bar = nv50_bar(base);
bar                98 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	struct nvkm_device *device = bar->base.subdev.device;
bar               108 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	struct nv50_bar *bar = nv50_bar(base);
bar               109 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	struct nvkm_device *device = bar->base.subdev.device;
bar               115 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	ret = nvkm_gpuobj_new(device, 0x20000, 0, false, NULL, &bar->mem);
bar               119 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	ret = nvkm_gpuobj_new(device, bar->pgd_addr, 0, false, bar->mem,
bar               120 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 			      &bar->pad);
bar               124 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	ret = nvkm_gpuobj_new(device, 0x4000, 0, false, bar->mem, &bar->pgd);
bar               136 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 			   &bar2_lock, "bar2", &bar->bar2_vmm);
bar               140 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	atomic_inc(&bar->bar2_vmm->engref[NVKM_SUBDEV_BAR]);
bar               141 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	bar->bar2_vmm->debug = bar->base.subdev.debug;
bar               143 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	ret = nvkm_vmm_boot(bar->bar2_vmm);
bar               147 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	ret = nvkm_vmm_join(bar->bar2_vmm, bar->mem->memory);
bar               151 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	ret = nvkm_gpuobj_new(device, 24, 16, false, bar->mem, &bar->bar2);
bar               155 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_kmap(bar->bar2);
bar               156 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar2, 0x00, 0x7fc00000);
bar               157 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar2, 0x04, lower_32_bits(limit));
bar               158 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar2, 0x08, lower_32_bits(start));
bar               159 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar2, 0x0c, upper_32_bits(limit) << 24 |
bar               161 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar2, 0x10, 0x00000000);
bar               162 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar2, 0x14, 0x00000000);
bar               163 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_done(bar->bar2);
bar               165 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	bar->base.subdev.oneinit = true;
bar               176 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 			   &bar1_lock, "bar1", &bar->bar1_vmm);
bar               180 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	atomic_inc(&bar->bar1_vmm->engref[NVKM_SUBDEV_BAR]);
bar               181 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	bar->bar1_vmm->debug = bar->base.subdev.debug;
bar               183 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	ret = nvkm_vmm_join(bar->bar1_vmm, bar->mem->memory);
bar               187 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	ret = nvkm_gpuobj_new(device, 24, 16, false, bar->mem, &bar->bar1);
bar               191 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_kmap(bar->bar1);
bar               192 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar1, 0x00, 0x7fc00000);
bar               193 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar1, 0x04, lower_32_bits(limit));
bar               194 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar1, 0x08, lower_32_bits(start));
bar               195 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar1, 0x0c, upper_32_bits(limit) << 24 |
bar               197 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar1, 0x10, 0x00000000);
bar               198 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_wo32(bar->bar1, 0x14, 0x00000000);
bar               199 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_done(bar->bar1);
bar               206 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	struct nv50_bar *bar = nv50_bar(base);
bar               207 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	if (bar->mem) {
bar               208 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 		nvkm_gpuobj_del(&bar->bar1);
bar               209 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 		nvkm_vmm_part(bar->bar1_vmm, bar->mem->memory);
bar               210 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 		nvkm_vmm_unref(&bar->bar1_vmm);
bar               211 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 		nvkm_gpuobj_del(&bar->bar2);
bar               212 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 		nvkm_vmm_part(bar->bar2_vmm, bar->mem->memory);
bar               213 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 		nvkm_vmm_unref(&bar->bar2_vmm);
bar               214 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 		nvkm_gpuobj_del(&bar->pgd);
bar               215 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 		nvkm_gpuobj_del(&bar->pad);
bar               216 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 		nvkm_gpuobj_del(&bar->mem);
bar               218 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	return bar;
bar               225 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	struct nv50_bar *bar;
bar               226 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	if (!(bar = kzalloc(sizeof(*bar), GFP_KERNEL)))
bar               228 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	nvkm_bar_ctor(func, device, index, &bar->base);
bar               229 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	bar->pgd_addr = pgd_addr;
bar               230 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c 	*pbar = &bar->base;
bar                28 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c tu102_bar_bar2_wait(struct nvkm_bar *bar)
bar                30 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c 	struct nvkm_device *device = bar->subdev.device;
bar                38 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c tu102_bar_bar2_fini(struct nvkm_bar *bar)
bar                40 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c 	nvkm_mask(bar->subdev.device, 0xb80f48, 0x80000000, 0x00000000);
bar                47 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c 	struct gf100_bar *bar = gf100_bar(base);
bar                48 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c 	u32 addr = nvkm_memory_addr(bar->bar[0].inst) >> 12;
bar                49 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c 	if (bar->bar2_halve)
bar                55 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c tu102_bar_bar1_wait(struct nvkm_bar *bar)
bar                57 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c 	struct nvkm_device *device = bar->subdev.device;
bar                65 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c tu102_bar_bar1_fini(struct nvkm_bar *bar)
bar                67 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c 	nvkm_mask(bar->subdev.device, 0xb80f40, 0x80000000, 0x00000000);
bar                74 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c 	struct gf100_bar *bar = gf100_bar(base);
bar                75 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c 	const u32 addr = nvkm_memory_addr(bar->bar[1].inst) >> 12;
bar               243 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c 	int bar;
bar               252 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c 		bar = 2;
bar               254 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c 		bar = 3;
bar               256 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c 	imem->iomem = ioremap_wc(device->func->resource_addr(device, bar),
bar               257 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c 				 device->func->resource_size(device, bar));
bar                49 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 	struct nvkm_vma *bar;
bar               127 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 	struct nvkm_vma *bar = NULL, *ebar;
bar               137 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 	while ((ret = nvkm_vmm_get(vmm, 12, size, &bar))) {
bar               147 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 				   eobj->bar->addr);
bar               149 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 			ebar = eobj->bar;
bar               150 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 			eobj->bar = NULL;
bar               162 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 		ret = nvkm_memory_map(memory, 0, vmm, bar, NULL, 0);
bar               164 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 	if (ret || iobj->bar) {
bar               167 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 		nvkm_vmm_put(vmm, &bar);
bar               173 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 	iobj->bar = bar;
bar               175 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 			       (u32)iobj->bar->addr, size);
bar               178 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 		nvkm_vmm_put(vmm, &iobj->bar);
bar               198 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 	nvkm_bar_flush(subdev->device->bar);
bar               298 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 		addr = iobj->bar->addr;
bar               315 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 	struct nvkm_vma *bar;
bar               322 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 	bar = iobj->bar;
bar               329 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c 			nvkm_vmm_put(vmm, &bar);
bar               295 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c 	if (!device->bar || device->bar->iomap_uncached)
bar               351 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c 	if (device->bar) {
bar               354 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c 		if (!device->bar->iomap_uncached) {
bar                43 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/memgf100.c 	struct nvkm_vmm *bar = nvkm_bar_bar1_vmm(device);
bar                54 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/memgf100.c 	ret = nvkm_vmm_get(bar, nvkm_memory_page(memory),
bar                59 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/memgf100.c 	ret = nvkm_memory_map(memory, 0, bar, *pvma, &uvmm, sizeof(uvmm));
bar                43 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/memnv50.c 	struct nvkm_vmm *bar = nvkm_bar_bar1_vmm(device);
bar                56 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/memnv50.c 	ret = nvkm_vmm_get(bar, 12, size, pvma);
bar                62 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/memnv50.c 	return nvkm_memory_map(memory, 0, bar, *pvma, &uvmm, sizeof(uvmm));
bar                72 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/umem.c 		if (!IS_ERR(umem->bar)) {
bar                74 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/umem.c 			nvkm_vmm_put(nvkm_bar_bar1_vmm(device), &umem->bar);
bar                76 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/umem.c 			umem->bar = NULL;
bar               111 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/umem.c 					      handle, length, &umem->bar);
bar                19 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/umem.h 		struct nvkm_vma *bar;
bar               619 drivers/hwtracing/intel_th/core.c 		int bar = TH_MMIO_CONFIG;
bar               627 drivers/hwtracing/intel_th/core.c 			bar = res[r].start;
bar               629 drivers/hwtracing/intel_th/core.c 			if (bar >= th->num_resources)
bar               632 drivers/hwtracing/intel_th/core.c 			res[r].end = resource_size(&devres[bar]) - 1;
bar               636 drivers/hwtracing/intel_th/core.c 			res[r].start	+= devres[bar].start;
bar               637 drivers/hwtracing/intel_th/core.c 			res[r].end	+= devres[bar].start;
bar               318 drivers/i2c/busses/i2c-nforce2.c static int nforce2_probe_smb(struct pci_dev *dev, int bar, int alt_reg,
bar               323 drivers/i2c/busses/i2c-nforce2.c 	smbus->base = pci_resource_start(dev, bar);
bar               325 drivers/i2c/busses/i2c-nforce2.c 		smbus->size = pci_resource_len(dev, bar);
bar                24 drivers/i2c/busses/i2c-pxa-pci.c static struct platform_device *add_i2c_device(struct pci_dev *dev, int bar)
bar                37 drivers/i2c/busses/i2c-pxa-pci.c 	res[0].start = pci_resource_start(dev, bar);
bar                38 drivers/i2c/busses/i2c-pxa-pci.c 	res[0].end = pci_resource_end(dev, bar);
bar                68 drivers/i2c/busses/i2c-pxa-pci.c 				bar);
bar               278 drivers/ide/setup-pci.c 			       int bar)
bar               280 drivers/ide/setup-pci.c 	ulong flags = pci_resource_flags(dev, bar);
bar               283 drivers/ide/setup-pci.c 	if (!flags || pci_resource_len(dev, bar) == 0)
bar              1183 drivers/infiniband/hw/mlx4/main.c 					    params.bar) +
bar                89 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	struct vnic_dev_bar *bar;
bar               104 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	bar = usnic_vnic_get_bar(qp_grp->vf->vnic, 0);
bar               105 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	if (!bar) {
bar               112 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	resp.bar_bus_addr = bar->bus_addr;
bar               113 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	resp.bar_len = bar->len;
bar               679 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	struct vnic_dev_bar *bar;
bar               697 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 			bar = usnic_vnic_get_bar(vf->vnic, 0);
bar               698 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 			if ((vma->vm_end - vma->vm_start) != bar->len) {
bar               700 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 						bar->len,
bar               705 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 			bus_addr = bar->bus_addr;
bar               706 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 			len = bar->len;
bar               708 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 					&bus_addr, bar->vaddr, bar->len);
bar                44 drivers/infiniband/hw/usnic/usnic_vnic.c 	struct vnic_dev_bar		bar[PCI_NUM_RESOURCES];
bar               357 drivers/infiniband/hw/usnic/usnic_vnic.c 	for (i = 0; i < ARRAY_SIZE(vnic->bar); i++) {
bar               360 drivers/infiniband/hw/usnic/usnic_vnic.c 		vnic->bar[i].len = pci_resource_len(pdev, i);
bar               361 drivers/infiniband/hw/usnic/usnic_vnic.c 		vnic->bar[i].vaddr = pci_iomap(pdev, i, vnic->bar[i].len);
bar               362 drivers/infiniband/hw/usnic/usnic_vnic.c 		if (!vnic->bar[i].vaddr) {
bar               368 drivers/infiniband/hw/usnic/usnic_vnic.c 		vnic->bar[i].bus_addr = pci_resource_start(pdev, i);
bar               371 drivers/infiniband/hw/usnic/usnic_vnic.c 	vnic->vdev = vnic_dev_register(NULL, pdev, pdev, vnic->bar,
bar               372 drivers/infiniband/hw/usnic/usnic_vnic.c 			ARRAY_SIZE(vnic->bar));
bar               395 drivers/infiniband/hw/usnic/usnic_vnic.c 	for (i = 0; i < ARRAY_SIZE(vnic->bar); i++) {
bar               398 drivers/infiniband/hw/usnic/usnic_vnic.c 		if (!vnic->bar[i].vaddr)
bar               401 drivers/infiniband/hw/usnic/usnic_vnic.c 		iounmap(vnic->bar[i].vaddr);
bar               415 drivers/infiniband/hw/usnic/usnic_vnic.c 	return (bar_num < ARRAY_SIZE(vnic->bar)) ? &vnic->bar[bar_num] : NULL;
bar               432 drivers/infiniband/hw/usnic/usnic_vnic.c 	for (i = 0; i < ARRAY_SIZE(vnic->bar); i++) {
bar               435 drivers/infiniband/hw/usnic/usnic_vnic.c 		iounmap(vnic->bar[i].vaddr);
bar              1163 drivers/isdn/mISDN/dsp_cmx.c 	char bar[] = "--------------------------------------------------|";
bar              1174 drivers/isdn/mISDN/dsp_cmx.c 	       sdelay > 50 ? "..." : bar + 50 - sdelay);
bar               106 drivers/mcb/mcb-internal.h 	unsigned int bar:3;
bar                62 drivers/mcb/mcb-parse.c 	mdev->bar = GDD_BAR(reg2);
bar                71 drivers/mcb/mcb-parse.c 	if (mdev->bar > bar_count - 1) {
bar                77 drivers/mcb/mcb-parse.c 	dev_mapbase = cb[mdev->bar].addr;
bar                25 drivers/media/pci/mantis/mantis_link.h 	u32				bar;
bar               119 drivers/mfd/cs5535-mfd.c 		int bar = cs5535_mfd_cells[i].id;
bar               120 drivers/mfd/cs5535-mfd.c 		struct resource *r = &cs5535_mfd_resources[bar];
bar               123 drivers/mfd/cs5535-mfd.c 		r->start = pci_resource_start(pdev, bar);
bar               124 drivers/mfd/cs5535-mfd.c 		r->end = pci_resource_end(pdev, bar);
bar               245 drivers/misc/cardreader/alcor_pci.c 	int ret, i, bar = 0;
bar               274 drivers/misc/cardreader/alcor_pci.c 	if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM)) {
bar               275 drivers/misc/cardreader/alcor_pci.c 		dev_err(&pdev->dev, "BAR %d is not iomem. Aborting.\n", bar);
bar               280 drivers/misc/cardreader/alcor_pci.c 	priv->iobase = pcim_iomap(pdev, bar, 0);
bar              1440 drivers/misc/cardreader/rtsx_pcr.c 	int ret, i, bar = 0;
bar              1486 drivers/misc/cardreader/rtsx_pcr.c 		bar = 1;
bar              1487 drivers/misc/cardreader/rtsx_pcr.c 	len = pci_resource_len(pcidev, bar);
bar              1488 drivers/misc/cardreader/rtsx_pcr.c 	base = pci_resource_start(pcidev, bar);
bar              1549 drivers/misc/habanalabs/habanalabs.h int hl_pci_set_dram_bar_base(struct hl_device *hdev, u8 inbound_region, u8 bar,
bar                29 drivers/misc/habanalabs/pci.c 	int rc, i, bar;
bar                38 drivers/misc/habanalabs/pci.c 		bar = i * 2; /* 64-bit BARs */
bar                39 drivers/misc/habanalabs/pci.c 		hdev->pcie_bar[bar] = is_wc[i] ?
bar                40 drivers/misc/habanalabs/pci.c 				pci_ioremap_wc_bar(pdev, bar) :
bar                41 drivers/misc/habanalabs/pci.c 				pci_ioremap_bar(pdev, bar);
bar                42 drivers/misc/habanalabs/pci.c 		if (!hdev->pcie_bar[bar]) {
bar                54 drivers/misc/habanalabs/pci.c 		bar = i * 2; /* 64-bit BARs */
bar                55 drivers/misc/habanalabs/pci.c 		if (hdev->pcie_bar[bar])
bar                56 drivers/misc/habanalabs/pci.c 			iounmap(hdev->pcie_bar[bar]);
bar                73 drivers/misc/habanalabs/pci.c 	int i, bar;
bar                76 drivers/misc/habanalabs/pci.c 		bar = i * 2; /* 64-bit BARs */
bar                77 drivers/misc/habanalabs/pci.c 		iounmap(hdev->pcie_bar[bar]);
bar               196 drivers/misc/habanalabs/pci.c int hl_pci_set_dram_bar_base(struct hl_device *hdev, u8 inbound_region, u8 bar,
bar               219 drivers/misc/habanalabs/pci.c 	if (bar != 0 && bar != 2 && bar != 4) {
bar               220 drivers/misc/habanalabs/pci.c 		dev_err(hdev->dev, "Invalid PCI BAR %d\n", bar);
bar               229 drivers/misc/habanalabs/pci.c 	rc |= hl_pci_iatu_write(hdev, offset + 0x4, 0xC0080000 | (bar << 8));
bar               695 drivers/misc/hpilo.c 	int bar;
bar               707 drivers/misc/hpilo.c 		bar = 5;
bar               709 drivers/misc/hpilo.c 		off = pci_resource_len(pdev, bar) - 0x2000;
bar               711 drivers/misc/hpilo.c 		bar = 2;
bar               714 drivers/misc/hpilo.c 	hw->ram_vaddr = pci_iomap_range(pdev, bar, off, max_ccb * ILOHW_CCB_SZ);
bar               131 drivers/misc/ocxl/core.c static int reserve_fn_bar(struct ocxl_fn *fn, int bar)
bar               136 drivers/misc/ocxl/core.c 	if (bar != 0 && bar != 2 && bar != 4)
bar               139 drivers/misc/ocxl/core.c 	idx = bar >> 1;
bar               141 drivers/misc/ocxl/core.c 		rc = pci_request_region(dev, bar, "ocxl");
bar               148 drivers/misc/ocxl/core.c static void release_fn_bar(struct ocxl_fn *fn, int bar)
bar               153 drivers/misc/ocxl/core.c 	if (bar != 0 && bar != 2 && bar != 4)
bar               156 drivers/misc/ocxl/core.c 	idx = bar >> 1;
bar               158 drivers/misc/ocxl/core.c 		pci_release_region(dev, bar);
bar                97 drivers/misc/pci_endpoint_test.c 	void __iomem	*bar[6];
bar               128 drivers/misc/pci_endpoint_test.c 					      int bar, int offset)
bar               130 drivers/misc/pci_endpoint_test.c 	return readl(test->bar[bar] + offset);
bar               134 drivers/misc/pci_endpoint_test.c 						int bar, u32 offset, u32 value)
bar               136 drivers/misc/pci_endpoint_test.c 	writel(value, test->bar[bar] + offset);
bar               261 drivers/misc/pci_endpoint_test.c 	if (!test->bar[barno])
bar               588 drivers/misc/pci_endpoint_test.c 	enum pci_barno bar;
bar               595 drivers/misc/pci_endpoint_test.c 		bar = arg;
bar               596 drivers/misc/pci_endpoint_test.c 		if (bar < 0 || bar > 5)
bar               598 drivers/misc/pci_endpoint_test.c 		if (is_am654_pci_dev(pdev) && bar == BAR_0)
bar               600 drivers/misc/pci_endpoint_test.c 		ret = pci_endpoint_test_bar(test, bar);
bar               642 drivers/misc/pci_endpoint_test.c 	enum pci_barno bar;
bar               696 drivers/misc/pci_endpoint_test.c 	for (bar = BAR_0; bar <= BAR_5; bar++) {
bar               697 drivers/misc/pci_endpoint_test.c 		if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) {
bar               698 drivers/misc/pci_endpoint_test.c 			base = pci_ioremap_bar(pdev, bar);
bar               700 drivers/misc/pci_endpoint_test.c 				dev_err(dev, "Failed to read BAR%d\n", bar);
bar               701 drivers/misc/pci_endpoint_test.c 				WARN_ON(bar == test_reg_bar);
bar               703 drivers/misc/pci_endpoint_test.c 			test->bar[bar] = base;
bar               707 drivers/misc/pci_endpoint_test.c 	test->base = test->bar[test_reg_bar];
bar               749 drivers/misc/pci_endpoint_test.c 	for (bar = BAR_0; bar <= BAR_5; bar++) {
bar               750 drivers/misc/pci_endpoint_test.c 		if (test->bar[bar])
bar               751 drivers/misc/pci_endpoint_test.c 			pci_iounmap(pdev, test->bar[bar]);
bar               768 drivers/misc/pci_endpoint_test.c 	enum pci_barno bar;
bar               780 drivers/misc/pci_endpoint_test.c 	for (bar = BAR_0; bar <= BAR_5; bar++) {
bar               781 drivers/misc/pci_endpoint_test.c 		if (test->bar[bar])
bar               782 drivers/misc/pci_endpoint_test.c 			pci_iounmap(pdev, test->bar[bar]);
bar              1898 drivers/mmc/host/sdhci-pci-core.c 	int ret, bar = first_bar + slotno;
bar              1901 drivers/mmc/host/sdhci-pci-core.c 	if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM)) {
bar              1902 drivers/mmc/host/sdhci-pci-core.c 		dev_err(&pdev->dev, "BAR %d is not iomem. Aborting.\n", bar);
bar              1906 drivers/mmc/host/sdhci-pci-core.c 	if (pci_resource_len(pdev, bar) < 0x100) {
bar              1960 drivers/mmc/host/sdhci-pci-core.c 	ret = pcim_iomap_regions(pdev, BIT(bar), mmc_hostname(host->mmc));
bar              1966 drivers/mmc/host/sdhci-pci-core.c 	host->ioaddr = pcim_iomap_table(pdev)[bar];
bar               145 drivers/net/arcnet/com20020-pci.c 		ioaddr = pci_resource_start(pdev, mm->bar) + mm->offset;
bar               173 drivers/net/arcnet/com20020-pci.c 		ioaddr = pci_resource_start(pdev, cm->bar) + cm->offset;
bar               303 drivers/net/arcnet/com20020-pci.c 			.bar = 2,
bar               316 drivers/net/arcnet/com20020-pci.c 			.bar = 2,
bar               330 drivers/net/arcnet/com20020-pci.c 			.bar = 4,
bar               343 drivers/net/arcnet/com20020-pci.c 			.bar = 2,
bar               349 drivers/net/arcnet/com20020-pci.c 		.bar = 2,
bar               368 drivers/net/arcnet/com20020-pci.c 			.bar = 2,
bar               372 drivers/net/arcnet/com20020-pci.c 			.bar = 2,
bar               378 drivers/net/arcnet/com20020-pci.c 		.bar = 2,
bar               400 drivers/net/arcnet/com20020-pci.c 			.bar = 2,
bar               406 drivers/net/arcnet/com20020-pci.c 		.bar = 2,
bar                46 drivers/net/arcnet/com20020.h 	u32 bar;
bar                39 drivers/net/can/c_can/c_can_pci.c 	int bar;
bar               141 drivers/net/can/c_can/c_can_pci.c 	addr = pci_iomap(pdev, c_can_pci_data->bar,
bar               142 drivers/net/can/c_can/c_can_pci.c 			 pci_resource_len(pdev, c_can_pci_data->bar));
bar               258 drivers/net/can/c_can/c_can_pci.c 	.bar = 0,
bar               266 drivers/net/can/c_can/c_can_pci.c 	.bar = 1,
bar               159 drivers/net/can/sja1000/plx_pci.c 	u32 bar;
bar               538 drivers/net/can/sja1000/plx_pci.c 		addr = pci_iomap(pdev, chan_map->bar, chan_map->size);
bar               541 drivers/net/can/sja1000/plx_pci.c 				"space %d (BAR%d)\n", i, chan_map->bar);
bar               656 drivers/net/can/sja1000/plx_pci.c 	addr = pci_iomap(pdev, ci->conf_map.bar, ci->conf_map.size);
bar               660 drivers/net/can/sja1000/plx_pci.c 			"(BAR%d)\n", ci->conf_map.bar);
bar               689 drivers/net/can/sja1000/plx_pci.c 		addr = pci_iomap(pdev, cm->bar, cm->size);
bar               692 drivers/net/can/sja1000/plx_pci.c 			dev_err(&pdev->dev, "Failed to remap BAR%d\n", cm->bar);
bar               203 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	u32 bar;
bar               239 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	for (bar = 0; bar < 4; ++bar) {
bar               240 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		if (IORESOURCE_MEM & pci_resource_flags(pdev, bar)) {
bar               243 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 			mmio_pa = pci_resource_start(pdev, bar);
bar               249 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 			reg_sz = pci_resource_len(pdev, bar);
bar               264 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	if (bar == 4) {
bar              1080 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		vf->bars[n].bar = start + size * vf->abs_vfid;
bar              1628 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		   (unsigned)vf->bars[0].bar, vf->bars[0].size,
bar              1629 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		   (unsigned)vf->bars[1].bar, vf->bars[1].size,
bar              1630 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		   (unsigned)vf->bars[2].bar, vf->bars[2].size);
bar                62 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h 	u64 bar;
bar              1663 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_raw_sem_get(void __iomem *bar)
bar              1667 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	locked = readl(bar + FLASH_SEM_LOCK_REG);
bar              1673 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_flash_sem_get(void __iomem *bar)
bar              1677 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	while (!bfa_raw_sem_get(bar)) {
bar              1686 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_flash_sem_put(void __iomem *bar)
bar              1688 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	writel(0, (bar + FLASH_SEM_LOCK_REG));
bar               151 drivers/net/ethernet/cisco/enic/enic.h 	struct vnic_dev_bar bar[ENIC_BARS_MAX];
bar              2681 drivers/net/ethernet/cisco/enic/enic_main.c 	for (i = 0; i < ARRAY_SIZE(enic->bar); i++)
bar              2682 drivers/net/ethernet/cisco/enic/enic_main.c 		if (enic->bar[i].vaddr)
bar              2683 drivers/net/ethernet/cisco/enic/enic_main.c 			iounmap(enic->bar[i].vaddr);
bar              2764 drivers/net/ethernet/cisco/enic/enic_main.c 	for (i = 0; i < ARRAY_SIZE(enic->bar); i++) {
bar              2767 drivers/net/ethernet/cisco/enic/enic_main.c 		enic->bar[i].len = pci_resource_len(pdev, i);
bar              2768 drivers/net/ethernet/cisco/enic/enic_main.c 		enic->bar[i].vaddr = pci_iomap(pdev, i, enic->bar[i].len);
bar              2769 drivers/net/ethernet/cisco/enic/enic_main.c 		if (!enic->bar[i].vaddr) {
bar              2774 drivers/net/ethernet/cisco/enic/enic_main.c 		enic->bar[i].bus_addr = pci_resource_start(pdev, i);
bar              2780 drivers/net/ethernet/cisco/enic/enic_main.c 	enic->vdev = vnic_dev_register(NULL, enic, pdev, enic->bar,
bar              2781 drivers/net/ethernet/cisco/enic/enic_main.c 		ARRAY_SIZE(enic->bar));
bar                45 drivers/net/ethernet/cisco/enic/vnic_dev.c 	struct vnic_dev_bar *bar, unsigned int num_bars)
bar                55 drivers/net/ethernet/cisco/enic/vnic_dev.c 	if (bar->len < VNIC_MAX_RES_HDR_SIZE) {
bar                60 drivers/net/ethernet/cisco/enic/vnic_dev.c 	rh  = bar->vaddr;
bar                61 drivers/net/ethernet/cisco/enic/vnic_dev.c 	mrh = bar->vaddr;
bar                88 drivers/net/ethernet/cisco/enic/vnic_dev.c 		u8 bar_num = ioread8(&r->bar);
bar                98 drivers/net/ethernet/cisco/enic/vnic_dev.c 		if (!bar[bar_num].len || !bar[bar_num].vaddr)
bar               108 drivers/net/ethernet/cisco/enic/vnic_dev.c 			if (len + bar_offset > bar[bar_num].len) {
bar               111 drivers/net/ethernet/cisco/enic/vnic_dev.c 					 bar[bar_num].len);
bar               125 drivers/net/ethernet/cisco/enic/vnic_dev.c 		vdev->res[type].vaddr = (char __iomem *)bar[bar_num].vaddr +
bar               127 drivers/net/ethernet/cisco/enic/vnic_dev.c 		vdev->res[type].bus_addr = bar[bar_num].bus_addr + bar_offset;
bar              1070 drivers/net/ethernet/cisco/enic/vnic_dev.c 	void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar,
bar              1082 drivers/net/ethernet/cisco/enic/vnic_dev.c 	if (vnic_dev_discover_res(vdev, bar, num_bars))
bar               171 drivers/net/ethernet/cisco/enic/vnic_dev.h 	void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar,
bar                77 drivers/net/ethernet/cisco/enic/vnic_resource.h 	u8 bar;
bar               513 drivers/net/ethernet/dlink/sundance.c 	int bar = 0;
bar               515 drivers/net/ethernet/dlink/sundance.c 	int bar = 1;
bar               540 drivers/net/ethernet/dlink/sundance.c 	ioaddr = pci_iomap(pdev, bar, netdev_io_size);
bar               493 drivers/net/ethernet/fealnx.c 	int bar = 0;
bar               495 drivers/net/ethernet/fealnx.c 	int bar = 1;
bar               514 drivers/net/ethernet/fealnx.c 	len = pci_resource_len(pdev, bar);
bar               527 drivers/net/ethernet/fealnx.c 	ioaddr = pci_iomap(pdev, bar, len);
bar              1954 drivers/net/ethernet/mellanox/mlx4/main.c 	params->bar = priv->fw.clock_bar;
bar                97 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c #define NFP_PCIE_P2C_FIXED_SIZE(bar)               (1 << (bar)->bitsize)
bar                98 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c #define NFP_PCIE_P2C_BULK_SIZE(bar)                (1 << (bar)->bitsize)
bar                99 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c #define NFP_PCIE_P2C_GENERAL_TARGET_OFFSET(bar, x) ((x) << ((bar)->bitsize - 2))
bar               100 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c #define NFP_PCIE_P2C_GENERAL_TOKEN_OFFSET(bar, x) ((x) << ((bar)->bitsize - 4))
bar               101 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c #define NFP_PCIE_P2C_GENERAL_SIZE(bar)             (1 << ((bar)->bitsize - 4))
bar               103 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c #define NFP_PCIE_CFG_BAR_PCIETOCPPEXPANSIONBAR(bar, slot) \
bar               104 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	(0x400 + ((bar) * 8 + (slot)) * 4)
bar               106 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c #define NFP_PCIE_CPP_BAR_PCIETOCPPEXPANSIONBAR(bar, slot) \
bar               107 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	(((bar) * 8 + (slot)) * 4)
bar               152 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	struct nfp_bar bar[NFP_PCI_BAR_MAX];
bar               176 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c static u32 nfp_bar_maptype(struct nfp_bar *bar)
bar               178 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	return NFP_PCIE_BAR_PCIE2CPP_MapType_of(bar->barcfg);
bar               181 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c static resource_size_t nfp_bar_resource_len(struct nfp_bar *bar)
bar               183 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	return pci_resource_len(bar->nfp->pdev, (bar->index / 8) * 2) / 8;
bar               186 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c static resource_size_t nfp_bar_resource_start(struct nfp_bar *bar)
bar               188 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	return pci_resource_start(bar->nfp->pdev, (bar->index / 8) * 2)
bar               189 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		+ nfp_bar_resource_len(bar) * (bar->index & 7);
bar               196 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c compute_bar(const struct nfp6000_pcie *nfp, const struct nfp_bar *bar,
bar               225 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		u64 mask = ~(NFP_PCIE_P2C_FIXED_SIZE(bar) - 1);
bar               239 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		u64 mask = ~(NFP_PCIE_P2C_BULK_SIZE(bar) - 1);
bar               255 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (bar->bitsize < bitsize)
bar               270 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c nfp6000_bar_write(struct nfp6000_pcie *nfp, struct nfp_bar *bar, u32 newcfg)
bar               275 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	base = bar->index >> 3;
bar               276 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	slot = bar->index & 7;
bar               288 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	bar->barcfg = newcfg;
bar               294 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c reconfigure_bar(struct nfp6000_pcie *nfp, struct nfp_bar *bar,
bar               301 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	err = compute_bar(nfp, bar, &newcfg, &newbase,
bar               306 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	bar->base = newbase;
bar               308 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	return nfp6000_bar_write(nfp, bar, newcfg);
bar               312 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c static int matching_bar(struct nfp_bar *bar, u32 tgt, u32 act, u32 tok,
bar               319 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	maptype = NFP_PCIE_BAR_PCIE2CPP_MapType_of(bar->barcfg);
bar               320 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	bartgt = NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress_of(bar->barcfg);
bar               321 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	bartok = NFP_PCIE_BAR_PCIE2CPP_Token_BaseAddress_of(bar->barcfg);
bar               322 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	baract = NFP_PCIE_BAR_PCIE2CPP_Action_BaseAddress_of(bar->barcfg);
bar               324 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	barwidth = NFP_PCIE_BAR_PCIE2CPP_LengthSelect_of(bar->barcfg);
bar               363 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	    bar->base <= offset &&
bar               364 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	    (bar->base + (1 << bar->bitsize)) >= (offset + size))
bar               378 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		struct nfp_bar *bar = &nfp->bar[n];
bar               380 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		if (matching_bar(bar, tgt, act, tok, offset, size, width))
bar               396 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		const struct nfp_bar *bar = &nfp->bar[n];
bar               399 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		if (!bar->bitsize)
bar               403 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		err = compute_bar(nfp, bar, NULL, NULL,
bar               408 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		if (!atomic_read(&bar->refcnt))
bar               440 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c static void nfp_bar_get(struct nfp6000_pcie *nfp, struct nfp_bar *bar)
bar               442 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	atomic_inc(&bar->refcnt);
bar               445 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c static void nfp_bar_put(struct nfp6000_pcie *nfp, struct nfp_bar *bar)
bar               447 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (atomic_dec_and_test(&bar->refcnt))
bar               476 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		nfp_bar_get(nfp, &nfp->bar[barnum]);
bar               499 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	nfp_bar_get(nfp, &nfp->bar[barnum]);
bar               500 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	retval = reconfigure_bar(nfp, &nfp->bar[barnum],
bar               503 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		nfp_bar_put(nfp, &nfp->bar[barnum]);
bar               564 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	struct nfp_bar *bar;
bar               572 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	bar = &nfp->bar[0];
bar               573 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	for (i = 0; i < ARRAY_SIZE(nfp->bar); i++, bar++) {
bar               580 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			bar--;
bar               584 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->resource = res;
bar               585 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->barcfg = 0;
bar               587 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->nfp = nfp;
bar               588 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->index = i;
bar               589 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->mask = nfp_bar_resource_len(bar) - 1;
bar               590 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->bitsize = fls(bar->mask);
bar               591 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->base = 0;
bar               592 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->iomem = NULL;
bar               595 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	nfp->bars = bar - &nfp->bar[0];
bar               612 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	bar = &nfp->bar[0];
bar               613 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (nfp_bar_resource_len(bar) >= NFP_PCI_MIN_MAP_SIZE)
bar               614 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->iomem = ioremap_nocache(nfp_bar_resource_start(bar),
bar               615 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 					     nfp_bar_resource_len(bar));
bar               616 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (bar->iomem) {
bar               620 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		atomic_inc(&bar->refcnt);
bar               623 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		nfp6000_bar_write(nfp, bar, barcfg_msix_general);
bar               625 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		nfp->expl.data = bar->iomem + NFP_PCIE_SRAM + 0x1000;
bar               630 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			nfp->iomem.csr = bar->iomem + NFP_PCIE_BAR(pf);
bar               635 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			nfp->iomem.csr = bar->iomem + NFP_PCIE_BAR(0);
bar               643 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		nfp->iomem.em = bar->iomem + NFP_PCIE_EM;
bar               663 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	bar = &nfp->bar[1];
bar               665 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	atomic_inc(&bar->refcnt);
bar               668 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	nfp6000_bar_write(nfp, bar, barcfg_msix_xpb);
bar               679 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar = &nfp->bar[4 + i];
bar               680 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		bar->iomem = ioremap_nocache(nfp_bar_resource_start(bar),
bar               681 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 					     nfp_bar_resource_len(bar));
bar               682 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		if (bar->iomem) {
bar               685 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			atomic_inc(&bar->refcnt);
bar               688 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			nfp->expl.group[i].bitsize = bar->bitsize;
bar               689 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			nfp->expl.group[i].addr = bar->iomem;
bar               690 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			nfp6000_bar_write(nfp, bar, barcfg_explicit[i]);
bar               695 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		nfp->iomem.expl[i] = bar->iomem;
bar               699 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	sort(&nfp->bar[0], nfp->bars, sizeof(nfp->bar[0]),
bar               707 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (nfp->bar[0].iomem)
bar               708 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		iounmap(nfp->bar[0].iomem);
bar               714 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	struct nfp_bar *bar = &nfp->bar[0];
bar               717 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	for (n = 0; n < nfp->bars; n++, bar++) {
bar               718 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		if (bar->iomem) {
bar               719 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			iounmap(bar->iomem);
bar               720 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			bar->iomem = NULL;
bar               732 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	struct nfp_bar *bar;
bar               742 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		int bar;
bar               773 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		priv->width.bar = priv->width.read;
bar               775 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		priv->width.bar = priv->width.write;
bar               778 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	priv->bar = NULL;
bar               817 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (priv->bar) {
bar               824 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			       priv->offset, priv->size, priv->width.bar, 1);
bar               830 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	priv->bar = &nfp->bar[barnum];
bar               833 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (nfp_bar_maptype(priv->bar) ==
bar               836 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			(NFP_PCIE_P2C_GENERAL_SIZE(priv->bar) - 1);
bar               838 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			priv->bar, priv->target);
bar               840 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			priv->bar, priv->token);
bar               842 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		priv->bar_offset = priv->offset & priv->bar->mask;
bar               850 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	priv->phys = nfp_bar_resource_start(priv->bar) + priv->bar_offset;
bar               857 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (priv->bar->iomem)
bar               858 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		priv->iomem = priv->bar->iomem + priv->bar_offset;
bar               865 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			(int)priv->size, priv->bar->index);
bar               875 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	nfp_bar_put(nfp, priv->bar);
bar               876 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	priv->bar = NULL;
bar               889 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (!priv->bar->iomem)
bar               892 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	nfp_bar_put(nfp, priv->bar);
bar               894 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	priv->bar = NULL;
bar               920 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	return priv->bar->resource;
bar               959 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (WARN_ON(!priv->bar))
bar              1022 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	if (WARN_ON(!priv->bar))
bar              1056 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	} bar;
bar              1080 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			priv->bar.group = i;
bar              1081 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			priv->bar.area = j;
bar              1084 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			data_offset = (priv->bar.group << 9) +
bar              1085 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 				(priv->bar.area << 7);
bar              1088 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 				(priv->bar.area << priv->bitsize);
bar              1106 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 	nfp->expl.group[priv->bar.group].free[priv->bar.area] = true;
bar              1146 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			((priv->bar.group * 4 + priv->bar.area) << 1);
bar              1155 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 			(priv->bar.group << 9) + (priv->bar.area << 7);
bar              1176 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		       NFP_PCIE_BAR_EXPLICIT_BAR0(priv->bar.group,
bar              1177 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 						  priv->bar.area));
bar              1179 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		       NFP_PCIE_BAR_EXPLICIT_BAR1(priv->bar.group,
bar              1180 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 						  priv->bar.area));
bar              1182 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		       NFP_PCIE_BAR_EXPLICIT_BAR2(priv->bar.group,
bar              1183 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 						  priv->bar.area));
bar              1186 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		      NFP_PCIE_BAR_EXPLICIT_BAR0(priv->bar.group,
bar              1187 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 						 priv->bar.area));
bar              1189 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		      NFP_PCIE_BAR_EXPLICIT_BAR1(priv->bar.group,
bar              1190 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 						 priv->bar.area));
bar              1192 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 		      NFP_PCIE_BAR_EXPLICIT_BAR2(priv->bar.group,
bar              1193 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 						 priv->bar.area));
bar              1197 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 					       priv->bar.group, priv->bar.area),
bar              1202 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 					       priv->bar.group, priv->bar.area),
bar              1207 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c 					       priv->bar.group, priv->bar.area),
bar               383 drivers/net/ethernet/packetengines/yellowfin.c 	int bar = 0;
bar               385 drivers/net/ethernet/packetengines/yellowfin.c 	int bar = 1;
bar               411 drivers/net/ethernet/packetengines/yellowfin.c 	ioaddr = pci_iomap(pdev, bar, YELLOWFIN_SIZE);
bar                37 drivers/net/ethernet/pensando/ionic/ionic_dev.c 	struct ionic_dev_bar *bar = ionic->bars;
bar                49 drivers/net/ethernet/pensando/ionic/ionic_dev.c 	if (bar->len < IONIC_BAR0_SIZE) {
bar                51 drivers/net/ethernet/pensando/ionic/ionic_dev.c 			bar->len);
bar                55 drivers/net/ethernet/pensando/ionic/ionic_dev.c 	idev->dev_info_regs = bar->vaddr + IONIC_BAR0_DEV_INFO_REGS_OFFSET;
bar                56 drivers/net/ethernet/pensando/ionic/ionic_dev.c 	idev->dev_cmd_regs = bar->vaddr + IONIC_BAR0_DEV_CMD_REGS_OFFSET;
bar                57 drivers/net/ethernet/pensando/ionic/ionic_dev.c 	idev->intr_status = bar->vaddr + IONIC_BAR0_INTR_STATUS_OFFSET;
bar                58 drivers/net/ethernet/pensando/ionic/ionic_dev.c 	idev->intr_ctrl = bar->vaddr + IONIC_BAR0_INTR_CTRL_OFFSET;
bar                69 drivers/net/ethernet/pensando/ionic/ionic_dev.c 	bar++;
bar                75 drivers/net/ethernet/pensando/ionic/ionic_dev.c 	idev->db_pages = bar->vaddr;
bar                76 drivers/net/ethernet/pensando/ionic/ionic_dev.c 	idev->phy_db_pages = bar->bus_addr;
bar              13203 drivers/net/ethernet/qlogic/qed/qed_hsi.h 	u32 bar;
bar              1151 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c static void qlcnic_get_bar_length(u32 dev_id, ulong *bar)
bar              1155 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		*bar = QLCNIC_82XX_BAR0_LENGTH;
bar              1163 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		*bar = QLCNIC_83XX_BAR0_LENGTH;
bar              1166 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		*bar = 0;
bar              1030 drivers/net/ethernet/rdc/r6040.c 	int bar = 0;
bar              1052 drivers/net/ethernet/rdc/r6040.c 	if (pci_resource_len(pdev, bar) < io_size) {
bar              1075 drivers/net/ethernet/rdc/r6040.c 	ioaddr = pci_iomap(pdev, bar, io_size);
bar               762 drivers/net/ethernet/realtek/8139too.c 	unsigned int i, bar;
bar               802 drivers/net/ethernet/realtek/8139too.c 	bar = !use_io;
bar               804 drivers/net/ethernet/realtek/8139too.c 	io_len = pci_resource_len(pdev, bar);
bar               806 drivers/net/ethernet/realtek/8139too.c 	dev_dbg(d, "%s region size = 0x%02lX\n", res[bar].type, io_len);
bar               808 drivers/net/ethernet/realtek/8139too.c 	if (!(pci_resource_flags(pdev, bar) & res[bar].mask)) {
bar               809 drivers/net/ethernet/realtek/8139too.c 		dev_err(d, "region #%d not a %s resource, aborting\n", bar,
bar               810 drivers/net/ethernet/realtek/8139too.c 			res[bar].type);
bar               816 drivers/net/ethernet/realtek/8139too.c 			res[bar].type);
bar               821 drivers/net/ethernet/realtek/8139too.c 	ioaddr = pci_iomap(pdev, bar, 0);
bar               823 drivers/net/ethernet/realtek/8139too.c 		dev_err(d, "cannot map %s\n", res[bar].type);
bar               177 drivers/net/ethernet/sfc/ef10.c 	int bar;
bar               179 drivers/net/ethernet/sfc/ef10.c 	bar = efx->type->mem_bar(efx);
bar               180 drivers/net/ethernet/sfc/ef10.c 	return resource_size(&efx->pci_dev->resource[bar]);
bar              1287 drivers/net/ethernet/sfc/efx.c 	int rc, bar;
bar              1291 drivers/net/ethernet/sfc/efx.c 	bar = efx->type->mem_bar(efx);
bar              1320 drivers/net/ethernet/sfc/efx.c 	efx->membase_phys = pci_resource_start(efx->pci_dev, bar);
bar              1321 drivers/net/ethernet/sfc/efx.c 	rc = pci_request_region(pci_dev, bar, "sfc");
bar              1344 drivers/net/ethernet/sfc/efx.c 	pci_release_region(efx->pci_dev, bar);
bar              1355 drivers/net/ethernet/sfc/efx.c 	int bar;
bar              1365 drivers/net/ethernet/sfc/efx.c 		bar = efx->type->mem_bar(efx);
bar              1366 drivers/net/ethernet/sfc/efx.c 		pci_release_region(efx->pci_dev, bar);
bar              1227 drivers/net/ethernet/sfc/falcon/efx.c 	int rc, bar;
bar              1231 drivers/net/ethernet/sfc/falcon/efx.c 	bar = efx->type->mem_bar;
bar              1260 drivers/net/ethernet/sfc/falcon/efx.c 	efx->membase_phys = pci_resource_start(efx->pci_dev, bar);
bar              1261 drivers/net/ethernet/sfc/falcon/efx.c 	rc = pci_request_region(pci_dev, bar, "sfc");
bar              1284 drivers/net/ethernet/sfc/falcon/efx.c 	pci_release_region(efx->pci_dev, bar);
bar              1295 drivers/net/ethernet/sfc/falcon/efx.c 	int bar;
bar              1305 drivers/net/ethernet/sfc/falcon/efx.c 		bar = efx->type->mem_bar;
bar              1306 drivers/net/ethernet/sfc/falcon/efx.c 		pci_release_region(efx->pci_dev, bar);
bar               575 drivers/net/wireless/ath/carl9170/rx.c 	struct ieee80211_bar *bar = data;
bar               579 drivers/net/wireless/ath/carl9170/rx.c 	if (likely(!ieee80211_is_back(bar->frame_control)))
bar               582 drivers/net/wireless/ath/carl9170/rx.c 	if (len <= sizeof(*bar) + FCS_LEN)
bar               585 drivers/net/wireless/ath/carl9170/rx.c 	queue = TID_TO_WME_AC(((le16_to_cpu(bar->control) &
bar               599 drivers/net/wireless/ath/carl9170/rx.c 		if (bar->start_seq_num == entry_bar->start_seq_num &&
bar               600 drivers/net/wireless/ath/carl9170/rx.c 		    TID_CHECK(bar->control, entry_bar->control) &&
bar               601 drivers/net/wireless/ath/carl9170/rx.c 		    ether_addr_equal_64bits(bar->ra, entry_bar->ta) &&
bar               602 drivers/net/wireless/ath/carl9170/rx.c 		    ether_addr_equal_64bits(bar->ta, entry_bar->ra)) {
bar               441 drivers/net/wireless/ath/carl9170/tx.c 	struct ieee80211_bar *bar = (void *) super->frame_data;
bar               452 drivers/net/wireless/ath/carl9170/tx.c 	if (unlikely(ieee80211_is_back_req(bar->frame_control)) &&
bar               469 drivers/net/wireless/ath/carl9170/tx.c 		       queue, bar->ra, bar->ta, bar->control,
bar               470 drivers/net/wireless/ath/carl9170/tx.c 			bar->start_seq_num);
bar              1322 drivers/net/wireless/ath/carl9170/tx.c 	struct ieee80211_bar *bar = (void *) super->frame_data;
bar              1324 drivers/net/wireless/ath/carl9170/tx.c 	if (unlikely(ieee80211_is_back_req(bar->frame_control)) &&
bar               232 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		struct ieee80211_bar *bar = (void *)skb->data;
bar               233 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		u16 control = le16_to_cpu(bar->control);
bar               234 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		u16 ssn = le16_to_cpu(bar->start_seq_num);
bar               241 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		iwl_mvm_bar_check_trigger(mvm, bar->ra, tx_cmd->tid_tspec,
bar               115 drivers/net/wireless/mediatek/mt76/agg-rx.c 	struct ieee80211_bar *bar = (struct ieee80211_bar *)skb->data;
bar               120 drivers/net/wireless/mediatek/mt76/agg-rx.c 	if (!ieee80211_is_ctl(bar->frame_control))
bar               123 drivers/net/wireless/mediatek/mt76/agg-rx.c 	if (!ieee80211_is_back_req(bar->frame_control))
bar               126 drivers/net/wireless/mediatek/mt76/agg-rx.c 	status->tid = le16_to_cpu(bar->control) >> 12;
bar               127 drivers/net/wireless/mediatek/mt76/agg-rx.c 	seqno = IEEE80211_SEQ_TO_SN(le16_to_cpu(bar->start_seq_num));
bar               786 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 	struct ieee80211_bar *bar = (struct ieee80211_bar *)skb->data;
bar               886 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		seqno = le16_to_cpu(bar->start_seq_num);
bar               428 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		struct ieee80211_bar *bar = (struct ieee80211_bar *)skb->data;
bar               430 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		seqno = IEEE80211_SEQ_TO_SN(le16_to_cpu(bar->start_seq_num));
bar               264 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	struct ieee80211_bar *bar = (void *) entry->skb->data;
bar               268 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	if (likely(!ieee80211_is_back_req(bar->frame_control)))
bar               562 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c 	struct ieee80211_bar *bar = (void *) (entry->skb->data +
bar               566 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c 	if (likely(!ieee80211_is_back_req(bar->frame_control)))
bar               588 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c 	memcpy(bar_entry->ra, bar->ra, sizeof(bar->ra));
bar               589 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c 	memcpy(bar_entry->ta, bar->ta, sizeof(bar->ta));
bar               590 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c 	bar_entry->control = bar->control;
bar               591 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c 	bar_entry->start_seq_num = bar->start_seq_num;
bar                98 drivers/ntb/hw/amd/ntb_hw_amd.c 	int bar;
bar               103 drivers/ntb/hw/amd/ntb_hw_amd.c 	bar = ndev_mw_to_bar(ndev, idx);
bar               104 drivers/ntb/hw/amd/ntb_hw_amd.c 	if (bar < 0)
bar               105 drivers/ntb/hw/amd/ntb_hw_amd.c 		return bar;
bar               114 drivers/ntb/hw/amd/ntb_hw_amd.c 		*size_max = pci_resource_len(ndev->ntb.pdev, bar);
bar               127 drivers/ntb/hw/amd/ntb_hw_amd.c 	int bar;
bar               132 drivers/ntb/hw/amd/ntb_hw_amd.c 	bar = ndev_mw_to_bar(ndev, idx);
bar               133 drivers/ntb/hw/amd/ntb_hw_amd.c 	if (bar < 0)
bar               134 drivers/ntb/hw/amd/ntb_hw_amd.c 		return bar;
bar               136 drivers/ntb/hw/amd/ntb_hw_amd.c 	mw_size = pci_resource_len(ntb->pdev, bar);
bar               145 drivers/ntb/hw/amd/ntb_hw_amd.c 	base_addr = pci_resource_start(ntb->pdev, bar);
bar               147 drivers/ntb/hw/amd/ntb_hw_amd.c 	if (bar != 1) {
bar               148 drivers/ntb/hw/amd/ntb_hw_amd.c 		xlat_reg = AMD_BAR23XLAT_OFFSET + ((bar - 2) << 2);
bar               149 drivers/ntb/hw/amd/ntb_hw_amd.c 		limit_reg = AMD_BAR23LMT_OFFSET + ((bar - 2) << 2);
bar               304 drivers/ntb/hw/amd/ntb_hw_amd.c 	int bar;
bar               306 drivers/ntb/hw/amd/ntb_hw_amd.c 	bar = ndev_mw_to_bar(ndev, idx);
bar               307 drivers/ntb/hw/amd/ntb_hw_amd.c 	if (bar < 0)
bar               308 drivers/ntb/hw/amd/ntb_hw_amd.c 		return bar;
bar               311 drivers/ntb/hw/amd/ntb_hw_amd.c 		*base = pci_resource_start(ndev->ntb.pdev, bar);
bar               314 drivers/ntb/hw/amd/ntb_hw_amd.c 		*size = pci_resource_len(ndev->ntb.pdev, bar);
bar              1090 drivers/ntb/hw/idt/ntb_hw_idt.c 			mws[*mw_cnt].bar = bidx;
bar              1262 drivers/ntb/hw/idt/ntb_hw_idt.c 		*base = pci_resource_start(ntb->pdev, ndev->mws[widx].bar) +
bar              1312 drivers/ntb/hw/idt/ntb_hw_idt.c 		const struct idt_ntb_bar *bar = &ntdata_tbl.bars[mw_cfg->bar];
bar              1315 drivers/ntb/hw/idt/ntb_hw_idt.c 		data = idt_nt_read(ndev, bar->setup);
bar              1317 drivers/ntb/hw/idt/ntb_hw_idt.c 		idt_nt_write(ndev, bar->setup, data);
bar              1319 drivers/ntb/hw/idt/ntb_hw_idt.c 		idt_nt_write(ndev, bar->ltbase, (u32)addr);
bar              1320 drivers/ntb/hw/idt/ntb_hw_idt.c 		idt_nt_write(ndev, bar->utbase, (u32)(addr >> 32));
bar              1322 drivers/ntb/hw/idt/ntb_hw_idt.c 		limit = pci_bus_address(ntb->pdev, mw_cfg->bar) + size;
bar              1323 drivers/ntb/hw/idt/ntb_hw_idt.c 		idt_nt_write(ndev, bar->limit, (u32)limit);
bar              1325 drivers/ntb/hw/idt/ntb_hw_idt.c 			idt_nt_write(ndev, (bar + 1)->limit, (limit >> 32));
bar              1330 drivers/ntb/hw/idt/ntb_hw_idt.c 			 SET_FIELD(LUTOFFSET_BAR, 0, mw_cfg->bar);
bar              1372 drivers/ntb/hw/idt/ntb_hw_idt.c 		const struct idt_ntb_bar *bar = &ntdata_tbl.bars[mw_cfg->bar];
bar              1375 drivers/ntb/hw/idt/ntb_hw_idt.c 		data = idt_nt_read(ndev, bar->setup);
bar              1377 drivers/ntb/hw/idt/ntb_hw_idt.c 		idt_nt_write(ndev, bar->limit, 0);
bar              1379 drivers/ntb/hw/idt/ntb_hw_idt.c 			idt_nt_write(ndev, (bar + 1)->limit, 0);
bar              1385 drivers/ntb/hw/idt/ntb_hw_idt.c 			 SET_FIELD(LUTOFFSET_BAR, 0, mw_cfg->bar);
bar              2412 drivers/ntb/hw/idt/ntb_hw_idt.c 			idt_get_mw_name(data), ndev->mws[idx].bar);
bar              2442 drivers/ntb/hw/idt/ntb_hw_idt.c 				ndev->peers[pidx].mws[idx].bar);
bar              1068 drivers/ntb/hw/idt/ntb_hw_idt.h 	unsigned char bar;
bar                73 drivers/ntb/hw/intel/ntb_hw_gen1.c #define bar0_off(base, bar) ((base) + ((bar) << 2))
bar                74 drivers/ntb/hw/intel/ntb_hw_gen1.c #define bar2_off(base, bar) bar0_off(base, (bar) - 2)
bar               808 drivers/ntb/hw/intel/ntb_hw_gen1.c 	int bar;
bar               816 drivers/ntb/hw/intel/ntb_hw_gen1.c 	bar = ndev_mw_to_bar(ndev, idx);
bar               817 drivers/ntb/hw/intel/ntb_hw_gen1.c 	if (bar < 0)
bar               818 drivers/ntb/hw/intel/ntb_hw_gen1.c 		return bar;
bar               820 drivers/ntb/hw/intel/ntb_hw_gen1.c 	bar_size = pci_resource_len(ndev->ntb.pdev, bar);
bar               828 drivers/ntb/hw/intel/ntb_hw_gen1.c 		*addr_align = pci_resource_len(ndev->ntb.pdev, bar);
bar               847 drivers/ntb/hw/intel/ntb_hw_gen1.c 	int bar;
bar               855 drivers/ntb/hw/intel/ntb_hw_gen1.c 	bar = ndev_mw_to_bar(ndev, idx);
bar               856 drivers/ntb/hw/intel/ntb_hw_gen1.c 	if (bar < 0)
bar               857 drivers/ntb/hw/intel/ntb_hw_gen1.c 		return bar;
bar               859 drivers/ntb/hw/intel/ntb_hw_gen1.c 	bar_size = pci_resource_len(ndev->ntb.pdev, bar);
bar               875 drivers/ntb/hw/intel/ntb_hw_gen1.c 	base_reg = bar0_off(ndev->xlat_reg->bar0_base, bar);
bar               876 drivers/ntb/hw/intel/ntb_hw_gen1.c 	xlat_reg = bar2_off(ndev->xlat_reg->bar2_xlat, bar);
bar               877 drivers/ntb/hw/intel/ntb_hw_gen1.c 	limit_reg = bar2_off(ndev->xlat_reg->bar2_limit, bar);
bar               879 drivers/ntb/hw/intel/ntb_hw_gen1.c 	if (bar < 4 || !ndev->bar4_split) {
bar              1027 drivers/ntb/hw/intel/ntb_hw_gen1.c 	int bar;
bar              1032 drivers/ntb/hw/intel/ntb_hw_gen1.c 	bar = ndev_mw_to_bar(ndev, idx);
bar              1033 drivers/ntb/hw/intel/ntb_hw_gen1.c 	if (bar < 0)
bar              1034 drivers/ntb/hw/intel/ntb_hw_gen1.c 		return bar;
bar              1037 drivers/ntb/hw/intel/ntb_hw_gen1.c 		*base = pci_resource_start(ndev->ntb.pdev, bar) +
bar              1041 drivers/ntb/hw/intel/ntb_hw_gen1.c 		*size = pci_resource_len(ndev->ntb.pdev, bar) -
bar               452 drivers/ntb/hw/intel/ntb_hw_gen3.c 	int bar;
bar               460 drivers/ntb/hw/intel/ntb_hw_gen3.c 	bar = ndev_mw_to_bar(ndev, idx);
bar               461 drivers/ntb/hw/intel/ntb_hw_gen3.c 	if (bar < 0)
bar               462 drivers/ntb/hw/intel/ntb_hw_gen3.c 		return bar;
bar               464 drivers/ntb/hw/intel/ntb_hw_gen3.c 	bar_size = pci_resource_len(ndev->ntb.pdev, bar);
bar               482 drivers/ntb/hw/intel/ntb_hw_gen3.c 	base = pci_resource_start(ndev->ntb.pdev, bar);
bar               498 drivers/ntb/hw/intel/ntb_hw_gen3.c 	dev_dbg(&ntb->pdev->dev, "BAR %d IMBARXBASE: %#Lx\n", bar, reg_val);
bar               509 drivers/ntb/hw/intel/ntb_hw_gen3.c 	dev_dbg(&ntb->pdev->dev, "BAR %d IMBARXLMT: %#Lx\n", bar, reg_val);
bar               530 drivers/ntb/hw/intel/ntb_hw_gen3.c 	dev_dbg(&ntb->pdev->dev, "BAR %d EMBARXLMT: %#Lx\n", bar, reg_val);
bar               224 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	int bar = sndev->peer_direct_mw_to_bar[idx];
bar               227 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	ctl_val = ioread32(&ctl->bar_entry[bar].ctl);
bar               229 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	iowrite32(ctl_val, &ctl->bar_entry[bar].ctl);
bar               230 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	iowrite32(0, &ctl->bar_entry[bar].win_size);
bar               231 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	iowrite32(0, &ctl->bar_ext_entry[bar].win_size);
bar               232 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	iowrite64(sndev->self_partition, &ctl->bar_entry[bar].xlate_addr);
bar               246 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	int bar = sndev->peer_direct_mw_to_bar[idx];
bar               250 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	ctl_val = ioread32(&ctl->bar_entry[bar].ctl);
bar               253 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	iowrite32(ctl_val, &ctl->bar_entry[bar].ctl);
bar               255 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		  &ctl->bar_entry[bar].win_size);
bar               256 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	iowrite32(upper_32_bits(size), &ctl->bar_ext_entry[bar].win_size);
bar               258 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		  &ctl->bar_entry[bar].xlate_addr);
bar               353 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	int bar = sndev->direct_mw_to_bar[idx];
bar               356 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	if (bar < 0)
bar               370 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		*base = pci_resource_start(sndev->ntb.pdev, bar) + offset;
bar               373 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		*size = pci_resource_len(sndev->ntb.pdev, bar) - offset;
bar               388 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	int bar = sndev->direct_mw_to_bar[0];
bar               394 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		*base = pci_resource_start(sndev->ntb.pdev, bar) + offset;
bar              1005 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	int bar;
bar              1028 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		bar = sndev->direct_mw_to_bar[i];
bar              1031 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		size = pci_resource_len(sndev->ntb.pdev, bar) - offset;
bar              1037 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		ctl_val = ioread32(&ctl->bar_entry[bar].ctl);
bar              1040 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		iowrite32(ctl_val, &ctl->bar_entry[bar].ctl);
bar              1042 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 			  &ctl->bar_entry[bar].win_size);
bar              1043 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		iowrite32(upper_32_bits(size), &ctl->bar_ext_entry[bar].win_size);
bar              1045 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 			  &ctl->bar_entry[bar].xlate_addr);
bar              1124 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	int bar = sndev->direct_mw_to_bar[0];
bar              1165 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	sndev->mmio_xlink_win = pci_iomap_range(sndev->stdev->pdev, bar,
bar              1306 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		int bar = sndev->direct_mw_to_bar[i];
bar              1307 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		resource_size_t sz = pci_resource_len(sndev->stdev->pdev, bar);
bar               105 drivers/nvme/host/pci.c 	void __iomem *bar;
bar              1242 drivers/nvme/host/pci.c 	u32 csts = readl(dev->bar + NVME_REG_CSTS);
bar              1667 drivers/nvme/host/pci.c 	if (dev->bar)
bar              1668 drivers/nvme/host/pci.c 		iounmap(dev->bar);
bar              1669 drivers/nvme/host/pci.c 	dev->bar = ioremap(pci_resource_start(pdev, 0), size);
bar              1670 drivers/nvme/host/pci.c 	if (!dev->bar) {
bar              1675 drivers/nvme/host/pci.c 	dev->dbs = dev->bar + NVME_REG_DBS;
bar              1690 drivers/nvme/host/pci.c 	dev->subsystem = readl(dev->bar + NVME_REG_VS) >= NVME_VS(1, 1, 0) ?
bar              1694 drivers/nvme/host/pci.c 	    (readl(dev->bar + NVME_REG_CSTS) & NVME_CSTS_NSSRO))
bar              1695 drivers/nvme/host/pci.c 		writel(NVME_CSTS_NSSRO, dev->bar + NVME_REG_CSTS);
bar              1709 drivers/nvme/host/pci.c 	writel(aqa, dev->bar + NVME_REG_AQA);
bar              1710 drivers/nvme/host/pci.c 	lo_hi_writeq(nvmeq->sq_dma_addr, dev->bar + NVME_REG_ASQ);
bar              1711 drivers/nvme/host/pci.c 	lo_hi_writeq(nvmeq->cq_dma_addr, dev->bar + NVME_REG_ACQ);
bar              1794 drivers/nvme/host/pci.c 	int bar;
bar              1799 drivers/nvme/host/pci.c 	dev->cmbsz = readl(dev->bar + NVME_REG_CMBSZ);
bar              1802 drivers/nvme/host/pci.c 	dev->cmbloc = readl(dev->bar + NVME_REG_CMBLOC);
bar              1806 drivers/nvme/host/pci.c 	bar = NVME_CMB_BIR(dev->cmbloc);
bar              1807 drivers/nvme/host/pci.c 	bar_size = pci_resource_len(pdev, bar);
bar              1820 drivers/nvme/host/pci.c 	if (pci_p2pdma_add_resource(pdev, bar, size, offset)) {
bar              2324 drivers/nvme/host/pci.c 	if (readl(dev->bar + NVME_REG_CSTS) == -1) {
bar              2338 drivers/nvme/host/pci.c 	dev->ctrl.cap = lo_hi_readq(dev->bar + NVME_REG_CAP);
bar              2344 drivers/nvme/host/pci.c 	dev->dbs = dev->bar + 4096;
bar              2398 drivers/nvme/host/pci.c 	if (dev->bar)
bar              2399 drivers/nvme/host/pci.c 		iounmap(dev->bar);
bar              2422 drivers/nvme/host/pci.c 		u32 csts = readl(dev->bar + NVME_REG_CSTS);
bar              2678 drivers/nvme/host/pci.c 	*val = readl(to_nvme_dev(ctrl)->bar + off);
bar              2684 drivers/nvme/host/pci.c 	writel(val, to_nvme_dev(ctrl)->bar + off);
bar              2690 drivers/nvme/host/pci.c 	*val = lo_hi_readq(to_nvme_dev(ctrl)->bar + off);
bar               221 drivers/of/address.c int of_pci_address_to_resource(struct device_node *dev, int bar,
bar               228 drivers/of/address.c 	addrp = of_get_pci_address(dev, bar, &size, &flags);
bar               354 drivers/pci/controller/dwc/pci-dra7xx.c 	enum pci_barno bar;
bar               356 drivers/pci/controller/dwc/pci-dra7xx.c 	for (bar = BAR_0; bar <= BAR_5; bar++)
bar               357 drivers/pci/controller/dwc/pci-dra7xx.c 		dw_pcie_ep_reset_bar(pci, bar);
bar                59 drivers/pci/controller/dwc/pci-layerscape-ep.c 	enum pci_barno bar;
bar                61 drivers/pci/controller/dwc/pci-layerscape-ep.c 	for (bar = BAR_0; bar <= BAR_5; bar++)
bar                62 drivers/pci/controller/dwc/pci-layerscape-ep.c 		dw_pcie_ep_reset_bar(pci, bar);
bar               417 drivers/pci/controller/dwc/pcie-artpec6.c 	enum pci_barno bar;
bar               425 drivers/pci/controller/dwc/pcie-artpec6.c 	for (bar = BAR_0; bar <= BAR_5; bar++)
bar               426 drivers/pci/controller/dwc/pcie-artpec6.c 		dw_pcie_ep_reset_bar(pci, bar);
bar                22 drivers/pci/controller/dwc/pcie-designware-ep.c static void __dw_pcie_ep_reset_bar(struct dw_pcie *pci, enum pci_barno bar,
bar                27 drivers/pci/controller/dwc/pcie-designware-ep.c 	reg = PCI_BASE_ADDRESS_0 + (4 * bar);
bar                38 drivers/pci/controller/dwc/pcie-designware-ep.c void dw_pcie_ep_reset_bar(struct dw_pcie *pci, enum pci_barno bar)
bar                40 drivers/pci/controller/dwc/pcie-designware-ep.c 	__dw_pcie_ep_reset_bar(pci, bar, 0);
bar                68 drivers/pci/controller/dwc/pcie-designware-ep.c static int dw_pcie_ep_inbound_atu(struct dw_pcie_ep *ep, enum pci_barno bar,
bar                82 drivers/pci/controller/dwc/pcie-designware-ep.c 	ret = dw_pcie_prog_inbound_atu(pci, free_win, bar, cpu_addr,
bar                89 drivers/pci/controller/dwc/pcie-designware-ep.c 	ep->bar_to_atu[bar] = free_win;
bar               121 drivers/pci/controller/dwc/pcie-designware-ep.c 	enum pci_barno bar = epf_bar->barno;
bar               122 drivers/pci/controller/dwc/pcie-designware-ep.c 	u32 atu_index = ep->bar_to_atu[bar];
bar               124 drivers/pci/controller/dwc/pcie-designware-ep.c 	__dw_pcie_ep_reset_bar(pci, bar, epf_bar->flags);
bar               136 drivers/pci/controller/dwc/pcie-designware-ep.c 	enum pci_barno bar = epf_bar->barno;
bar               140 drivers/pci/controller/dwc/pcie-designware-ep.c 	u32 reg = PCI_BASE_ADDRESS_0 + (4 * bar);
bar               147 drivers/pci/controller/dwc/pcie-designware-ep.c 	ret = dw_pcie_ep_inbound_atu(ep, bar, epf_bar->phys_addr, as_type);
bar                71 drivers/pci/controller/dwc/pcie-designware-plat.c 	enum pci_barno bar;
bar                73 drivers/pci/controller/dwc/pcie-designware-plat.c 	for (bar = BAR_0; bar <= BAR_5; bar++)
bar                74 drivers/pci/controller/dwc/pcie-designware-plat.c 		dw_pcie_ep_reset_bar(pci, bar);
bar               336 drivers/pci/controller/dwc/pcie-designware.c 					   int bar, u64 cpu_addr,
bar               361 drivers/pci/controller/dwc/pcie-designware.c 				 PCIE_ATU_BAR_MODE_ENABLE | (bar << 8));
bar               380 drivers/pci/controller/dwc/pcie-designware.c int dw_pcie_prog_inbound_atu(struct dw_pcie *pci, int index, int bar,
bar               387 drivers/pci/controller/dwc/pcie-designware.c 		return dw_pcie_prog_inbound_atu_unroll(pci, index, bar,
bar               408 drivers/pci/controller/dwc/pcie-designware.c 			   | PCIE_ATU_BAR_MODE_ENABLE | (bar << 8));
bar               280 drivers/pci/controller/dwc/pcie-designware.h int dw_pcie_prog_inbound_atu(struct dw_pcie *pci, int index, int bar,
bar               408 drivers/pci/controller/dwc/pcie-designware.h void dw_pcie_ep_reset_bar(struct dw_pcie *pci, enum pci_barno bar);
bar               440 drivers/pci/controller/dwc/pcie-designware.h static inline void dw_pcie_ep_reset_bar(struct dw_pcie *pci, enum pci_barno bar)
bar                29 drivers/pci/controller/pci-thunder-ecam.c static int handle_ea_bar(u32 e0, int bar, struct pci_bus *bus,
bar                43 drivers/pci/controller/pci-thunder-ecam.c 		addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */
bar                58 drivers/pci/controller/pci-thunder-ecam.c 		addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */
bar                74 drivers/pci/controller/pci-thunder-ecam.c 		addr = bus->ops->map_bus(bus, devfn, bar + 4); /* BAR 1 */
bar                86 drivers/pci/controller/pcie-cadence-ep.c 	enum pci_barno bar = epf_bar->barno;
bar               106 drivers/pci/controller/pcie-cadence-ep.c 		if (is_64bits && (bar & 1))
bar               124 drivers/pci/controller/pcie-cadence-ep.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_EP_FUNC_BAR_ADDR0(fn, bar),
bar               126 drivers/pci/controller/pcie-cadence-ep.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_EP_FUNC_BAR_ADDR1(fn, bar),
bar               129 drivers/pci/controller/pcie-cadence-ep.c 	if (bar < BAR_4) {
bar               131 drivers/pci/controller/pcie-cadence-ep.c 		b = bar;
bar               134 drivers/pci/controller/pcie-cadence-ep.c 		b = bar - BAR_4;
bar               152 drivers/pci/controller/pcie-cadence-ep.c 	enum pci_barno bar = epf_bar->barno;
bar               155 drivers/pci/controller/pcie-cadence-ep.c 	if (bar < BAR_4) {
bar               157 drivers/pci/controller/pcie-cadence-ep.c 		b = bar;
bar               160 drivers/pci/controller/pcie-cadence-ep.c 		b = bar - BAR_4;
bar               170 drivers/pci/controller/pcie-cadence-ep.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_EP_FUNC_BAR_ADDR0(fn, bar), 0);
bar               171 drivers/pci/controller/pcie-cadence-ep.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_EP_FUNC_BAR_ADDR1(fn, bar), 0);
bar               161 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_IB_RP_BAR_ADDR0(bar) \
bar               162 drivers/pci/controller/pcie-cadence.h 	(CDNS_PCIE_AT_BASE + 0x0800 + (bar) * 0x0008)
bar               166 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_IB_RP_BAR_ADDR1(bar) \
bar               167 drivers/pci/controller/pcie-cadence.h 	(CDNS_PCIE_AT_BASE + 0x0804 + (bar) * 0x0008)
bar               179 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_IB_EP_FUNC_BAR_ADDR0(fn, bar) \
bar               180 drivers/pci/controller/pcie-cadence.h 	(CDNS_PCIE_AT_BASE + 0x0840 + (fn) * 0x0040 + (bar) * 0x0008)
bar               181 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_IB_EP_FUNC_BAR_ADDR1(fn, bar) \
bar               182 drivers/pci/controller/pcie-cadence.h 	(CDNS_PCIE_AT_BASE + 0x0844 + (fn) * 0x0040 + (bar) * 0x0008)
bar               167 drivers/pci/controller/pcie-rockchip-ep.c 	enum pci_barno bar = epf_bar->barno;
bar               188 drivers/pci/controller/pcie-rockchip-ep.c 		if (is_64bits && (bar & 1))
bar               203 drivers/pci/controller/pcie-rockchip-ep.c 	if (bar < BAR_4) {
bar               205 drivers/pci/controller/pcie-rockchip-ep.c 		b = bar;
bar               208 drivers/pci/controller/pcie-rockchip-ep.c 		b = bar - BAR_4;
bar               222 drivers/pci/controller/pcie-rockchip-ep.c 			    ROCKCHIP_PCIE_AT_IB_EP_FUNC_BAR_ADDR0(fn, bar));
bar               224 drivers/pci/controller/pcie-rockchip-ep.c 			    ROCKCHIP_PCIE_AT_IB_EP_FUNC_BAR_ADDR1(fn, bar));
bar               235 drivers/pci/controller/pcie-rockchip-ep.c 	enum pci_barno bar = epf_bar->barno;
bar               237 drivers/pci/controller/pcie-rockchip-ep.c 	if (bar < BAR_4) {
bar               239 drivers/pci/controller/pcie-rockchip-ep.c 		b = bar;
bar               242 drivers/pci/controller/pcie-rockchip-ep.c 		b = bar - BAR_4;
bar               253 drivers/pci/controller/pcie-rockchip-ep.c 			    ROCKCHIP_PCIE_AT_IB_EP_FUNC_BAR_ADDR0(fn, bar));
bar               255 drivers/pci/controller/pcie-rockchip-ep.c 			    ROCKCHIP_PCIE_AT_IB_EP_FUNC_BAR_ADDR1(fn, bar));
bar               235 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_IB_EP_FUNC_BAR_ADDR0(fn, bar) \
bar               236 drivers/pci/controller/pcie-rockchip.h 	(PCIE_RC_RP_ATS_BASE + 0x0840 + (fn) * 0x0040 + (bar) * 0x0008)
bar               237 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_IB_EP_FUNC_BAR_ADDR1(fn, bar) \
bar               238 drivers/pci/controller/pcie-rockchip.h 	(PCIE_RC_RP_ATS_BASE + 0x0844 + (fn) * 0x0040 + (bar) * 0x0008)
bar               376 drivers/pci/endpoint/functions/pci-epf-test.c 	int bar;
bar               380 drivers/pci/endpoint/functions/pci-epf-test.c 	for (bar = BAR_0; bar <= BAR_5; bar++) {
bar               381 drivers/pci/endpoint/functions/pci-epf-test.c 		epf_bar = &epf->bar[bar];
bar               383 drivers/pci/endpoint/functions/pci-epf-test.c 		if (epf_test->reg[bar]) {
bar               385 drivers/pci/endpoint/functions/pci-epf-test.c 			pci_epf_free_space(epf, epf_test->reg[bar], bar);
bar               392 drivers/pci/endpoint/functions/pci-epf-test.c 	int bar, add;
bar               403 drivers/pci/endpoint/functions/pci-epf-test.c 	for (bar = BAR_0; bar <= BAR_5; bar += add) {
bar               404 drivers/pci/endpoint/functions/pci-epf-test.c 		epf_bar = &epf->bar[bar];
bar               412 drivers/pci/endpoint/functions/pci-epf-test.c 		if (!!(epc_features->reserved_bar & (1 << bar)))
bar               417 drivers/pci/endpoint/functions/pci-epf-test.c 			pci_epf_free_space(epf, epf_test->reg[bar], bar);
bar               418 drivers/pci/endpoint/functions/pci-epf-test.c 			dev_err(dev, "Failed to set BAR%d\n", bar);
bar               419 drivers/pci/endpoint/functions/pci-epf-test.c 			if (bar == test_reg_bar)
bar               433 drivers/pci/endpoint/functions/pci-epf-test.c 	int bar, add;
bar               453 drivers/pci/endpoint/functions/pci-epf-test.c 	for (bar = BAR_0; bar <= BAR_5; bar += add) {
bar               454 drivers/pci/endpoint/functions/pci-epf-test.c 		epf_bar = &epf->bar[bar];
bar               457 drivers/pci/endpoint/functions/pci-epf-test.c 		if (bar == test_reg_bar)
bar               460 drivers/pci/endpoint/functions/pci-epf-test.c 		if (!!(epc_features->reserved_bar & (1 << bar)))
bar               463 drivers/pci/endpoint/functions/pci-epf-test.c 		base = pci_epf_alloc_space(epf, bar_size[bar], bar,
bar               467 drivers/pci/endpoint/functions/pci-epf-test.c 				bar);
bar               468 drivers/pci/endpoint/functions/pci-epf-test.c 		epf_test->reg[bar] = base;
bar               482 drivers/pci/endpoint/functions/pci-epf-test.c 		epf_bar = &epf->bar[i];
bar                91 drivers/pci/endpoint/pci-epf-core.c void pci_epf_free_space(struct pci_epf *epf, void *addr, enum pci_barno bar)
bar                98 drivers/pci/endpoint/pci-epf-core.c 	dma_free_coherent(dev, epf->bar[bar].size, addr,
bar                99 drivers/pci/endpoint/pci-epf-core.c 			  epf->bar[bar].phys_addr);
bar               101 drivers/pci/endpoint/pci-epf-core.c 	epf->bar[bar].phys_addr = 0;
bar               102 drivers/pci/endpoint/pci-epf-core.c 	epf->bar[bar].size = 0;
bar               103 drivers/pci/endpoint/pci-epf-core.c 	epf->bar[bar].barno = 0;
bar               104 drivers/pci/endpoint/pci-epf-core.c 	epf->bar[bar].flags = 0;
bar               116 drivers/pci/endpoint/pci-epf-core.c void *pci_epf_alloc_space(struct pci_epf *epf, size_t size, enum pci_barno bar,
bar               137 drivers/pci/endpoint/pci-epf-core.c 	epf->bar[bar].phys_addr = phys_addr;
bar               138 drivers/pci/endpoint/pci-epf-core.c 	epf->bar[bar].size = size;
bar               139 drivers/pci/endpoint/pci-epf-core.c 	epf->bar[bar].barno = bar;
bar               140 drivers/pci/endpoint/pci-epf-core.c 	epf->bar[bar].flags |= upper_32_bits(size) ?
bar               332 drivers/pci/hotplug/ibmphp_pci.c 	u32 bar[6];
bar               372 drivers/pci/hotplug/ibmphp_pci.c 		pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]);
bar               374 drivers/pci/hotplug/ibmphp_pci.c 		if (!bar[count])	/* This BAR is not implemented */
bar               377 drivers/pci/hotplug/ibmphp_pci.c 		debug("Device %x BAR %d wants %x\n", func->device, count, bar[count]);
bar               379 drivers/pci/hotplug/ibmphp_pci.c 		if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) {
bar               383 drivers/pci/hotplug/ibmphp_pci.c 			len[count] = bar[count] & 0xFFFFFFFC;
bar               410 drivers/pci/hotplug/ibmphp_pci.c 			pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]);
bar               411 drivers/pci/hotplug/ibmphp_pci.c 			debug("after writing.... the start address is %x\n", bar[count]);
bar               416 drivers/pci/hotplug/ibmphp_pci.c 			if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) {
bar               420 drivers/pci/hotplug/ibmphp_pci.c 				len[count] = bar[count] & 0xFFFFFFF0;
bar               470 drivers/pci/hotplug/ibmphp_pci.c 				pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]);
bar               471 drivers/pci/hotplug/ibmphp_pci.c 				debug("after writing, start address is %x\n", bar[count]);
bar               474 drivers/pci/hotplug/ibmphp_pci.c 				if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) {	/* takes up another dword */
bar               484 drivers/pci/hotplug/ibmphp_pci.c 				len[count] = bar[count] & 0xFFFFFFF0;
bar               510 drivers/pci/hotplug/ibmphp_pci.c 				pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]);
bar               511 drivers/pci/hotplug/ibmphp_pci.c 				debug("after writing, the address is %x\n", bar[count]);
bar               514 drivers/pci/hotplug/ibmphp_pci.c 				if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) {
bar               552 drivers/pci/hotplug/ibmphp_pci.c 	u32 bar[2];
bar               634 drivers/pci/hotplug/ibmphp_pci.c 		pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]);
bar               636 drivers/pci/hotplug/ibmphp_pci.c 		if (!bar[count]) {
bar               643 drivers/pci/hotplug/ibmphp_pci.c 		debug("Bar %d wants %x\n", count, bar[count]);
bar               645 drivers/pci/hotplug/ibmphp_pci.c 		if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) {
bar               647 drivers/pci/hotplug/ibmphp_pci.c 			len[count] = bar[count] & 0xFFFFFFFC;
bar               677 drivers/pci/hotplug/ibmphp_pci.c 			if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) {
bar               679 drivers/pci/hotplug/ibmphp_pci.c 				len[count] = bar[count] & 0xFFFFFFF0;
bar               725 drivers/pci/hotplug/ibmphp_pci.c 				if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) {
bar               734 drivers/pci/hotplug/ibmphp_pci.c 				len[count] = bar[count] & 0xFFFFFFF0;
bar               761 drivers/pci/hotplug/ibmphp_pci.c 				if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) {
bar              1056 drivers/pci/hotplug/ibmphp_pci.c 	u32 bar[6], class;
bar              1120 drivers/pci/hotplug/ibmphp_pci.c 					pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]);
bar              1122 drivers/pci/hotplug/ibmphp_pci.c 					debug("what is bar[count]? %x, count = %d\n", bar[count], count);
bar              1124 drivers/pci/hotplug/ibmphp_pci.c 					if (!bar[count])	/* This BAR is not implemented */
bar              1129 drivers/pci/hotplug/ibmphp_pci.c 					debug("count %d device %x function %x wants %x resources\n", count, device, function, bar[count]);
bar              1131 drivers/pci/hotplug/ibmphp_pci.c 					if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) {
bar              1133 drivers/pci/hotplug/ibmphp_pci.c 						len[count] = bar[count] & 0xFFFFFFFC;
bar              1138 drivers/pci/hotplug/ibmphp_pci.c 						if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) {
bar              1140 drivers/pci/hotplug/ibmphp_pci.c 							len[count] = bar[count] & 0xFFFFFFF0;
bar              1143 drivers/pci/hotplug/ibmphp_pci.c 							if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64)
bar              1149 drivers/pci/hotplug/ibmphp_pci.c 							len[count] = bar[count] & 0xFFFFFFF0;
bar              1152 drivers/pci/hotplug/ibmphp_pci.c 							if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) {
bar                22 drivers/pci/mmap.c int pci_mmap_page_range(struct pci_dev *pdev, int bar,
bar                28 drivers/pci/mmap.c 	pci_resource_to_user(pdev, bar, &pdev->resource[bar], &start, &end);
bar                32 drivers/pci/mmap.c 	return pci_mmap_resource_range(pdev, bar, vma, mmap_state,
bar                43 drivers/pci/mmap.c int pci_mmap_resource_range(struct pci_dev *pdev, int bar,
bar                50 drivers/pci/mmap.c 	size = ((pci_resource_len(pdev, bar) - 1) >> PAGE_SHIFT) + 1;
bar                60 drivers/pci/mmap.c 		ret = pci_iobar_pfn(pdev, bar, vma);
bar                64 drivers/pci/mmap.c 		vma->vm_pgoff += (pci_resource_start(pdev, bar) >> PAGE_SHIFT);
bar                81 drivers/pci/mmap.c int pci_mmap_resource_range(struct pci_dev *pdev, int bar,
bar                92 drivers/pci/mmap.c 	pci_resource_to_user(pdev, bar, &pdev->resource[bar], &start, &end);
bar                94 drivers/pci/mmap.c 	return pci_mmap_page_range(pdev, bar, vma, mmap_state, write_combine);
bar               157 drivers/pci/p2pdma.c int pci_p2pdma_add_resource(struct pci_dev *pdev, int bar, size_t size,
bar               165 drivers/pci/p2pdma.c 	if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM))
bar               168 drivers/pci/p2pdma.c 	if (offset >= pci_resource_len(pdev, bar))
bar               172 drivers/pci/p2pdma.c 		size = pci_resource_len(pdev, bar) - offset;
bar               174 drivers/pci/p2pdma.c 	if (size + offset > pci_resource_len(pdev, bar))
bar               188 drivers/pci/p2pdma.c 	pgmap->res.start = pci_resource_start(pdev, bar) + offset;
bar               190 drivers/pci/p2pdma.c 	pgmap->res.flags = pci_resource_flags(pdev, bar);
bar               194 drivers/pci/p2pdma.c 	p2p_pgmap->bus_offset = pci_bus_address(pdev, bar) -
bar               195 drivers/pci/p2pdma.c 		pci_resource_start(pdev, bar);
bar               204 drivers/pci/p2pdma.c 			pci_bus_address(pdev, bar) + offset,
bar                18 drivers/pci/pci-bridge-emul.h 	u32 bar[2];
bar              1023 drivers/pci/pci-sysfs.c 	int bar = (unsigned long)attr->private;
bar              1025 drivers/pci/pci-sysfs.c 	struct resource *res = &pdev->resource[bar];
bar              1035 drivers/pci/pci-sysfs.c 	if (!pci_mmap_fits(pdev, bar, vma, PCI_MMAP_SYSFS))
bar              1040 drivers/pci/pci-sysfs.c 	return pci_mmap_resource_range(pdev, bar, vma, mmap_type, write_combine);
bar              1062 drivers/pci/pci-sysfs.c 	int bar = (unsigned long)attr->private;
bar              1065 drivers/pci/pci-sysfs.c 	port += pci_resource_start(pdev, bar);
bar              1067 drivers/pci/pci-sysfs.c 	if (port > pci_resource_end(pdev, bar))
bar              1070 drivers/pci/pci-sysfs.c 	if (port + count - 1 > pci_resource_end(pdev, bar))
bar               168 drivers/pci/pci.c void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar)
bar               170 drivers/pci/pci.c 	struct resource *res = &pdev->resource[bar];
bar               176 drivers/pci/pci.c 		pci_warn(pdev, "can't ioremap BAR %d: %pR\n", bar, res);
bar               183 drivers/pci/pci.c void __iomem *pci_ioremap_wc_bar(struct pci_dev *pdev, int bar)
bar               188 drivers/pci/pci.c 	if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM)) {
bar               192 drivers/pci/pci.c 	return ioremap_wc(pci_resource_start(pdev, bar),
bar               193 drivers/pci/pci.c 			  pci_resource_len(pdev, bar));
bar              3429 drivers/pci/pci.c static int pci_rebar_find_pos(struct pci_dev *pdev, int bar)
bar              3447 drivers/pci/pci.c 		if (bar_idx == bar)
bar              3462 drivers/pci/pci.c u32 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar)
bar              3467 drivers/pci/pci.c 	pos = pci_rebar_find_pos(pdev, bar);
bar              3483 drivers/pci/pci.c int pci_rebar_get_current_size(struct pci_dev *pdev, int bar)
bar              3488 drivers/pci/pci.c 	pos = pci_rebar_find_pos(pdev, bar);
bar              3505 drivers/pci/pci.c int pci_rebar_set_size(struct pci_dev *pdev, int bar, int size)
bar              3510 drivers/pci/pci.c 	pos = pci_rebar_find_pos(pdev, bar);
bar              3666 drivers/pci/pci.c void pci_release_region(struct pci_dev *pdev, int bar)
bar              3670 drivers/pci/pci.c 	if (pci_resource_len(pdev, bar) == 0)
bar              3672 drivers/pci/pci.c 	if (pci_resource_flags(pdev, bar) & IORESOURCE_IO)
bar              3673 drivers/pci/pci.c 		release_region(pci_resource_start(pdev, bar),
bar              3674 drivers/pci/pci.c 				pci_resource_len(pdev, bar));
bar              3675 drivers/pci/pci.c 	else if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM)
bar              3676 drivers/pci/pci.c 		release_mem_region(pci_resource_start(pdev, bar),
bar              3677 drivers/pci/pci.c 				pci_resource_len(pdev, bar));
bar              3681 drivers/pci/pci.c 		dr->region_mask &= ~(1 << bar);
bar              3704 drivers/pci/pci.c static int __pci_request_region(struct pci_dev *pdev, int bar,
bar              3709 drivers/pci/pci.c 	if (pci_resource_len(pdev, bar) == 0)
bar              3712 drivers/pci/pci.c 	if (pci_resource_flags(pdev, bar) & IORESOURCE_IO) {
bar              3713 drivers/pci/pci.c 		if (!request_region(pci_resource_start(pdev, bar),
bar              3714 drivers/pci/pci.c 			    pci_resource_len(pdev, bar), res_name))
bar              3716 drivers/pci/pci.c 	} else if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) {
bar              3717 drivers/pci/pci.c 		if (!__request_mem_region(pci_resource_start(pdev, bar),
bar              3718 drivers/pci/pci.c 					pci_resource_len(pdev, bar), res_name,
bar              3725 drivers/pci/pci.c 		dr->region_mask |= 1 << bar;
bar              3730 drivers/pci/pci.c 	pci_warn(pdev, "BAR %d: can't reserve %pR\n", bar,
bar              3731 drivers/pci/pci.c 		 &pdev->resource[bar]);
bar              3749 drivers/pci/pci.c int pci_request_region(struct pci_dev *pdev, int bar, const char *res_name)
bar              3751 drivers/pci/pci.c 	return __pci_request_region(pdev, bar, res_name, 0);
bar              6090 drivers/pci/pci.c void __weak pci_resource_to_user(const struct pci_dev *dev, int bar,
bar              6161 drivers/pci/pci.c static void pci_request_resource_alignment(struct pci_dev *dev, int bar,
bar              6164 drivers/pci/pci.c 	struct resource *r = &dev->resource[bar];
bar              6172 drivers/pci/pci.c 			 bar, r, (unsigned long long)align);
bar              6209 drivers/pci/pci.c 		 bar, r, (unsigned long long)align);
bar               593 drivers/pci/pci.h u32 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar);
bar               594 drivers/pci/pci.h int pci_rebar_get_current_size(struct pci_dev *pdev, int bar);
bar               595 drivers/pci/pci.h int pci_rebar_set_size(struct pci_dev *pdev, int bar, int size);
bar               131 drivers/pci/probe.c static inline unsigned long decode_bar(struct pci_dev *dev, u32 bar)
bar               136 drivers/pci/probe.c 	if ((bar & PCI_BASE_ADDRESS_SPACE) == PCI_BASE_ADDRESS_SPACE_IO) {
bar               137 drivers/pci/probe.c 		flags = bar & ~PCI_BASE_ADDRESS_IO_MASK;
bar               142 drivers/pci/probe.c 	flags = bar & ~PCI_BASE_ADDRESS_MEM_MASK;
bar               147 drivers/pci/probe.c 	mem_type = bar & PCI_BASE_ADDRESS_MEM_TYPE_MASK;
bar              2176 drivers/pci/quirks.c 	unsigned int bar;
bar              2181 drivers/pci/quirks.c 	for (bar = 0; bar <= 1; bar++)
bar              2182 drivers/pci/quirks.c 		if (pci_resource_len(dev, bar) == 0x80 &&
bar              2183 drivers/pci/quirks.c 		    (pci_resource_start(dev, bar) & 0x80)) {
bar              2184 drivers/pci/quirks.c 			struct resource *r = &dev->resource[bar];
bar              2186 drivers/pci/quirks.c 				 bar);
bar              3872 drivers/pci/quirks.c 	void __iomem *bar;
bar              3883 drivers/pci/quirks.c 	bar = pci_iomap(dev, 0, NVME_REG_CC + sizeof(cfg));
bar              3884 drivers/pci/quirks.c 	if (!bar)
bar              3890 drivers/pci/quirks.c 	cfg = readl(bar + NVME_REG_CC);
bar              3894 drivers/pci/quirks.c 		u32 cap = readl(bar + NVME_REG_CAP);
bar              3904 drivers/pci/quirks.c 		writel(cfg, bar + NVME_REG_CC);
bar              3916 drivers/pci/quirks.c 			u32 status = readl(bar + NVME_REG_CSTS);
bar              3931 drivers/pci/quirks.c 	pci_iounmap(dev, bar);
bar                25 drivers/pnp/manager.c 					  unsigned int bar)
bar                27 drivers/pnp/manager.c 	struct resource *res = pnp_get_resource(dev, type, bar);
bar                51 drivers/scsi/aic94xx/aic94xx_hwi.h 	u32    bar;
bar               554 drivers/scsi/aic94xx/aic94xx_sds.c 		d  = asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar);
bar               555 drivers/scsi/aic94xx/aic94xx_sds.c 		d ^= asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar);
bar               570 drivers/scsi/aic94xx/aic94xx_sds.c 	asd_write_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar, FLASH_RESET);
bar               579 drivers/scsi/aic94xx/aic94xx_sds.c 	asd_read_reg_string(asd_ha, buffer, asd_ha->hw_prof.flash.bar+offs,
bar               618 drivers/scsi/aic94xx/aic94xx_sds.c 				  &asd_ha->hw_prof.flash.bar)) {
bar              1087 drivers/scsi/aic94xx/aic94xx_sds.c 	reg = asd_ha->hw_prof.flash.bar;
bar              1117 drivers/scsi/aic94xx/aic94xx_sds.c 	reg = asd_ha->hw_prof.flash.bar;
bar              1201 drivers/scsi/aic94xx/aic94xx_sds.c 	reg = asd_ha->hw_prof.flash.bar;
bar              1257 drivers/scsi/aic94xx/aic94xx_sds.c 	reg = asd_ha->hw_prof.flash.bar;
bar              1307 drivers/scsi/aic94xx/aic94xx_sds.c 	reg = asd_ha->hw_prof.flash.bar;
bar              6964 drivers/scsi/bfa/bfa_ioc.c bfa_raw_sem_get(void __iomem *bar)
bar              6968 drivers/scsi/bfa/bfa_ioc.c 	locked = readl((bar + FLASH_SEM_LOCK_REG));
bar              6974 drivers/scsi/bfa/bfa_ioc.c bfa_flash_sem_get(void __iomem *bar)
bar              6978 drivers/scsi/bfa/bfa_ioc.c 	while (!bfa_raw_sem_get(bar)) {
bar              6987 drivers/scsi/bfa/bfa_ioc.c bfa_flash_sem_put(void __iomem *bar)
bar              6989 drivers/scsi/bfa/bfa_ioc.c 	writel(0, (bar + FLASH_SEM_LOCK_REG));
bar                88 drivers/scsi/fnic/vnic_dev.c 	struct vnic_dev_bar *bar)
bar                94 drivers/scsi/fnic/vnic_dev.c 	if (bar->len < VNIC_MAX_RES_HDR_SIZE) {
bar                99 drivers/scsi/fnic/vnic_dev.c 	rh = bar->vaddr;
bar               118 drivers/scsi/fnic/vnic_dev.c 		u8 bar_num = ioread8(&r->bar);
bar               135 drivers/scsi/fnic/vnic_dev.c 			if (len + bar_offset > bar->len) {
bar               141 drivers/scsi/fnic/vnic_dev.c 					bar->len);
bar               155 drivers/scsi/fnic/vnic_dev.c 		vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset;
bar               917 drivers/scsi/fnic/vnic_dev.c 	void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar)
bar               928 drivers/scsi/fnic/vnic_dev.c 	if (vnic_dev_discover_res(vdev, bar))
bar               163 drivers/scsi/fnic/vnic_dev.h 				   struct vnic_dev_bar *bar);
bar                62 drivers/scsi/fnic/vnic_resource.h 	u8 bar;
bar              2406 drivers/scsi/megaraid/megaraid_sas.h 	unsigned long bar;
bar              5867 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->bar = find_first_bit(&bar_list, BITS_PER_LONG);
bar              5868 drivers/scsi/megaraid/megaraid_sas_base.c 	if (pci_request_selected_regions(instance->pdev, 1<<instance->bar,
bar              5874 drivers/scsi/megaraid/megaraid_sas_base.c 	base_addr = pci_resource_start(instance->pdev, instance->bar);
bar              5885 drivers/scsi/megaraid/megaraid_sas_base.c 		   instance->bar, base_addr_phys, instance->reg_set);
bar              6374 drivers/scsi/megaraid/megaraid_sas_base.c 	pci_release_selected_regions(instance->pdev, 1<<instance->bar);
bar              6397 drivers/scsi/megaraid/megaraid_sas_base.c 	pci_release_selected_regions(instance->pdev, 1<<instance->bar);
bar              3926 drivers/scsi/megaraid/megaraid_sas_fusion.c 	pci_release_selected_regions(instance->pdev, 1<<instance->bar);
bar               296 drivers/scsi/mvsas/mv_init.c int mvs_ioremap(struct mvs_info *mvi, int bar, int bar_ex)
bar               318 drivers/scsi/mvsas/mv_init.c 	res_start = pci_resource_start(pdev, bar);
bar               319 drivers/scsi/mvsas/mv_init.c 	res_len = pci_resource_len(pdev, bar);
bar               326 drivers/scsi/mvsas/mv_init.c 	res_flag = pci_resource_flags(pdev, bar);
bar               433 drivers/scsi/mvsas/mv_sas.h int mvs_ioremap(struct mvs_info *mvi, int bar, int bar_ex);
bar                54 drivers/scsi/pm8001/pm8001_chips.h static inline u32 pm8001_cr32(struct pm8001_hba_info *pm8001_ha, u32 bar,
bar                57 drivers/scsi/pm8001/pm8001_chips.h 	return readl(pm8001_ha->io_mem[bar].memvirtaddr + offset);
bar                60 drivers/scsi/pm8001/pm8001_chips.h static inline void pm8001_cw32(struct pm8001_hba_info *pm8001_ha, u32 bar,
bar                63 drivers/scsi/pm8001/pm8001_chips.h 	writel(val, pm8001_ha->io_mem[bar].memvirtaddr + addr);
bar              1188 drivers/scsi/pm8001/pm8001_hwi.c 	s8 bar, logical = 0;
bar              1189 drivers/scsi/pm8001/pm8001_hwi.c 	for (bar = 0; bar < 6; bar++) {
bar              1198 drivers/scsi/pm8001/pm8001_hwi.c 		if ((bar == 1) || (bar == 3))
bar              4990 drivers/scsi/pm8001/pm8001_hwi.c 	u32 value, rem, offset = 0, bar = 0;
bar              5007 drivers/scsi/pm8001/pm8001_hwi.c 		bar = 2;
bar              5009 drivers/scsi/pm8001/pm8001_hwi.c 		bar = 1;
bar              5044 drivers/scsi/pm8001/pm8001_hwi.c 		value = pm8001_cr32(pm8001_ha, bar, (work_offset + offset) &
bar              5050 drivers/scsi/pm8001/pm8001_hwi.c 		value = pm8001_cr32(pm8001_ha, bar, (work_offset + offset) &
bar               398 drivers/scsi/pm8001/pm8001_init.c 	u32 bar;
bar               404 drivers/scsi/pm8001/pm8001_init.c 	for (bar = 0; bar < 6; bar++) {
bar               413 drivers/scsi/pm8001/pm8001_init.c 		if ((bar == 1) || (bar == 3))
bar               415 drivers/scsi/pm8001/pm8001_init.c 		if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) {
bar               417 drivers/scsi/pm8001/pm8001_init.c 				pci_resource_start(pdev, bar);
bar               419 drivers/scsi/pm8001/pm8001_init.c 				pci_resource_len(pdev, bar);
bar               425 drivers/scsi/pm8001/pm8001_init.c 				bar, logicalBar));
bar                83 drivers/scsi/snic/vnic_dev.c 	struct vnic_dev_bar *bar, unsigned int num_bars)
bar                92 drivers/scsi/snic/vnic_dev.c 	if (bar->len < VNIC_MAX_RES_HDR_SIZE) {
bar                98 drivers/scsi/snic/vnic_dev.c 	rh = bar->vaddr;
bar               118 drivers/scsi/snic/vnic_dev.c 		u8 bar_num = ioread8(&r->bar);
bar               128 drivers/scsi/snic/vnic_dev.c 		if (!bar[bar_num].len || !bar[bar_num].vaddr)
bar               138 drivers/scsi/snic/vnic_dev.c 			if (len + bar_offset > bar->len) {
bar               142 drivers/scsi/snic/vnic_dev.c 					bar->len);
bar               159 drivers/scsi/snic/vnic_dev.c 		vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset;
bar               725 drivers/scsi/snic/vnic_dev.c 					  struct vnic_dev_bar *bar,
bar               737 drivers/scsi/snic/vnic_dev.c 	if (vnic_dev_discover_res(vdev, bar, num_bars))
bar               103 drivers/scsi/snic/vnic_dev.h 					 struct vnic_dev_bar *bar,
bar                62 drivers/scsi/snic/vnic_resource.h 	u8 bar;
bar               107 drivers/soc/fsl/qbman/bman_ccsr.c 	u32 bar, bare;
bar               116 drivers/soc/fsl/qbman/bman_ccsr.c 	bar = bm_ccsr_in(REG_FBPR_BAR);
bar               117 drivers/soc/fsl/qbman/bman_ccsr.c 	if (bar) {
bar               120 drivers/soc/fsl/qbman/bman_ccsr.c 		if (bare != upper_32_bits(ba) || bar != lower_32_bits(ba)) {
bar               122 drivers/soc/fsl/qbman/bman_ccsr.c 			       ba, bare, bar);
bar               349 drivers/soc/fsl/qbman/qman_ccsr.c 	u32 bar, bare;
bar               358 drivers/soc/fsl/qbman/qman_ccsr.c 	bar = qm_ccsr_in(offset + REG_offset_BAR);
bar               359 drivers/soc/fsl/qbman/qman_ccsr.c 	if (bar) {
bar               362 drivers/soc/fsl/qbman/qman_ccsr.c 		if (bare != upper_32_bits(ba) || bar != lower_32_bits(ba)) {
bar               364 drivers/soc/fsl/qbman/qman_ccsr.c 			       ba, bare, bar);
bar               343 drivers/staging/comedi/drivers/amplc_dio200_pci.c 	unsigned int bar;
bar               360 drivers/staging/comedi/drivers/amplc_dio200_pci.c 	bar = board->mainbar;
bar               361 drivers/staging/comedi/drivers/amplc_dio200_pci.c 	if (pci_resource_flags(pci_dev, bar) & IORESOURCE_MEM) {
bar               362 drivers/staging/comedi/drivers/amplc_dio200_pci.c 		dev->mmio = pci_ioremap_bar(pci_dev, bar);
bar               369 drivers/staging/comedi/drivers/amplc_dio200_pci.c 		dev->iobase = pci_resource_start(pci_dev, bar);
bar              1671 drivers/staging/gasket/gasket_core.c int gasket_wait_with_reschedule(struct gasket_dev *gasket_dev, int bar,
bar              1679 drivers/staging/gasket/gasket_core.c 		tmp = gasket_dev_read_64(gasket_dev, bar, offset);
bar               579 drivers/staging/gasket/gasket_core.h static inline ulong gasket_dev_read_64(struct gasket_dev *gasket_dev, int bar,
bar               582 drivers/staging/gasket/gasket_core.h 	return readq_relaxed(&gasket_dev->bar_data[bar].virt_base[location]);
bar               586 drivers/staging/gasket/gasket_core.h 				       int bar, ulong location)
bar               588 drivers/staging/gasket/gasket_core.h 	writeq_relaxed(value, &dev->bar_data[bar].virt_base[location]);
bar               592 drivers/staging/gasket/gasket_core.h 				       int bar, ulong location)
bar               594 drivers/staging/gasket/gasket_core.h 	writel_relaxed(value, &dev->bar_data[bar].virt_base[location]);
bar               597 drivers/staging/gasket/gasket_core.h static inline u32 gasket_dev_read_32(struct gasket_dev *dev, int bar,
bar               600 drivers/staging/gasket/gasket_core.h 	return readl_relaxed(&dev->bar_data[bar].virt_base[location]);
bar               603 drivers/staging/gasket/gasket_core.h static inline void gasket_read_modify_write_64(struct gasket_dev *dev, int bar,
bar               609 drivers/staging/gasket/gasket_core.h 	tmp = gasket_dev_read_64(dev, bar, location);
bar               612 drivers/staging/gasket/gasket_core.h 	gasket_dev_write_64(dev, tmp, bar, location);
bar               615 drivers/staging/gasket/gasket_core.h static inline void gasket_read_modify_write_32(struct gasket_dev *dev, int bar,
bar               621 drivers/staging/gasket/gasket_core.h 	tmp = gasket_dev_read_32(dev, bar, location);
bar               624 drivers/staging/gasket/gasket_core.h 	gasket_dev_write_32(dev, tmp, bar, location);
bar               634 drivers/staging/gasket/gasket_core.h int gasket_wait_with_reschedule(struct gasket_dev *gasket_dev, int bar,
bar               385 drivers/staging/gasket/gasket_sysfs.c 			    gasket_attr->data.bar_address.bar,
bar                54 drivers/staging/gasket/gasket_sysfs.h 			ulong bar;
bar               553 drivers/staging/olpc_dcon/olpc_dcon.c 			      unsigned long foo, void *bar)
bar                66 drivers/staging/uwb/include/umc.h 	u8		bar;
bar                95 drivers/staging/uwb/whci.c 	int bar, err;
bar               103 drivers/staging/uwb/whci.c 	bar = UWBCAPDATA_TO_BAR(capdata) << 1;
bar               110 drivers/staging/uwb/whci.c 	umc->bar	     = bar;
bar               111 drivers/staging/uwb/whci.c 	umc->resource.start  = pci_resource_start(card->pci, bar)
bar               116 drivers/staging/uwb/whci.c 	umc->resource.flags  = card->pci->resource[bar].flags;
bar               117 drivers/staging/uwb/whci.c 	umc->resource.parent = &card->pci->resource[bar];
bar               202 drivers/tty/serial/8250/8250_exar.c 	unsigned int bar = 0;
bar               206 drivers/tty/serial/8250/8250_exar.c 	port->port.mapbase = pci_resource_start(pcidev, bar) + offset;
bar               554 drivers/tty/serial/8250/8250_exar.c 	unsigned int nr_ports, i, bar = 0, maxnr;
bar               568 drivers/tty/serial/8250/8250_exar.c 	maxnr = pci_resource_len(pcidev, bar) >> (board->reg_shift + 3);
bar               577 drivers/tty/serial/8250/8250_exar.c 	priv->virt = pcim_iomap(pcidev, bar, 0);
bar               162 drivers/tty/serial/8250/8250_mid.c 	unsigned int bar = FL_GET_BASE(mid->board->flags);
bar               176 drivers/tty/serial/8250/8250_mid.c 	chip->length = pci_resource_len(pdev, bar);
bar               285 drivers/tty/serial/8250/8250_mid.c 	unsigned int bar;
bar               297 drivers/tty/serial/8250/8250_mid.c 	bar = FL_GET_BASE(mid->board->flags);
bar               310 drivers/tty/serial/8250/8250_mid.c 	uart.port.mapbase = pci_resource_start(pdev, bar);
bar               311 drivers/tty/serial/8250/8250_mid.c 	uart.port.membase = pcim_iomap(pdev, bar, 0);
bar                88 drivers/tty/serial/8250/8250_pci.c 	   int bar, int offset, int regshift)
bar                92 drivers/tty/serial/8250/8250_pci.c 	if (bar >= PCI_NUM_BAR_RESOURCES)
bar                95 drivers/tty/serial/8250/8250_pci.c 	if (pci_resource_flags(dev, bar) & IORESOURCE_MEM) {
bar                96 drivers/tty/serial/8250/8250_pci.c 		if (!pcim_iomap(dev, bar, 0) && !pcim_iomap_table(dev))
bar               101 drivers/tty/serial/8250/8250_pci.c 		port->port.mapbase = pci_resource_start(dev, bar) + offset;
bar               102 drivers/tty/serial/8250/8250_pci.c 		port->port.membase = pcim_iomap_table(dev)[bar] + offset;
bar               106 drivers/tty/serial/8250/8250_pci.c 		port->port.iobase = pci_resource_start(dev, bar) + offset;
bar               121 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar = 0, offset = board->first_offset;
bar               122 drivers/tty/serial/8250/8250_pci.c 	bar = FL_GET_BASE(board->flags);
bar               127 drivers/tty/serial/8250/8250_pci.c 		bar += 1;
bar               130 drivers/tty/serial/8250/8250_pci.c 		bar += 2;
bar               133 drivers/tty/serial/8250/8250_pci.c 		bar += 3;
bar               137 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, board->reg_shift);
bar               148 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar, offset = board->first_offset;
bar               150 drivers/tty/serial/8250/8250_pci.c 	bar = FL_GET_BASE(board->flags);
bar               152 drivers/tty/serial/8250/8250_pci.c 		bar += idx;
bar               154 drivers/tty/serial/8250/8250_pci.c 		bar = 4;
bar               158 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, board->reg_shift);
bar               204 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar = FL_GET_BASE(board->flags);
bar               223 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, board->reg_shift);
bar               322 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar = 0;
bar               324 drivers/tty/serial/8250/8250_pci.c 	if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
bar               329 drivers/tty/serial/8250/8250_pci.c 	p = pci_ioremap_bar(dev, bar);
bar               351 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar = 0;
bar               353 drivers/tty/serial/8250/8250_pci.c 	if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
bar               358 drivers/tty/serial/8250/8250_pci.c 	p = pci_ioremap_bar(dev, bar);
bar               372 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar, offset = board->first_offset;
bar               374 drivers/tty/serial/8250/8250_pci.c 	bar = 0;
bar               385 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, board->reg_shift);
bar               527 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar = FL_GET_BASE(board->flags) + idx, offset = 0;
bar               530 drivers/tty/serial/8250/8250_pci.c 		bar = 4;
bar               534 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, 0);
bar               621 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar = 0, offset = board->first_offset;
bar               625 drivers/tty/serial/8250/8250_pci.c 		bar = 0;
bar               629 drivers/tty/serial/8250/8250_pci.c 		bar = 0;
bar               632 drivers/tty/serial/8250/8250_pci.c 		bar = 1;
bar               641 drivers/tty/serial/8250/8250_pci.c 		bar = idx - 2;
bar               644 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, board->reg_shift);
bar               655 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar, offset = board->first_offset;
bar               659 drivers/tty/serial/8250/8250_pci.c 		bar = 1;
bar               662 drivers/tty/serial/8250/8250_pci.c 		bar = 2;
bar               665 drivers/tty/serial/8250/8250_pci.c 		bar = 4;
bar               669 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, board->reg_shift);
bar               681 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar = 0;
bar               683 drivers/tty/serial/8250/8250_pci.c 	if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
bar               688 drivers/tty/serial/8250/8250_pci.c 	p = pci_ioremap_bar(dev, bar);
bar               712 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar = 0;
bar               714 drivers/tty/serial/8250/8250_pci.c 	if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
bar               719 drivers/tty/serial/8250/8250_pci.c 	p = pci_ioremap_bar(dev, bar);
bar               728 drivers/tty/serial/8250/8250_pci.c 	pcibios_resource_to_bus(dev->bus, &region, &dev->resource[bar]);
bar               758 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar, offset = board->first_offset;
bar               763 drivers/tty/serial/8250/8250_pci.c 	bar = FL_GET_BASE(board->flags);
bar               766 drivers/tty/serial/8250/8250_pci.c 	p = pci_ioremap_bar(dev, bar);
bar               776 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, board->reg_shift);
bar               783 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar;
bar               790 drivers/tty/serial/8250/8250_pci.c 		bar = 3 * idx;
bar               792 drivers/tty/serial/8250/8250_pci.c 		return setup_port(priv, port, bar, 0, board->reg_shift);
bar              1328 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar, offset = board->first_offset, maxnr;
bar              1330 drivers/tty/serial/8250/8250_pci.c 	bar = FL_GET_BASE(board->flags);
bar              1332 drivers/tty/serial/8250/8250_pci.c 		bar += idx;
bar              1336 drivers/tty/serial/8250/8250_pci.c 	maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >>
bar              1342 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, board->reg_shift);
bar              1378 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar, offset = board->first_offset, maxnr;
bar              1380 drivers/tty/serial/8250/8250_pci.c 	bar = FL_GET_BASE(board->flags);
bar              1382 drivers/tty/serial/8250/8250_pci.c 		bar += idx;
bar              1387 drivers/tty/serial/8250/8250_pci.c 	maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >>
bar              1395 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, board->reg_shift);
bar              1402 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar, offset = board->first_offset, maxnr;
bar              1404 drivers/tty/serial/8250/8250_pci.c 	bar = FL_GET_BASE(board->flags);
bar              1406 drivers/tty/serial/8250/8250_pci.c 		bar += idx;
bar              1413 drivers/tty/serial/8250/8250_pci.c 	maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >>
bar              1421 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, board->reg_shift);
bar              1786 drivers/tty/serial/8250/8250_pci.c 	int bar;
bar              1793 drivers/tty/serial/8250/8250_pci.c 		bar = 0;
bar              1796 drivers/tty/serial/8250/8250_pci.c 		bar = 1;
bar              1802 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, 0);
bar              1810 drivers/tty/serial/8250/8250_pci.c 	unsigned int bar = FL_GET_BASE(board->flags);
bar              1818 drivers/tty/serial/8250/8250_pci.c 	return setup_port(priv, port, bar, offset, 0);
bar               117 drivers/uio/uio_mf624.c static int mf624_setup_mem(struct pci_dev *dev, int bar, struct uio_mem *mem, const char *name)
bar               119 drivers/uio/uio_mf624.c 	resource_size_t start = pci_resource_start(dev, bar);
bar               120 drivers/uio/uio_mf624.c 	resource_size_t len = pci_resource_len(dev, bar);
bar               129 drivers/uio/uio_mf624.c 	mem->internal_addr = pci_ioremap_bar(dev, bar);
bar                54 drivers/uio/uio_netx.c 	int bar;
bar                68 drivers/uio/uio_netx.c 		bar = 0;
bar                72 drivers/uio/uio_netx.c 		bar = 0;
bar                76 drivers/uio/uio_netx.c 		bar = 2;
bar                81 drivers/uio/uio_netx.c 	info->mem[0].addr = pci_resource_start(dev, bar);
bar                84 drivers/uio/uio_netx.c 	info->mem[0].internal_addr = ioremap(pci_resource_start(dev, bar),
bar                85 drivers/uio/uio_netx.c 						pci_resource_len(dev, bar));
bar                90 drivers/uio/uio_netx.c 	info->mem[0].size = pci_resource_len(dev, bar);
bar               832 drivers/usb/early/ehci-dbgp.c 	u32 debug_port, bar, offset;
bar               857 drivers/usb/early/ehci-dbgp.c 	bar = (debug_port >> 29) & 0x7;
bar               858 drivers/usb/early/ehci-dbgp.c 	bar = (bar * 4) + 0xc;
bar               860 drivers/usb/early/ehci-dbgp.c 	dbgp_printk("bar: %02x offset: %03x\n", bar, offset);
bar               861 drivers/usb/early/ehci-dbgp.c 	if (bar != PCI_BASE_ADDRESS_0) {
bar              3070 drivers/usb/gadget/udc/pch_udc.c 	int			bar;
bar              3088 drivers/usb/gadget/udc/pch_udc.c 		bar = PCH_UDC_PCI_BAR_QUARK_X1000;
bar              3090 drivers/usb/gadget/udc/pch_udc.c 		bar = PCH_UDC_PCI_BAR;
bar              3093 drivers/usb/gadget/udc/pch_udc.c 	retval = pcim_iomap_regions(pdev, 1 << bar, pci_name(pdev));
bar              3097 drivers/usb/gadget/udc/pch_udc.c 	dev->base_addr = pcim_iomap_table(pdev)[bar];
bar               113 drivers/vfio/pci/vfio_pci.c 	int bar;
bar               118 drivers/vfio/pci/vfio_pci.c 	for (bar = PCI_STD_RESOURCES; bar <= PCI_STD_RESOURCE_END; bar++) {
bar               119 drivers/vfio/pci/vfio_pci.c 		res = vdev->pdev->resource + bar;
bar               136 drivers/vfio/pci/vfio_pci.c 			vdev->bar_mmap_supported[bar] = true;
bar               159 drivers/vfio/pci/vfio_pci.c 			dummy_res->index = bar;
bar               162 drivers/vfio/pci/vfio_pci.c 			vdev->bar_mmap_supported[bar] = true;
bar               174 drivers/vfio/pci/vfio_pci.c 		vdev->bar_mmap_supported[bar] = false;
bar               373 drivers/vfio/pci/vfio_pci.c 	int i, bar;
bar               402 drivers/vfio/pci/vfio_pci.c 	for (bar = PCI_STD_RESOURCES; bar <= PCI_STD_RESOURCE_END; bar++) {
bar               403 drivers/vfio/pci/vfio_pci.c 		if (!vdev->barmap[bar])
bar               405 drivers/vfio/pci/vfio_pci.c 		pci_iounmap(pdev, vdev->barmap[bar]);
bar               406 drivers/vfio/pci/vfio_pci.c 		pci_release_selected_regions(pdev, 1 << bar);
bar               407 drivers/vfio/pci/vfio_pci.c 		vdev->barmap[bar] = NULL;
bar               426 drivers/vfio/pci/vfio_pci_config.c static __le32 vfio_generate_bar_flags(struct pci_dev *pdev, int bar)
bar               428 drivers/vfio/pci/vfio_pci_config.c 	unsigned long flags = pci_resource_flags(pdev, bar);
bar               453 drivers/vfio/pci/vfio_pci_config.c 	__le32 *bar;
bar               456 drivers/vfio/pci/vfio_pci_config.c 	bar = (__le32 *)&vdev->vconfig[PCI_BASE_ADDRESS_0];
bar               458 drivers/vfio/pci/vfio_pci_config.c 	for (i = PCI_STD_RESOURCES; i <= PCI_STD_RESOURCE_END; i++, bar++) {
bar               460 drivers/vfio/pci/vfio_pci_config.c 			*bar = 0; /* Unmapped by host = unimplemented to user */
bar               466 drivers/vfio/pci/vfio_pci_config.c 		*bar &= cpu_to_le32((u32)mask);
bar               467 drivers/vfio/pci/vfio_pci_config.c 		*bar |= vfio_generate_bar_flags(pdev, i);
bar               469 drivers/vfio/pci/vfio_pci_config.c 		if (*bar & cpu_to_le32(PCI_BASE_ADDRESS_MEM_TYPE_64)) {
bar               470 drivers/vfio/pci/vfio_pci_config.c 			bar++;
bar               471 drivers/vfio/pci/vfio_pci_config.c 			*bar &= cpu_to_le32((u32)(mask >> 32));
bar               476 drivers/vfio/pci/vfio_pci_config.c 	bar = (__le32 *)&vdev->vconfig[PCI_ROM_ADDRESS];
bar               486 drivers/vfio/pci/vfio_pci_config.c 		*bar &= cpu_to_le32((u32)mask);
bar               491 drivers/vfio/pci/vfio_pci_config.c 		*bar &= cpu_to_le32((u32)mask);
bar               493 drivers/vfio/pci/vfio_pci_config.c 		*bar = 0;
bar               523 drivers/vfio/pci/vfio_pci_config.c 	u32 bar;
bar               527 drivers/vfio/pci/vfio_pci_config.c 			ret = pci_user_read_config_dword(vdev->pdev, pos, &bar);
bar               528 drivers/vfio/pci/vfio_pci_config.c 			if (ret || vdev->rbar[i] != bar)
bar                38 drivers/vfio/pci/vfio_pci_private.h 	int			bar;
bar               132 drivers/vfio/pci/vfio_pci_rdwr.c static int vfio_pci_setup_barmap(struct vfio_pci_device *vdev, int bar)
bar               138 drivers/vfio/pci/vfio_pci_rdwr.c 	if (vdev->barmap[bar])
bar               141 drivers/vfio/pci/vfio_pci_rdwr.c 	ret = pci_request_selected_regions(pdev, 1 << bar, "vfio");
bar               145 drivers/vfio/pci/vfio_pci_rdwr.c 	io = pci_iomap(pdev, bar, 0);
bar               147 drivers/vfio/pci/vfio_pci_rdwr.c 		pci_release_selected_regions(pdev, 1 << bar);
bar               151 drivers/vfio/pci/vfio_pci_rdwr.c 	vdev->barmap[bar] = io;
bar               161 drivers/vfio/pci/vfio_pci_rdwr.c 	int bar = VFIO_PCI_OFFSET_TO_INDEX(*ppos);
bar               167 drivers/vfio/pci/vfio_pci_rdwr.c 	if (pci_resource_start(pdev, bar))
bar               168 drivers/vfio/pci/vfio_pci_rdwr.c 		end = pci_resource_len(pdev, bar);
bar               169 drivers/vfio/pci/vfio_pci_rdwr.c 	else if (bar == PCI_ROM_RESOURCE &&
bar               170 drivers/vfio/pci/vfio_pci_rdwr.c 		 pdev->resource[bar].flags & IORESOURCE_ROM_SHADOW)
bar               180 drivers/vfio/pci/vfio_pci_rdwr.c 	if (bar == PCI_ROM_RESOURCE) {
bar               191 drivers/vfio/pci/vfio_pci_rdwr.c 		int ret = vfio_pci_setup_barmap(vdev, bar);
bar               195 drivers/vfio/pci/vfio_pci_rdwr.c 		io = vdev->barmap[bar];
bar               198 drivers/vfio/pci/vfio_pci_rdwr.c 	if (bar == vdev->msix_bar) {
bar               208 drivers/vfio/pci/vfio_pci_rdwr.c 	if (bar == PCI_ROM_RESOURCE)
bar               306 drivers/vfio/pci/vfio_pci_rdwr.c 	int ret, bar = VFIO_PCI_OFFSET_TO_INDEX(offset);
bar               310 drivers/vfio/pci/vfio_pci_rdwr.c 	if (bar > VFIO_PCI_BAR5_REGION_INDEX)
bar               313 drivers/vfio/pci/vfio_pci_rdwr.c 	if (pos + count > pci_resource_len(pdev, bar))
bar               317 drivers/vfio/pci/vfio_pci_rdwr.c 	if (bar == vdev->msix_bar &&
bar               327 drivers/vfio/pci/vfio_pci_rdwr.c 	ret = vfio_pci_setup_barmap(vdev, bar);
bar               334 drivers/vfio/pci/vfio_pci_rdwr.c 		if (ioeventfd->pos == pos && ioeventfd->bar == bar &&
bar               365 drivers/vfio/pci/vfio_pci_rdwr.c 	ioeventfd->addr = vdev->barmap[bar] + pos;
bar               368 drivers/vfio/pci/vfio_pci_rdwr.c 	ioeventfd->bar = bar;
bar              1774 drivers/video/fbdev/core/fbmem.c 	int err, idx, bar;
bar              1777 drivers/video/fbdev/core/fbmem.c 	for (idx = 0, bar = 0; bar < PCI_ROM_RESOURCE; bar++) {
bar              1778 drivers/video/fbdev/core/fbmem.c 		if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM))
bar              1787 drivers/video/fbdev/core/fbmem.c 	for (idx = 0, bar = 0; bar < PCI_ROM_RESOURCE; bar++) {
bar              1788 drivers/video/fbdev/core/fbmem.c 		if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM))
bar              1790 drivers/video/fbdev/core/fbmem.c 		ap->ranges[idx].base = pci_resource_start(pdev, bar);
bar              1791 drivers/video/fbdev/core/fbmem.c 		ap->ranges[idx].size = pci_resource_len(pdev, bar);
bar              1792 drivers/video/fbdev/core/fbmem.c 		pci_info(pdev, "%s: bar %d: 0x%lx -> 0x%lx\n", __func__, bar,
bar              1793 drivers/video/fbdev/core/fbmem.c 			 (unsigned long)pci_resource_start(pdev, bar),
bar              1794 drivers/video/fbdev/core/fbmem.c 			 (unsigned long)pci_resource_end(pdev, bar));
bar              1796 drivers/video/fbdev/core/fbmem.c 		if (res_id == bar)
bar                71 drivers/virtio/virtio_pci_modern.c 	u8 bar;
bar                76 drivers/virtio/virtio_pci_modern.c 						 bar),
bar                77 drivers/virtio/virtio_pci_modern.c 			     &bar);
bar               122 drivers/virtio/virtio_pci_modern.c 	    minlen + offset > pci_resource_len(dev, bar)) {
bar               127 drivers/virtio/virtio_pci_modern.c 			bar, (unsigned long)pci_resource_len(dev, bar));
bar               131 drivers/virtio/virtio_pci_modern.c 	p = pci_iomap_range(dev, bar, offset, length);
bar               135 drivers/virtio/virtio_pci_modern.c 			length, offset, bar);
bar               494 drivers/virtio/virtio_pci_modern.c 		u8 type, bar;
bar               499 drivers/virtio/virtio_pci_modern.c 							 bar),
bar               500 drivers/virtio/virtio_pci_modern.c 				     &bar);
bar               503 drivers/virtio/virtio_pci_modern.c 		if (bar > 0x5)
bar               507 drivers/virtio/virtio_pci_modern.c 			if (pci_resource_len(dev, bar) &&
bar               508 drivers/virtio/virtio_pci_modern.c 			    pci_resource_flags(dev, bar) & ioresource_types) {
bar               509 drivers/virtio/virtio_pci_modern.c 				*bars |= (1 << bar);
bar               530 drivers/virtio/virtio_pci_modern.c 		     offsetof(struct virtio_pci_cap, bar));
bar               138 drivers/xen/xen-pciback/conf_space_header.c 	struct pci_bar_info *bar = data;
bar               140 drivers/xen/xen-pciback/conf_space_header.c 	if (unlikely(!bar)) {
bar               150 drivers/xen/xen-pciback/conf_space_header.c 		bar->which = 1;
bar               154 drivers/xen/xen-pciback/conf_space_header.c 		if (tmpval != bar->val && value == bar->val) {
bar               156 drivers/xen/xen-pciback/conf_space_header.c 			pci_write_config_dword(dev, offset, bar->val);
bar               158 drivers/xen/xen-pciback/conf_space_header.c 		bar->which = 0;
bar               172 drivers/xen/xen-pciback/conf_space_header.c 	struct pci_bar_info *bar = data;
bar               177 drivers/xen/xen-pciback/conf_space_header.c 	if (unlikely(!bar)) {
bar               193 drivers/xen/xen-pciback/conf_space_header.c 		bar->which = 1;
bar               197 drivers/xen/xen-pciback/conf_space_header.c 		if (tmpval != bar->val && value == bar->val) {
bar               199 drivers/xen/xen-pciback/conf_space_header.c 			pci_write_config_dword(dev, offset, bar->val);
bar               201 drivers/xen/xen-pciback/conf_space_header.c 		bar->which = 0;
bar               209 drivers/xen/xen-pciback/conf_space_header.c 	struct pci_bar_info *bar = data;
bar               211 drivers/xen/xen-pciback/conf_space_header.c 	if (unlikely(!bar)) {
bar               217 drivers/xen/xen-pciback/conf_space_header.c 	*value = bar->which ? bar->len_val : bar->val;
bar               226 drivers/xen/xen-pciback/conf_space_header.c 	struct pci_bar_info *bar = kzalloc(sizeof(*bar), GFP_KERNEL);
bar               228 drivers/xen/xen-pciback/conf_space_header.c 	if (!bar)
bar               236 drivers/xen/xen-pciback/conf_space_header.c 			bar->val = res[pos - 1].start >> 32;
bar               237 drivers/xen/xen-pciback/conf_space_header.c 			bar->len_val = -resource_size(&res[pos - 1]) >> 32;
bar               238 drivers/xen/xen-pciback/conf_space_header.c 			return bar;
bar               245 drivers/xen/xen-pciback/conf_space_header.c 		return bar;
bar               247 drivers/xen/xen-pciback/conf_space_header.c 	bar->val = res[pos].start |
bar               249 drivers/xen/xen-pciback/conf_space_header.c 	bar->len_val = -resource_size(&res[pos]) |
bar               252 drivers/xen/xen-pciback/conf_space_header.c 	return bar;
bar               257 drivers/xen/xen-pciback/conf_space_header.c 	struct pci_bar_info *bar = data;
bar               259 drivers/xen/xen-pciback/conf_space_header.c 	bar->which = 0;
bar               892 include/asm-generic/io.h extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);
bar                13 include/asm-generic/pci_iomap.h extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);
bar                14 include/asm-generic/pci_iomap.h extern void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max);
bar                15 include/asm-generic/pci_iomap.h extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar,
bar                18 include/asm-generic/pci_iomap.h extern void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar,
bar                32 include/asm-generic/pci_iomap.h static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max)
bar                37 include/asm-generic/pci_iomap.h static inline void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max)
bar                41 include/asm-generic/pci_iomap.h static inline void __iomem *pci_iomap_range(struct pci_dev *dev, int bar,
bar                47 include/asm-generic/pci_iomap.h static inline void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar,
bar              1473 include/linux/libata.h extern void ata_port_pbar_desc(struct ata_port *ap, int bar, ssize_t offset,
bar                72 include/linux/mcb.h 	int bar;
bar               906 include/linux/mlx4/device.h 	u8 bar;
bar               139 include/linux/of_address.h extern int of_pci_address_to_resource(struct device_node *dev, int bar,
bar               145 include/linux/of_address.h static inline int of_pci_address_to_resource(struct device_node *dev, int bar,
bar               120 include/linux/pci-epf.h 	struct pci_epf_bar	bar[6];
bar               152 include/linux/pci-epf.h void *pci_epf_alloc_space(struct pci_epf *epf, size_t size, enum pci_barno bar,
bar               154 include/linux/pci-epf.h void pci_epf_free_space(struct pci_epf *epf, void *addr, enum pci_barno bar);
bar                20 include/linux/pci-p2pdma.h int pci_p2pdma_add_resource(struct pci_dev *pdev, int bar, size_t size,
bar                42 include/linux/pci-p2pdma.h static inline int pci_p2pdma_add_resource(struct pci_dev *pdev, int bar,
bar              1338 include/linux/pci.h static inline pci_bus_addr_t pci_bus_address(struct pci_dev *pdev, int bar)
bar              1342 include/linux/pci.h 	pcibios_resource_to_bus(pdev->bus, &region, &pdev->resource[bar]);
bar              1808 include/linux/pci.h int pci_mmap_resource_range(struct pci_dev *dev, int bar,
bar              1811 include/linux/pci.h int pci_mmap_page_range(struct pci_dev *pdev, int bar,
bar              1821 include/linux/pci.h #define pci_iobar_pfn(pdev, bar, vma) (-EINVAL)
bar              1823 include/linux/pci.h int pci_iobar_pfn(struct pci_dev *pdev, int bar, struct vm_area_struct *vma);
bar              1834 include/linux/pci.h #define pci_resource_start(dev, bar)	((dev)->resource[(bar)].start)
bar              1835 include/linux/pci.h #define pci_resource_end(dev, bar)	((dev)->resource[(bar)].end)
bar              1836 include/linux/pci.h #define pci_resource_flags(dev, bar)	((dev)->resource[(bar)].flags)
bar              1837 include/linux/pci.h #define pci_resource_len(dev,bar) \
bar              1838 include/linux/pci.h 	((pci_resource_start((dev), (bar)) == 0 &&	\
bar              1839 include/linux/pci.h 	  pci_resource_end((dev), (bar)) ==		\
bar              1840 include/linux/pci.h 	  pci_resource_start((dev), (bar))) ? 0 :	\
bar              1842 include/linux/pci.h 	 (pci_resource_end((dev), (bar)) -		\
bar              1843 include/linux/pci.h 	  pci_resource_start((dev), (bar)) + 1))
bar              1865 include/linux/pci.h void pci_resource_to_user(const struct pci_dev *dev, int bar,
bar              1987 include/linux/pci.h void __iomem *pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen);
bar              2039 include/linux/pci.h void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar);
bar              2040 include/linux/pci.h void __iomem *pci_ioremap_wc_bar(struct pci_dev *pdev, int bar);
bar                60 include/linux/pnp.h 					     unsigned int bar)
bar                62 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
bar                70 include/linux/pnp.h 					   unsigned int bar)
bar                72 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
bar                80 include/linux/pnp.h 					   unsigned int bar)
bar                82 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
bar                89 include/linux/pnp.h static inline int pnp_port_valid(struct pnp_dev *dev, unsigned int bar)
bar                91 include/linux/pnp.h 	return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_IO, bar));
bar                95 include/linux/pnp.h 					   unsigned int bar)
bar                97 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar);
bar               106 include/linux/pnp.h 					    unsigned int bar)
bar               108 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
bar               116 include/linux/pnp.h 					  unsigned int bar)
bar               118 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
bar               125 include/linux/pnp.h static inline unsigned long pnp_mem_flags(struct pnp_dev *dev, unsigned int bar)
bar               127 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
bar               134 include/linux/pnp.h static inline int pnp_mem_valid(struct pnp_dev *dev, unsigned int bar)
bar               136 include/linux/pnp.h 	return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_MEM, bar));
bar               140 include/linux/pnp.h 					  unsigned int bar)
bar               142 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar);
bar               150 include/linux/pnp.h static inline resource_size_t pnp_irq(struct pnp_dev *dev, unsigned int bar)
bar               152 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar);
bar               159 include/linux/pnp.h static inline unsigned long pnp_irq_flags(struct pnp_dev *dev, unsigned int bar)
bar               161 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar);
bar               168 include/linux/pnp.h static inline int pnp_irq_valid(struct pnp_dev *dev, unsigned int bar)
bar               170 include/linux/pnp.h 	return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_IRQ, bar));
bar               174 include/linux/pnp.h static inline resource_size_t pnp_dma(struct pnp_dev *dev, unsigned int bar)
bar               176 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar);
bar               183 include/linux/pnp.h static inline unsigned long pnp_dma_flags(struct pnp_dev *dev, unsigned int bar)
bar               185 include/linux/pnp.h 	struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar);
bar               192 include/linux/pnp.h static inline int pnp_dma_valid(struct pnp_dev *dev, unsigned int bar)
bar               194 include/linux/pnp.h 	return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_DMA, bar));
bar               544 include/pcmcia/cistpl.h     cistpl_bar_t		bar;
bar               123 include/uapi/linux/virtio_pci.h 	__u8 bar;		/* Where to find it. */
bar               339 lib/devres.c   void __iomem *pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen)
bar               343 lib/devres.c   	BUG_ON(bar >= PCIM_IOMAP_MAX);
bar               346 lib/devres.c   	if (!tbl || tbl[bar])	/* duplicate mappings not allowed */
bar               349 lib/devres.c   	tbl[bar] = pci_iomap(pdev, bar, maxlen);
bar               350 lib/devres.c   	return tbl[bar];
bar                29 lib/pci_iomap.c 			      int bar,
bar                33 lib/pci_iomap.c 	resource_size_t start = pci_resource_start(dev, bar);
bar                34 lib/pci_iomap.c 	resource_size_t len = pci_resource_len(dev, bar);
bar                35 lib/pci_iomap.c 	unsigned long flags = pci_resource_flags(dev, bar);
bar                69 lib/pci_iomap.c 				 int bar,
bar                73 lib/pci_iomap.c 	resource_size_t start = pci_resource_start(dev, bar);
bar                74 lib/pci_iomap.c 	resource_size_t len = pci_resource_len(dev, bar);
bar                75 lib/pci_iomap.c 	unsigned long flags = pci_resource_flags(dev, bar);
bar               111 lib/pci_iomap.c void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)
bar               113 lib/pci_iomap.c 	return pci_iomap_range(dev, bar, 0, maxlen);
bar               132 lib/pci_iomap.c void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long maxlen)
bar               134 lib/pci_iomap.c 	return pci_iomap_wc_range(dev, bar, 0, maxlen);
bar                17 lib/test_debug_virtual.c 	unsigned int bar;
bar               117 net/mac80211/agg-tx.c 	struct ieee80211_bar *bar;
bar               120 net/mac80211/agg-tx.c 	skb = dev_alloc_skb(sizeof(*bar) + local->hw.extra_tx_headroom);
bar               125 net/mac80211/agg-tx.c 	bar = skb_put_zero(skb, sizeof(*bar));
bar               126 net/mac80211/agg-tx.c 	bar->frame_control = cpu_to_le16(IEEE80211_FTYPE_CTL |
bar               128 net/mac80211/agg-tx.c 	memcpy(bar->ra, ra, ETH_ALEN);
bar               129 net/mac80211/agg-tx.c 	memcpy(bar->ta, sdata->vif.addr, ETH_ALEN);
bar               133 net/mac80211/agg-tx.c 	bar->control = cpu_to_le16(bar_control);
bar               134 net/mac80211/agg-tx.c 	bar->start_seq_num = cpu_to_le16(ssn);
bar              2893 net/mac80211/rx.c 	struct ieee80211_bar *bar = (struct ieee80211_bar *)skb->data;
bar              2898 net/mac80211/rx.c 	if (likely(!ieee80211_is_ctl(bar->frame_control)))
bar              2901 net/mac80211/rx.c 	if (ieee80211_is_back_req(bar->frame_control)) {
bar               876 net/mac80211/status.c 	struct ieee80211_bar *bar;
bar               940 net/mac80211/status.c 			bar = (struct ieee80211_bar *) skb->data;
bar               941 net/mac80211/status.c 			control = le16_to_cpu(bar->control);
bar               943 net/mac80211/status.c 				u16 ssn = le16_to_cpu(bar->start_seq_num);
bar                23 samples/kobject/kobject-example.c static int bar;
bar                62 samples/kobject/kobject-example.c 		var = bar;
bar                78 samples/kobject/kobject-example.c 		bar = var;
bar                85 samples/kobject/kobject-example.c 	__ATTR(bar, 0664, b_show, b_store);
bar                33 samples/kobject/kset-example.c 	int bar;
bar               146 samples/kobject/kset-example.c 		var = foo_obj->bar;
bar               162 samples/kobject/kset-example.c 		foo_obj->bar = var;
bar               169 samples/kobject/kset-example.c 	__ATTR(bar, 0664, b_show, b_store);
bar               231 samples/trace_events/trace-events-sample.h 	TP_PROTO(const char *foo, int bar, const int *lst,
bar               234 samples/trace_events/trace-events-sample.h 	TP_ARGS(foo, bar, lst, string, mask),
bar               238 samples/trace_events/trace-events-sample.h 		__field(	int,	bar			)
bar               246 samples/trace_events/trace-events-sample.h 		__entry->bar	= bar;
bar               253 samples/trace_events/trace-events-sample.h 	TP_printk("foo %s %d %s %s %s %s (%s)", __entry->foo, __entry->bar,
bar               265 samples/trace_events/trace-events-sample.h 		  __print_symbolic(__entry->bar,
bar               283 samples/trace_events/trace-events-sample.h 		  __print_flags(__entry->bar, "|",
bar               339 samples/trace_events/trace-events-sample.h 	TP_PROTO(const char *foo, int bar),
bar               341 samples/trace_events/trace-events-sample.h 	TP_ARGS(foo, bar),
bar               343 samples/trace_events/trace-events-sample.h 	TP_CONDITION(!(bar % 10)),
bar               347 samples/trace_events/trace-events-sample.h 		__field(	int,	bar			)
bar               352 samples/trace_events/trace-events-sample.h 		__entry->bar	= bar;
bar               355 samples/trace_events/trace-events-sample.h 	TP_printk("foo %s %d", __get_str(foo), __entry->bar)
bar               382 samples/trace_events/trace-events-sample.h 	TP_PROTO(const char *foo, int bar),
bar               384 samples/trace_events/trace-events-sample.h 	TP_ARGS(foo, bar),
bar               388 samples/trace_events/trace-events-sample.h 		__field(	int,	bar		)
bar               393 samples/trace_events/trace-events-sample.h 		__entry->bar	= bar;
bar               396 samples/trace_events/trace-events-sample.h 	TP_printk("foo %s %d", __get_str(foo), __entry->bar),
bar               429 samples/trace_events/trace-events-sample.h 	TP_PROTO(const char *foo, int bar),
bar               431 samples/trace_events/trace-events-sample.h 	TP_ARGS(foo, bar),
bar               435 samples/trace_events/trace-events-sample.h 		__field(	int,	bar		)
bar               440 samples/trace_events/trace-events-sample.h 		__entry->bar	= bar;
bar               443 samples/trace_events/trace-events-sample.h 	TP_printk("foo %s %d", __get_str(foo), __entry->bar)
bar               451 samples/trace_events/trace-events-sample.h 	TP_PROTO(const char *foo, int bar),
bar               452 samples/trace_events/trace-events-sample.h 	TP_ARGS(foo, bar));
bar               455 samples/trace_events/trace-events-sample.h 	TP_PROTO(const char *foo, int bar),
bar               456 samples/trace_events/trace-events-sample.h 	TP_ARGS(foo, bar),
bar               457 samples/trace_events/trace-events-sample.h 	TP_CONDITION(!(bar % 8)));
bar               461 samples/trace_events/trace-events-sample.h 	TP_PROTO(const char *foo, int bar),
bar               462 samples/trace_events/trace-events-sample.h 	TP_ARGS(foo, bar),
bar               478 samples/trace_events/trace-events-sample.h 	TP_PROTO(const char *foo, int bar),
bar               479 samples/trace_events/trace-events-sample.h 	TP_ARGS(foo, bar),
bar               480 samples/trace_events/trace-events-sample.h 	TP_printk("bar %s %d", __get_str(foo), __entry->bar));
bar                79 sound/pci/ad1889.c 	unsigned long bar;
bar               904 sound/pci/ad1889.c 	chip->bar = pci_resource_start(pci, 0);
bar               982 sound/pci/ad1889.c 		card->shortname, chip->bar, chip->irq);
bar               541 sound/pci/lola/lola.c 	iounmap(chip->bar[0].remap_addr);
bar               542 sound/pci/lola/lola.c 	iounmap(chip->bar[1].remap_addr);
bar               618 sound/pci/lola/lola.c 	chip->bar[0].addr = pci_resource_start(pci, 0);
bar               619 sound/pci/lola/lola.c 	chip->bar[0].remap_addr = pci_ioremap_bar(pci, 0);
bar               620 sound/pci/lola/lola.c 	chip->bar[1].addr = pci_resource_start(pci, 2);
bar               621 sound/pci/lola/lola.c 	chip->bar[1].remap_addr = pci_ioremap_bar(pci, 2);
bar               622 sound/pci/lola/lola.c 	if (!chip->bar[0].remap_addr || !chip->bar[1].remap_addr) {
bar               675 sound/pci/lola/lola.c 		 card->shortname, chip->bar[0].addr, chip->irq);
bar               316 sound/pci/lola/lola.h 	struct lola_bar bar[2];
bar               378 sound/pci/lola/lola.h 	readl((chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
bar               380 sound/pci/lola/lola.h 	readw((chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
bar               382 sound/pci/lola/lola.h 	readb((chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
bar               384 sound/pci/lola/lola.h 	writel((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
bar               386 sound/pci/lola/lola.h 	writew((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
bar               388 sound/pci/lola/lola.h 	writeb((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name)
bar               391 sound/pci/lola/lola.h 	readl((chip)->bar[BAR1].remap_addr + LOLA_BAR1_DSD0_OFFSET + \
bar               394 sound/pci/lola/lola.h 	writel((val), (chip)->bar[BAR1].remap_addr + LOLA_BAR1_DSD0_OFFSET + \
bar               120 sound/pci/lola/lola_mixer.c 		(chip->bar[BAR1].remap_addr + LOLA_BAR1_SOURCE_GAIN_ENABLE);
bar               167 sound/pci/lola/lola_proc.c 			    readl(chip->bar[BAR0].remap_addr + i));
bar               172 sound/pci/lola/lola_proc.c 			    readl(chip->bar[BAR1].remap_addr + i));
bar               177 sound/pci/lola/lola_proc.c 			    readl(chip->bar[BAR1].remap_addr + i));
bar               431 sound/soc/sof/debug.c 		err = snd_sof_debugfs_io_item(sdev, sdev->bar[map->bar] +
bar               274 sound/soc/sof/imx/imx8.c 	sdev->bar[SOF_FW_BLK_TYPE_IRAM] = devm_ioremap(sdev->dev, base, size);
bar               275 sound/soc/sof/imx/imx8.c 	if (!sdev->bar[SOF_FW_BLK_TYPE_IRAM]) {
bar               296 sound/soc/sof/imx/imx8.c 	sdev->bar[SOF_FW_BLK_TYPE_SRAM] = devm_ioremap_wc(sdev->dev, res.start,
bar               299 sound/soc/sof/imx/imx8.c 	if (!sdev->bar[SOF_FW_BLK_TYPE_SRAM]) {
bar               132 sound/soc/sof/intel/bdw.c 		reg = readl(sdev->bar[BDW_PCI_BAR] + PCI_PMCS)
bar               448 sound/soc/sof/intel/bdw.c 	sdev->bar[BDW_DSP_BAR] = devm_ioremap(sdev->dev, base, size);
bar               449 sound/soc/sof/intel/bdw.c 	if (!sdev->bar[BDW_DSP_BAR]) {
bar               455 sound/soc/sof/intel/bdw.c 	dev_dbg(sdev->dev, "LPE VADDR %p\n", sdev->bar[BDW_DSP_BAR]);
bar               475 sound/soc/sof/intel/bdw.c 	sdev->bar[BDW_PCI_BAR] = devm_ioremap(sdev->dev, base, size);
bar               476 sound/soc/sof/intel/bdw.c 	if (!sdev->bar[BDW_PCI_BAR]) {
bar               482 sound/soc/sof/intel/bdw.c 	dev_dbg(sdev->dev, "PCI VADDR %p\n", sdev->bar[BDW_PCI_BAR]);
bar               413 sound/soc/sof/intel/byt.c 	sdev->bar[BYT_DSP_BAR] = devm_ioremap(sdev->dev, base, size);
bar               414 sound/soc/sof/intel/byt.c 	if (!sdev->bar[BYT_DSP_BAR]) {
bar               419 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "LPE VADDR %p\n", sdev->bar[BYT_DSP_BAR]);
bar               435 sound/soc/sof/intel/byt.c 	sdev->bar[BYT_IMR_BAR] = devm_ioremap(sdev->dev, base, size);
bar               436 sound/soc/sof/intel/byt.c 	if (!sdev->bar[BYT_IMR_BAR]) {
bar               441 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "IMR VADDR %p\n", sdev->bar[BYT_IMR_BAR]);
bar               558 sound/soc/sof/intel/byt.c 	sdev->bar[BYT_DSP_BAR] = devm_ioremap(sdev->dev, base, size);
bar               559 sound/soc/sof/intel/byt.c 	if (!sdev->bar[BYT_DSP_BAR]) {
bar               564 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "LPE VADDR %p\n", sdev->bar[BYT_DSP_BAR]);
bar               592 sound/soc/sof/intel/byt.c 	sdev->bar[BYT_IMR_BAR] = devm_ioremap(sdev->dev, base, size);
bar               593 sound/soc/sof/intel/byt.c 	if (!sdev->bar[BYT_IMR_BAR]) {
bar               598 sound/soc/sof/intel/byt.c 	dev_dbg(sdev->dev, "IMR VADDR %p\n", sdev->bar[BYT_IMR_BAR]);
bar                76 sound/soc/sof/intel/hda-ctrl.c 			sdev->bar[HDA_DSP_PP_BAR] = bus->ppcap;
bar                82 sound/soc/sof/intel/hda-ctrl.c 			sdev->bar[HDA_DSP_SPIB_BAR] = bus->spbcap;
bar                88 sound/soc/sof/intel/hda-ctrl.c 			sdev->bar[HDA_DSP_DRSM_BAR] = bus->drsmcap;
bar               135 sound/soc/sof/intel/hda-stream.c 	if (!sdev->bar[HDA_DSP_SPIB_BAR]) {
bar               697 sound/soc/sof/intel/hda-stream.c 		stream->pphc_addr = sdev->bar[HDA_DSP_PP_BAR] +
bar               700 sound/soc/sof/intel/hda-stream.c 		stream->pplc_addr = sdev->bar[HDA_DSP_PP_BAR] +
bar               705 sound/soc/sof/intel/hda-stream.c 		if (sdev->bar[HDA_DSP_SPIB_BAR]) {
bar               706 sound/soc/sof/intel/hda-stream.c 			stream->spib_addr = sdev->bar[HDA_DSP_SPIB_BAR] +
bar               710 sound/soc/sof/intel/hda-stream.c 			stream->fifo_addr = sdev->bar[HDA_DSP_SPIB_BAR] +
bar               720 sound/soc/sof/intel/hda-stream.c 		hstream->sd_addr = sdev->bar[HDA_DSP_HDA_BAR] + sd_offset;
bar               753 sound/soc/sof/intel/hda-stream.c 		stream->pphc_addr = sdev->bar[HDA_DSP_PP_BAR] +
bar               756 sound/soc/sof/intel/hda-stream.c 		stream->pplc_addr = sdev->bar[HDA_DSP_PP_BAR] +
bar               761 sound/soc/sof/intel/hda-stream.c 		if (sdev->bar[HDA_DSP_SPIB_BAR]) {
bar               762 sound/soc/sof/intel/hda-stream.c 			stream->spib_addr = sdev->bar[HDA_DSP_SPIB_BAR] +
bar               766 sound/soc/sof/intel/hda-stream.c 			stream->fifo_addr = sdev->bar[HDA_DSP_SPIB_BAR] +
bar               776 sound/soc/sof/intel/hda-stream.c 		hstream->sd_addr = sdev->bar[HDA_DSP_HDA_BAR] + sd_offset;
bar               289 sound/soc/sof/intel/hda.c 	sdev->bar[HDA_DSP_HDA_BAR] = bus->remap_addr;
bar               560 sound/soc/sof/intel/hda.c 	sdev->bar[HDA_DSP_BAR] = pci_ioremap_bar(pci, HDA_DSP_BAR);
bar               562 sound/soc/sof/intel/hda.c 	if (!sdev->bar[HDA_DSP_BAR]) {
bar               673 sound/soc/sof/intel/hda.c 	iounmap(sdev->bar[HDA_DSP_BAR]);
bar               721 sound/soc/sof/intel/hda.c 	iounmap(sdev->bar[HDA_DSP_BAR]);
bar                36 sound/soc/sof/loader.c int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset)
bar                47 sound/soc/sof/loader.c 	snd_sof_dsp_block_read(sdev, bar, offset, ext_data,
bar                54 sound/soc/sof/loader.c 		snd_sof_dsp_block_read(sdev, bar, offset,
bar                82 sound/soc/sof/loader.c 		snd_sof_dsp_block_read(sdev, bar, offset, ext_data,
bar               105 sound/soc/sof/loader.c 	int bar;
bar               113 sound/soc/sof/loader.c 	bar = snd_sof_dsp_get_bar_index(sdev, SOF_FW_BLK_TYPE_SRAM);
bar               114 sound/soc/sof/loader.c 	if (bar < 0) {
bar               134 sound/soc/sof/loader.c 						sdev->bar[bar] +
bar               143 sound/soc/sof/loader.c 						sdev->bar[bar] +
bar               150 sound/soc/sof/loader.c 						sdev->bar[bar] +
bar               158 sound/soc/sof/loader.c 						sdev->bar[bar] +
bar               168 sound/soc/sof/loader.c 						sdev->bar[bar] +
bar               175 sound/soc/sof/loader.c 						sdev->bar[bar] +
bar               184 sound/soc/sof/loader.c 						sdev->bar[bar] +
bar               219 sound/soc/sof/loader.c 	int bar;
bar               229 sound/soc/sof/loader.c 	bar = snd_sof_dsp_get_bar_index(sdev, SOF_FW_BLK_TYPE_SRAM);
bar               230 sound/soc/sof/loader.c 	if (bar < 0) {
bar               243 sound/soc/sof/loader.c 	sof_block_read(sdev, bar, offset, fw_ready, sizeof(*fw_ready));
bar               251 sound/soc/sof/loader.c 	snd_sof_fw_parse_ext_data(sdev, bar, offset +
bar               265 sound/soc/sof/loader.c 	int count, bar;
bar               302 sound/soc/sof/loader.c 			bar = snd_sof_dsp_get_bar_index(sdev, block->type);
bar               303 sound/soc/sof/loader.c 			if (bar < 0) {
bar               307 sound/soc/sof/loader.c 				return bar;
bar               326 sound/soc/sof/loader.c 		snd_sof_dsp_block_write(sdev, bar, offset,
bar                51 sound/soc/sof/ops.c bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar,
bar                57 sound/soc/sof/ops.c 	ret = snd_sof_dsp_read(sdev, bar, offset);
bar                65 sound/soc/sof/ops.c 	snd_sof_dsp_write(sdev, bar, offset, new);
bar                71 sound/soc/sof/ops.c bool snd_sof_dsp_update_bits64_unlocked(struct snd_sof_dev *sdev, u32 bar,
bar                76 sound/soc/sof/ops.c 	old = snd_sof_dsp_read64(sdev, bar, offset);
bar                83 sound/soc/sof/ops.c 	snd_sof_dsp_write64(sdev, bar, offset, new);
bar                90 sound/soc/sof/ops.c bool snd_sof_dsp_update_bits(struct snd_sof_dev *sdev, u32 bar, u32 offset,
bar                97 sound/soc/sof/ops.c 	change = snd_sof_dsp_update_bits_unlocked(sdev, bar, offset, mask,
bar               104 sound/soc/sof/ops.c bool snd_sof_dsp_update_bits64(struct snd_sof_dev *sdev, u32 bar, u32 offset,
bar               111 sound/soc/sof/ops.c 	change = snd_sof_dsp_update_bits64_unlocked(sdev, bar, offset, mask,
bar               119 sound/soc/sof/ops.c void snd_sof_dsp_update_bits_forced_unlocked(struct snd_sof_dev *sdev, u32 bar,
bar               125 sound/soc/sof/ops.c 	ret = snd_sof_dsp_read(sdev, bar, offset);
bar               130 sound/soc/sof/ops.c 	snd_sof_dsp_write(sdev, bar, offset, new);
bar               134 sound/soc/sof/ops.c void snd_sof_dsp_update_bits_forced(struct snd_sof_dev *sdev, u32 bar,
bar               140 sound/soc/sof/ops.c 	snd_sof_dsp_update_bits_forced_unlocked(sdev, bar, offset, mask, value);
bar               210 sound/soc/sof/ops.h static inline void snd_sof_dsp_write(struct snd_sof_dev *sdev, u32 bar,
bar               214 sound/soc/sof/ops.h 		sof_ops(sdev)->write(sdev, sdev->bar[bar] + offset, value);
bar               221 sound/soc/sof/ops.h static inline void snd_sof_dsp_write64(struct snd_sof_dev *sdev, u32 bar,
bar               225 sound/soc/sof/ops.h 		sof_ops(sdev)->write64(sdev, sdev->bar[bar] + offset, value);
bar               232 sound/soc/sof/ops.h static inline u32 snd_sof_dsp_read(struct snd_sof_dev *sdev, u32 bar,
bar               236 sound/soc/sof/ops.h 		return sof_ops(sdev)->read(sdev, sdev->bar[bar] + offset);
bar               242 sound/soc/sof/ops.h static inline u64 snd_sof_dsp_read64(struct snd_sof_dev *sdev, u32 bar,
bar               246 sound/soc/sof/ops.h 		return sof_ops(sdev)->read64(sdev, sdev->bar[bar] + offset);
bar               253 sound/soc/sof/ops.h static inline void snd_sof_dsp_block_read(struct snd_sof_dev *sdev, u32 bar,
bar               256 sound/soc/sof/ops.h 	sof_ops(sdev)->block_read(sdev, bar, offset, dest, bytes);
bar               259 sound/soc/sof/ops.h static inline void snd_sof_dsp_block_write(struct snd_sof_dev *sdev, u32 bar,
bar               262 sound/soc/sof/ops.h 	sof_ops(sdev)->block_write(sdev, bar, offset, src, bytes);
bar               417 sound/soc/sof/ops.h #define snd_sof_dsp_read_poll_timeout(sdev, bar, offset, val, cond, sleep_us, timeout_us) \
bar               424 sound/soc/sof/ops.h 		(val) = snd_sof_dsp_read(sdev, bar, offset);		\
bar               432 sound/soc/sof/ops.h 			(val) = snd_sof_dsp_read(sdev, bar, offset); \
bar               447 sound/soc/sof/ops.h bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar,
bar               450 sound/soc/sof/ops.h bool snd_sof_dsp_update_bits64_unlocked(struct snd_sof_dev *sdev, u32 bar,
bar               453 sound/soc/sof/ops.h bool snd_sof_dsp_update_bits(struct snd_sof_dev *sdev, u32 bar, u32 offset,
bar               456 sound/soc/sof/ops.h bool snd_sof_dsp_update_bits64(struct snd_sof_dev *sdev, u32 bar,
bar               459 sound/soc/sof/ops.h void snd_sof_dsp_update_bits_forced(struct snd_sof_dev *sdev, u32 bar,
bar               462 sound/soc/sof/ops.h int snd_sof_dsp_register_poll(struct snd_sof_dev *sdev, u32 bar, u32 offset,
bar               108 sound/soc/sof/sof-priv.h 	void (*block_read)(struct snd_sof_dev *sof_dev, u32 bar,
bar               111 sound/soc/sof/sof-priv.h 	void (*block_write)(struct snd_sof_dev *sof_dev, u32 bar,
bar               259 sound/soc/sof/sof-priv.h 	u32 bar;
bar               403 sound/soc/sof/sof-priv.h 	void __iomem *bar[SND_SOF_BARS];	/* DSP base address */
bar               484 sound/soc/sof/sof-priv.h int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset);
bar               649 sound/soc/sof/sof-priv.h void sof_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src,
bar               651 sound/soc/sof/sof-priv.h void sof_block_read(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *dest,
bar                55 sound/soc/sof/utils.c 	void __iomem *dest = sdev->bar[sdev->mailbox_bar] + offset;
bar                64 sound/soc/sof/utils.c 	void __iomem *src = sdev->bar[sdev->mailbox_bar] + offset;
bar                74 sound/soc/sof/utils.c void sof_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src,
bar                77 sound/soc/sof/utils.c 	void __iomem *dest = sdev->bar[bar] + offset;
bar               105 sound/soc/sof/utils.c void sof_block_read(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *dest,
bar               108 sound/soc/sof/utils.c 	void __iomem *src = sdev->bar[bar] + offset;
bar                 7 tools/lib/lockdep/tests/ABBA_2threads.c pthread_barrier_t bar;
bar                15 tools/lib/lockdep/tests/ABBA_2threads.c 	if (pthread_barrier_wait(&bar) == PTHREAD_BARRIER_SERIAL_THREAD)
bar                16 tools/lib/lockdep/tests/ABBA_2threads.c 		pthread_barrier_destroy(&bar);
bar                28 tools/lib/lockdep/tests/ABBA_2threads.c 	pthread_barrier_init(&bar, NULL, 2);
bar                36 tools/lib/lockdep/tests/ABBA_2threads.c 	if (pthread_barrier_wait(&bar) == PTHREAD_BARRIER_SERIAL_THREAD)
bar                37 tools/lib/lockdep/tests/ABBA_2threads.c 		pthread_barrier_destroy(&bar);
bar                31 tools/perf/ui/tui/progress.c 	int bar, y;
bar                56 tools/perf/ui/tui/progress.c 	bar = ((SLtt_Screen_Cols - 2) * p->curr) / p->total;
bar                57 tools/perf/ui/tui/progress.c 	SLsmg_fill_region(y, 1, 1, bar, ' ');
bar                74 tools/testing/selftests/bpf/progs/test_global_data.c 	static const __u64 bar = ~0;
bar               101 tools/testing/selftests/bpf/progs/test_global_data.c 	test_reloc(number, 10, &bar);
bar                74 tools/testing/selftests/bpf/test_cgroup_attach.c 	int drop_prog, allow_prog, foo = 0, bar = 0, rc = 0;
bar               105 tools/testing/selftests/bpf/test_cgroup_attach.c 	bar = create_and_get_cgroup(BAR);
bar               106 tools/testing/selftests/bpf/test_cgroup_attach.c 	if (bar < 0)
bar               115 tools/testing/selftests/bpf/test_cgroup_attach.c 	if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,
bar               124 tools/testing/selftests/bpf/test_cgroup_attach.c 	if (bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS)) {
bar               133 tools/testing/selftests/bpf/test_cgroup_attach.c 	if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,
bar               148 tools/testing/selftests/bpf/test_cgroup_attach.c 	if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,
bar               154 tools/testing/selftests/bpf/test_cgroup_attach.c 	if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0)) {
bar               160 tools/testing/selftests/bpf/test_cgroup_attach.c 	if (bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS)) {
bar               176 tools/testing/selftests/bpf/test_cgroup_attach.c 	if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0)) {
bar               182 tools/testing/selftests/bpf/test_cgroup_attach.c 	if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,
bar               208 tools/testing/selftests/bpf/test_cgroup_attach.c 	close(bar);
bar               130 tools/testing/selftests/bpf/test_verifier.c 	long long bar;
bar               779 tools/testing/selftests/bpf/verifier/helper_value_access.c 	BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, offsetof(struct other_val, bar)),
bar               838 tools/testing/selftests/bpf/verifier/helper_value_access.c 	BPF_MOV64_IMM(BPF_REG_3, offsetof(struct other_val, bar)),
bar               901 tools/testing/selftests/bpf/verifier/helper_value_access.c 	BPF_JMP_IMM(BPF_JGT, BPF_REG_3, offsetof(struct other_val, bar), 4),
bar               943 tools/testing/selftests/bpf/verifier/helper_value_access.c 	BPF_JMP_IMM(BPF_JGT, BPF_REG_3, offsetof(struct other_val, bar) + 1, 4),