Searched refs:table_group (Results 1 – 9 of 9) sorted by relevance
/linux/drivers/vfio/ |
A D | vfio_iommu_spapr_tce.c | 626 ret = table_group->ops->create_table(table_group, num, in tce_iommu_create_table() 687 ret = table_group->ops->set_window(table_group, num, tbl); in tce_iommu_create_window() 702 table_group->ops->unset_window(table_group, num); in tce_iommu_create_window() 734 if (!table_group->ops || !table_group->ops->unset_window) in tce_iommu_remove_window() 737 table_group->ops->unset_window(table_group, num); in tce_iommu_remove_window() 1200 table_group->ops->unset_window(table_group, i); in tce_iommu_release_ownership_ddw() 1202 table_group->ops->release_ownership(table_group); in tce_iommu_release_ownership_ddw() 1216 table_group->ops->take_ownership(table_group); in tce_iommu_take_ownership_ddw() 1225 ret = table_group->ops->set_window(table_group, i, tbl); in tce_iommu_take_ownership_ddw() 1234 table_group->ops->unset_window(table_group, i); in tce_iommu_take_ownership_ddw() [all …]
|
/linux/arch/powerpc/platforms/pseries/ |
A D | iommu.c | 73 table_group = kzalloc_node(sizeof(*table_group), GFP_KERNEL, node); in iommu_pseries_alloc_group() 74 if (!table_group) in iommu_pseries_alloc_group() 78 if (table_group->tables[0]) in iommu_pseries_alloc_group() 79 return table_group; in iommu_pseries_alloc_group() 81 kfree(table_group); in iommu_pseries_alloc_group() 90 if (!table_group) in iommu_pseries_free_group() 93 tbl = table_group->tables[0]; in iommu_pseries_free_group() 95 if (table_group->group) { in iommu_pseries_free_group() 97 BUG_ON(table_group->group); in iommu_pseries_free_group() 102 kfree(table_group); in iommu_pseries_free_group() [all …]
|
/linux/arch/powerpc/include/asm/ |
A D | iommu.h | 168 long (*create_table)(struct iommu_table_group *table_group, 174 long (*set_window)(struct iommu_table_group *table_group, 177 long (*unset_window)(struct iommu_table_group *table_group, 180 void (*take_ownership)(struct iommu_table_group *table_group); 182 void (*release_ownership)(struct iommu_table_group *table_group); 188 struct iommu_table_group *table_group; member 206 extern void iommu_register_group(struct iommu_table_group *table_group, 208 extern int iommu_add_device(struct iommu_table_group *table_group, 221 static inline void iommu_register_group(struct iommu_table_group *table_group, in iommu_register_group() argument 227 static inline int iommu_add_device(struct iommu_table_group *table_group, in iommu_add_device() argument
|
A D | pci-bridge.h | 200 struct iommu_table_group *table_group; /* for phb's or bridges */ member
|
/linux/arch/powerpc/platforms/powernv/ |
A D | pci-ioda-tce.c | 372 struct iommu_table_group *table_group) in pnv_pci_unlink_table_and_group() argument 378 if (!tbl || !table_group) in pnv_pci_unlink_table_and_group() 386 if (tgl->table_group == table_group) { in pnv_pci_unlink_table_and_group() 401 if (table_group->tables[i] == tbl) { in pnv_pci_unlink_table_and_group() 403 table_group->tables[i] = NULL; in pnv_pci_unlink_table_and_group() 413 struct iommu_table_group *table_group) in pnv_pci_link_table_and_group() argument 417 if (WARN_ON(!tbl || !table_group)) in pnv_pci_link_table_and_group() 425 tgl->table_group = table_group; in pnv_pci_link_table_and_group() 428 table_group->tables[num] = iommu_tce_table_get(tbl); in pnv_pci_link_table_and_group()
|
A D | pci-ioda.c | 1157 if (pe->table_group.group) in pnv_pci_ioda_dma_dev_setup() 1640 table_group); in pnv_pci_ioda2_set_window() 1669 tbl, &pe->table_group); in pnv_pci_ioda2_set_window() 1708 table_group); in pnv_pci_ioda2_create_table() 1818 table_group); in pnv_pci_ioda2_unset_window() 1833 pnv_pci_unlink_table_and_group(table_group->tables[num], table_group); in pnv_pci_ioda2_unset_window() 1901 table_group); in pnv_ioda2_take_ownership() 1917 table_group); in pnv_ioda2_release_ownership() 2725 pnv_pci_unlink_table_and_group(table_group->tables[num], table_group); in pnv_pci_ioda1_unset_window() 2742 if (pe->table_group.group) { in pnv_pci_ioda1_release_pe_dma() [all …]
|
A D | pci.h | 80 struct iommu_table_group table_group; member 327 struct iommu_table_group *table_group); 329 struct iommu_table_group *table_group);
|
/linux/arch/powerpc/kvm/ |
A D | book3s_64_vio.c | 74 struct iommu_table_group *table_group = NULL; in kvm_spapr_tce_release_iommu_group() local 79 table_group = iommu_group_get_iommudata(grp); in kvm_spapr_tce_release_iommu_group() 80 if (WARN_ON(!table_group)) in kvm_spapr_tce_release_iommu_group() 85 if (table_group->tables[i] != stit->tbl) in kvm_spapr_tce_release_iommu_group() 102 struct iommu_table_group *table_group; in kvm_spapr_tce_attach_iommu_group() local 125 table_group = iommu_group_get_iommudata(grp); in kvm_spapr_tce_attach_iommu_group() 126 if (WARN_ON(!table_group)) in kvm_spapr_tce_attach_iommu_group() 130 struct iommu_table *tbltmp = table_group->tables[i]; in kvm_spapr_tce_attach_iommu_group()
|
/linux/arch/powerpc/kernel/ |
A D | iommu.c | 978 struct iommu_table_group *table_group = iommu_data; in group_release() local 980 table_group->group = NULL; in group_release() 983 void iommu_register_group(struct iommu_table_group *table_group, in iommu_register_group() argument 995 table_group->group = grp; in iommu_register_group() 996 iommu_group_set_iommudata(grp, table_group, group_release); in iommu_register_group() 1140 int iommu_add_device(struct iommu_table_group *table_group, struct device *dev) in iommu_add_device() argument 1158 __func__, dev_name(dev), iommu_group_id(table_group->group)); in iommu_add_device() 1160 return iommu_group_add_device(table_group->group, dev); in iommu_add_device()
|
Completed in 29 milliseconds