Lines Matching defs:iommu

239 bool translation_pre_enabled(struct amd_iommu *iommu)  in translation_pre_enabled()
244 static void clear_translation_pre_enabled(struct amd_iommu *iommu) in clear_translation_pre_enabled()
249 static void init_translation_status(struct amd_iommu *iommu) in init_translation_status()
277 struct amd_iommu *iommu; in get_global_efr() local
322 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()
397 static void iommu_set_cwwb_range(struct amd_iommu *iommu) in iommu_set_cwwb_range()
421 static void iommu_set_device_table(struct amd_iommu *iommu) in iommu_set_device_table()
436 static void iommu_feature_enable(struct amd_iommu *iommu, u8 bit) in iommu_feature_enable()
445 static void iommu_feature_disable(struct amd_iommu *iommu, u8 bit) in iommu_feature_disable()
454 static void iommu_set_inv_tlb_timeout(struct amd_iommu *iommu, int timeout) in iommu_set_inv_tlb_timeout()
465 static void iommu_enable(struct amd_iommu *iommu) in iommu_enable()
470 static void iommu_disable(struct amd_iommu *iommu) in iommu_disable()
513 static void __init iommu_unmap_mmio_space(struct amd_iommu *iommu) in iommu_unmap_mmio_space()
751 static int __init alloc_command_buffer(struct amd_iommu *iommu) in alloc_command_buffer()
763 static void amd_iommu_restart_log(struct amd_iommu *iommu, const char *evt_type, in amd_iommu_restart_log()
788 void amd_iommu_restart_event_logging(struct amd_iommu *iommu) in amd_iommu_restart_event_logging()
799 void amd_iommu_restart_ga_log(struct amd_iommu *iommu) in amd_iommu_restart_ga_log()
810 void amd_iommu_restart_ppr_log(struct amd_iommu *iommu) in amd_iommu_restart_ppr_log()
821 static void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu) in amd_iommu_reset_cmd_buffer()
837 static void iommu_enable_command_buffer(struct amd_iommu *iommu) in iommu_enable_command_buffer()
855 static void iommu_disable_command_buffer(struct amd_iommu *iommu) in iommu_disable_command_buffer()
860 static void __init free_command_buffer(struct amd_iommu *iommu) in free_command_buffer()
865 static void *__init iommu_alloc_4k_pages(struct amd_iommu *iommu, in iommu_alloc_4k_pages()
882 static int __init alloc_event_buffer(struct amd_iommu *iommu) in alloc_event_buffer()
890 static void iommu_enable_event_buffer(struct amd_iommu *iommu) in iommu_enable_event_buffer()
911 static void iommu_disable_event_buffer(struct amd_iommu *iommu) in iommu_disable_event_buffer()
916 static void __init free_event_buffer(struct amd_iommu *iommu) in free_event_buffer()
922 static int __init alloc_ppr_log(struct amd_iommu *iommu) in alloc_ppr_log()
930 static void iommu_enable_ppr_log(struct amd_iommu *iommu) in iommu_enable_ppr_log()
952 static void __init free_ppr_log(struct amd_iommu *iommu) in free_ppr_log()
957 static void free_ga_log(struct amd_iommu *iommu) in free_ga_log()
966 static int iommu_ga_log_enable(struct amd_iommu *iommu) in iommu_ga_log_enable()
1001 static int iommu_init_ga_log(struct amd_iommu *iommu) in iommu_init_ga_log()
1023 static int __init alloc_cwwb_sem(struct amd_iommu *iommu) in alloc_cwwb_sem()
1030 static void __init free_cwwb_sem(struct amd_iommu *iommu) in free_cwwb_sem()
1036 static void iommu_enable_xt(struct amd_iommu *iommu) in iommu_enable_xt()
1049 static void iommu_enable_gt(struct amd_iommu *iommu) in iommu_enable_gt()
1067 static void set_dev_entry_bit(struct amd_iommu *iommu, u16 devid, u8 bit) in set_dev_entry_bit()
1083 static int get_dev_entry_bit(struct amd_iommu *iommu, u16 devid, u8 bit) in get_dev_entry_bit()
1090 static bool __copy_device_table(struct amd_iommu *iommu) in __copy_device_table()
1182 struct amd_iommu *iommu; in copy_device_table() local
1207 void amd_iommu_apply_erratum_63(struct amd_iommu *iommu, u16 devid) in amd_iommu_apply_erratum_63()
1222 static void __init set_dev_entry_from_acpi(struct amd_iommu *iommu, in set_dev_entry_from_acpi()
1356 static int __init init_iommu_from_acpi(struct amd_iommu *iommu, in init_iommu_from_acpi()
1695 static void __init free_iommu_one(struct amd_iommu *iommu) in free_iommu_one()
1707 struct amd_iommu *iommu, *next; in free_iommu_all() local
1722 static void amd_iommu_erratum_746_workaround(struct amd_iommu *iommu) in amd_iommu_erratum_746_workaround()
1753 static void amd_iommu_ats_write_check_workaround(struct amd_iommu *iommu) in amd_iommu_ats_write_check_workaround()
1779 static int __init init_iommu_one(struct amd_iommu *iommu, struct ivhd_header *h, in init_iommu_one()
1866 static int __init init_iommu_one_late(struct amd_iommu *iommu) in init_iommu_one_late()
1940 struct amd_iommu *iommu; in init_iommu_all() local
1985 static void init_iommu_perf_ctr(struct amd_iommu *iommu) in init_iommu_perf_ctr()
2008 struct amd_iommu *iommu = dev_to_amd_iommu(dev); in amd_iommu_show_cap() local
2017 struct amd_iommu *iommu = dev_to_amd_iommu(dev); in amd_iommu_show_features() local
2043 static void __init late_iommu_features_init(struct amd_iommu *iommu) in late_iommu_features_init()
2073 static int __init iommu_init_pci(struct amd_iommu *iommu) in iommu_init_pci()
2193 struct amd_iommu *iommu; in print_iommu_info() local
2231 struct amd_iommu *iommu; in amd_iommu_init_pci() local
2277 static int iommu_setup_msi(struct amd_iommu *iommu) in iommu_setup_msi()
2361 struct amd_iommu *iommu = irqd->chip_data; in intcapxt_unmask_irq() local
2376 struct amd_iommu *iommu = irqd->chip_data; in intcapxt_mask_irq() local
2441 static int __iommu_setup_intcapxt(struct amd_iommu *iommu, const char *devname, in __iommu_setup_intcapxt()
2475 static int iommu_setup_intcapxt(struct amd_iommu *iommu) in iommu_setup_intcapxt()
2506 static int iommu_init_irq(struct amd_iommu *iommu) in iommu_init_irq()
2685 static void iommu_init_flags(struct amd_iommu *iommu) in iommu_init_flags()
2712 static void iommu_apply_resume_quirks(struct amd_iommu *iommu) in iommu_apply_resume_quirks()
2755 static void iommu_enable_ga(struct amd_iommu *iommu) in iommu_enable_ga()
2771 static void iommu_disable_irtcachedis(struct amd_iommu *iommu) in iommu_disable_irtcachedis()
2776 static void iommu_enable_irtcachedis(struct amd_iommu *iommu) in iommu_enable_irtcachedis()
2798 static void early_enable_iommu(struct amd_iommu *iommu) in early_enable_iommu()
2823 struct amd_iommu *iommu; in early_enable_iommus() local
2873 struct amd_iommu *iommu; in enable_iommus_v2() local
2885 struct amd_iommu *iommu; in enable_iommus_vapic() local
2950 struct amd_iommu *iommu; in disable_iommus() local
2968 struct amd_iommu *iommu; in amd_iommu_resume() local
3200 struct amd_iommu *iommu; in amd_iommu_enable_interrupts() local
3323 struct amd_iommu *iommu; in state_next() local
3405 struct amd_iommu *iommu; in amd_iommu_init() local
3708 struct amd_iommu *iommu; in get_amd_iommu() local
3725 struct amd_iommu *iommu = get_amd_iommu(idx); in amd_iommu_pc_get_max_banks() local
3742 struct amd_iommu *iommu = get_amd_iommu(idx); in amd_iommu_pc_get_max_counters() local
3751 static int iommu_pc_get_set_reg(struct amd_iommu *iommu, u8 bank, u8 cntr, in iommu_pc_get_set_reg()
3789 int amd_iommu_pc_get_reg(struct amd_iommu *iommu, u8 bank, u8 cntr, u8 fxn, u64 *value) in amd_iommu_pc_get_reg()
3797 int amd_iommu_pc_set_reg(struct amd_iommu *iommu, u8 bank, u8 cntr, u8 fxn, u64 *value) in amd_iommu_pc_set_reg()