Lines Matching refs:amd_iommu
166 struct amd_iommu *amd_iommus[MAX_IOMMUS];
206 struct amd_iommu **amd_iommu_rlookup_table;
259 bool translation_pre_enabled(struct amd_iommu *iommu) in translation_pre_enabled()
265 static void clear_translation_pre_enabled(struct amd_iommu *iommu) in clear_translation_pre_enabled()
270 static void init_translation_status(struct amd_iommu *iommu) in init_translation_status()
300 static u32 iommu_read_l1(struct amd_iommu *iommu, u16 l1, u8 address) in iommu_read_l1()
309 static void iommu_write_l1(struct amd_iommu *iommu, u16 l1, u8 address, u32 val) in iommu_write_l1()
316 static u32 iommu_read_l2(struct amd_iommu *iommu, u8 address) in iommu_read_l2()
325 static void iommu_write_l2(struct amd_iommu *iommu, u8 address, u32 val) in iommu_write_l2()
344 static void iommu_set_exclusion_range(struct amd_iommu *iommu) in iommu_set_exclusion_range()
363 static void iommu_set_device_table(struct amd_iommu *iommu) in iommu_set_device_table()
376 static void iommu_feature_enable(struct amd_iommu *iommu, u8 bit) in iommu_feature_enable()
385 static void iommu_feature_disable(struct amd_iommu *iommu, u8 bit) in iommu_feature_disable()
394 static void iommu_set_inv_tlb_timeout(struct amd_iommu *iommu, int timeout) in iommu_set_inv_tlb_timeout()
405 static void iommu_enable(struct amd_iommu *iommu) in iommu_enable()
410 static void iommu_disable(struct amd_iommu *iommu) in iommu_disable()
446 static void __init iommu_unmap_mmio_space(struct amd_iommu *iommu) in iommu_unmap_mmio_space()
596 static int __init alloc_command_buffer(struct amd_iommu *iommu) in alloc_command_buffer()
608 void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu) in amd_iommu_reset_cmd_buffer()
624 static void iommu_enable_command_buffer(struct amd_iommu *iommu) in iommu_enable_command_buffer()
642 static void iommu_disable_command_buffer(struct amd_iommu *iommu) in iommu_disable_command_buffer()
647 static void __init free_command_buffer(struct amd_iommu *iommu) in free_command_buffer()
653 static int __init alloc_event_buffer(struct amd_iommu *iommu) in alloc_event_buffer()
661 static void iommu_enable_event_buffer(struct amd_iommu *iommu) in iommu_enable_event_buffer()
682 static void iommu_disable_event_buffer(struct amd_iommu *iommu) in iommu_disable_event_buffer()
687 static void __init free_event_buffer(struct amd_iommu *iommu) in free_event_buffer()
693 static int __init alloc_ppr_log(struct amd_iommu *iommu) in alloc_ppr_log()
701 static void iommu_enable_ppr_log(struct amd_iommu *iommu) in iommu_enable_ppr_log()
721 static void __init free_ppr_log(struct amd_iommu *iommu) in free_ppr_log()
729 static void free_ga_log(struct amd_iommu *iommu) in free_ga_log()
741 static int iommu_ga_log_enable(struct amd_iommu *iommu) in iommu_ga_log_enable()
771 static int iommu_init_ga_log(struct amd_iommu *iommu) in iommu_init_ga_log()
805 static int iommu_init_ga(struct amd_iommu *iommu) in iommu_init_ga()
823 static void iommu_enable_xt(struct amd_iommu *iommu) in iommu_enable_xt()
836 static void iommu_enable_gt(struct amd_iommu *iommu) in iommu_enable_gt()
868 struct amd_iommu *iommu; in copy_device_table()
974 static void __init set_iommu_for_device(struct amd_iommu *iommu, u16 devid) in set_iommu_for_device()
983 static void __init set_dev_entry_from_acpi(struct amd_iommu *iommu, in set_dev_entry_from_acpi()
1119 struct amd_iommu *iommu = amd_iommu_rlookup_table[devid]; in set_device_exclusion_range()
1140 static int __init init_iommu_from_acpi(struct amd_iommu *iommu, in init_iommu_from_acpi()
1406 static void __init free_iommu_one(struct amd_iommu *iommu) in free_iommu_one()
1417 struct amd_iommu *iommu, *next; in free_iommu_all()
1432 static void amd_iommu_erratum_746_workaround(struct amd_iommu *iommu) in amd_iommu_erratum_746_workaround()
1463 static void amd_iommu_ats_write_check_workaround(struct amd_iommu *iommu) in amd_iommu_ats_write_check_workaround()
1489 static int __init init_iommu_one(struct amd_iommu *iommu, struct ivhd_header *h) in init_iommu_one()
1618 struct amd_iommu *iommu; in init_iommu_all()
1636 iommu = kzalloc(sizeof(struct amd_iommu), GFP_KERNEL); in init_iommu_all()
1652 static int iommu_pc_get_set_reg(struct amd_iommu *iommu, u8 bank, u8 cntr,
1655 static void init_iommu_perf_ctr(struct amd_iommu *iommu) in init_iommu_perf_ctr()
1685 struct amd_iommu *iommu = dev_to_amd_iommu(dev); in amd_iommu_show_cap()
1694 struct amd_iommu *iommu = dev_to_amd_iommu(dev); in amd_iommu_show_features()
1715 static int __init iommu_init_pci(struct amd_iommu *iommu) in iommu_init_pci()
1830 struct amd_iommu *iommu; in print_iommu_info()
1863 struct amd_iommu *iommu; in amd_iommu_init_pci()
1904 static int iommu_setup_msi(struct amd_iommu *iommu) in iommu_setup_msi()
1938 static void iommu_update_intcapxt(struct amd_iommu *iommu) in iommu_update_intcapxt()
1967 struct amd_iommu *iommu; in _irq_notifier_notify()
1981 static int iommu_init_intcapxt(struct amd_iommu *iommu) in iommu_init_intcapxt()
2012 static int iommu_init_msi(struct amd_iommu *iommu) in iommu_init_msi()
2186 static void iommu_init_flags(struct amd_iommu *iommu) in iommu_init_flags()
2213 static void iommu_apply_resume_quirks(struct amd_iommu *iommu) in iommu_apply_resume_quirks()
2256 static void iommu_enable_ga(struct amd_iommu *iommu) in iommu_enable_ga()
2274 static void early_enable_iommu(struct amd_iommu *iommu) in early_enable_iommu()
2298 struct amd_iommu *iommu; in early_enable_iommus()
2342 struct amd_iommu *iommu; in enable_iommus_v2()
2359 struct amd_iommu *iommu; in disable_iommus()
2377 struct amd_iommu *iommu; in amd_iommu_resume()
2656 struct amd_iommu *iommu; in amd_iommu_enable_interrupts()
2761 struct amd_iommu *iommu; in state_next()
2837 struct amd_iommu *iommu; in amd_iommu_init()
3056 struct amd_iommu *get_amd_iommu(unsigned int idx) in get_amd_iommu()
3059 struct amd_iommu *iommu; in get_amd_iommu()
3077 struct amd_iommu *iommu = get_amd_iommu(idx); in amd_iommu_pc_get_max_banks()
3094 struct amd_iommu *iommu = get_amd_iommu(idx); in amd_iommu_pc_get_max_counters()
3103 static int iommu_pc_get_set_reg(struct amd_iommu *iommu, u8 bank, u8 cntr, in iommu_pc_get_set_reg()
3141 int amd_iommu_pc_get_reg(struct amd_iommu *iommu, u8 bank, u8 cntr, u8 fxn, u64 *value) in amd_iommu_pc_get_reg()
3150 int amd_iommu_pc_set_reg(struct amd_iommu *iommu, u8 bank, u8 cntr, u8 fxn, u64 *value) in amd_iommu_pc_set_reg()