Home
last modified time | relevance | path

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

1234

/linux-6.1.9/drivers/iommu/amd/
Dinit.c236 bool translation_pre_enabled(struct amd_iommu *iommu) in translation_pre_enabled()
241 static void clear_translation_pre_enabled(struct amd_iommu *iommu) in clear_translation_pre_enabled()
246 static void init_translation_status(struct amd_iommu *iommu) in init_translation_status()
274 struct amd_iommu *iommu; in get_global_efr() local
314 static void __init early_iommu_features_init(struct amd_iommu *iommu, in early_iommu_features_init()
327 static u32 iommu_read_l1(struct amd_iommu *iommu, u16 l1, u8 address) in iommu_read_l1()
336 static void iommu_write_l1(struct amd_iommu *iommu, u16 l1, u8 address, u32 val) in iommu_write_l1()
343 static u32 iommu_read_l2(struct amd_iommu *iommu, u8 address) in iommu_read_l2()
352 static void iommu_write_l2(struct amd_iommu *iommu, u8 address, u32 val) in iommu_write_l2()
371 static void iommu_set_exclusion_range(struct amd_iommu *iommu) in iommu_set_exclusion_range()
[all …]
Diommu.c122 struct dev_table_entry *get_dev_table(struct amd_iommu *iommu) in get_dev_table()
152 void amd_iommu_set_rlookup_table(struct amd_iommu *iommu, u16 devid) in amd_iommu_set_rlookup_table()
185 static struct iommu_dev_data *alloc_dev_data(struct amd_iommu *iommu, u16 devid) in alloc_dev_data()
202 static struct iommu_dev_data *search_dev_data(struct amd_iommu *iommu, u16 devid) in search_dev_data()
222 struct amd_iommu *iommu; in clone_alias() local
242 static void clone_aliases(struct amd_iommu *iommu, struct device *dev) in clone_aliases()
260 static void setup_aliases(struct amd_iommu *iommu, struct device *dev) in setup_aliases()
282 static struct iommu_dev_data *find_dev_data(struct amd_iommu *iommu, u16 devid) in find_dev_data()
352 struct amd_iommu *iommu; in check_device() local
375 static int iommu_init_device(struct amd_iommu *iommu, struct device *dev) in iommu_init_device()
[all …]
Damd_iommu.h26 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()
/linux-6.1.9/arch/sparc/include/asm/
Diommu_64.h55 struct iommu { struct
56 struct iommu_map_table tbl; argument
61 unsigned long iommu_control; argument
62 unsigned long iommu_tsbbase; argument
63 unsigned long iommu_flush; argument
64 unsigned long iommu_flushinv; argument
65 unsigned long iommu_tags; argument
66 unsigned long iommu_ctxflush; argument
89 int iommu_table_init(struct iommu *iommu, int tsbsize, argument
/linux-6.1.9/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
239 struct intel_iommu *iommu; in clear_entries() local
[all …]
Diommu.c218 static inline bool context_copied(struct intel_iommu *iommu, u8 bus, u8 devfn) in context_copied()
227 set_context_copied(struct intel_iommu *iommu, u8 bus, u8 devfn) in set_context_copied()
233 clear_context_copied(struct intel_iommu *iommu, u8 bus, u8 devfn) in clear_context_copied()
268 struct intel_iommu *iommu; /* the corresponding iommu */ member
298 static bool translation_pre_enabled(struct intel_iommu *iommu) in translation_pre_enabled()
303 static void clear_translation_pre_enabled(struct intel_iommu *iommu) in clear_translation_pre_enabled()
308 static void init_translation_status(struct intel_iommu *iommu) in init_translation_status()
403 static unsigned long __iommu_calculate_sagaw(struct intel_iommu *iommu) in __iommu_calculate_sagaw()
421 static int __iommu_calculate_agaw(struct intel_iommu *iommu, int max_gaw) in __iommu_calculate_agaw()
438 int iommu_calculate_max_sagaw(struct intel_iommu *iommu) in iommu_calculate_max_sagaw()
[all …]
Ddebugfs.c117 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()
286 struct intel_iommu *iommu; in dmar_translation_struct_show() local
397 struct intel_iommu *iommu) in invalidation_queue_entry_show()
426 struct intel_iommu *iommu; in invalidation_queue_show() local
458 struct intel_iommu *iommu) in ir_tbl_remap_entry_show()
482 struct intel_iommu *iommu) in ir_tbl_posted_entry_show()
514 struct intel_iommu *iommu; in ir_translation_struct_show() local
562 static void latency_show_one(struct seq_file *m, struct intel_iommu *iommu, in latency_show_one()
[all …]
Dperf.c18 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()
Ddmar.c950 static void unmap_iommu(struct intel_iommu *iommu) in unmap_iommu()
964 static int map_iommu(struct intel_iommu *iommu, u64 phys_addr) in map_iommu()
1029 struct intel_iommu *iommu; in alloc_iommu() local
1141 static void free_iommu(struct intel_iommu *iommu) in free_iommu()
1211 static void qi_dump_fault(struct intel_iommu *iommu, u32 fault) in qi_dump_fault()
1242 static int qi_check_fault(struct intel_iommu *iommu, int index, int wait_index) in qi_check_fault()
1318 int qi_submit_sync(struct intel_iommu *iommu, struct qi_desc *desc, in qi_submit_sync()
1441 void qi_global_iec(struct intel_iommu *iommu) in qi_global_iec()
1454 void qi_flush_context(struct intel_iommu *iommu, u16 did, u16 sid, u8 fm, in qi_flush_context()
1468 void qi_flush_iotlb(struct intel_iommu *iommu, u16 did, u64 addr, in qi_flush_iotlb()
[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()
396 pasid_cache_invalidation_with_pasid(struct intel_iommu *iommu, in pasid_cache_invalidation_with_pasid()
411 devtlb_invalidation_with_pasid(struct intel_iommu *iommu, in devtlb_invalidation_with_pasid()
437 void intel_pasid_tear_down_entry(struct intel_iommu *iommu, struct device *dev, in intel_pasid_tear_down_entry()
474 static void pasid_flush_caches(struct intel_iommu *iommu, in pasid_flush_caches()
493 int intel_pasid_setup_first_level(struct intel_iommu *iommu, in intel_pasid_setup_first_level()
574 struct intel_iommu *iommu, in iommu_skip_agaw()
591 int intel_pasid_setup_second_level(struct intel_iommu *iommu, in intel_pasid_setup_second_level()
658 int intel_pasid_setup_pass_through(struct intel_iommu *iommu, in intel_pasid_setup_pass_through()
[all …]
Dperf.h47 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()
Dsvm.c68 int intel_svm_enable_prq(struct intel_iommu *iommu) in intel_svm_enable_prq()
131 int intel_svm_finish_prq(struct intel_iommu *iommu) in intel_svm_finish_prq()
154 void intel_svm_check(struct intel_iommu *iommu) in intel_svm_check()
311 static struct iommu_sva *intel_svm_bind_mm(struct intel_iommu *iommu, in intel_svm_bind_mm()
409 struct intel_iommu *iommu; in intel_svm_unbind_mm() local
512 struct intel_iommu *iommu; in intel_svm_drain_prq() local
610 static int intel_svm_prq_report(struct intel_iommu *iommu, struct device *dev, in intel_svm_prq_report()
654 static void handle_bad_prq_event(struct intel_iommu *iommu, in handle_bad_prq_event()
695 struct intel_iommu *iommu = d; in prq_event_thread() local
792 struct intel_iommu *iommu = device_to_iommu(dev, NULL, NULL); in intel_svm_bind() local
[all …]
Dcap_audit.c75 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()
/linux-6.1.9/drivers/iommu/
Dsun50i-iommu.c99 struct iommu_device iommu; member
124 struct sun50i_iommu *iommu; member
137 static u32 iommu_read(struct sun50i_iommu *iommu, u32 offset) in iommu_read()
142 static void iommu_write(struct sun50i_iommu *iommu, u32 offset, u32 value) in iommu_write()
293 struct sun50i_iommu *iommu = sun50i_domain->iommu; in sun50i_table_flush() local
300 static void sun50i_iommu_zap_iova(struct sun50i_iommu *iommu, in sun50i_iommu_zap_iova()
317 static void sun50i_iommu_zap_ptw_cache(struct sun50i_iommu *iommu, in sun50i_iommu_zap_ptw_cache()
333 static void sun50i_iommu_zap_range(struct sun50i_iommu *iommu, in sun50i_iommu_zap_range()
356 static int sun50i_iommu_flush_all_tlb(struct sun50i_iommu *iommu) in sun50i_iommu_flush_all_tlb()
386 struct sun50i_iommu *iommu = sun50i_domain->iommu; in sun50i_iommu_flush_iotlb_all() local
[all …]
Dmsm_iommu.c54 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
401 struct msm_iommu_dev *iommu; in msm_iommu_attach_dev() local
451 struct msm_iommu_dev *iommu; in msm_iommu_detach_dev() local
512 struct msm_iommu_dev *iommu; in msm_iommu_iova_to_phys() local
[all …]
Drockchip-iommu.c114 struct iommu_device iommu; member
122 struct rk_iommu *iommu; member
345 static void rk_iommu_command(struct rk_iommu *iommu, u32 command) in rk_iommu_command()
357 static void rk_iommu_zap_lines(struct rk_iommu *iommu, dma_addr_t iova_start, in rk_iommu_zap_lines()
374 static bool rk_iommu_is_stall_active(struct rk_iommu *iommu) in rk_iommu_is_stall_active()
386 static bool rk_iommu_is_paging_enabled(struct rk_iommu *iommu) in rk_iommu_is_paging_enabled()
398 static bool rk_iommu_is_reset_done(struct rk_iommu *iommu) in rk_iommu_is_reset_done()
409 static int rk_iommu_enable_stall(struct rk_iommu *iommu) in rk_iommu_enable_stall()
434 static int rk_iommu_disable_stall(struct rk_iommu *iommu) in rk_iommu_disable_stall()
455 static int rk_iommu_enable_paging(struct rk_iommu *iommu) in rk_iommu_enable_paging()
[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()
/linux-6.1.9/arch/sparc/kernel/
Diommu.c52 struct iommu *iommu = container_of(iommu_map_table, struct iommu, tbl); in iommu_flushall() local
80 #define IOPTE_IS_DUMMY(iommu, iopte) \ argument
83 static inline void iopte_make_dummy(struct iommu *iommu, iopte_t *iopte) in iopte_make_dummy()
93 int iommu_table_init(struct iommu *iommu, int tsbsize, in iommu_table_init()
157 struct iommu *iommu, in alloc_npages()
170 static int iommu_alloc_ctx(struct iommu *iommu) in iommu_alloc_ctx()
188 static inline void iommu_free_ctx(struct iommu *iommu, int ctx) in iommu_free_ctx()
202 struct iommu *iommu; in dma_4u_alloc_coherent() local
250 struct iommu *iommu; in dma_4u_free_coherent() local
268 struct iommu *iommu; in dma_4u_map_page() local
[all …]
Diommu-common.c19 static inline bool need_flush(struct iommu_map_table *iommu) in need_flush()
24 static inline void set_flush(struct iommu_map_table *iommu) in set_flush()
29 static inline void clear_flush(struct iommu_map_table *iommu) in clear_flush()
52 void iommu_tbl_pool_init(struct iommu_map_table *iommu, in iommu_tbl_pool_init()
98 struct iommu_map_table *iommu, in iommu_tbl_range_alloc()
246 void iommu_tbl_range_free(struct iommu_map_table *iommu, u64 dma_addr, in iommu_tbl_range_free()
Dsbus.c62 struct iommu *iommu = dev->archdata.iommu; in sbus_set_sbus64() local
212 struct iommu *iommu = op->dev.archdata.iommu; in sbus_build_irq() local
274 struct iommu *iommu = op->dev.archdata.iommu; in sysio_ue_handler() local
348 struct iommu *iommu = op->dev.archdata.iommu; in sysio_ce_handler() local
427 struct iommu *iommu = op->dev.archdata.iommu; in sysio_sbus_error_handler() local
496 struct iommu *iommu = op->dev.archdata.iommu; in sysio_register_error_handlers() local
544 struct iommu *iommu; in sbus_iommu_init() local
Dpci_sun4v.c77 static inline bool iommu_use_atu(struct iommu *iommu, u64 mask) in iommu_use_atu()
187 struct iommu *iommu; in dma_4v_alloc_coherent() local
326 struct iommu *iommu; in dma_4v_free_coherent() local
359 struct iommu *iommu; in dma_4v_map_page() local
433 struct iommu *iommu; in dma_4v_unmap_page() local
478 struct iommu *iommu; in dma_4v_map_sg() local
629 struct iommu *iommu; in dma_4v_unmap_sg() local
676 struct iommu *iommu = dev->archdata.iommu; in dma_4v_supported() local
709 struct iommu_map_table *iommu) in probe_existing_entries()
868 struct iommu *iommu = pbm->iommu; in pci_sun4v_iommu_init() local
[all …]
/linux-6.1.9/drivers/vfio/
Dvfio_iommu_type1.c168 static struct vfio_dma *vfio_find_dma(struct vfio_iommu *iommu, in vfio_find_dma()
187 static struct rb_node *vfio_find_dma_first_node(struct vfio_iommu *iommu, in vfio_find_dma_first_node()
212 static void vfio_link_dma(struct vfio_iommu *iommu, struct vfio_dma *new) in vfio_link_dma()
231 static void vfio_unlink_dma(struct vfio_iommu *iommu, struct vfio_dma *old) in vfio_unlink_dma()
275 static void vfio_iommu_populate_bitmap_full(struct vfio_iommu *iommu) in vfio_iommu_populate_bitmap_full()
287 static int vfio_dma_bitmap_alloc_all(struct vfio_iommu *iommu, size_t pgsize) in vfio_dma_bitmap_alloc_all()
312 static void vfio_dma_bitmap_free_all(struct vfio_iommu *iommu) in vfio_dma_bitmap_free_all()
598 static int vfio_wait(struct vfio_iommu *iommu) in vfio_wait()
620 static int vfio_find_dma_valid(struct vfio_iommu *iommu, dma_addr_t start, in vfio_find_dma_valid()
643 static int vfio_wait_all_valid(struct vfio_iommu *iommu) in vfio_wait_all_valid()
[all …]
/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_iommu.c155 struct msm_iommu *iommu = to_msm_iommu(pagetable->parent); in msm_iommu_pagetable_destroy() local
221 struct msm_iommu *iommu = to_msm_iommu(parent); in msm_iommu_pagetable_create() local
297 struct msm_iommu *iommu = arg; in msm_fault_handler() local
322 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_detach() local
330 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_map() local
345 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_unmap() local
357 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_destroy() local
372 struct msm_iommu *iommu; in msm_iommu_new() local
/linux-6.1.9/arch/powerpc/platforms/cell/
Diommu.c104 struct cbe_iommu *iommu; member
131 static void invalidate_tce_cache(struct cbe_iommu *iommu, unsigned long *pte, in invalidate_tce_cache()
235 struct cbe_iommu *iommu = data; in ioc_interrupt() local
298 static void __init cell_iommu_setup_stab(struct cbe_iommu *iommu, in cell_iommu_setup_stab()
318 static unsigned long *__init cell_iommu_alloc_ptab(struct cbe_iommu *iommu, in cell_iommu_alloc_ptab()
378 static void __init cell_iommu_enable_hardware(struct cbe_iommu *iommu) in cell_iommu_enable_hardware()
418 static void __init cell_iommu_setup_hardware(struct cbe_iommu *iommu, in cell_iommu_setup_hardware()
464 cell_iommu_setup_window(struct cbe_iommu *iommu, struct device_node *np, in cell_iommu_setup_window()
545 struct cbe_iommu *iommu; in cell_get_iommu_table() local
622 struct cbe_iommu *iommu; in cell_iommu_alloc() local
[all …]
/linux-6.1.9/arch/x86/events/amd/
Diommu.c38 struct amd_iommu *iommu; member
239 struct amd_iommu *iommu = perf_event_2_iommu(ev); in perf_iommu_enable_event() local
269 struct amd_iommu *iommu = perf_event_2_iommu(event); in perf_iommu_disable_event() local
296 struct amd_iommu *iommu = perf_event_2_iommu(event); in perf_iommu_start() local
313 struct amd_iommu *iommu = perf_event_2_iommu(event); in perf_iommu_read() local

1234