/openbmc/qemu/hw/ppc/ |
H A D | spapr_iommu.c | 147 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_GET_CLASS(iommu_mr); in spapr_tce_replay() local 159 iotlb = imrc->translate(iommu_mr, addr, IOMMU_NONE, n->iommu_idx); in spapr_tce_replay() 698 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in spapr_iommu_memory_region_class_init() local 700 imrc->translate = spapr_tce_translate_iommu; in spapr_iommu_memory_region_class_init() 701 imrc->replay = spapr_tce_replay; in spapr_iommu_memory_region_class_init() 702 imrc->get_min_page_size = spapr_tce_get_min_page_size; in spapr_iommu_memory_region_class_init() 703 imrc->notify_flag_changed = spapr_tce_notify_flag_changed; in spapr_iommu_memory_region_class_init() 704 imrc->get_attr = spapr_tce_get_attr; in spapr_iommu_memory_region_class_init()
|
/openbmc/qemu/hw/misc/ |
H A D | tz-mpc.c | 617 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in tz_mpc_iommu_memory_region_class_init() local 619 imrc->translate = tz_mpc_translate; in tz_mpc_iommu_memory_region_class_init() 620 imrc->attrs_to_index = tz_mpc_attrs_to_index; in tz_mpc_iommu_memory_region_class_init() 621 imrc->num_indexes = tz_mpc_num_indexes; in tz_mpc_iommu_memory_region_class_init()
|
/openbmc/qemu/hw/sparc64/ |
H A D | sun4u_iommu.c | 325 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in sun4u_iommu_memory_region_class_init() local 327 imrc->translate = sun4u_translate_iommu; in sun4u_iommu_memory_region_class_init()
|
/openbmc/qemu/system/ |
H A D | memory.c | 2046 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_GET_CLASS(iommu_mr); in memory_region_update_iommu_notify_flags() local 2053 if (flags != iommu_mr->iommu_notify_flags && imrc->notify_flag_changed) { in memory_region_update_iommu_notify_flags() 2054 ret = imrc->notify_flag_changed(iommu_mr, in memory_region_update_iommu_notify_flags() 2092 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_GET_CLASS(iommu_mr); in memory_region_iommu_get_min_page_size() local 2094 if (imrc->get_min_page_size) { in memory_region_iommu_get_min_page_size() 2095 return imrc->get_min_page_size(iommu_mr); in memory_region_iommu_get_min_page_size() 2103 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_GET_CLASS(iommu_mr); in memory_region_iommu_replay() local 2108 if (imrc->replay) { in memory_region_iommu_replay() 2109 imrc->replay(iommu_mr, n); in memory_region_iommu_replay() 2116 iotlb = imrc->translate(iommu_mr, addr, IOMMU_NONE, n->iommu_idx); in memory_region_iommu_replay() [all …]
|
H A D | physmem.c | 429 IOMMUMemoryRegionClass *imrc = memory_region_get_iommu_class_nocheck(iommu_mr); in address_space_translate_iommu() local 433 if (imrc->attrs_to_index) { in address_space_translate_iommu() 434 iommu_idx = imrc->attrs_to_index(iommu_mr, attrs); in address_space_translate_iommu() 437 iotlb = imrc->translate(iommu_mr, addr, is_write ? in address_space_translate_iommu() 681 IOMMUMemoryRegionClass *imrc; in address_space_translate_for_iotlb() local 695 imrc = memory_region_get_iommu_class_nocheck(iommu_mr); in address_space_translate_for_iotlb() 697 iommu_idx = imrc->attrs_to_index(iommu_mr, attrs); in address_space_translate_for_iotlb() 702 iotlb = imrc->translate(iommu_mr, addr, IOMMU_NONE, iommu_idx); in address_space_translate_for_iotlb()
|
/openbmc/qemu/hw/sparc/ |
H A D | sun4m_iommu.c | 395 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in sun4m_iommu_memory_region_class_init() local 397 imrc->translate = sun4m_translate_iommu; in sun4m_iommu_memory_region_class_init()
|
/openbmc/qemu/hw/dma/ |
H A D | rc4030.c | 725 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in rc4030_iommu_memory_region_class_init() local 727 imrc->translate = rc4030_dma_translate; in rc4030_iommu_memory_region_class_init()
|
/openbmc/qemu/hw/alpha/ |
H A D | typhoon.c | 939 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in typhoon_iommu_memory_region_class_init() local 941 imrc->translate = typhoon_translate_iommu; in typhoon_iommu_memory_region_class_init()
|
/openbmc/qemu/hw/pci-host/ |
H A D | astro.c | 889 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in astro_iommu_memory_region_class_init() local 891 imrc->translate = astro_translate_iommu; in astro_iommu_memory_region_class_init()
|
H A D | pnv_phb3.c | 893 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in DECLARE_INSTANCE_CHECKER() local 895 imrc->translate = pnv_phb3_translate_iommu; in DECLARE_INSTANCE_CHECKER()
|
H A D | pnv_phb4.c | 1367 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in DECLARE_INSTANCE_CHECKER() local 1369 imrc->translate = pnv_phb4_translate_iommu; in DECLARE_INSTANCE_CHECKER()
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-iommu.c | 1690 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in virtio_iommu_memory_region_class_init() local 1692 imrc->translate = virtio_iommu_translate; in virtio_iommu_memory_region_class_init() 1693 imrc->replay = virtio_iommu_replay; in virtio_iommu_memory_region_class_init() 1694 imrc->notify_flag_changed = virtio_iommu_notify_flag_changed; in virtio_iommu_memory_region_class_init()
|
/openbmc/qemu/hw/riscv/ |
H A D | riscv-iommu.c | 2396 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in riscv_iommu_memory_region_init() local 2398 imrc->translate = riscv_iommu_memory_region_translate; in riscv_iommu_memory_region_init() 2399 imrc->notify_flag_changed = riscv_iommu_memory_region_notify; in riscv_iommu_memory_region_init() 2400 imrc->attrs_to_index = riscv_iommu_memory_region_index; in riscv_iommu_memory_region_init() 2401 imrc->num_indexes = riscv_iommu_memory_region_index_len; in riscv_iommu_memory_region_init()
|
/openbmc/qemu/hw/s390x/ |
H A D | s390-pci-bus.c | 1531 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in s390_iommu_memory_region_class_init() local 1533 imrc->translate = s390_translate_iommu; in s390_iommu_memory_region_class_init() 1534 imrc->replay = s390_pci_iommu_replay; in s390_iommu_memory_region_class_init()
|
/openbmc/qemu/hw/i386/ |
H A D | amd_iommu.c | 1739 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in amdvi_iommu_memory_region_class_init() local 1741 imrc->translate = amdvi_translate; in amdvi_iommu_memory_region_class_init() 1742 imrc->notify_flag_changed = amdvi_iommu_notify_flag_changed; in amdvi_iommu_memory_region_class_init()
|
H A D | intel_iommu.c | 4439 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in vtd_iommu_memory_region_class_init() local 4441 imrc->translate = vtd_iommu_translate; in vtd_iommu_memory_region_class_init() 4442 imrc->notify_flag_changed = vtd_iommu_notify_flag_changed; in vtd_iommu_memory_region_class_init() 4443 imrc->replay = vtd_iommu_replay; in vtd_iommu_memory_region_class_init()
|
/openbmc/qemu/hw/arm/ |
H A D | smmuv3.c | 2045 IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_CLASS(klass); in smmuv3_iommu_memory_region_class_init() local 2047 imrc->translate = smmuv3_translate; in smmuv3_iommu_memory_region_class_init() 2048 imrc->notify_flag_changed = smmuv3_notify_flag_changed; in smmuv3_iommu_memory_region_class_init()
|