Lines Matching refs:amd_iommu

122 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()
159 static struct amd_iommu *__rlookup_amd_iommu(u16 seg, u16 devid) in __rlookup_amd_iommu()
170 static struct amd_iommu *rlookup_amd_iommu(struct device *dev) in rlookup_amd_iommu()
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()
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()
375 static int iommu_init_device(struct amd_iommu *iommu, struct device *dev) in iommu_init_device()
411 static void iommu_ignore_device(struct amd_iommu *iommu, struct device *dev) in iommu_ignore_device()
453 static void dump_dte_entry(struct amd_iommu *iommu, u16 devid) in dump_dte_entry()
471 static void amd_iommu_report_rmp_hw_error(struct amd_iommu *iommu, volatile u32 *event) in amd_iommu_report_rmp_hw_error()
503 static void amd_iommu_report_rmp_fault(struct amd_iommu *iommu, volatile u32 *event) in amd_iommu_report_rmp_fault()
542 static void amd_iommu_report_page_fault(struct amd_iommu *iommu, in amd_iommu_report_page_fault()
593 static void iommu_print_event(struct amd_iommu *iommu, void *__evt) in iommu_print_event()
689 static void iommu_poll_events(struct amd_iommu *iommu) in iommu_poll_events()
704 static void iommu_handle_ppr_entry(struct amd_iommu *iommu, u64 *raw) in iommu_handle_ppr_entry()
722 static void iommu_poll_ppr_log(struct amd_iommu *iommu) in iommu_poll_ppr_log()
787 static void iommu_poll_ga_log(struct amd_iommu *iommu) in iommu_poll_ga_log()
830 amd_iommu_set_pci_msi_domain(struct device *dev, struct amd_iommu *iommu) in amd_iommu_set_pci_msi_domain()
841 amd_iommu_set_pci_msi_domain(struct device *dev, struct amd_iommu *iommu) { } in amd_iommu_set_pci_msi_domain()
846 void (*int_handler)(struct amd_iommu *), in amd_iommu_handle_irq() argument
847 void (*overflow_handler)(struct amd_iommu *)) in amd_iommu_handle_irq() argument
849 struct amd_iommu *iommu = (struct amd_iommu *) data; in amd_iommu_handle_irq()
932 static int wait_on_sem(struct amd_iommu *iommu, u64 data) in wait_on_sem()
949 static void copy_cmd_to_buffer(struct amd_iommu *iommu, in copy_cmd_to_buffer()
968 struct amd_iommu *iommu, in build_completion_wait()
1129 static int __iommu_queue_command_sync(struct amd_iommu *iommu, in __iommu_queue_command_sync()
1166 static int iommu_queue_command_sync(struct amd_iommu *iommu, in iommu_queue_command_sync()
1180 static int iommu_queue_command(struct amd_iommu *iommu, struct iommu_cmd *cmd) in iommu_queue_command()
1189 static int iommu_completion_wait(struct amd_iommu *iommu) in iommu_completion_wait()
1216 static int iommu_flush_dte(struct amd_iommu *iommu, u16 devid) in iommu_flush_dte()
1225 static void amd_iommu_flush_dte_all(struct amd_iommu *iommu) in amd_iommu_flush_dte_all()
1240 static void amd_iommu_flush_tlb_all(struct amd_iommu *iommu) in amd_iommu_flush_tlb_all()
1255 static void amd_iommu_flush_tlb_domid(struct amd_iommu *iommu, u32 dom_id) in amd_iommu_flush_tlb_domid()
1266 static void amd_iommu_flush_all(struct amd_iommu *iommu) in amd_iommu_flush_all()
1276 static void iommu_flush_irt(struct amd_iommu *iommu, u16 devid) in iommu_flush_irt()
1285 static void amd_iommu_flush_irt_all(struct amd_iommu *iommu) in amd_iommu_flush_irt_all()
1299 void iommu_flush_all_caches(struct amd_iommu *iommu) in iommu_flush_all_caches()
1316 struct amd_iommu *iommu; in device_flush_iotlb()
1332 struct amd_iommu *iommu = data; in device_flush_dte_alias()
1342 struct amd_iommu *iommu; in device_flush_dte()
1580 static void set_dte_entry(struct amd_iommu *iommu, u16 devid, in set_dte_entry()
1664 static void clear_dte_entry(struct amd_iommu *iommu, u16 devid) in clear_dte_entry()
1682 struct amd_iommu *iommu; in do_attach()
1713 struct amd_iommu *iommu; in do_detach()
1904 struct amd_iommu *iommu; in amd_iommu_probe_device()
1946 struct amd_iommu *iommu; in amd_iommu_release_device()
1978 struct amd_iommu *iommu = rlookup_amd_iommu(dev_data->dev); in update_device_table()
2205 struct amd_iommu *iommu = rlookup_amd_iommu(dev); in amd_iommu_attach_device()
2347 struct amd_iommu *iommu; in amd_iommu_get_resv_regions()
2605 struct amd_iommu *iommu; in __flush_pasid()
2776 struct amd_iommu *iommu; in amd_iommu_complete_ppr()
2844 static void iommu_flush_irt_and_complete(struct amd_iommu *iommu, u16 devid) in iommu_flush_irt_and_complete()
2870 static void set_dte_irq_entry(struct amd_iommu *iommu, u16 devid, in set_dte_irq_entry()
2886 static struct irq_remap_table *get_irq_table(struct amd_iommu *iommu, u16 devid) in get_irq_table()
2928 static void set_remap_table_entry(struct amd_iommu *iommu, u16 devid, in set_remap_table_entry()
2943 struct amd_iommu *iommu = rlookup_amd_iommu(&pdev->dev); in set_remap_table_entry_alias()
2956 static struct irq_remap_table *alloc_irq_table(struct amd_iommu *iommu, in alloc_irq_table()
3022 static int alloc_irq_index(struct amd_iommu *iommu, u16 devid, int count, in alloc_irq_index()
3068 static int modify_irte_ga(struct amd_iommu *iommu, u16 devid, int index, in modify_irte_ga()
3101 static int modify_irte(struct amd_iommu *iommu, in modify_irte()
3120 static void free_irte(struct amd_iommu *iommu, u16 devid, int index) in free_irte()
3166 static void irte_activate(struct amd_iommu *iommu, void *entry, u16 devid, u16 index) in irte_activate()
3174 static void irte_ga_activate(struct amd_iommu *iommu, void *entry, u16 devid, u16 index) in irte_ga_activate()
3182 static void irte_deactivate(struct amd_iommu *iommu, void *entry, u16 devid, u16 index) in irte_deactivate()
3190 static void irte_ga_deactivate(struct amd_iommu *iommu, void *entry, u16 devid, u16 index) in irte_ga_deactivate()
3198 static void irte_set_affinity(struct amd_iommu *iommu, void *entry, u16 devid, u16 index, in irte_set_affinity()
3208 static void irte_ga_set_affinity(struct amd_iommu *iommu, void *entry, u16 devid, u16 index, in irte_ga_set_affinity()
3307 struct amd_iommu *iommu = data->iommu; in irq_remapping_prepare_irte()
3358 struct amd_iommu *iommu; in irq_remapping_alloc()
3484 static void amd_ir_update_irte(struct irq_data *irqd, struct amd_iommu *iommu,
3494 struct amd_iommu *iommu = data->iommu; in irq_remapping_activate()
3511 struct amd_iommu *iommu = data->iommu; in irq_remapping_deactivate()
3521 struct amd_iommu *iommu; in irq_remapping_select()
3660 static void amd_ir_update_irte(struct irq_data *irqd, struct amd_iommu *iommu, in amd_ir_update_irte()
3682 struct amd_iommu *iommu = ir_data->iommu; in amd_ir_set_affinity()
3733 int amd_iommu_create_irq_domain(struct amd_iommu *iommu) in amd_iommu_create_irq_domain()