Lines Matching refs:pdn

632 	struct device_node *dn, *pdn;  in pci_dma_bus_setup_pSeriesLP()  local
642 for (pdn = dn; pdn != NULL; pdn = pdn->parent) { in pci_dma_bus_setup_pSeriesLP()
643 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_bus_setup_pSeriesLP()
653 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP()
656 pdn->full_name, ppci->iommu_table); in pci_dma_bus_setup_pSeriesLP()
661 iommu_table_setparms_lpar(ppci->phb, pdn, tbl, dma_window); in pci_dma_bus_setup_pSeriesLP()
772 static u64 find_existing_ddw(struct device_node *pdn) in find_existing_ddw() argument
781 if (window->device == pdn) { in find_existing_ddw()
795 struct device_node *pdn; in find_existing_ddw_windows() local
802 for_each_node_with_property(pdn, DIRECT64_PROPNAME) { in find_existing_ddw_windows()
803 direct64 = of_get_property(pdn, DIRECT64_PROPNAME, &len); in find_existing_ddw_windows()
810 remove_ddw(pdn, true); in find_existing_ddw_windows()
814 window->device = pdn; in find_existing_ddw_windows()
890 struct device_node *pdn; member
907 static u64 enable_ddw(struct pci_dev *dev, struct device_node *pdn) in enable_ddw() argument
923 dma_addr = find_existing_ddw(pdn); in enable_ddw()
935 if (!strcmp(fpdn->pdn->full_name, pdn->full_name)) in enable_ddw()
947 ret = of_property_read_u32_array(pdn, "ibm,ddw-applicable", in enable_ddw()
1033 ret = of_add_property(pdn, win64); in enable_ddw()
1036 pdn->full_name, ret); in enable_ddw()
1040 window->device = pdn; in enable_ddw()
1053 remove_ddw(pdn, true); in enable_ddw()
1065 fpdn->pdn = pdn; in enable_ddw()
1075 struct device_node *pdn, *dn; in pci_dma_dev_setup_pSeriesLP() local
1091 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->iommu_table; in pci_dma_dev_setup_pSeriesLP()
1092 pdn = pdn->parent) { in pci_dma_dev_setup_pSeriesLP()
1093 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_dev_setup_pSeriesLP()
1098 if (!pdn || !PCI_DN(pdn)) { in pci_dma_dev_setup_pSeriesLP()
1104 pr_debug(" parent is %s\n", pdn->full_name); in pci_dma_dev_setup_pSeriesLP()
1106 pci = PCI_DN(pdn); in pci_dma_dev_setup_pSeriesLP()
1110 iommu_table_setparms_lpar(pci->phb, pdn, tbl, dma_window); in pci_dma_dev_setup_pSeriesLP()
1124 struct device_node *pdn, *dn; in dma_set_mask_pSeriesLP() local
1148 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->iommu_table; in dma_set_mask_pSeriesLP()
1149 pdn = pdn->parent) { in dma_set_mask_pSeriesLP()
1150 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in dma_set_mask_pSeriesLP()
1154 if (pdn && PCI_DN(pdn)) { in dma_set_mask_pSeriesLP()
1155 dma_offset = enable_ddw(pdev, pdn); in dma_set_mask_pSeriesLP()