Lines Matching defs:iommu_functions
81 struct iommu_functions { struct
82 unsigned long version;
84 int (*enable)(struct iommu *obj);
85 void (*disable)(struct iommu *obj);
86 void (*set_twl)(struct iommu *obj, bool on);
87 u32 (*fault_isr)(struct iommu *obj, u32 *ra);
89 void (*tlb_read_cr)(struct iommu *obj, struct cr_regs *cr);
90 void (*tlb_load_cr)(struct iommu *obj, struct cr_regs *cr);
92 struct cr_regs *(*alloc_cr)(struct iommu *obj, struct iotlb_entry *e);
93 int (*cr_valid)(struct cr_regs *cr);
94 u32 (*cr_to_virt)(struct cr_regs *cr);
95 void (*cr_to_e)(struct cr_regs *cr, struct iotlb_entry *e);
96 ssize_t (*dump_cr)(struct iommu *obj, struct cr_regs *cr, char *buf);
98 u32 (*get_pte_attr)(struct iotlb_entry *e);
100 void (*save_ctx)(struct iommu *obj);
101 void (*restore_ctx)(struct iommu *obj);
102 ssize_t (*dump_ctx)(struct iommu *obj, char *buf, ssize_t len);