Home
last modified time | relevance | path

Searched refs:reg_bar (Results 1 – 12 of 12) sorted by relevance

/openbmc/qemu/tests/qtest/
H A Derst-test.c40 QPCIBar reg_bar, mem_bar; member
65 res = qpci_io_readl(s->dev, s->reg_bar, reg); in in_reg32()
76 res = qpci_io_readq(s->dev, s->reg_bar, reg); in in_reg64()
87 qpci_io_writel(s->dev, s->reg_bar, reg, v); in out_reg32()
108 s->reg_bar = qpci_iomap(s->dev, 0, &s->reg_barsize); in setup_vm_cmd()
143 g_assert_cmpuint(log_address_range, !=, state.reg_bar.addr); in test_acpi_erst_basic()
H A Driscv-iommu-test.c20 return qpci_io_readl(&r_iommu->dev, r_iommu->reg_bar, reg_offset); in riscv_iommu_read_reg32()
25 return qpci_io_readq(&r_iommu->dev, r_iommu->reg_bar, reg_offset); in riscv_iommu_read_reg64()
31 qpci_io_writel(&r_iommu->dev, r_iommu->reg_bar, reg_offset, val); in riscv_iommu_write_reg32()
37 qpci_io_writeq(&r_iommu->dev, r_iommu->reg_bar, reg_offset, val); in riscv_iommu_write_reg64()
H A Divshmem-test.c44 QPCIBar reg_bar, mem_bar; member
75 res = qpci_io_readl(s->dev, s->reg_bar, reg); in in_reg()
86 qpci_io_writel(s->dev, s->reg_bar, reg, v); in out_reg()
121 s->reg_bar = qpci_iomap(s->dev, 0, &barsize); in setup_vm_cmd()
/openbmc/linux/drivers/infiniband/hw/efa/
H A Defa_com.c91 writel(mmio_read_reg, edev->reg_bar + EFA_REGS_MMIO_REG_READ_OFF); in efa_com_reg_read32()
144 sq->db_addr = (u32 __iomem *)(edev->reg_bar + EFA_REGS_AQ_PROD_DB_OFF); in efa_com_admin_init_sq()
149 writel(addr_low, edev->reg_bar + EFA_REGS_AQ_BASE_LO_OFF); in efa_com_admin_init_sq()
150 writel(addr_high, edev->reg_bar + EFA_REGS_AQ_BASE_HI_OFF); in efa_com_admin_init_sq()
156 writel(aq_caps, edev->reg_bar + EFA_REGS_AQ_CAPS_OFF); in efa_com_admin_init_sq()
183 writel(addr_low, edev->reg_bar + EFA_REGS_ACQ_BASE_LO_OFF); in efa_com_admin_init_cq()
184 writel(addr_high, edev->reg_bar + EFA_REGS_ACQ_BASE_HI_OFF); in efa_com_admin_init_cq()
192 writel(acq_caps, edev->reg_bar + EFA_REGS_ACQ_CAPS_OFF); in efa_com_admin_init_cq()
224 writel(addr_low, edev->reg_bar + EFA_REGS_AENQ_BASE_LO_OFF); in efa_com_admin_init_aenq()
225 writel(addr_high, edev->reg_bar + EFA_REGS_AENQ_BASE_HI_OFF); in efa_com_admin_init_aenq()
[all …]
H A Defa_main.c569 edev->reg_bar = devm_ioremap(&pdev->dev, in efa_probe_device()
572 if (!edev->reg_bar) { in efa_probe_device()
616 devm_iounmap(&pdev->dev, edev->reg_bar); in efa_probe_device()
636 devm_iounmap(&pdev->dev, edev->reg_bar); in efa_remove_device()
H A Defa_com.h109 u8 __iomem *reg_bar; member
/openbmc/qemu/tests/qtest/libqos/
H A Driscv-iommu.c39 qpci_iounmap(&pci->dev, pci->reg_bar); in riscv_iommu_pci_destructor()
49 r_iommu_pci->reg_bar = qpci_iomap(&r_iommu_pci->dev, 0, NULL); in riscv_iommu_pci_create()
H A Driscv-iommu.h98 QPCIBar reg_bar; member
/openbmc/linux/drivers/net/ethernet/amazon/ena/
H A Dena_com.c150 writel(addr_low, ena_dev->reg_bar + ENA_REGS_AENQ_BASE_LO_OFF); in ena_com_admin_init_aenq()
151 writel(addr_high, ena_dev->reg_bar + ENA_REGS_AENQ_BASE_HI_OFF); in ena_com_admin_init_aenq()
158 writel(aenq_caps, ena_dev->reg_bar + ENA_REGS_AENQ_CAPS_OFF); in ena_com_admin_init_aenq()
813 return readl(ena_dev->reg_bar + offset); in ena_com_reg_bar_read32()
824 writel(mmio_read_reg, ena_dev->reg_bar + ENA_REGS_MMIO_REG_READ_OFF); in ena_com_reg_bar_read32()
1233 io_sq->db_addr = (u32 __iomem *)((uintptr_t)ena_dev->reg_bar + in ena_com_create_io_sq()
1378 io_cq->unmask_reg = (u32 __iomem *)((uintptr_t)ena_dev->reg_bar + in ena_com_create_io_cq()
1383 (u32 __iomem *)((uintptr_t)ena_dev->reg_bar + in ena_com_create_io_cq()
1388 (u32 __iomem *)((uintptr_t)ena_dev->reg_bar + in ena_com_create_io_cq()
1496 writel(depth, ena_dev->reg_bar + ENA_REGS_AENQ_HEAD_DB_OFF); in ena_com_admin_aenq_enable()
[all …]
H A Dena_com.h303 u8 __iomem *reg_bar; member
H A Dena_netdev.c3809 ena_dev->reg_bar = devm_ioremap(&pdev->dev, in ena_probe()
3812 if (!ena_dev->reg_bar) { in ena_probe()
/openbmc/linux/drivers/net/ethernet/google/gve/
H A Dgve_main.c2215 struct gve_registers __iomem *reg_bar; in gve_probe() local
2235 reg_bar = pci_iomap(pdev, GVE_REGISTER_BAR, 0); in gve_probe()
2236 if (!reg_bar) { in gve_probe()
2249 gve_write_version(&reg_bar->driver_version); in gve_probe()
2251 max_tx_queues = ioread32be(&reg_bar->max_tx_queues); in gve_probe()
2252 max_rx_queues = ioread32be(&reg_bar->max_rx_queues); in gve_probe()
2287 priv->reg_bar0 = reg_bar; in gve_probe()
2332 pci_iounmap(pdev, reg_bar); in gve_probe()
2347 void __iomem *reg_bar = priv->reg_bar0; in gve_remove() local
2354 pci_iounmap(pdev, reg_bar); in gve_remove()