Lines Matching refs:pdn
714 struct device_node *dn, *pdn; in pci_dma_bus_setup_pSeriesLP() local
724 for (pdn = dn; pdn != NULL; pdn = pdn->parent) { in pci_dma_bus_setup_pSeriesLP()
725 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_bus_setup_pSeriesLP()
735 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP()
738 pdn->full_name, ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
743 iommu_table_setparms_lpar(ppci->phb, pdn, tbl, dma_window); in pci_dma_bus_setup_pSeriesLP()
859 static u64 find_existing_ddw(struct device_node *pdn) in find_existing_ddw() argument
868 if (window->device == pdn) { in find_existing_ddw()
882 struct device_node *pdn; in find_existing_ddw_windows() local
889 for_each_node_with_property(pdn, DIRECT64_PROPNAME) { in find_existing_ddw_windows()
890 direct64 = of_get_property(pdn, DIRECT64_PROPNAME, &len); in find_existing_ddw_windows()
897 remove_ddw(pdn, true); in find_existing_ddw_windows()
901 window->device = pdn; in find_existing_ddw_windows()
977 struct device_node *pdn; member
994 static u64 enable_ddw(struct pci_dev *dev, struct device_node *pdn) in enable_ddw() argument
1010 dma_addr = find_existing_ddw(pdn); in enable_ddw()
1022 if (!strcmp(fpdn->pdn->full_name, pdn->full_name)) in enable_ddw()
1034 ret = of_property_read_u32_array(pdn, "ibm,ddw-applicable", in enable_ddw()
1120 ret = of_add_property(pdn, win64); in enable_ddw()
1123 pdn->full_name, ret); in enable_ddw()
1127 window->device = pdn; in enable_ddw()
1140 remove_ddw(pdn, true); in enable_ddw()
1152 fpdn->pdn = pdn; in enable_ddw()
1162 struct device_node *pdn, *dn; in pci_dma_dev_setup_pSeriesLP() local
1178 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; in pci_dma_dev_setup_pSeriesLP()
1179 pdn = pdn->parent) { in pci_dma_dev_setup_pSeriesLP()
1180 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_dev_setup_pSeriesLP()
1185 if (!pdn || !PCI_DN(pdn)) { in pci_dma_dev_setup_pSeriesLP()
1191 pr_debug(" parent is %s\n", pdn->full_name); in pci_dma_dev_setup_pSeriesLP()
1193 pci = PCI_DN(pdn); in pci_dma_dev_setup_pSeriesLP()
1197 iommu_table_setparms_lpar(pci->phb, pdn, tbl, dma_window); in pci_dma_dev_setup_pSeriesLP()
1214 struct device_node *pdn, *dn; in dma_set_mask_pSeriesLP() local
1238 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; in dma_set_mask_pSeriesLP()
1239 pdn = pdn->parent) { in dma_set_mask_pSeriesLP()
1240 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in dma_set_mask_pSeriesLP()
1244 if (pdn && PCI_DN(pdn)) { in dma_set_mask_pSeriesLP()
1245 dma_offset = enable_ddw(pdev, pdn); in dma_set_mask_pSeriesLP()