• Home
  • Raw
  • Download

Lines Matching full:pdn

691 	struct device_node *dn, *pdn;  in pci_dma_bus_setup_pSeriesLP()  local
701 for (pdn = dn; pdn != NULL; pdn = pdn->parent) { in pci_dma_bus_setup_pSeriesLP()
702 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_bus_setup_pSeriesLP()
712 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP()
715 pdn, ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
720 iommu_table_setparms_lpar(ppci->phb, pdn, tbl, in pci_dma_bus_setup_pSeriesLP()
842 static u64 find_existing_ddw(struct device_node *pdn) in find_existing_ddw() argument
851 if (window->device == pdn) { in find_existing_ddw()
865 struct device_node *pdn; in find_existing_ddw_windows() local
872 for_each_node_with_property(pdn, DIRECT64_PROPNAME) { in find_existing_ddw_windows()
873 direct64 = of_get_property(pdn, DIRECT64_PROPNAME, &len); in find_existing_ddw_windows()
880 remove_ddw(pdn, true); in find_existing_ddw_windows()
884 window->device = pdn; in find_existing_ddw_windows()
936 struct pci_dn *pdn; in query_ddw() local
959 pdn = PCI_DN(dn); in query_ddw()
960 buid = pdn->phb->buid; in query_ddw()
961 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw()
993 struct pci_dn *pdn; in create_ddw() local
1005 pdn = PCI_DN(dn); in create_ddw()
1006 buid = pdn->phb->buid; in create_ddw()
1007 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in create_ddw()
1026 struct device_node *pdn; member
1072 struct pci_dn *pdn; in reset_dma_window() local
1079 pdn = PCI_DN(dn); in reset_dma_window()
1080 buid = pdn->phb->buid; in reset_dma_window()
1081 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window()
1098 * pdn: the parent pe node with the ibm,dma_window property
1103 static u64 enable_ddw(struct pci_dev *dev, struct device_node *pdn) in enable_ddw() argument
1120 dma_addr = find_existing_ddw(pdn); in enable_ddw()
1132 if (fpdn->pdn == pdn) in enable_ddw()
1144 ret = of_property_read_u32_array(pdn, "ibm,ddw-applicable", in enable_ddw()
1156 ret = query_ddw(dev, ddw_avail, &query, pdn); in enable_ddw()
1171 default_win = of_find_property(pdn, "ibm,dma-window", NULL); in enable_ddw()
1175 reset_win_ext = ddw_read_ext(pdn, DDW_EXT_RESET_DMA_WIN, NULL); in enable_ddw()
1179 remove_dma_window(pdn, ddw_avail, default_win); in enable_ddw()
1183 ret = query_ddw(dev, ddw_avail, &query, pdn); in enable_ddw()
1254 ret = of_add_property(pdn, win64); in enable_ddw()
1257 pdn, ret); in enable_ddw()
1261 window->device = pdn; in enable_ddw()
1274 remove_ddw(pdn, true); in enable_ddw()
1283 reset_dma_window(dev, pdn); in enable_ddw()
1288 fpdn->pdn = pdn; in enable_ddw()
1298 struct device_node *pdn, *dn; in pci_dma_dev_setup_pSeriesLP() local
1314 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; in pci_dma_dev_setup_pSeriesLP()
1315 pdn = pdn->parent) { in pci_dma_dev_setup_pSeriesLP()
1316 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_dev_setup_pSeriesLP()
1321 if (!pdn || !PCI_DN(pdn)) { in pci_dma_dev_setup_pSeriesLP()
1327 pr_debug(" parent is %pOF\n", pdn); in pci_dma_dev_setup_pSeriesLP()
1329 pci = PCI_DN(pdn); in pci_dma_dev_setup_pSeriesLP()
1333 iommu_table_setparms_lpar(pci->phb, pdn, tbl, in pci_dma_dev_setup_pSeriesLP()
1350 struct device_node *dn = pci_device_to_OF_node(pdev), *pdn; in iommu_bypass_supported_pSeriesLP() local
1365 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; in iommu_bypass_supported_pSeriesLP()
1366 pdn = pdn->parent) { in iommu_bypass_supported_pSeriesLP()
1367 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in iommu_bypass_supported_pSeriesLP()
1372 if (pdn && PCI_DN(pdn)) { in iommu_bypass_supported_pSeriesLP()
1373 pdev->dev.archdata.dma_offset = enable_ddw(pdev, pdn); in iommu_bypass_supported_pSeriesLP()