Lines Matching refs:pdn

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