Home
last modified time | relevance | path

Searched refs:table_group (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/vfio/
A Dvfio_iommu_spapr_tce.c283 if (!table_group) in tce_iommu_enable()
625 ret = table_group->ops->create_table(table_group, num, in tce_iommu_create_table()
660 if (!table_group) in tce_iommu_create_window()
686 ret = table_group->ops->set_window(table_group, num, tbl); in tce_iommu_create_window()
701 table_group->ops->unset_window(table_group, num); in tce_iommu_create_window()
735 if (!table_group->ops || !table_group->ops->unset_window) in tce_iommu_remove_window()
738 table_group->ops->unset_window(table_group, num); in tce_iommu_remove_window()
764 if (!table_group) in tce_iommu_create_default_window()
1205 table_group->ops->unset_window(table_group, i); in tce_iommu_release_ownership()
1222 ret = table_group->ops->set_window(table_group, i, tbl); in tce_iommu_take_ownership()
[all …]
/linux/arch/powerpc/platforms/pseries/
A Diommu.c79 table_group = kzalloc_node(sizeof(*table_group), GFP_KERNEL, node); in iommu_pseries_alloc_group()
80 if (!table_group) in iommu_pseries_alloc_group()
89 if (table_group->tables[0]) in iommu_pseries_alloc_group()
90 return table_group; in iommu_pseries_alloc_group()
92 kfree(table_group); in iommu_pseries_alloc_group()
99 if (!table_group) in iommu_pseries_free_group()
103 if (table_group->group) { in iommu_pseries_free_group()
118 kfree(table_group); in iommu_pseries_free_group()
759 if (table_group == rpdn->table_group) in pci_dma_find_parent_node()
1734 struct iommu_table_group *table_group = PCI_DN(pdn)->table_group; in spapr_tce_init_table_group() local
[all …]
/linux/arch/powerpc/include/asm/
A Diommu.h174 long (*create_table)(struct iommu_table_group *table_group,
180 long (*set_window)(struct iommu_table_group *table_group,
183 long (*unset_window)(struct iommu_table_group *table_group,
186 long (*take_ownership)(struct iommu_table_group *table_group, struct device *dev);
188 void (*release_ownership)(struct iommu_table_group *table_group, struct device *dev);
194 struct iommu_table_group *table_group; member
212 extern void iommu_register_group(struct iommu_table_group *table_group,
214 extern int iommu_add_device(struct iommu_table_group *table_group,
228 static inline void iommu_register_group(struct iommu_table_group *table_group, in iommu_register_group() argument
234 static inline int iommu_add_device(struct iommu_table_group *table_group, in iommu_add_device() argument
A Dpci-bridge.h213 struct iommu_table_group *table_group; /* for phb's or bridges */ member
/linux/arch/powerpc/platforms/powernv/
A Dpci-ioda-tce.c371 struct iommu_table_group *table_group) in pnv_pci_unlink_table_and_group() argument
377 if (!tbl || !table_group) in pnv_pci_unlink_table_and_group()
385 if (tgl->table_group == table_group) { in pnv_pci_unlink_table_and_group()
400 if (table_group->tables[i] == tbl) { in pnv_pci_unlink_table_and_group()
402 table_group->tables[i] = NULL; in pnv_pci_unlink_table_and_group()
412 struct iommu_table_group *table_group) in pnv_pci_link_table_and_group() argument
416 if (WARN_ON(!tbl || !table_group)) in pnv_pci_link_table_and_group()
424 tgl->table_group = table_group; in pnv_pci_link_table_and_group()
427 table_group->tables[num] = iommu_tce_table_get(tbl); in pnv_pci_link_table_and_group()
A Dpci-ioda.c1045 if (pe->table_group.group) in pnv_pci_ioda_dma_dev_setup()
1281 table_group); in pnv_pci_ioda2_set_window()
1310 tbl, &pe->table_group); in pnv_pci_ioda2_set_window()
1349 table_group); in pnv_pci_ioda2_create_table()
1460 table_group); in pnv_pci_ioda2_unset_window()
1475 pnv_pci_unlink_table_and_group(table_group->tables[num], table_group); in pnv_pci_ioda2_unset_window()
1544 table_group); in pnv_ioda2_take_ownership()
1570 table_group); in pnv_ioda2_release_ownership()
1573 if (pe->table_group.tables[0]) in pnv_ioda2_release_ownership()
2370 if (pe->table_group.group) { in pnv_pci_ioda2_release_pe_dma()
[all …]
A Dpci.h79 struct iommu_table_group table_group; member
320 struct iommu_table_group *table_group);
322 struct iommu_table_group *table_group);
/linux/arch/powerpc/kernel/
A Diommu.c1013 struct iommu_table_group *table_group = iommu_data; in group_release() local
1015 table_group->group = NULL; in group_release()
1018 void iommu_register_group(struct iommu_table_group *table_group, in iommu_register_group() argument
1030 table_group->group = grp; in iommu_register_group()
1031 iommu_group_set_iommudata(grp, table_group, group_release); in iommu_register_group()
1161 struct iommu_table_group *table_group; in spapr_tce_platform_iommu_attach_dev() local
1169 table_group = iommu_group_get_iommudata(grp); in spapr_tce_platform_iommu_attach_dev()
1174 table_group->ops->release_ownership(table_group, dev); in spapr_tce_platform_iommu_attach_dev()
1194 struct iommu_table_group *table_group; in spapr_tce_blocked_iommu_attach_dev() local
1201 table_group = iommu_group_get_iommudata(grp); in spapr_tce_blocked_iommu_attach_dev()
[all …]
/linux/arch/powerpc/kvm/
A Dbook3s_64_vio.c87 struct iommu_table_group *table_group = NULL; in kvm_spapr_tce_release_iommu_group() local
92 table_group = iommu_group_get_iommudata(grp); in kvm_spapr_tce_release_iommu_group()
93 if (WARN_ON(!table_group)) in kvm_spapr_tce_release_iommu_group()
98 if (table_group->tables[i] != stit->tbl) in kvm_spapr_tce_release_iommu_group()
115 struct iommu_table_group *table_group; in kvm_spapr_tce_attach_iommu_group() local
138 table_group = iommu_group_get_iommudata(grp); in kvm_spapr_tce_attach_iommu_group()
139 if (WARN_ON(!table_group)) { in kvm_spapr_tce_attach_iommu_group()
145 struct iommu_table *tbltmp = table_group->tables[i]; in kvm_spapr_tce_attach_iommu_group()

Completed in 83 milliseconds