Lines Matching refs:RISCVIOMMUState

48     RISCVIOMMUState *iommu;     /* Managing IOMMU device state */
95 static void riscv_iommu_notify(RISCVIOMMUState *s, int vec_type) in riscv_iommu_notify()
114 static void riscv_iommu_fault(RISCVIOMMUState *s, in riscv_iommu_fault()
150 static void riscv_iommu_pri(RISCVIOMMUState *s, in riscv_iommu_pri()
224 static bool riscv_iommu_msi_check(RISCVIOMMUState *s, RISCVIOMMUContext *ctx, in riscv_iommu_msi_check()
256 static int riscv_iommu_spa_fetch(RISCVIOMMUState *s, RISCVIOMMUContext *ctx, in riscv_iommu_spa_fetch()
495 static void riscv_iommu_report_fault(RISCVIOMMUState *s, in riscv_iommu_report_fault()
535 static MemTxResult riscv_iommu_msi_write(RISCVIOMMUState *s, in riscv_iommu_msi_write()
685 static bool riscv_iommu_validate_device_ctx(RISCVIOMMUState *s, in riscv_iommu_validate_device_ctx()
797 static bool riscv_iommu_validate_process_ctx(RISCVIOMMUState *s, in riscv_iommu_validate_process_ctx()
857 static int riscv_iommu_ctx_fetch(RISCVIOMMUState *s, RISCVIOMMUContext *ctx) in riscv_iommu_ctx_fetch()
1101 static void riscv_iommu_ctx_inval(RISCVIOMMUState *s, GHFunc func, in riscv_iommu_ctx_inval()
1115 static RISCVIOMMUContext *riscv_iommu_ctx(RISCVIOMMUState *s, in riscv_iommu_ctx()
1163 static void riscv_iommu_ctx_put(RISCVIOMMUState *s, void *ref) in riscv_iommu_ctx_put()
1171 static AddressSpace *riscv_iommu_space(RISCVIOMMUState *s, uint32_t devid) in riscv_iommu_space()
1292 static void riscv_iommu_iot_update(RISCVIOMMUState *s, in riscv_iommu_iot_update()
1308 static void riscv_iommu_iot_inval(RISCVIOMMUState *s, GHFunc func, in riscv_iommu_iot_inval()
1323 static int riscv_iommu_translate(RISCVIOMMUState *s, RISCVIOMMUContext *ctx, in riscv_iommu_translate()
1419 static MemTxResult riscv_iommu_iofence(RISCVIOMMUState *s, bool notify, in riscv_iommu_iofence()
1434 static void riscv_iommu_ats(RISCVIOMMUState *s, in riscv_iommu_ats()
1480 static void riscv_iommu_ats_inval(RISCVIOMMUState *s, in riscv_iommu_ats_inval()
1487 static void riscv_iommu_ats_prgr(RISCVIOMMUState *s, in riscv_iommu_ats_prgr()
1499 static void riscv_iommu_process_ddtp(RISCVIOMMUState *s) in riscv_iommu_process_ddtp()
1538 static void riscv_iommu_process_cq_tail(RISCVIOMMUState *s) in riscv_iommu_process_cq_tail()
1693 static void riscv_iommu_process_cq_control(RISCVIOMMUState *s) in riscv_iommu_process_cq_control()
1724 static void riscv_iommu_process_fq_control(RISCVIOMMUState *s) in riscv_iommu_process_fq_control()
1754 static void riscv_iommu_process_pq_control(RISCVIOMMUState *s) in riscv_iommu_process_pq_control()
1784 static void riscv_iommu_process_dbg(RISCVIOMMUState *s) in riscv_iommu_process_dbg()
1828 typedef void riscv_iommu_process_fn(RISCVIOMMUState *s);
1830 static void riscv_iommu_update_icvec(RISCVIOMMUState *s, uint64_t data) in riscv_iommu_update_icvec()
1851 static void riscv_iommu_update_ipsr(RISCVIOMMUState *s, uint64_t data) in riscv_iommu_update_ipsr()
1911 static void riscv_iommu_write_reg_val(RISCVIOMMUState *s, in riscv_iommu_write_reg_val()
1927 RISCVIOMMUState *s = opaque; in riscv_iommu_mmio_write()
2026 RISCVIOMMUState *s = opaque; in riscv_iommu_mmio_read()
2072 RISCVIOMMUState* s = (RISCVIOMMUState *)opaque; in riscv_iommu_trap_write()
2118 RISCVIOMMUState *s = RISCV_IOMMU(dev); in riscv_iommu_realize()
2232 RISCVIOMMUState *s = RISCV_IOMMU(dev); in riscv_iommu_unrealize()
2239 DEFINE_PROP_UINT32("version", RISCVIOMMUState, version,
2241 DEFINE_PROP_UINT32("bus", RISCVIOMMUState, bus, 0x0),
2242 DEFINE_PROP_UINT32("ioatc-limit", RISCVIOMMUState, iot_limit,
2244 DEFINE_PROP_BOOL("intremap", RISCVIOMMUState, enable_msi, TRUE),
2245 DEFINE_PROP_BOOL("ats", RISCVIOMMUState, enable_ats, TRUE),
2246 DEFINE_PROP_BOOL("off", RISCVIOMMUState, enable_off, TRUE),
2247 DEFINE_PROP_BOOL("s-stage", RISCVIOMMUState, enable_s_stage, TRUE),
2248 DEFINE_PROP_BOOL("g-stage", RISCVIOMMUState, enable_g_stage, TRUE),
2249 DEFINE_PROP_LINK("downstream-mr", RISCVIOMMUState, target_mr,
2268 .instance_size = sizeof(RISCVIOMMUState),
2340 RISCVIOMMUState *s = (RISCVIOMMUState *) opaque; in riscv_iommu_find_as()
2366 void riscv_iommu_pci_setup_iommu(RISCVIOMMUState *iommu, PCIBus *bus, in riscv_iommu_pci_setup_iommu()
2372 RISCVIOMMUState *last = (RISCVIOMMUState *)bus->iommu_opaque; in riscv_iommu_pci_setup_iommu()