/openbmc/linux/drivers/spi/ |
H A D | spi-loongson-pci.c | 16 int pci_bar = 0; in loongson_spi_pci_register() local 22 ret = pcim_iomap_regions(pdev, BIT(pci_bar), pci_name(pdev)); in loongson_spi_pci_register() 26 reg_base = pcim_iomap_table(pdev)[pci_bar]; in loongson_spi_pci_register()
|
H A D | spi-dw-pci.c | 86 int pci_bar = 0; in dw_spi_pci_probe() local 98 dws->paddr = pci_resource_start(pdev, pci_bar); in dw_spi_pci_probe() 101 ret = pcim_iomap_regions(pdev, 1 << pci_bar, pci_name(pdev)); in dw_spi_pci_probe() 109 dws->regs = pcim_iomap_table(pdev)[pci_bar]; in dw_spi_pci_probe()
|
/openbmc/linux/drivers/uio/ |
H A D | uio_sercos3.c | 106 int n, int pci_bar) in sercos3_setup_iomem() argument 108 info->mem[n].addr = pci_resource_start(dev, pci_bar); in sercos3_setup_iomem() 111 info->mem[n].internal_addr = ioremap(pci_resource_start(dev, pci_bar), in sercos3_setup_iomem() 112 pci_resource_len(dev, pci_bar)); in sercos3_setup_iomem() 115 info->mem[n].size = pci_resource_len(dev, pci_bar); in sercos3_setup_iomem()
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_ioc.c | 1508 writel(cmd.i, (pci_bar + FLI_CMD_REG)); in bfa_flash_set_cmd() 1526 cmd.i = readl(pci_bar + FLI_CMD_REG); in bfa_flash_cmd_act_check() 1548 readl(pci_bar + FLI_RDDATA_REG); in bfa_flash_fifo_flush() 1572 status = bfa_flash_fifo_flush(pci_bar); in bfa_flash_status_read() 1624 bfa_flash_set_addr(pci_bar, offset); in bfa_flash_read_start() 1635 if (bfa_flash_cmd_act_check(pci_bar)) in bfa_flash_read_check() 1653 bfa_flash_fifo_flush(pci_bar); in bfa_flash_read_end() 1701 status = bfa_flash_sem_get(pci_bar); in bfa_flash_raw_read() 1715 bfa_flash_sem_put(pci_bar); in bfa_flash_raw_read() 1722 bfa_flash_sem_put(pci_bar); in bfa_flash_raw_read() [all …]
|
/openbmc/linux/drivers/scsi/bfa/ |
H A D | bfa_ioc.c | 6743 writel(cmd.i, (pci_bar + FLI_CMD_REG)); in bfa_flash_set_cmd() 6761 cmd.i = readl(pci_bar + FLI_CMD_REG); in bfa_flash_cmd_act_check() 6791 readl(pci_bar + FLI_RDDATA_REG); in bfa_flash_fifo_flush() 6824 status = bfa_flash_fifo_flush(pci_bar); in bfa_flash_status_read() 6892 bfa_flash_set_addr(pci_bar, offset); in bfa_flash_read_start() 6910 if (bfa_flash_cmd_act_check(pci_bar)) in bfa_flash_read_check() 6939 bfa_flash_fifo_flush(pci_bar); in bfa_flash_read_end() 6998 status = bfa_flash_sem_get(pci_bar); in bfa_flash_raw_read() 7012 bfa_flash_sem_put(pci_bar); in bfa_flash_raw_read() 7019 bfa_flash_sem_put(pci_bar); in bfa_flash_raw_read() [all …]
|
/openbmc/qemu/hw/display/ |
H A D | cirrus_vga_internal.h | 56 MemoryRegion pci_bar; member
|
H A D | cirrus_vga.c | 2453 memory_region_add_subregion_overlap(&s->pci_bar, 0, &s->vga.vram, 1); in map_linear_vram() 2463 memory_region_del_subregion(&s->pci_bar, &s->vga.vram); in unmap_linear_vram() 2968 memory_region_init(&s->pci_bar, OBJECT(dev), "cirrus-pci-bar0", 0x2000000); in pci_cirrus_vga_realize() 2971 memory_region_add_subregion(&s->pci_bar, 0, &s->cirrus_linear_io); in pci_cirrus_vga_realize() 2972 memory_region_add_subregion(&s->pci_bar, 0x1000000, in pci_cirrus_vga_realize() 2979 pci_register_bar(&d->dev, 0, PCI_BASE_ADDRESS_MEM_PREFETCH, &s->pci_bar); in pci_cirrus_vga_realize()
|
/openbmc/qemu/hw/remote/ |
H A D | vfio-user-obj.c | 419 static size_t vfu_object_bar_rw(PCIDevice *pci_dev, int pci_bar, in vfu_object_bar_rw() argument 431 section = memory_region_find(pci_dev->io_regions[pci_bar].memory, in vfu_object_bar_rw() 446 pci_bar, bar_offset, in vfu_object_bar_rw() 457 (bar_offset + section_size), pci_bar); in vfu_object_bar_rw()
|
/openbmc/u-boot/drivers/misc/ |
H A D | swap_case.c | 40 static struct pci_bar { struct
|
/openbmc/qemu/hw/vfio/ |
H A D | pci.c | 1730 uint32_t pci_bar; in vfio_bar_prepare() local 1739 ret = pread(vdev->vbasedev.fd, &pci_bar, sizeof(pci_bar), in vfio_bar_prepare() 1741 if (ret != sizeof(pci_bar)) { in vfio_bar_prepare() 1746 pci_bar = le32_to_cpu(pci_bar); in vfio_bar_prepare() 1747 bar->ioport = (pci_bar & PCI_BASE_ADDRESS_SPACE_IO); in vfio_bar_prepare() 1748 bar->mem64 = bar->ioport ? 0 : (pci_bar & PCI_BASE_ADDRESS_MEM_TYPE_64); in vfio_bar_prepare() 1749 bar->type = pci_bar & (bar->ioport ? ~PCI_BASE_ADDRESS_IO_MASK : in vfio_bar_prepare()
|
/openbmc/linux/include/linux/ |
H A D | switchtec.h | 418 u32 pci_bar[6]; member
|
/openbmc/qemu/hw/pci/ |
H A D | pci.c | 273 int pci_bar(PCIDevice *d, int reg) in pci_bar() function 385 pci_set_quad(dev->config + pci_bar(dev, r), region->type); in pci_reset_regions() 387 pci_set_long(dev->config + pci_bar(dev, r), region->type); in pci_reset_regions() 1339 addr = pci_bar(pci_dev, region_num); in pci_register_bar() 1423 int bar = pci_bar(d, reg); in pci_config_get_bar_addr()
|
/openbmc/linux/drivers/net/ethernet/3com/ |
H A D | 3c59x.c | 998 int rc, unit, pci_bar; in vortex_init_one() local 1016 pci_bar = vci->drv_flags & (IS_CYCLONE | IS_TORNADO) ? 1 : 0; in vortex_init_one() 1018 pci_bar = use_mmio[unit] ? 1 : 0; in vortex_init_one() 1020 pci_bar = global_use_mmio ? 1 : 0; in vortex_init_one() 1022 ioaddr = pci_iomap(pdev, pci_bar, 0); in vortex_init_one()
|
/openbmc/qemu/include/hw/pci/ |
H A D | pci.h | 264 int pci_bar(PCIDevice *d, int reg);
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_pci.c | 930 reg->phys_hi = cpu_to_be32(dev_id | b_rrrrrrrr(pci_bar(d, i))); in populate_resource_props()
|