Lines Matching defs:iommu
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()
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()
434 static void iommu_feature_enable(struct amd_iommu *iommu, u8 bit) in iommu_feature_enable()
443 static void iommu_feature_disable(struct amd_iommu *iommu, u8 bit) in iommu_feature_disable()
452 static void iommu_set_inv_tlb_timeout(struct amd_iommu *iommu, int timeout) in iommu_set_inv_tlb_timeout()
463 static void iommu_enable(struct amd_iommu *iommu) in iommu_enable()
468 static void iommu_disable(struct amd_iommu *iommu) in iommu_disable()
504 static void __init iommu_unmap_mmio_space(struct amd_iommu *iommu) in iommu_unmap_mmio_space()
654 static int __init alloc_command_buffer(struct amd_iommu *iommu) in alloc_command_buffer()
666 void amd_iommu_restart_event_logging(struct amd_iommu *iommu) in amd_iommu_restart_event_logging()
676 void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu) in amd_iommu_reset_cmd_buffer()
692 static void iommu_enable_command_buffer(struct amd_iommu *iommu) in iommu_enable_command_buffer()
710 static void iommu_disable_command_buffer(struct amd_iommu *iommu) in iommu_disable_command_buffer()
715 static void __init free_command_buffer(struct amd_iommu *iommu) in free_command_buffer()
720 static void *__init iommu_alloc_4k_pages(struct amd_iommu *iommu, in iommu_alloc_4k_pages()
737 static int __init alloc_event_buffer(struct amd_iommu *iommu) in alloc_event_buffer()
745 static void iommu_enable_event_buffer(struct amd_iommu *iommu) in iommu_enable_event_buffer()
766 static void iommu_disable_event_buffer(struct amd_iommu *iommu) in iommu_disable_event_buffer()
771 static void __init free_event_buffer(struct amd_iommu *iommu) in free_event_buffer()
777 static int __init alloc_ppr_log(struct amd_iommu *iommu) in alloc_ppr_log()
785 static void iommu_enable_ppr_log(struct amd_iommu *iommu) in iommu_enable_ppr_log()
805 static void __init free_ppr_log(struct amd_iommu *iommu) in free_ppr_log()
810 static void free_ga_log(struct amd_iommu *iommu) in free_ga_log()
818 static int iommu_ga_log_enable(struct amd_iommu *iommu) in iommu_ga_log_enable()
859 static int iommu_init_ga_log(struct amd_iommu *iommu) in iommu_init_ga_log()
884 static int __init alloc_cwwb_sem(struct amd_iommu *iommu) in alloc_cwwb_sem()
891 static void __init free_cwwb_sem(struct amd_iommu *iommu) in free_cwwb_sem()
897 static void iommu_enable_xt(struct amd_iommu *iommu) in iommu_enable_xt()
910 static void iommu_enable_gt(struct amd_iommu *iommu) in iommu_enable_gt()
942 struct amd_iommu *iommu; in copy_device_table() local
1048 static void __init set_iommu_for_device(struct amd_iommu *iommu, u16 devid) in set_iommu_for_device()
1057 static void __init set_dev_entry_from_acpi(struct amd_iommu *iommu, in set_dev_entry_from_acpi()
1191 static int __init init_iommu_from_acpi(struct amd_iommu *iommu, in init_iommu_from_acpi()
1458 static void __init free_iommu_one(struct amd_iommu *iommu) in free_iommu_one()
1470 struct amd_iommu *iommu, *next; in free_iommu_all() local
1485 static void amd_iommu_erratum_746_workaround(struct amd_iommu *iommu) in amd_iommu_erratum_746_workaround()
1516 static void amd_iommu_ats_write_check_workaround(struct amd_iommu *iommu) in amd_iommu_ats_write_check_workaround()
1542 static int __init init_iommu_one(struct amd_iommu *iommu, struct ivhd_header *h) in init_iommu_one()
1695 struct amd_iommu *iommu; in init_iommu_all() local
1729 static void init_iommu_perf_ctr(struct amd_iommu *iommu) in init_iommu_perf_ctr()
1752 struct amd_iommu *iommu = dev_to_amd_iommu(dev); in amd_iommu_show_cap() local
1761 struct amd_iommu *iommu = dev_to_amd_iommu(dev); in amd_iommu_show_features() local
1787 static void __init late_iommu_features_init(struct amd_iommu *iommu) in late_iommu_features_init()
1811 static int __init iommu_init_pci(struct amd_iommu *iommu) in iommu_init_pci()
1919 struct amd_iommu *iommu; in print_iommu_info() local
1952 struct amd_iommu *iommu; in amd_iommu_init_pci() local
1996 static int iommu_setup_msi(struct amd_iommu *iommu) in iommu_setup_msi()
2079 struct amd_iommu *iommu = irqd->chip_data; in intcapxt_unmask_irq() local
2100 struct amd_iommu *iommu = irqd->chip_data; in intcapxt_mask_irq() local
2167 static int iommu_setup_intcapxt(struct amd_iommu *iommu) in iommu_setup_intcapxt()
2198 static int iommu_init_irq(struct amd_iommu *iommu) in iommu_init_irq()
2358 static void iommu_init_flags(struct amd_iommu *iommu) in iommu_init_flags()
2385 static void iommu_apply_resume_quirks(struct amd_iommu *iommu) in iommu_apply_resume_quirks()
2428 static void iommu_enable_ga(struct amd_iommu *iommu) in iommu_enable_ga()
2446 static void early_enable_iommu(struct amd_iommu *iommu) in early_enable_iommu()
2470 struct amd_iommu *iommu; in early_enable_iommus() local
2522 struct amd_iommu *iommu; in enable_iommus_v2() local
2539 struct amd_iommu *iommu; in disable_iommus() local
2557 struct amd_iommu *iommu; in amd_iommu_resume() local
2842 struct amd_iommu *iommu; in amd_iommu_enable_interrupts() local
2959 struct amd_iommu *iommu; in state_next() local
3038 struct amd_iommu *iommu; in amd_iommu_init() local
3320 struct amd_iommu *iommu; in get_amd_iommu() local
3337 struct amd_iommu *iommu = get_amd_iommu(idx); in amd_iommu_pc_get_max_banks() local
3354 struct amd_iommu *iommu = get_amd_iommu(idx); in amd_iommu_pc_get_max_counters() local
3363 static int iommu_pc_get_set_reg(struct amd_iommu *iommu, u8 bank, u8 cntr, in iommu_pc_get_set_reg()
3401 int amd_iommu_pc_get_reg(struct amd_iommu *iommu, u8 bank, u8 cntr, u8 fxn, u64 *value) in amd_iommu_pc_get_reg()
3409 int amd_iommu_pc_set_reg(struct amd_iommu *iommu, u8 bank, u8 cntr, u8 fxn, u64 *value) in amd_iommu_pc_set_reg()