• Home
  • Raw
  • Download

Lines Matching refs:table_group

44 	struct iommu_table_group *table_group;  in iommu_pseries_alloc_group()  local
47 table_group = kzalloc_node(sizeof(struct iommu_table_group), GFP_KERNEL, in iommu_pseries_alloc_group()
49 if (!table_group) in iommu_pseries_alloc_group()
59 table_group->tables[0] = tbl; in iommu_pseries_alloc_group()
61 return table_group; in iommu_pseries_alloc_group()
64 kfree(table_group); in iommu_pseries_alloc_group()
68 static void iommu_pseries_free_group(struct iommu_table_group *table_group, in iommu_pseries_free_group() argument
73 if (!table_group) in iommu_pseries_free_group()
76 tbl = table_group->tables[0]; in iommu_pseries_free_group()
78 if (table_group->group) { in iommu_pseries_free_group()
79 iommu_group_put(table_group->group); in iommu_pseries_free_group()
80 BUG_ON(table_group->group); in iommu_pseries_free_group()
85 kfree(table_group); in iommu_pseries_free_group()
533 struct iommu_table_group *table_group, in iommu_table_setparms_lpar() argument
548 table_group->tce32_start = offset; in iommu_table_setparms_lpar()
549 table_group->tce32_size = size; in iommu_table_setparms_lpar()
622 pci->table_group = iommu_pseries_alloc_group(pci->phb->node); in pci_dma_bus_setup_pSeries()
623 tbl = pci->table_group->tables[0]; in pci_dma_bus_setup_pSeries()
701 pdn, ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
703 if (!ppci->table_group) { in pci_dma_bus_setup_pSeriesLP()
704 ppci->table_group = iommu_pseries_alloc_group(ppci->phb->node); in pci_dma_bus_setup_pSeriesLP()
705 tbl = ppci->table_group->tables[0]; in pci_dma_bus_setup_pSeriesLP()
707 ppci->table_group, dma_window); in pci_dma_bus_setup_pSeriesLP()
710 iommu_register_group(ppci->table_group, in pci_dma_bus_setup_pSeriesLP()
712 pr_debug(" created table: %p\n", ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
734 PCI_DN(dn)->table_group = iommu_pseries_alloc_group(phb->node); in pci_dma_dev_setup_pSeries()
735 tbl = PCI_DN(dn)->table_group->tables[0]; in pci_dma_dev_setup_pSeries()
747 while (dn && PCI_DN(dn) && PCI_DN(dn)->table_group == NULL) in pci_dma_dev_setup_pSeries()
752 PCI_DN(dn)->table_group->tables[0]); in pci_dma_dev_setup_pSeries()
1166 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; in pci_dma_dev_setup_pSeriesLP()
1182 if (!pci->table_group) { in pci_dma_dev_setup_pSeriesLP()
1183 pci->table_group = iommu_pseries_alloc_group(pci->phb->node); in pci_dma_dev_setup_pSeriesLP()
1184 tbl = pci->table_group->tables[0]; in pci_dma_dev_setup_pSeriesLP()
1186 pci->table_group, dma_window); in pci_dma_dev_setup_pSeriesLP()
1189 iommu_register_group(pci->table_group, in pci_dma_dev_setup_pSeriesLP()
1191 pr_debug(" created table: %p\n", pci->table_group); in pci_dma_dev_setup_pSeriesLP()
1193 pr_debug(" found DMA window, table: %p\n", pci->table_group); in pci_dma_dev_setup_pSeriesLP()
1196 set_iommu_table_base(&dev->dev, pci->table_group->tables[0]); in pci_dma_dev_setup_pSeriesLP()
1197 iommu_add_device(pci->table_group, &dev->dev); in pci_dma_dev_setup_pSeriesLP()
1217 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; in iommu_bypass_supported_pSeriesLP()
1291 if (pci && pci->table_group) in iommu_reconfig_notifier()
1292 iommu_pseries_free_group(pci->table_group, in iommu_reconfig_notifier()