Lines Matching refs:iommu_table

55 static void tce_invalidate_pSeries_sw(struct iommu_table *tbl,  in tce_invalidate_pSeries_sw()
84 static int tce_build_pSeries(struct iommu_table *tbl, long index, in tce_build_pSeries()
115 static void tce_free_pSeries(struct iommu_table *tbl, long index, long npages) in tce_free_pSeries()
128 static unsigned long tce_get_pseries(struct iommu_table *tbl, long index) in tce_get_pseries()
137 static void tce_free_pSeriesLP(struct iommu_table*, long, long);
138 static void tce_freemulti_pSeriesLP(struct iommu_table*, long, long);
140 static int tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum, in tce_build_pSeriesLP()
183 static int tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum, in tce_buildmulti_pSeriesLP()
260 static void tce_free_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) in tce_free_pSeriesLP()
279 static void tce_freemulti_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) in tce_freemulti_pSeriesLP()
294 static unsigned long tce_get_pSeriesLP(struct iommu_table *tbl, long tcenum) in tce_get_pSeriesLP()
460 struct iommu_table *tbl) in iommu_table_setparms()
525 struct iommu_table *tbl, in iommu_table_setparms_lpar()
543 struct iommu_table *tbl; in pci_dma_bus_setup_pSeries()
605 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_bus_setup_pSeries()
609 pci->iommu_table = iommu_init_table(tbl, pci->phb->node); in pci_dma_bus_setup_pSeries()
622 struct iommu_table *tbl; in pci_dma_bus_setup_pSeriesLP()
647 pdn->full_name, ppci->iommu_table); in pci_dma_bus_setup_pSeriesLP()
649 if (!ppci->iommu_table) { in pci_dma_bus_setup_pSeriesLP()
650 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_bus_setup_pSeriesLP()
653 ppci->iommu_table = iommu_init_table(tbl, ppci->phb->node); in pci_dma_bus_setup_pSeriesLP()
654 pr_debug(" created table: %p\n", ppci->iommu_table); in pci_dma_bus_setup_pSeriesLP()
662 struct iommu_table *tbl; in pci_dma_dev_setup_pSeries()
676 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_dev_setup_pSeries()
679 PCI_DN(dn)->iommu_table = iommu_init_table(tbl, phb->node); in pci_dma_dev_setup_pSeries()
680 set_iommu_table_base(&dev->dev, PCI_DN(dn)->iommu_table); in pci_dma_dev_setup_pSeries()
688 while (dn && PCI_DN(dn) && PCI_DN(dn)->iommu_table == NULL) in pci_dma_dev_setup_pSeries()
692 set_iommu_table_base(&dev->dev, PCI_DN(dn)->iommu_table); in pci_dma_dev_setup_pSeries()
1029 struct iommu_table *tbl; in pci_dma_dev_setup_pSeriesLP()
1044 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->iommu_table; in pci_dma_dev_setup_pSeriesLP()
1060 if (!pci->iommu_table) { in pci_dma_dev_setup_pSeriesLP()
1061 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_dev_setup_pSeriesLP()
1064 pci->iommu_table = iommu_init_table(tbl, pci->phb->node); in pci_dma_dev_setup_pSeriesLP()
1065 pr_debug(" created table: %p\n", pci->iommu_table); in pci_dma_dev_setup_pSeriesLP()
1067 pr_debug(" found DMA window, table: %p\n", pci->iommu_table); in pci_dma_dev_setup_pSeriesLP()
1070 set_iommu_table_base(&dev->dev, pci->iommu_table); in pci_dma_dev_setup_pSeriesLP()
1100 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->iommu_table; in dma_set_mask_pSeriesLP()
1144 for (; dn && PCI_DN(dn) && !PCI_DN(dn)->iommu_table; in dma_get_required_mask_pSeriesLP()
1215 if (pci && pci->iommu_table) in iommu_reconfig_notifier()
1216 iommu_free_table(pci->iommu_table, np->full_name); in iommu_reconfig_notifier()