| /linux/drivers/iommu/amd/ |
| H A D | init.c | 238 bool translation_pre_enabled(struct amd_iommu *iommu) in translation_pre_enabled() argument 243 static void clear_translation_pre_enabled(struct amd_iommu *iommu) in clear_translation_pre_enabled() argument 248 static void init_translation_status(struct amd_iommu *iommu) in init_translation_status() argument 273 struct amd_iommu *iommu; get_global_efr() local 308 early_iommu_features_init(struct amd_iommu * iommu,struct ivhd_header * h) early_iommu_features_init() argument 321 iommu_read_l1(struct amd_iommu * iommu,u16 l1,u8 address) iommu_read_l1() argument 330 iommu_write_l1(struct amd_iommu * iommu,u16 l1,u8 address,u32 val) iommu_write_l1() argument 337 iommu_read_l2(struct amd_iommu * iommu,u8 address) iommu_read_l2() argument 346 iommu_write_l2(struct amd_iommu * iommu,u8 address,u32 val) iommu_write_l2() argument 361 iommu_set_cwwb_range(struct amd_iommu * iommu) iommu_set_cwwb_range() argument 385 iommu_set_device_table(struct amd_iommu * iommu) iommu_set_device_table() argument 402 iommu_feature_set(struct amd_iommu * iommu,u64 val,u64 mask,u8 shift) iommu_feature_set() argument 414 iommu_feature_enable(struct amd_iommu * iommu,u8 bit) iommu_feature_enable() argument 419 iommu_feature_disable(struct amd_iommu * iommu,u8 bit) iommu_feature_disable() argument 425 iommu_enable(struct amd_iommu * iommu) iommu_enable() argument 430 iommu_disable(struct amd_iommu * iommu) iommu_disable() argument 473 iommu_unmap_mmio_space(struct amd_iommu * iommu) iommu_unmap_mmio_space() argument 725 alloc_command_buffer(struct amd_iommu * iommu) alloc_command_buffer() argument 736 amd_iommu_restart_log(struct amd_iommu * iommu,const char * evt_type,u8 cntrl_intr,u8 cntrl_log,u32 status_run_mask,u32 status_overflow_mask) amd_iommu_restart_log() argument 761 amd_iommu_restart_event_logging(struct amd_iommu * iommu) amd_iommu_restart_event_logging() argument 772 amd_iommu_restart_ga_log(struct amd_iommu * iommu) amd_iommu_restart_ga_log() argument 783 amd_iommu_reset_cmd_buffer(struct amd_iommu * iommu) amd_iommu_reset_cmd_buffer() argument 799 iommu_enable_command_buffer(struct amd_iommu * iommu) iommu_enable_command_buffer() argument 822 iommu_disable_command_buffer(struct amd_iommu * iommu) iommu_disable_command_buffer() argument 827 free_command_buffer(struct amd_iommu * iommu) free_command_buffer() argument 832 iommu_alloc_4k_pages(struct amd_iommu * iommu,gfp_t gfp,size_t size) iommu_alloc_4k_pages() argument 854 struct amd_iommu *iommu; alloc_event_buffer() local 868 struct amd_iommu *iommu; iommu_enable_event_buffer() local 898 iommu_disable_event_buffer(struct amd_iommu * iommu) iommu_disable_event_buffer() argument 903 free_event_buffer(struct amd_iommu * iommu) free_event_buffer() argument 908 free_ga_log(struct amd_iommu * iommu) free_ga_log() argument 917 iommu_ga_log_enable(struct amd_iommu * iommu) iommu_ga_log_enable() argument 952 iommu_init_ga_log(struct amd_iommu * iommu) iommu_init_ga_log() argument 974 alloc_cwwb_sem(struct amd_iommu * iommu) alloc_cwwb_sem() argument 985 struct amd_iommu *iommu; remap_event_buffer() local 999 remap_command_buffer(struct amd_iommu * iommu) remap_command_buffer() argument 1010 remap_or_alloc_cwwb_sem(struct amd_iommu * iommu) remap_or_alloc_cwwb_sem() argument 1032 alloc_iommu_buffers(struct amd_iommu * iommu) alloc_iommu_buffers() argument 1061 free_cwwb_sem(struct amd_iommu * iommu) free_cwwb_sem() argument 1066 unmap_cwwb_sem(struct amd_iommu * iommu) unmap_cwwb_sem() argument 1076 unmap_command_buffer(struct amd_iommu * iommu) unmap_command_buffer() argument 1081 unmap_event_buffer(struct amd_iommu * iommu) unmap_event_buffer() argument 1086 free_iommu_buffers(struct amd_iommu * iommu) free_iommu_buffers() argument 1099 iommu_enable_xt(struct amd_iommu * iommu) iommu_enable_xt() argument 1112 iommu_enable_gt(struct amd_iommu * iommu) iommu_enable_gt() argument 1137 __reuse_device_table(struct amd_iommu * iommu) __reuse_device_table() argument 1201 struct amd_iommu *iommu; reuse_device_table() local 1268 set_dev_entry_from_acpi_range(struct amd_iommu * iommu,u16 first,u16 last,u32 flags,u32 ext_flags) set_dev_entry_from_acpi_range() argument 1323 set_dev_entry_from_acpi(struct amd_iommu * iommu,u16 devid,u32 flags,u32 ext_flags) set_dev_entry_from_acpi() argument 1440 init_iommu_from_acpi(struct amd_iommu * iommu,struct ivhd_header * h) init_iommu_from_acpi() argument 1778 free_sysfs(struct amd_iommu * iommu) free_sysfs() argument 1786 free_iommu_one(struct amd_iommu * iommu) free_iommu_one() argument 1798 struct amd_iommu *iommu, *next; free_iommu_all() local 1813 amd_iommu_erratum_746_workaround(struct amd_iommu * iommu) amd_iommu_erratum_746_workaround() argument 1844 amd_iommu_ats_write_check_workaround(struct amd_iommu * iommu) amd_iommu_ats_write_check_workaround() argument 1870 init_iommu_one(struct amd_iommu * iommu,struct ivhd_header * h,struct acpi_table_header * ivrs_base) init_iommu_one() argument 1948 init_iommu_one_late(struct amd_iommu * iommu) init_iommu_one_late() argument 2017 struct amd_iommu *iommu; init_iommu_all() local 2062 init_iommu_perf_ctr(struct amd_iommu * iommu) init_iommu_perf_ctr() argument 2085 struct amd_iommu *iommu = dev_to_amd_iommu(dev); amd_iommu_show_cap() local 2119 late_iommu_features_init(struct amd_iommu * iommu) late_iommu_features_init() argument 2149 iommu_init_pci(struct amd_iommu * iommu) iommu_init_pci() argument 2302 struct amd_iommu *iommu; amd_iommu_init_pci() local 2351 iommu_setup_msi(struct amd_iommu * iommu) iommu_setup_msi() argument 2431 struct amd_iommu *iommu = irqd->chip_data; intcapxt_unmask_irq() local 2446 struct amd_iommu *iommu = irqd->chip_data; intcapxt_mask_irq() local 2511 __iommu_setup_intcapxt(struct amd_iommu * iommu,const char * devname,int hwirq,irq_handler_t thread_fn) __iommu_setup_intcapxt() argument 2545 iommu_setup_intcapxt(struct amd_iommu * iommu) iommu_setup_intcapxt() argument 2576 iommu_init_irq(struct amd_iommu * iommu) iommu_init_irq() argument 2754 iommu_init_flags(struct amd_iommu * iommu) iommu_init_flags() argument 2785 iommu_apply_resume_quirks(struct amd_iommu * iommu) iommu_apply_resume_quirks() argument 2828 iommu_enable_ga(struct amd_iommu * iommu) iommu_enable_ga() argument 2844 iommu_disable_irtcachedis(struct amd_iommu * iommu) iommu_disable_irtcachedis() argument 2849 iommu_enable_irtcachedis(struct amd_iommu * iommu) iommu_enable_irtcachedis() argument 2871 iommu_enable_2k_int(struct amd_iommu * iommu) iommu_enable_2k_int() argument 2882 early_enable_iommu(struct amd_iommu * iommu) early_enable_iommu() argument 2907 struct amd_iommu *iommu; early_enable_iommus() local 2962 struct amd_iommu *iommu; enable_iommus_ppr() local 2975 struct amd_iommu *iommu; enable_iommus_vapic() local 3037 struct amd_iommu *iommu; disable_iommus() local 3055 struct amd_iommu *iommu; amd_iommu_resume() local 3337 struct amd_iommu *iommu; amd_iommu_enable_interrupts() local 3554 struct amd_iommu *iommu; state_next() local 3976 struct amd_iommu *iommu; get_amd_iommu() local 3993 struct amd_iommu *iommu = get_amd_iommu(idx); amd_iommu_pc_get_max_banks() local 4008 struct amd_iommu *iommu = get_amd_iommu(idx); amd_iommu_pc_get_max_counters() local 4016 iommu_pc_get_set_reg(struct amd_iommu * iommu,u8 bank,u8 cntr,u8 fxn,u64 * value,bool is_write) iommu_pc_get_set_reg() argument 4054 amd_iommu_pc_get_reg(struct amd_iommu * iommu,u8 bank,u8 cntr,u8 fxn,u64 * value) amd_iommu_pc_get_reg() argument 4062 amd_iommu_pc_set_reg(struct amd_iommu * iommu,u8 bank,u8 cntr,u8 fxn,u64 * value) amd_iommu_pc_set_reg() argument 4128 struct amd_iommu *iommu; amd_iommu_snp_disable() local [all...] |
| H A D | iommu.c | 149 update_dte256(struct amd_iommu * iommu,struct iommu_dev_data * dev_data,struct dev_table_entry * new) update_dte256() argument 215 amd_iommu_update_dte(struct amd_iommu * iommu,struct iommu_dev_data * dev_data,struct dev_table_entry * new) amd_iommu_update_dte() argument 225 get_dte256(struct amd_iommu * iommu,struct iommu_dev_data * dev_data,struct dev_table_entry * dte) get_dte256() argument 315 get_dev_table(struct amd_iommu * iommu) get_dev_table() argument 345 amd_iommu_set_rlookup_table(struct amd_iommu * iommu,u16 devid) amd_iommu_set_rlookup_table() argument 377 alloc_dev_data(struct amd_iommu * iommu,u16 devid) alloc_dev_data() argument 395 search_dev_data(struct amd_iommu * iommu,u16 devid) search_dev_data() argument 416 struct amd_iommu *iommu; clone_alias() local 452 clone_aliases(struct amd_iommu * iommu,struct device * dev) clone_aliases() argument 470 setup_aliases(struct amd_iommu * iommu,struct device * dev) setup_aliases() argument 492 find_dev_data(struct amd_iommu * iommu,u16 devid) find_dev_data() argument 681 struct amd_iommu *iommu; check_device() local 704 iommu_init_device(struct amd_iommu * iommu,struct device * dev) iommu_init_device() argument 744 iommu_ignore_device(struct amd_iommu * iommu,struct device * dev) iommu_ignore_device() argument 768 dump_dte_entry(struct amd_iommu * iommu,u16 devid) dump_dte_entry() argument 789 amd_iommu_report_rmp_hw_error(struct amd_iommu * iommu,volatile u32 * event) amd_iommu_report_rmp_hw_error() argument 821 amd_iommu_report_rmp_fault(struct amd_iommu * iommu,volatile u32 * event) amd_iommu_report_rmp_fault() argument 860 amd_iommu_report_page_fault(struct amd_iommu * iommu,u16 devid,u16 domain_id,u64 address,int flags) amd_iommu_report_page_fault() argument 911 amd_iommu_report_ppr_err(struct amd_iommu * iommu,volatile u32 * event,u16 devid,u64 address,int flags) amd_iommu_report_ppr_err() argument 945 iommu_print_event(struct amd_iommu * iommu,void * __evt) iommu_print_event() argument 1039 iommu_poll_events(struct amd_iommu * iommu) iommu_poll_events() argument 1075 iommu_poll_ga_log(struct amd_iommu * iommu) iommu_poll_ga_log() argument 1118 amd_iommu_set_pci_msi_domain(struct device * dev,struct amd_iommu * iommu) amd_iommu_set_pci_msi_domain() argument 1129 amd_iommu_set_pci_msi_domain(struct device * dev,struct amd_iommu * iommu) amd_iommu_set_pci_msi_domain() argument 1137 struct amd_iommu *iommu = (struct amd_iommu *) data; amd_iommu_handle_irq() local 1215 dump_command_buffer(struct amd_iommu * iommu) dump_command_buffer() argument 1234 wait_on_sem(struct amd_iommu * iommu,u64 data) wait_on_sem() argument 1263 copy_cmd_to_buffer(struct amd_iommu * iommu,struct iommu_cmd * cmd) copy_cmd_to_buffer() argument 1282 build_completion_wait(struct iommu_cmd * cmd,struct amd_iommu * iommu,u64 data) build_completion_wait() argument 1413 __iommu_queue_command_sync(struct amd_iommu * iommu,struct iommu_cmd * cmd,bool sync) __iommu_queue_command_sync() argument 1450 iommu_queue_command_sync(struct amd_iommu * iommu,struct iommu_cmd * cmd,bool sync) iommu_queue_command_sync() argument 1464 iommu_queue_command(struct amd_iommu * iommu,struct iommu_cmd * cmd) iommu_queue_command() argument 1469 get_cmdsem_val(struct amd_iommu * iommu) get_cmdsem_val() argument 1479 iommu_completion_wait(struct amd_iommu * iommu) iommu_completion_wait() argument 1530 iommu_flush_dte(struct amd_iommu * iommu,u16 devid) iommu_flush_dte() argument 1539 iommu_flush_dte_sync(struct amd_iommu * iommu,u16 devid) iommu_flush_dte_sync() argument 1548 amd_iommu_flush_dte_all(struct amd_iommu * iommu) amd_iommu_flush_dte_all() argument 1563 amd_iommu_flush_tlb_all(struct amd_iommu * iommu) amd_iommu_flush_tlb_all() argument 1579 amd_iommu_flush_tlb_domid(struct amd_iommu * iommu,u32 dom_id) amd_iommu_flush_tlb_domid() argument 1600 struct amd_iommu *iommu = container_of(aviommu->core.iommu_dev, iommu_flush_pages_v1_hdom_ids() local 1618 amd_iommu_flush_all(struct amd_iommu * iommu) amd_iommu_flush_all() argument 1628 iommu_flush_irt(struct amd_iommu * iommu,u16 devid) iommu_flush_irt() argument 1637 amd_iommu_flush_irt_all(struct amd_iommu * iommu) amd_iommu_flush_irt_all() argument 1651 amd_iommu_flush_all_caches(struct amd_iommu * iommu) amd_iommu_flush_all_caches() argument 1668 struct amd_iommu *iommu = get_amd_iommu_from_dev_data(dev_data); device_flush_iotlb() local 1680 struct amd_iommu *iommu = data; device_flush_dte_alias() local 1690 struct amd_iommu *iommu = get_amd_iommu_from_dev_data(dev_data); device_flush_dte() local 1733 struct amd_iommu *iommu = get_amd_iommu_from_dev(dev_data->dev); domain_flush_pages_v2() local 1866 struct amd_iommu *iommu = get_amd_iommu_from_dev(dev_data->dev); amd_iommu_dev_flush_pasid_pages() local 1890 struct amd_iommu *iommu; __amd_iommu_complete_ppr() local 2005 setup_gcr3_table(struct gcr3_tbl_info * gcr3_info,struct amd_iommu * iommu,int pasids) setup_gcr3_table() argument 2202 set_dte_entry(struct amd_iommu * iommu,struct iommu_dev_data * dev_data,phys_addr_t top_paddr,unsigned int top_level) set_dte_entry() argument 2240 clear_dte_entry(struct amd_iommu * iommu,struct iommu_dev_data * dev_data) clear_dte_entry() argument 2251 struct amd_iommu *iommu = get_amd_iommu_from_dev(dev_data->dev); dev_update_dte() local 2266 struct amd_iommu *iommu = get_amd_iommu_from_dev_data(dev_data); init_gcr3_table() local 2313 pdom_attach_iommu(struct amd_iommu * iommu,struct protection_domain * pdom) pdom_attach_iommu() argument 2350 pdom_detach_iommu(struct amd_iommu * iommu,struct protection_domain * pdom) pdom_detach_iommu() argument 2381 struct amd_iommu *iommu = get_amd_iommu_from_dev_data(dev_data); attach_device() local 2443 struct amd_iommu *iommu = get_amd_iommu_from_dev_data(dev_data); detach_device() local 2493 struct amd_iommu *iommu; amd_iommu_probe_device() local 2614 amd_iommu_hd_support(struct amd_iommu * iommu) amd_iommu_hd_support() argument 2644 struct amd_iommu *iommu = rlookup_amd_iommu(dev_data->dev); amd_iommu_change_top() local 2865 struct amd_iommu *iommu = get_amd_iommu_from_dev(dev); amd_iommu_domain_alloc_paging_flags() local 2996 struct amd_iommu *iommu = get_amd_iommu_from_dev(dev); amd_iommu_attach_device() local 3044 struct amd_iommu *iommu = get_amd_iommu_from_dev(dev); amd_iommu_capable() local 3068 struct amd_iommu *iommu; amd_iommu_set_dirty_tracking() local 3107 struct amd_iommu *iommu; amd_iommu_get_resv_regions() local 3236 struct amd_iommu *iommu = data; iommu_flush_dev_irt() local 3243 iommu_flush_irt_and_complete(struct amd_iommu * iommu,u16 devid) iommu_flush_irt_and_complete() argument 3288 set_dte_irq_entry(struct amd_iommu * iommu,u16 devid,struct irq_remap_table * table) set_dte_irq_entry() argument 3310 get_irq_table(struct amd_iommu * iommu,u16 devid) get_irq_table() argument 3347 set_remap_table_entry(struct amd_iommu * iommu,u16 devid,struct irq_remap_table * table) set_remap_table_entry() argument 3362 struct amd_iommu *iommu = rlookup_amd_iommu(&pdev->dev); set_remap_table_entry_alias() local 3383 alloc_irq_table(struct amd_iommu * iommu,u16 devid,struct pci_dev * pdev,unsigned int max_irqs) alloc_irq_table() argument 3451 alloc_irq_index(struct amd_iommu * iommu,u16 devid,int count,bool align,struct pci_dev * pdev,unsigned long max_irqs) alloc_irq_index() argument 3498 __modify_irte_ga(struct amd_iommu * iommu,u16 devid,int index,struct irte_ga * irte) __modify_irte_ga() argument 3529 modify_irte_ga(struct amd_iommu * iommu,u16 devid,int index,struct irte_ga * irte) modify_irte_ga() argument 3543 modify_irte(struct amd_iommu * iommu,u16 devid,int index,union irte * irte) modify_irte() argument 3562 free_irte(struct amd_iommu * iommu,u16 devid,int index) free_irte() argument 3608 irte_activate(struct amd_iommu * iommu,void * entry,u16 devid,u16 index) irte_activate() argument 3616 irte_ga_activate(struct amd_iommu * iommu,void * entry,u16 devid,u16 index) irte_ga_activate() argument 3624 irte_deactivate(struct amd_iommu * iommu,void * entry,u16 devid,u16 index) irte_deactivate() argument 3632 irte_ga_deactivate(struct amd_iommu * iommu,void * entry,u16 devid,u16 index) irte_ga_deactivate() argument 3640 irte_set_affinity(struct amd_iommu * iommu,void * entry,u16 devid,u16 index,u8 vector,u32 dest_apicid) irte_set_affinity() argument 3650 irte_ga_set_affinity(struct amd_iommu * iommu,void * entry,u16 devid,u16 index,u8 vector,u32 dest_apicid) irte_ga_set_affinity() argument 3757 struct amd_iommu *iommu = data->iommu; irq_remapping_prepare_irte() local 3808 struct amd_iommu *iommu; irq_remapping_alloc() local 3949 struct amd_iommu *iommu = data->iommu; irq_remapping_activate() local 3966 struct amd_iommu *iommu = data->iommu; irq_remapping_deactivate() local 3976 struct amd_iommu *iommu; irq_remapping_select() local 4162 amd_ir_update_irte(struct irq_data * irqd,struct amd_iommu * iommu,struct amd_ir_data * ir_data,struct irq_2_irte * irte_info,struct irq_cfg * cfg) amd_ir_update_irte() argument 4184 struct amd_iommu *iommu = ir_data->iommu; amd_ir_set_affinity() local 4228 amd_iommu_create_irq_domain(struct amd_iommu * iommu) amd_iommu_create_irq_domain() argument [all...] |
| H A D | nested.c | 190 set_dte_nested(struct amd_iommu * iommu,struct iommu_domain * dom,struct iommu_dev_data * dev_data,struct dev_table_entry * new) set_dte_nested() argument 241 struct amd_iommu *iommu = get_amd_iommu_from_dev_data(dev_data); nested_attach_device() local
|
| /linux/arch/sparc/include/asm/ |
| H A D | iommu_64.h | 55 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/tools/testing/selftests/vfio/lib/include/libvfio/ |
| H A D | iommu.h | 27 struct iommu { struct 35 struct iommu *iommu_init(const char *iommu_mode); argument 40 static inline void iommu_map(struct iommu *iommu, struct dma_region *region) in iommu_map() argument 28 modeiommu global() argument 30 iommufdiommu global() argument 47 iommu_unmap(struct iommu * iommu,struct dma_region * region) iommu_unmap() argument 54 iommu_unmap_all(struct iommu * iommu) iommu_unmap_all() argument [all...] |
| /linux/tools/testing/selftests/vfio/lib/ |
| H A D | iommu.c | 69 int __iommu_hva2iova(struct iommu *iommu, void *vaddr, iova_t *iova) in __iommu_hva2iova() 89 iova_t iommu_hva2iova(struct iommu *iommu, void *vaddr) in iommu_hva2iova() 100 static int vfio_iommu_map(struct iommu *iommu, struct dma_region *region) in vfio_iommu_map() 116 static int iommufd_map(struct iommu *iommu, struct dma_region *region) in iommufd_map() 135 int __iommu_map(struct iommu *iommu, struct dma_region *region) in __iommu_map() 170 static int vfio_iommu_unmap(struct iommu *iommu, struct dma_region *region, in vfio_iommu_unmap() 195 static int iommufd_unmap(struct iommu *iommu, struct dma_region *region, in iommufd_unmap() 202 int __iommu_unmap(struct iommu *iommu, struct dma_region *region, u64 *unmapped) in __iommu_unmap() 219 int __iommu_unmap_all(struct iommu *iommu, u64 *unmapped) in __iommu_unmap_all() 311 static struct iommu_iova_range *vfio_iommu_iova_ranges(struct iommu *iommu, in vfio_iommu_iova_ranges() [all …]
|
| H A D | vfio_pci_device.c | 332 struct iommu *iommu = device->iommu; in vfio_container_set_iommu() local 467 struct vfio_pci_device *vfio_pci_device_alloc(const char *bdf, struct iommu *iommu) in vfio_pci_device_alloc() 485 struct vfio_pci_device *vfio_pci_device_init(const char *bdf, struct iommu *iommu) in vfio_pci_device_init()
|
| H A D | iova_allocator.c | 23 struct iova_allocator *iova_allocator_init(struct iommu *iommu) in iova_allocator_init()
|
| /linux/drivers/iommu/ |
| H A D | sun50i-iommu.c | 101 struct iommu_device iommu; member 125 struct sun50i_iommu *iommu; member 138 static u32 iommu_read(struct sun50i_iommu *iommu, u32 offset) in iommu_read() 143 static void iommu_write(struct sun50i_iommu *iommu, u32 offset, u32 value) in iommu_write() 294 struct sun50i_iommu *iommu = sun50i_domain->iommu; in sun50i_table_flush() local 301 static void sun50i_iommu_zap_iova(struct sun50i_iommu *iommu, in sun50i_iommu_zap_iova() 318 static void sun50i_iommu_zap_ptw_cache(struct sun50i_iommu *iommu, in sun50i_iommu_zap_ptw_cache() 334 static void sun50i_iommu_zap_range(struct sun50i_iommu *iommu, in sun50i_iommu_zap_range() 357 static int sun50i_iommu_flush_all_tlb(struct sun50i_iommu *iommu) in sun50i_iommu_flush_all_tlb() 387 struct sun50i_iommu *iommu = sun50i_domain->iommu; in sun50i_iommu_flush_iotlb_all() local [all …]
|
| H A 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() 123 void iommu_device_unlink(struct iommu_device *iommu, struct device *link) in iommu_device_unlink()
|
| H A D | vsi-iommu.c | 46 struct iommu_device iommu; member 194 struct vsi_iommu *iommu = dev_id; in vsi_iommu_irq() local 231 struct vsi_iommu *iommu = dev_iommu_priv_get(dev); in vsi_iommu_domain_alloc_paging() local 369 struct vsi_iommu *iommu; in vsi_iommu_flush_tlb() local 493 static void vsi_iommu_disable(struct vsi_iommu *iommu) in vsi_iommu_disable() 502 struct vsi_iommu *iommu = dev_iommu_priv_get(dev); in vsi_iommu_identity_attach() local 537 static void vsi_iommu_enable(struct vsi_iommu *iommu, struct iommu_domain *domain) in vsi_iommu_enable() 554 struct vsi_iommu *iommu = dev_iommu_priv_get(dev); in vsi_iommu_attach_device() local 619 struct vsi_iommu *iommu = vsi_iommu_get_from_dev(dev); in vsi_iommu_probe_device() local 633 struct vsi_iommu *iommu = dev_iommu_priv_get(dev); in vsi_iommu_release_device() local [all …]
|
| H A 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 1303 struct omap_iommu_device *iommu; in omap_iommu_map() local 1349 struct omap_iommu_device *iommu; in omap_iommu_unmap() local 1391 struct omap_iommu_device *iommu; in omap_iommu_attach_init() local 1423 struct omap_iommu_device *iommu = odomain->iommus; in omap_iommu_detach_fini() local 1438 struct omap_iommu_device *iommu; in omap_iommu_attach_dev() local 1502 struct omap_iommu_device *iommu = omap_domain->iommus; in _omap_iommu_detach_dev() local 1599 struct omap_iommu_device *iommu = omap_domain->iommus; in omap_iommu_iova_to_phys() local
|
| /linux/arch/sparc/kernel/ |
| H A D | iommu.c | 52 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 267 struct iommu *iommu; in dma_4u_map_phys() local [all …]
|
| H A D | iommu-common.c | 19 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()
|
| H A D | sbus.c | 63 struct iommu *iommu = dev->archdata.iommu; in sbus_set_sbus64() local 213 struct iommu *iommu = op->dev.archdata.iommu; in sbus_build_irq() local 275 struct iommu *iommu = op->dev.archdata.iommu; in sysio_ue_handler() local 349 struct iommu *iommu = op->dev.archdata.iommu; in sysio_ce_handler() local 428 struct iommu *iommu = op->dev.archdata.iommu; in sysio_sbus_error_handler() local 497 struct iommu *iommu = op->dev.archdata.iommu; in sysio_register_error_handlers() local 545 struct iommu *iommu; in sbus_iommu_init() local
|
| H A D | pci_sun4v.c | 78 static inline bool iommu_use_atu(struct iommu *iommu, u64 mask) in iommu_use_atu() 188 struct iommu *iommu; in dma_4v_alloc_coherent() local 327 struct iommu *iommu; in dma_4v_free_coherent() local 359 struct iommu *iommu; in dma_4v_map_phys() local 443 struct iommu *iommu; in dma_4v_unmap_phys() local 488 struct iommu *iommu; in dma_4v_map_sg() local 639 struct iommu *iommu; in dma_4v_unmap_sg() local 686 struct iommu *iommu = dev->archdata.iommu; in dma_4v_supported() local 719 struct iommu_map_table *iommu) in probe_existing_entries() 878 struct iommu *iommu = pbm->iommu; in pci_sun4v_iommu_init() local [all …]
|
| /linux/drivers/iommu/intel/ |
| H A 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 void dmar_latency_snapshot(struct intel_iommu *iommu, char *str, size_t size) in dmar_latency_snapshot()
|
| H A D | perfmon.h | 45 alloc_iommu_pmu(struct intel_iommu *iommu) in alloc_iommu_pmu() 51 free_iommu_pmu(struct intel_iommu *iommu) in free_iommu_pmu() 56 iommu_pmu_register(struct intel_iommu *iommu) in iommu_pmu_register() 61 iommu_pmu_unregister(struct intel_iommu *iommu) in iommu_pmu_unregister()
|
| H A D | nested.c | 26 struct intel_iommu *iommu = info->iommu; in intel_nested_attach_dev() local 134 static int domain_setup_nested(struct intel_iommu *iommu, in domain_setup_nested() 151 struct intel_iommu *iommu = info->iommu; in intel_nested_set_dev_pasid() local 202 struct intel_iommu *iommu = info->iommu; in intel_iommu_domain_alloc_nested() local
|
| H A D | svm.c | 28 void intel_svm_check(struct intel_iommu *iommu) in intel_svm_check() 116 struct intel_iommu *iommu; in intel_iommu_sva_supported() local 153 struct intel_iommu *iommu = info->iommu; in intel_svm_set_dev_pasid() local
|
| /linux/tools/testing/selftests/vfio/ |
| H A D | vfio_pci_driver_test.c | 28 static void region_setup(struct iommu *iommu, in region_setup() 46 static void region_teardown(struct iommu *iommu, struct dma_region *region) in region_teardown() 53 struct iommu *iommu; in FIXTURE() local 254 struct iommu *iommu; in device_has_selftests_driver() local
|
| H A D | vfio_pci_device_test.c | 26 struct iommu *iommu; in FIXTURE() local 105 struct iommu *iommu; FIXTURE() local [all...] |
| H A D | vfio_pci_device_init_perf_test.c | 18 struct iommu *iommu; member 29 struct iommu *iommu; in FIXTURE() local
|
| /linux/arch/sparc/mm/ |
| H A D | iommu.c | 60 struct iommu_struct *iommu; in sbus_iommu_init() local 187 struct iommu_struct *iommu = dev->archdata.iommu; in __sbus_iommu_map_phys() local 285 struct iommu_struct *iommu = dev->archdata.iommu; in sbus_iommu_unmap_phys() local 318 struct iommu_struct *iommu = dev->archdata.iommu; in sbus_iommu_alloc() local 400 struct iommu_struct *iommu = dev->archdata.iommu; in sbus_iommu_free() local
|
| /linux/arch/x86/events/amd/ |
| H A D | iommu.c | 40 struct amd_iommu *iommu; member 241 struct amd_iommu *iommu = perf_event_2_iommu(ev); in perf_iommu_enable_event() local 271 struct amd_iommu *iommu = perf_event_2_iommu(event); in perf_iommu_disable_event() local 298 struct amd_iommu *iommu = perf_event_2_iommu(event); in perf_iommu_start() local 315 struct amd_iommu *iommu = perf_event_2_iommu(event); in perf_iommu_read() local
|