Lines Matching refs:tables
88 table_group->tables[0] = iommu_pseries_alloc_table(node); in iommu_pseries_alloc_group()
89 if (table_group->tables[0]) in iommu_pseries_alloc_group()
112 if (table_group->tables[0]) in iommu_pseries_free_group()
113 iommu_tce_table_put(table_group->tables[0]); in iommu_pseries_free_group()
115 if (table_group->tables[1]) in iommu_pseries_free_group()
116 iommu_tce_table_put(table_group->tables[1]); in iommu_pseries_free_group()
686 tbl = pci->table_group->tables[0]; in pci_dma_bus_setup_pSeries()
874 tbl = ppci->table_group->tables[0]; in pci_dma_bus_setup_pSeriesLP()
911 tbl = PCI_DN(dn)->table_group->tables[0]; in pci_dma_dev_setup_pSeries()
930 PCI_DN(dn)->table_group->tables[0]); in pci_dma_dev_setup_pSeries()
1477 if (iommu_table_in_use(pci->table_group->tables[0])) { in enable_ddw()
1614 iommu_tce_table_put(pci->table_group->tables[0]); in enable_ddw()
1615 pci->table_group->tables[0] = NULL; in enable_ddw()
1656 pci->table_group->tables[default_win_removed ? 0 : 1] = newtbl; in enable_ddw()
1809 tbl = pci->table_group->tables[0]; in pci_dma_dev_setup_pSeriesLP()
1828 set_iommu_table_base(&dev->dev, pci->table_group->tables[0]); in pci_dma_dev_setup_pSeriesLP()
1905 WARN_ON(!pci->table_group->tables[0] && !pci->table_group->tables[1]); in remove_dynamic_dma_windows()
1907 if (pci->table_group->tables[1]) { in remove_dynamic_dma_windows()
1908 iommu_tce_table_put(pci->table_group->tables[1]); in remove_dynamic_dma_windows()
1909 pci->table_group->tables[1] = NULL; in remove_dynamic_dma_windows()
1910 } else if (pci->table_group->tables[0]) { in remove_dynamic_dma_windows()
1912 iommu_tce_table_put(pci->table_group->tables[0]); in remove_dynamic_dma_windows()
1913 pci->table_group->tables[0] = NULL; in remove_dynamic_dma_windows()
1968 pci->table_group->tables[0] = tbl; in pseries_setup_default_iommu_config()
2073 table_group->tables[0] = tbl; in spapr_tce_create_table()
2144 pci->table_group->tables[num] = tbl; in spapr_tce_create_table()
2198 return tbl == table_group->tables[num] ? 0 : -EPERM; in spapr_tce_set_window()
2205 struct iommu_table *tbl = table_group->tables[num]; in spapr_tce_unset_window()
2245 iommu_tce_table_put(table_group->tables[num]); in spapr_tce_unset_window()
2246 table_group->tables[num] = NULL; in spapr_tce_unset_window()
2267 struct iommu_table *tbl = table_group->tables[0]; in spapr_tce_take_ownership()
2305 if (table_group->tables[0]) { in spapr_tce_take_ownership()
2308 table_group->tables[0] = NULL; in spapr_tce_take_ownership()
2319 struct iommu_table *tbl = table_group->tables[0]; in spapr_tce_release_ownership()