/drivers/iommu/amd/ |
D | init.c | 267 bool translation_pre_enabled(struct amd_iommu *iommu) in translation_pre_enabled() 272 static void clear_translation_pre_enabled(struct amd_iommu *iommu) in clear_translation_pre_enabled() 277 static void init_translation_status(struct amd_iommu *iommu) in init_translation_status() 309 struct amd_iommu *iommu; in check_feature_on_all_iommus() local 326 static void __init early_iommu_features_init(struct amd_iommu *iommu, in early_iommu_features_init() 335 static u32 iommu_read_l1(struct amd_iommu *iommu, u16 l1, u8 address) in iommu_read_l1() 344 static void iommu_write_l1(struct amd_iommu *iommu, u16 l1, u8 address, u32 val) in iommu_write_l1() 351 static u32 iommu_read_l2(struct amd_iommu *iommu, u8 address) in iommu_read_l2() 360 static void iommu_write_l2(struct amd_iommu *iommu, u8 address, u32 val) in iommu_write_l2() 379 static void iommu_set_exclusion_range(struct amd_iommu *iommu) in iommu_set_exclusion_range() [all …]
|
D | iommu.c | 231 struct amd_iommu *iommu = amd_iommu_rlookup_table[devid]; in find_dev_data() local 343 struct amd_iommu *iommu; in iommu_init_device() local 502 static void iommu_print_event(struct amd_iommu *iommu, void *__evt) in iommu_print_event() 591 static void iommu_poll_events(struct amd_iommu *iommu) in iommu_poll_events() 606 static void iommu_handle_ppr_entry(struct amd_iommu *iommu, u64 *raw) in iommu_handle_ppr_entry() 624 static void iommu_poll_ppr_log(struct amd_iommu *iommu) in iommu_poll_ppr_log() 686 static void iommu_poll_ga_log(struct amd_iommu *iommu) in iommu_poll_ga_log() 730 amd_iommu_set_pci_msi_domain(struct device *dev, struct amd_iommu *iommu) in amd_iommu_set_pci_msi_domain() 741 amd_iommu_set_pci_msi_domain(struct device *dev, struct amd_iommu *iommu) { } in amd_iommu_set_pci_msi_domain() 752 struct amd_iommu *iommu = (struct amd_iommu *) data; in amd_iommu_int_thread() local [all …]
|
D | amd_iommu.h | 27 static inline void amd_iommu_debugfs_setup(struct amd_iommu *iommu) {} in amd_iommu_debugfs_setup() 70 static inline int amd_iommu_create_irq_domain(struct amd_iommu *iommu) in amd_iommu_create_irq_domain() 89 static inline bool iommu_feature(struct amd_iommu *iommu, u64 mask) in iommu_feature()
|
D | debugfs.c | 20 void amd_iommu_debugfs_setup(struct amd_iommu *iommu) in amd_iommu_debugfs_setup()
|
/drivers/iommu/intel/ |
D | irq_remapping.c | 33 struct intel_iommu *iommu; member 40 struct intel_iommu *iommu; member 47 struct intel_iommu *iommu; member 86 static bool ir_pre_enabled(struct intel_iommu *iommu) in ir_pre_enabled() 91 static void clear_ir_pre_enabled(struct intel_iommu *iommu) in clear_ir_pre_enabled() 96 static void init_ir_status(struct intel_iommu *iommu) in init_ir_status() 105 static int alloc_irte(struct intel_iommu *iommu, in alloc_irte() 145 static int qi_flush_iec(struct intel_iommu *iommu, int index, int mask) in qi_flush_iec() 161 struct intel_iommu *iommu; in modify_irte() local 239 struct intel_iommu *iommu; in clear_entries() local [all …]
|
D | iommu.c | 241 static inline bool context_copied(struct intel_iommu *iommu, u8 bus, u8 devfn) in context_copied() 250 set_context_copied(struct intel_iommu *iommu, u8 bus, u8 devfn) in set_context_copied() 256 clear_context_copied(struct intel_iommu *iommu, u8 bus, u8 devfn) in clear_context_copied() 295 struct intel_iommu *iommu; /* the corresponding iommu */ member 380 static bool translation_pre_enabled(struct intel_iommu *iommu) in translation_pre_enabled() 385 static void clear_translation_pre_enabled(struct intel_iommu *iommu) in clear_translation_pre_enabled() 390 static void init_translation_status(struct intel_iommu *iommu) in init_translation_status() 449 static struct dmar_domain* get_iommu_domain(struct intel_iommu *iommu, u16 did) in get_iommu_domain() 461 static void set_iommu_domain(struct intel_iommu *iommu, u16 did, in set_iommu_domain() 538 static unsigned long __iommu_calculate_sagaw(struct intel_iommu *iommu) in __iommu_calculate_sagaw() [all …]
|
D | dmar.c | 954 static void unmap_iommu(struct intel_iommu *iommu) in unmap_iommu() 968 static int map_iommu(struct intel_iommu *iommu, u64 phys_addr) in map_iommu() 1031 static int dmar_alloc_seq_id(struct intel_iommu *iommu) in dmar_alloc_seq_id() 1045 static void dmar_free_seq_id(struct intel_iommu *iommu) in dmar_free_seq_id() 1055 struct intel_iommu *iommu; in alloc_iommu() local 1165 static void free_iommu(struct intel_iommu *iommu) in free_iommu() 1235 static void qi_dump_fault(struct intel_iommu *iommu, u32 fault) in qi_dump_fault() 1266 static int qi_check_fault(struct intel_iommu *iommu, int index, int wait_index) in qi_check_fault() 1342 int qi_submit_sync(struct intel_iommu *iommu, struct qi_desc *desc, in qi_submit_sync() 1465 void qi_global_iec(struct intel_iommu *iommu) in qi_global_iec() [all …]
|
D | debugfs.c | 117 struct intel_iommu *iommu; in iommu_regset_show() local 218 static void ctx_tbl_walk(struct seq_file *m, struct intel_iommu *iommu, u16 bus) in ctx_tbl_walk() 264 static void root_tbl_walk(struct seq_file *m, struct intel_iommu *iommu) in root_tbl_walk() 288 struct intel_iommu *iommu; in dmar_translation_struct_show() local 380 struct intel_iommu *iommu) in invalidation_queue_entry_show() 409 struct intel_iommu *iommu; in invalidation_queue_show() local 441 struct intel_iommu *iommu) in ir_tbl_remap_entry_show() 465 struct intel_iommu *iommu) in ir_tbl_posted_entry_show() 497 struct intel_iommu *iommu; in ir_translation_struct_show() local 545 static void latency_show_one(struct seq_file *m, struct intel_iommu *iommu, in latency_show_one() [all …]
|
D | perf.c | 18 bool dmar_latency_enabled(struct intel_iommu *iommu, enum latency_type type) in dmar_latency_enabled() 25 int dmar_latency_enable(struct intel_iommu *iommu, enum latency_type type) in dmar_latency_enable() 57 void dmar_latency_disable(struct intel_iommu *iommu, enum latency_type type) in dmar_latency_disable() 70 void dmar_latency_update(struct intel_iommu *iommu, enum latency_type type, u64 latency) in dmar_latency_update() 116 int dmar_latency_snapshot(struct intel_iommu *iommu, char *str, size_t size) in dmar_latency_snapshot()
|
D | svm.c | 85 int intel_svm_enable_prq(struct intel_iommu *iommu) in intel_svm_enable_prq() 148 int intel_svm_finish_prq(struct intel_iommu *iommu) in intel_svm_finish_prq() 171 static inline bool intel_svm_capable(struct intel_iommu *iommu) in intel_svm_capable() 176 void intel_svm_check(struct intel_iommu *iommu) in intel_svm_check() 324 struct intel_iommu *iommu = device_to_iommu(dev, NULL, NULL); in intel_svm_bind_gpasid() local 465 struct intel_iommu *iommu = device_to_iommu(dev, NULL, NULL); in intel_svm_unbind_gpasid() local 537 static struct iommu_sva *intel_svm_bind_mm(struct intel_iommu *iommu, in intel_svm_bind_mm() 642 struct intel_iommu *iommu; in intel_svm_unbind_mm() local 750 struct intel_iommu *iommu; in intel_svm_drain_prq() local 848 static int intel_svm_prq_report(struct intel_iommu *iommu, struct device *dev, in intel_svm_prq_report() [all …]
|
D | perf.h | 47 dmar_latency_enable(struct intel_iommu *iommu, enum latency_type type) in dmar_latency_enable() 53 dmar_latency_disable(struct intel_iommu *iommu, enum latency_type type) in dmar_latency_disable() 58 dmar_latency_enabled(struct intel_iommu *iommu, enum latency_type type) in dmar_latency_enabled() 64 dmar_latency_update(struct intel_iommu *iommu, enum latency_type type, u64 latency) in dmar_latency_update() 69 dmar_latency_snapshot(struct intel_iommu *iommu, char *str, size_t size) in dmar_latency_snapshot()
|
D | pasid.c | 29 int vcmd_alloc_pasid(struct intel_iommu *iommu, u32 *pasid) in vcmd_alloc_pasid() 60 void vcmd_free_pasid(struct intel_iommu *iommu, u32 pasid) in vcmd_free_pasid() 486 pasid_cache_invalidation_with_pasid(struct intel_iommu *iommu, in pasid_cache_invalidation_with_pasid() 501 devtlb_invalidation_with_pasid(struct intel_iommu *iommu, in devtlb_invalidation_with_pasid() 527 void intel_pasid_tear_down_entry(struct intel_iommu *iommu, struct device *dev, in intel_pasid_tear_down_entry() 564 static void pasid_flush_caches(struct intel_iommu *iommu, in pasid_flush_caches() 599 int intel_pasid_setup_first_level(struct intel_iommu *iommu, in intel_pasid_setup_first_level() 666 struct intel_iommu *iommu, in iommu_skip_agaw() 683 int intel_pasid_setup_second_level(struct intel_iommu *iommu, in intel_pasid_setup_second_level() 749 int intel_pasid_setup_pass_through(struct intel_iommu *iommu, in intel_pasid_setup_pass_through() [all …]
|
D | cap_audit.c | 75 static int cap_audit_hotplug(struct intel_iommu *iommu, enum cap_audit_type type) in cap_audit_hotplug() 143 static int cap_audit_static(struct intel_iommu *iommu, enum cap_audit_type type) in cap_audit_static() 180 int intel_cap_audit(enum cap_audit_type type, struct intel_iommu *iommu) in intel_cap_audit()
|
D | cap_audit.h | 85 #define MINIMAL_FEATURE_IOMMU(iommu, cap, MASK) \ argument 93 #define MINIMAL_FEATURE_HOTPLUG(iommu, cap, feature, MASK, mismatch) \ argument
|
/drivers/iommu/ |
D | sun50i-iommu.c | 97 struct iommu_device iommu; member 122 struct sun50i_iommu *iommu; member 135 static u32 iommu_read(struct sun50i_iommu *iommu, u32 offset) in iommu_read() 140 static void iommu_write(struct sun50i_iommu *iommu, u32 offset, u32 value) in iommu_write() 291 struct sun50i_iommu *iommu = sun50i_domain->iommu; in sun50i_table_flush() local 298 static int sun50i_iommu_flush_all_tlb(struct sun50i_iommu *iommu) in sun50i_iommu_flush_all_tlb() 328 struct sun50i_iommu *iommu = sun50i_domain->iommu; in sun50i_iommu_flush_iotlb_all() local 353 static int sun50i_iommu_enable(struct sun50i_iommu *iommu) in sun50i_iommu_enable() 435 static void sun50i_iommu_disable(struct sun50i_iommu *iommu) in sun50i_iommu_disable() 450 static void *sun50i_iommu_alloc_page_table(struct sun50i_iommu *iommu, in sun50i_iommu_alloc_page_table() [all …]
|
D | msm_iommu.c | 54 static int __enable_clocks(struct msm_iommu_dev *iommu) in __enable_clocks() 71 static void __disable_clocks(struct msm_iommu_dev *iommu) in __disable_clocks() 120 struct msm_iommu_dev *iommu = NULL; in __flush_iotlb() local 142 struct msm_iommu_dev *iommu = NULL; in __flush_iotlb_range() local 206 static void config_mids(struct msm_iommu_dev *iommu, in config_mids() 366 struct msm_iommu_dev *iommu, *ret = NULL; in find_iommu_for_dev() local 384 struct msm_iommu_dev *iommu; in msm_iommu_probe_device() local 405 struct msm_iommu_dev *iommu; in msm_iommu_attach_dev() local 455 struct msm_iommu_dev *iommu; in msm_iommu_detach_dev() local 516 struct msm_iommu_dev *iommu; in msm_iommu_iova_to_phys() local [all …]
|
D | rockchip-iommu.c | 112 struct iommu_device iommu; member 120 struct rk_iommu *iommu; member 343 static void rk_iommu_command(struct rk_iommu *iommu, u32 command) in rk_iommu_command() 355 static void rk_iommu_zap_lines(struct rk_iommu *iommu, dma_addr_t iova_start, in rk_iommu_zap_lines() 372 static bool rk_iommu_is_stall_active(struct rk_iommu *iommu) in rk_iommu_is_stall_active() 384 static bool rk_iommu_is_paging_enabled(struct rk_iommu *iommu) in rk_iommu_is_paging_enabled() 396 static bool rk_iommu_is_reset_done(struct rk_iommu *iommu) in rk_iommu_is_reset_done() 407 static int rk_iommu_enable_stall(struct rk_iommu *iommu) in rk_iommu_enable_stall() 432 static int rk_iommu_disable_stall(struct rk_iommu *iommu) in rk_iommu_disable_stall() 453 static int rk_iommu_enable_paging(struct rk_iommu *iommu) in rk_iommu_enable_paging() [all …]
|
D | iommu-sysfs.c | 54 int iommu_device_sysfs_add(struct iommu_device *iommu, in iommu_device_sysfs_add() 92 void iommu_device_sysfs_remove(struct iommu_device *iommu) in iommu_device_sysfs_remove() 106 int iommu_device_link(struct iommu_device *iommu, struct device *link) in iommu_device_link() 127 void iommu_device_unlink(struct iommu_device *iommu, struct device *link) in iommu_device_unlink()
|
D | omap-iommu.c | 952 struct omap_iommu_device *iommu; in omap_iommu_domain_deactivate() local 981 struct omap_iommu_device *iommu; in omap_iommu_domain_activate() local 1326 struct omap_iommu_device *iommu; in omap_iommu_map() local 1370 struct omap_iommu_device *iommu; in omap_iommu_unmap() local 1412 struct omap_iommu_device *iommu; in omap_iommu_attach_init() local 1445 struct omap_iommu_device *iommu = odomain->iommus; in omap_iommu_detach_fini() local 1460 struct omap_iommu_device *iommu; in omap_iommu_attach_dev() local 1524 struct omap_iommu_device *iommu = omap_domain->iommus; in _omap_iommu_detach_dev() local 1607 struct omap_iommu_device *iommu = omap_domain->iommus; in omap_iommu_iova_to_phys() local
|
D | msm_iommu.h | 60 struct iommu_device iommu; member
|
/drivers/vfio/ |
D | vfio_iommu_type1.c | 145 #define IS_IOMMU_CAP_DOMAIN_IN_CONTAINER(iommu) \ argument 174 static struct vfio_dma *vfio_find_dma(struct vfio_iommu *iommu, in vfio_find_dma() 193 static struct rb_node *vfio_find_dma_first_node(struct vfio_iommu *iommu, in vfio_find_dma_first_node() 218 static void vfio_link_dma(struct vfio_iommu *iommu, struct vfio_dma *new) in vfio_link_dma() 237 static void vfio_unlink_dma(struct vfio_iommu *iommu, struct vfio_dma *old) in vfio_unlink_dma() 281 static void vfio_iommu_populate_bitmap_full(struct vfio_iommu *iommu) in vfio_iommu_populate_bitmap_full() 293 static int vfio_dma_bitmap_alloc_all(struct vfio_iommu *iommu, size_t pgsize) in vfio_dma_bitmap_alloc_all() 318 static void vfio_dma_bitmap_free_all(struct vfio_iommu *iommu) in vfio_dma_bitmap_free_all() 614 static int vfio_wait(struct vfio_iommu *iommu) in vfio_wait() 636 static int vfio_find_dma_valid(struct vfio_iommu *iommu, dma_addr_t start, in vfio_find_dma_valid() [all …]
|
/drivers/gpu/drm/msm/ |
D | msm_iommu.c | 85 struct msm_iommu *iommu = to_msm_iommu(pagetable->parent); in msm_iommu_pagetable_destroy() local 151 struct msm_iommu *iommu = to_msm_iommu(parent); in msm_iommu_pagetable_create() local 231 struct msm_iommu *iommu = arg; in msm_fault_handler() local 256 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_detach() local 264 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_map() local 279 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_unmap() local 291 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_destroy() local 306 struct msm_iommu *iommu; in msm_iommu_new() local
|
/drivers/media/platform/qcom/venus/ |
D | firmware.c | 134 struct iommu_domain *iommu; in venus_boot_no_tz() local 160 struct iommu_domain *iommu; in venus_shutdown_no_tz() local 316 struct iommu_domain *iommu; in venus_firmware_deinit() local
|
/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | tegra.h | 29 } iommu; member
|
/drivers/gpu/drm/msm/adreno/ |
D | adreno_gpu.c | 189 void adreno_set_llc_attributes(struct iommu_domain *iommu) in adreno_set_llc_attributes() 198 struct iommu_domain *iommu; in adreno_iommu_create_address_space() local
|