Lines Matching refs:iommu_table

54 static void tce_invalidate_pSeries_sw(struct iommu_table *tbl,  in tce_invalidate_pSeries_sw()
83 static int tce_build_pSeries(struct iommu_table *tbl, long index, in tce_build_pSeries()
114 static void tce_free_pSeries(struct iommu_table *tbl, long index, long npages) in tce_free_pSeries()
127 static unsigned long tce_get_pseries(struct iommu_table *tbl, long index) in tce_get_pseries()
136 static void tce_free_pSeriesLP(struct iommu_table*, long, long);
137 static void tce_freemulti_pSeriesLP(struct iommu_table*, long, long);
139 static int tce_build_pSeriesLP(struct iommu_table *tbl, long tcenum, in tce_build_pSeriesLP()
182 static int tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum, in tce_buildmulti_pSeriesLP()
265 static void tce_free_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) in tce_free_pSeriesLP()
284 static void tce_freemulti_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) in tce_freemulti_pSeriesLP()
299 static unsigned long tce_get_pSeriesLP(struct iommu_table *tbl, long tcenum) in tce_get_pSeriesLP()
467 struct iommu_table *tbl) in iommu_table_setparms()
533 struct iommu_table *tbl, in iommu_table_setparms_lpar()
552 struct iommu_table *tbl; in pci_dma_bus_setup_pSeries()
613 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_bus_setup_pSeries()
617 pci->iommu_table = iommu_init_table(tbl, pci->phb->node); in pci_dma_bus_setup_pSeries()
631 struct iommu_table *tbl; in pci_dma_bus_setup_pSeriesLP()
656 pdn->full_name, ppci->iommu_table); in pci_dma_bus_setup_pSeriesLP()
658 if (!ppci->iommu_table) { in pci_dma_bus_setup_pSeriesLP()
659 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_bus_setup_pSeriesLP()
662 ppci->iommu_table = iommu_init_table(tbl, ppci->phb->node); in pci_dma_bus_setup_pSeriesLP()
664 pr_debug(" created table: %p\n", ppci->iommu_table); in pci_dma_bus_setup_pSeriesLP()
672 struct iommu_table *tbl; in pci_dma_dev_setup_pSeries()
686 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_dev_setup_pSeries()
689 PCI_DN(dn)->iommu_table = iommu_init_table(tbl, phb->node); in pci_dma_dev_setup_pSeries()
692 PCI_DN(dn)->iommu_table); in pci_dma_dev_setup_pSeries()
700 while (dn && PCI_DN(dn) && PCI_DN(dn)->iommu_table == NULL) in pci_dma_dev_setup_pSeries()
705 PCI_DN(dn)->iommu_table); in pci_dma_dev_setup_pSeries()
1076 struct iommu_table *tbl; in pci_dma_dev_setup_pSeriesLP()
1091 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->iommu_table; in pci_dma_dev_setup_pSeriesLP()
1107 if (!pci->iommu_table) { in pci_dma_dev_setup_pSeriesLP()
1108 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, in pci_dma_dev_setup_pSeriesLP()
1111 pci->iommu_table = iommu_init_table(tbl, pci->phb->node); in pci_dma_dev_setup_pSeriesLP()
1113 pr_debug(" created table: %p\n", pci->iommu_table); in pci_dma_dev_setup_pSeriesLP()
1115 pr_debug(" found DMA window, table: %p\n", pci->iommu_table); in pci_dma_dev_setup_pSeriesLP()
1118 set_iommu_table_base_and_group(&dev->dev, pci->iommu_table); in pci_dma_dev_setup_pSeriesLP()
1148 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->iommu_table; in dma_set_mask_pSeriesLP()
1192 for (; dn && PCI_DN(dn) && !PCI_DN(dn)->iommu_table; in dma_get_required_mask_pSeriesLP()
1272 if (pci && pci->iommu_table) in iommu_reconfig_notifier()
1273 iommu_free_table(pci->iommu_table, np->full_name); in iommu_reconfig_notifier()