Lines Matching full:pdn
774 struct device_node *dn, *pdn; in pci_dma_bus_setup_pSeriesLP() local
783 pdn = pci_dma_find(dn, &prop); in pci_dma_bus_setup_pSeriesLP()
791 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP()
794 pdn, ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
953 static bool find_existing_ddw(struct device_node *pdn, u64 *dma_addr, int *window_shift, in find_existing_ddw() argument
963 if (window->device == pdn) { in find_existing_ddw()
977 static struct dma_win *ddw_list_new_entry(struct device_node *pdn, in ddw_list_new_entry() argument
986 window->device = pdn; in ddw_list_new_entry()
996 struct device_node *pdn; in find_existing_ddw_windows_named() local
1000 for_each_node_with_property(pdn, name) { in find_existing_ddw_windows_named()
1001 dma64 = of_get_property(pdn, name, &len); in find_existing_ddw_windows_named()
1003 remove_ddw(pdn, true, name); in find_existing_ddw_windows_named()
1013 window = ddw_list_new_entry(pdn, dma64); in find_existing_ddw_windows_named()
1015 of_node_put(pdn); in find_existing_ddw_windows_named()
1078 struct pci_dn *pdn; in query_ddw() local
1101 pdn = PCI_DN(dn); in query_ddw()
1102 buid = pdn->phb->buid; in query_ddw()
1103 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw()
1137 struct pci_dn *pdn; in create_ddw() local
1149 pdn = PCI_DN(dn); in create_ddw()
1150 buid = pdn->phb->buid; in create_ddw()
1151 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in create_ddw()
1170 struct device_node *pdn; member
1205 struct pci_dn *pdn; in reset_dma_window() local
1212 pdn = PCI_DN(dn); in reset_dma_window()
1213 buid = pdn->phb->buid; in reset_dma_window()
1214 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window()
1287 * pdn: the parent pe node with the ibm,dma_window property
1292 static bool enable_ddw(struct pci_dev *dev, struct device_node *pdn) in enable_ddw() argument
1308 struct pci_dn *pci = PCI_DN(pdn); in enable_ddw()
1317 if (find_existing_ddw(pdn, &dev->dev.archdata.dma_offset, &len, &direct_mapping)) in enable_ddw()
1328 if (fpdn->pdn == pdn) in enable_ddw()
1340 ret = of_property_read_u32_array(pdn, "ibm,ddw-applicable", in enable_ddw()
1352 ret = query_ddw(dev, ddw_avail, &query, pdn); in enable_ddw()
1372 default_win = of_find_property(pdn, "ibm,dma-window", NULL); in enable_ddw()
1376 reset_win_ext = ddw_read_ext(pdn, DDW_EXT_RESET_DMA_WIN, NULL); in enable_ddw()
1380 remove_dma_window(pdn, ddw_avail, default_win); in enable_ddw()
1384 ret = query_ddw(dev, ddw_avail, &query, pdn); in enable_ddw()
1451 ret = of_add_property(pdn, win64); in enable_ddw()
1454 pdn, ret); in enable_ddw()
1458 window = ddw_list_new_entry(pdn, win64->value); in enable_ddw()
1473 clean_dma_window(pdn, win64->value); in enable_ddw()
1515 of_remove_property(pdn, default_win); in enable_ddw()
1516 dev_info(&dev->dev, "Removed default DMA window for %pOF\n", pdn); in enable_ddw()
1530 of_remove_property(pdn, win64); in enable_ddw()
1539 __remove_dma_window(pdn, ddw_avail, create.liobn); in enable_ddw()
1543 reset_dma_window(dev, pdn); in enable_ddw()
1548 fpdn->pdn = pdn; in enable_ddw()
1567 struct device_node *pdn, *dn; in pci_dma_dev_setup_pSeriesLP() local
1583 pdn = pci_dma_find(dn, &prop); in pci_dma_dev_setup_pSeriesLP()
1584 if (!pdn || !PCI_DN(pdn)) { in pci_dma_dev_setup_pSeriesLP()
1590 pr_debug(" parent is %pOF\n", pdn); in pci_dma_dev_setup_pSeriesLP()
1592 pci = PCI_DN(pdn); in pci_dma_dev_setup_pSeriesLP()
1625 struct device_node *dn = pci_device_to_OF_node(pdev), *pdn; in iommu_bypass_supported_pSeriesLP() local
1639 pdn = pci_dma_find(dn, NULL); in iommu_bypass_supported_pSeriesLP()
1640 if (pdn && PCI_DN(pdn)) in iommu_bypass_supported_pSeriesLP()
1641 return enable_ddw(pdev, pdn); in iommu_bypass_supported_pSeriesLP()
1778 struct device_node *pdn, *dn = pdev->dev.of_node; in pSeries_pci_device_group() local
1782 pdn = pci_dma_find(dn, NULL); in pSeries_pci_device_group()
1783 if (!pdn || !PCI_DN(pdn)) in pSeries_pci_device_group()
1786 pci = PCI_DN(pdn); in pSeries_pci_device_group()