• Home
  • Raw
  • Download

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()
794 if (!pdn) { in pci_dma_bus_setup_pSeriesLP()
799 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP()
802 pdn, ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
961 static bool find_existing_ddw(struct device_node *pdn, u64 *dma_addr, int *window_shift, in find_existing_ddw() argument
971 if (window->device == pdn) { in find_existing_ddw()
985 static struct dma_win *ddw_list_new_entry(struct device_node *pdn, in ddw_list_new_entry() argument
994 window->device = pdn; in ddw_list_new_entry()
1004 struct device_node *pdn; in find_existing_ddw_windows_named() local
1008 for_each_node_with_property(pdn, name) { in find_existing_ddw_windows_named()
1009 dma64 = of_get_property(pdn, name, &len); in find_existing_ddw_windows_named()
1011 remove_ddw(pdn, true, name); in find_existing_ddw_windows_named()
1021 window = ddw_list_new_entry(pdn, dma64); in find_existing_ddw_windows_named()
1023 of_node_put(pdn); in find_existing_ddw_windows_named()
1086 struct pci_dn *pdn; in query_ddw() local
1109 pdn = PCI_DN(dn); in query_ddw()
1110 buid = pdn->phb->buid; in query_ddw()
1111 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw()
1145 struct pci_dn *pdn; in create_ddw() local
1157 pdn = PCI_DN(dn); in create_ddw()
1158 buid = pdn->phb->buid; in create_ddw()
1159 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in create_ddw()
1178 struct device_node *pdn; member
1209 struct pci_dn *pdn; in reset_dma_window() local
1216 pdn = PCI_DN(dn); in reset_dma_window()
1217 buid = pdn->phb->buid; in reset_dma_window()
1218 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window()
1291 * pdn: the parent pe node with the ibm,dma_window property
1296 static bool enable_ddw(struct pci_dev *dev, struct device_node *pdn) in enable_ddw() argument
1312 struct pci_dn *pci = PCI_DN(pdn); in enable_ddw()
1321 if (find_existing_ddw(pdn, &dev->dev.archdata.dma_offset, &len, &direct_mapping)) in enable_ddw()
1332 if (fpdn->pdn == pdn) in enable_ddw()
1344 ret = of_property_read_u32_array(pdn, "ibm,ddw-applicable", in enable_ddw()
1356 ret = query_ddw(dev, ddw_avail, &query, pdn); in enable_ddw()
1376 default_win = of_find_property(pdn, "ibm,dma-window", NULL); in enable_ddw()
1380 reset_win_ext = ddw_read_ext(pdn, DDW_EXT_RESET_DMA_WIN, NULL); in enable_ddw()
1384 remove_dma_window(pdn, ddw_avail, default_win); in enable_ddw()
1388 ret = query_ddw(dev, ddw_avail, &query, pdn); in enable_ddw()
1455 ret = of_add_property(pdn, win64); in enable_ddw()
1458 pdn, ret); in enable_ddw()
1462 window = ddw_list_new_entry(pdn, win64->value); in enable_ddw()
1477 clean_dma_window(pdn, win64->value); in enable_ddw()
1519 of_remove_property(pdn, default_win); in enable_ddw()
1520 dev_info(&dev->dev, "Removed default DMA window for %pOF\n", pdn); in enable_ddw()
1534 of_remove_property(pdn, win64); in enable_ddw()
1543 __remove_dma_window(pdn, ddw_avail, create.liobn); in enable_ddw()
1547 reset_dma_window(dev, pdn); in enable_ddw()
1552 fpdn->pdn = pdn; in enable_ddw()
1571 struct device_node *pdn, *dn; in pci_dma_dev_setup_pSeriesLP() local
1587 pdn = pci_dma_find(dn, &prop); in pci_dma_dev_setup_pSeriesLP()
1588 if (!pdn || !PCI_DN(pdn)) { in pci_dma_dev_setup_pSeriesLP()
1594 pr_debug(" parent is %pOF\n", pdn); in pci_dma_dev_setup_pSeriesLP()
1596 pci = PCI_DN(pdn); in pci_dma_dev_setup_pSeriesLP()
1629 struct device_node *dn = pci_device_to_OF_node(pdev), *pdn; in iommu_bypass_supported_pSeriesLP() local
1643 pdn = pci_dma_find(dn, NULL); in iommu_bypass_supported_pSeriesLP()
1644 if (pdn && PCI_DN(pdn)) in iommu_bypass_supported_pSeriesLP()
1645 return enable_ddw(pdev, pdn); in iommu_bypass_supported_pSeriesLP()
1789 struct device_node *pdn, *dn = pdev->dev.of_node; in pSeries_pci_device_group() local
1793 pdn = pci_dma_find(dn, NULL); in pSeries_pci_device_group()
1794 if (!pdn || !PCI_DN(pdn)) in pSeries_pci_device_group()
1797 pci = PCI_DN(pdn); in pSeries_pci_device_group()