Home
last modified time | relevance | path

Searched defs:iommu (Results 1 – 25 of 43) sorted by relevance

12

/drivers/iommu/amd/
Dinit.c267 bool translation_pre_enabled(struct amd_iommu *iommu) in translation_pre_enabled()
273 static void clear_translation_pre_enabled(struct amd_iommu *iommu) in clear_translation_pre_enabled()
278 static void init_translation_status(struct amd_iommu *iommu) in init_translation_status()
310 struct amd_iommu *iommu; in check_feature_on_all_iommus() local
327 static void __init early_iommu_features_init(struct amd_iommu *iommu, in early_iommu_features_init()
336 static u32 iommu_read_l1(struct amd_iommu *iommu, u16 l1, u8 address) in iommu_read_l1()
345 static void iommu_write_l1(struct amd_iommu *iommu, u16 l1, u8 address, u32 val) in iommu_write_l1()
352 static u32 iommu_read_l2(struct amd_iommu *iommu, u8 address) in iommu_read_l2()
361 static void iommu_write_l2(struct amd_iommu *iommu, u8 address, u32 val) in iommu_write_l2()
380 static void iommu_set_exclusion_range(struct amd_iommu *iommu) in iommu_set_exclusion_range()
[all …]
Diommu.c276 struct amd_iommu *iommu = amd_iommu_rlookup_table[devid]; in find_dev_data() local
397 struct amd_iommu *iommu; in iommu_init_device() local
573 static void iommu_print_event(struct amd_iommu *iommu, void *__evt) in iommu_print_event()
662 static void iommu_poll_events(struct amd_iommu *iommu) in iommu_poll_events()
677 static void iommu_handle_ppr_entry(struct amd_iommu *iommu, u64 *raw) in iommu_handle_ppr_entry()
695 static void iommu_poll_ppr_log(struct amd_iommu *iommu) in iommu_poll_ppr_log()
757 static void iommu_poll_ga_log(struct amd_iommu *iommu) in iommu_poll_ga_log()
801 amd_iommu_set_pci_msi_domain(struct device *dev, struct amd_iommu *iommu) in amd_iommu_set_pci_msi_domain()
812 amd_iommu_set_pci_msi_domain(struct device *dev, struct amd_iommu *iommu) { } in amd_iommu_set_pci_msi_domain()
823 struct amd_iommu *iommu = (struct amd_iommu *) data; in amd_iommu_int_thread() local
[all …]
Damd_iommu.h30 static inline void amd_iommu_debugfs_setup(struct amd_iommu *iommu) {} in amd_iommu_debugfs_setup()
69 static inline int amd_iommu_create_irq_domain(struct amd_iommu *iommu) in amd_iommu_create_irq_domain()
88 static inline bool iommu_feature(struct amd_iommu *iommu, u64 mask) in iommu_feature()
Ddebugfs.c20 void amd_iommu_debugfs_setup(struct amd_iommu *iommu) in amd_iommu_debugfs_setup()
/drivers/iommu/intel/
Dirq_remapping.c33 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
231 struct intel_iommu *iommu = map_ioapic_to_iommu(apic); in map_ioapic_to_ir() local
[all …]
Diommu.c414 static bool translation_pre_enabled(struct intel_iommu *iommu) in translation_pre_enabled()
419 static void clear_translation_pre_enabled(struct intel_iommu *iommu) in clear_translation_pre_enabled()
424 static void init_translation_status(struct intel_iommu *iommu) in init_translation_status()
479 static struct dmar_domain* get_iommu_domain(struct intel_iommu *iommu, u16 did) in get_iommu_domain()
491 static void set_iommu_domain(struct intel_iommu *iommu, u16 did, in set_iommu_domain()
568 static unsigned long __iommu_calculate_sagaw(struct intel_iommu *iommu) in __iommu_calculate_sagaw()
586 static int __iommu_calculate_agaw(struct intel_iommu *iommu, int max_gaw) in __iommu_calculate_agaw()
603 int iommu_calculate_max_sagaw(struct intel_iommu *iommu) in iommu_calculate_max_sagaw()
613 int iommu_calculate_agaw(struct intel_iommu *iommu) in iommu_calculate_agaw()
636 static inline bool iommu_paging_structure_coherency(struct intel_iommu *iommu) in iommu_paging_structure_coherency()
[all …]
Ddmar.c948 static void unmap_iommu(struct intel_iommu *iommu) in unmap_iommu()
962 static int map_iommu(struct intel_iommu *iommu, u64 phys_addr) in map_iommu()
1025 static int dmar_alloc_seq_id(struct intel_iommu *iommu) in dmar_alloc_seq_id()
1039 static void dmar_free_seq_id(struct intel_iommu *iommu) in dmar_free_seq_id()
1049 struct intel_iommu *iommu; in alloc_iommu() local
1160 static void free_iommu(struct intel_iommu *iommu) in free_iommu()
1204 static int qi_check_fault(struct intel_iommu *iommu, int index, int wait_index) in qi_check_fault()
1277 int qi_submit_sync(struct intel_iommu *iommu, struct qi_desc *desc, in qi_submit_sync()
1368 void qi_global_iec(struct intel_iommu *iommu) in qi_global_iec()
1381 void qi_flush_context(struct intel_iommu *iommu, u16 did, u16 sid, u8 fm, in qi_flush_context()
[all …]
Dpasid.c29 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()
467 pasid_cache_invalidation_with_pasid(struct intel_iommu *iommu, in pasid_cache_invalidation_with_pasid()
482 devtlb_invalidation_with_pasid(struct intel_iommu *iommu, in devtlb_invalidation_with_pasid()
508 void intel_pasid_tear_down_entry(struct intel_iommu *iommu, struct device *dev, in intel_pasid_tear_down_entry()
538 static void pasid_flush_caches(struct intel_iommu *iommu, in pasid_flush_caches()
557 int intel_pasid_setup_first_level(struct intel_iommu *iommu, in intel_pasid_setup_first_level()
616 struct intel_iommu *iommu, in iommu_skip_agaw()
633 int intel_pasid_setup_second_level(struct intel_iommu *iommu, in intel_pasid_setup_second_level()
695 int intel_pasid_setup_pass_through(struct intel_iommu *iommu, in intel_pasid_setup_pass_through()
[all …]
Ddebugfs.c113 struct intel_iommu *iommu; in iommu_regset_show() local
214 static void ctx_tbl_walk(struct seq_file *m, struct intel_iommu *iommu, u16 bus) in ctx_tbl_walk()
260 static void root_tbl_walk(struct seq_file *m, struct intel_iommu *iommu) in root_tbl_walk()
284 struct intel_iommu *iommu; in dmar_translation_struct_show() local
376 struct intel_iommu *iommu) in invalidation_queue_entry_show()
405 struct intel_iommu *iommu; in invalidation_queue_show() local
437 struct intel_iommu *iommu) in ir_tbl_remap_entry_show()
461 struct intel_iommu *iommu) in ir_tbl_posted_entry_show()
493 struct intel_iommu *iommu; in ir_translation_struct_show() local
Dsvm.c31 int intel_svm_enable_prq(struct intel_iommu *iommu) in intel_svm_enable_prq()
76 int intel_svm_finish_prq(struct intel_iommu *iommu) in intel_svm_finish_prq()
94 static inline bool intel_svm_capable(struct intel_iommu *iommu) in intel_svm_capable()
99 void intel_svm_check(struct intel_iommu *iommu) in intel_svm_check()
260 struct intel_iommu *iommu = device_to_iommu(dev, NULL, NULL); in intel_svm_bind_gpasid() local
401 struct intel_iommu *iommu = device_to_iommu(dev, NULL, NULL); in intel_svm_unbind_gpasid() local
468 struct intel_iommu *iommu = device_to_iommu(dev, NULL, NULL); in intel_svm_bind_mm() local
647 struct intel_iommu *iommu; in intel_svm_unbind_mm() local
770 struct intel_iommu *iommu; in intel_svm_drain_prq() local
895 struct intel_iommu *iommu = d; in prq_event_thread() local
[all …]
/drivers/iommu/
Dsun50i-iommu.c98 struct iommu_device iommu; member
123 struct sun50i_iommu *iommu; member
136 static u32 iommu_read(struct sun50i_iommu *iommu, u32 offset) in iommu_read()
141 static void iommu_write(struct sun50i_iommu *iommu, u32 offset, u32 value) in iommu_write()
292 struct sun50i_iommu *iommu = sun50i_domain->iommu; in sun50i_table_flush() local
299 static int sun50i_iommu_flush_all_tlb(struct sun50i_iommu *iommu) in sun50i_iommu_flush_all_tlb()
329 struct sun50i_iommu *iommu = sun50i_domain->iommu; in sun50i_iommu_flush_iotlb_all() local
354 static int sun50i_iommu_enable(struct sun50i_iommu *iommu) in sun50i_iommu_enable()
436 static void sun50i_iommu_disable(struct sun50i_iommu *iommu) in sun50i_iommu_disable()
451 static void *sun50i_iommu_alloc_page_table(struct sun50i_iommu *iommu, in sun50i_iommu_alloc_page_table()
[all …]
Drockchip-iommu.c107 struct iommu_device iommu; member
115 struct rk_iommu *iommu; member
285 static void rk_iommu_command(struct rk_iommu *iommu, u32 command) in rk_iommu_command()
297 static void rk_iommu_zap_lines(struct rk_iommu *iommu, dma_addr_t iova_start, in rk_iommu_zap_lines()
314 static bool rk_iommu_is_stall_active(struct rk_iommu *iommu) in rk_iommu_is_stall_active()
326 static bool rk_iommu_is_paging_enabled(struct rk_iommu *iommu) in rk_iommu_is_paging_enabled()
338 static bool rk_iommu_is_reset_done(struct rk_iommu *iommu) in rk_iommu_is_reset_done()
349 static int rk_iommu_enable_stall(struct rk_iommu *iommu) in rk_iommu_enable_stall()
374 static int rk_iommu_disable_stall(struct rk_iommu *iommu) in rk_iommu_disable_stall()
395 static int rk_iommu_enable_paging(struct rk_iommu *iommu) in rk_iommu_enable_paging()
[all …]
Dmsm_iommu.c55 static int __enable_clocks(struct msm_iommu_dev *iommu) in __enable_clocks()
72 static void __disable_clocks(struct msm_iommu_dev *iommu) in __disable_clocks()
121 struct msm_iommu_dev *iommu = NULL; in __flush_iotlb() local
143 struct msm_iommu_dev *iommu = NULL; in __flush_iotlb_range() local
207 static void config_mids(struct msm_iommu_dev *iommu, in config_mids()
367 struct msm_iommu_dev *iommu, *ret = NULL; in find_iommu_for_dev() local
385 struct msm_iommu_dev *iommu; in msm_iommu_probe_device() local
406 struct msm_iommu_dev *iommu; in msm_iommu_attach_dev() local
456 struct msm_iommu_dev *iommu; in msm_iommu_detach_dev() local
517 struct msm_iommu_dev *iommu; in msm_iommu_iova_to_phys() local
[all …]
Diommu-sysfs.c54 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()
Domap-iommu.c953 struct omap_iommu_device *iommu; in omap_iommu_domain_deactivate() local
982 struct omap_iommu_device *iommu; in omap_iommu_domain_activate() local
1330 struct omap_iommu_device *iommu; in omap_iommu_map() local
1374 struct omap_iommu_device *iommu; in omap_iommu_unmap() local
1416 struct omap_iommu_device *iommu; in omap_iommu_attach_init() local
1449 struct omap_iommu_device *iommu = odomain->iommus; in omap_iommu_detach_fini() local
1464 struct omap_iommu_device *iommu; in omap_iommu_attach_dev() local
1528 struct omap_iommu_device *iommu = omap_domain->iommus; in _omap_iommu_detach_dev() local
1611 struct omap_iommu_device *iommu = omap_domain->iommus; in omap_iommu_iova_to_phys() local
Dmsm_iommu.h60 struct iommu_device iommu; member
/drivers/vfio/
Dvfio_iommu_type1.c138 #define IS_IOMMU_CAP_DOMAIN_IN_CONTAINER(iommu) \ argument
165 static struct vfio_dma *vfio_find_dma(struct vfio_iommu *iommu, in vfio_find_dma()
184 static void vfio_link_dma(struct vfio_iommu *iommu, struct vfio_dma *new) in vfio_link_dma()
203 static void vfio_unlink_dma(struct vfio_iommu *iommu, struct vfio_dma *old) in vfio_unlink_dma()
247 static void vfio_iommu_populate_bitmap_full(struct vfio_iommu *iommu) in vfio_iommu_populate_bitmap_full()
259 static int vfio_dma_bitmap_alloc_all(struct vfio_iommu *iommu, size_t pgsize) in vfio_dma_bitmap_alloc_all()
284 static void vfio_dma_bitmap_free_all(struct vfio_iommu *iommu) in vfio_dma_bitmap_free_all()
720 struct vfio_iommu *iommu = iommu_data; in vfio_iommu_type1_pin_pages() local
824 struct vfio_iommu *iommu = iommu_data; in vfio_iommu_type1_unpin_pages() local
945 static long vfio_unmap_unpin(struct vfio_iommu *iommu, struct vfio_dma *dma, in vfio_unmap_unpin()
[all …]
/drivers/gpu/drm/msm/
Dmsm_iommu.c85 struct msm_iommu *iommu = to_msm_iommu(pagetable->parent); in msm_iommu_pagetable_destroy() local
148 struct msm_iommu *iommu = to_msm_iommu(parent); in msm_iommu_pagetable_create() local
218 struct msm_iommu *iommu = arg; in msm_fault_handler() local
227 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_detach() local
235 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_map() local
250 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_unmap() local
262 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_destroy() local
276 struct msm_iommu *iommu; in msm_iommu_new() local
/drivers/media/platform/qcom/venus/
Dfirmware.c132 struct iommu_domain *iommu; in venus_boot_no_tz() local
158 struct iommu_domain *iommu; in venus_shutdown_no_tz() local
300 struct iommu_domain *iommu; in venus_firmware_deinit() local
/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c90 struct vhost_iotlb *iommu; member
272 struct vhost_iotlb *iommu = vdpasim->iommu; in vdpasim_map_page() local
297 struct vhost_iotlb *iommu = vdpasim->iommu; in vdpasim_unmap_page() local
310 struct vhost_iotlb *iommu = vdpasim->iommu; in vdpasim_alloc_coherent() local
340 struct vhost_iotlb *iommu = vdpasim->iommu; in vdpasim_free_coherent() local
/drivers/gpu/drm/nouveau/include/nvkm/core/
Dtegra.h29 } iommu; member
/drivers/of/
Ddevice.c94 const struct iommu_ops *iommu; in of_dma_configure_id() local
/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_kms.h47 struct iommu_domain *iommu; member
/drivers/gpu/drm/rockchip/
Drockchip_drm_drv.c362 struct device_node *iommu; in rockchip_drm_platform_of_probe() local
/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_cfg.h102 struct iommu_domain *iommu; member

12