Lines Matching refs:dn
524 struct device_node *dn, in iommu_table_setparms() argument
537 node = phb->dn; in iommu_table_setparms()
542 "missing tce entries !\n", dn); in iommu_table_setparms()
564 struct device_node *dn, in iommu_table_setparms_lpar() argument
571 of_parse_dma_window(dn, dma_window, &liobn, &offset, &size); in iommu_table_setparms_lpar()
589 struct device_node *dn; in pci_dma_bus_setup_pSeries() local
596 dn = pci_bus_to_OF_node(bus); in pci_dma_bus_setup_pSeries()
598 pr_debug("pci_dma_bus_setup_pSeries: setting up bus %pOF\n", dn); in pci_dma_bus_setup_pSeries()
606 pci = PCI_DN(dn); in pci_dma_bus_setup_pSeries()
613 while (isa_dn && isa_dn != dn) in pci_dma_bus_setup_pSeries()
619 for (children = 0, tmp = dn->child; tmp; tmp = tmp->sibling) in pci_dma_bus_setup_pSeries()
654 iommu_table_setparms(pci->phb, dn, tbl); in pci_dma_bus_setup_pSeries()
707 static struct device_node *pci_dma_find(struct device_node *dn, in pci_dma_find() argument
712 for ( ; dn && PCI_DN(dn); dn = dn->parent) { in pci_dma_find()
713 dw = of_get_property(dn, "ibm,dma-window", NULL); in pci_dma_find()
717 return dn; in pci_dma_find()
719 dw = of_get_property(dn, DIRECT64_PROPNAME, NULL); in pci_dma_find()
721 return dn; in pci_dma_find()
722 dw = of_get_property(dn, DMA64_PROPNAME, NULL); in pci_dma_find()
724 return dn; in pci_dma_find()
733 struct device_node *dn, *pdn; in pci_dma_bus_setup_pSeriesLP() local
737 dn = pci_bus_to_OF_node(bus); in pci_dma_bus_setup_pSeriesLP()
740 dn); in pci_dma_bus_setup_pSeriesLP()
742 pdn = pci_dma_find(dn, &dma_window); in pci_dma_bus_setup_pSeriesLP()
771 struct device_node *dn; in pci_dma_dev_setup_pSeries() local
776 dn = dev->dev.of_node; in pci_dma_dev_setup_pSeries()
783 struct pci_controller *phb = PCI_DN(dn)->phb; in pci_dma_dev_setup_pSeries()
786 PCI_DN(dn)->table_group = iommu_pseries_alloc_group(phb->node); in pci_dma_dev_setup_pSeries()
787 tbl = PCI_DN(dn)->table_group->tables[0]; in pci_dma_dev_setup_pSeries()
788 iommu_table_setparms(phb, dn, tbl); in pci_dma_dev_setup_pSeries()
801 while (dn && PCI_DN(dn) && PCI_DN(dn)->table_group == NULL) in pci_dma_dev_setup_pSeries()
802 dn = dn->parent; in pci_dma_dev_setup_pSeries()
804 if (dn && PCI_DN(dn)) in pci_dma_dev_setup_pSeries()
806 PCI_DN(dn)->table_group->tables[0]); in pci_dma_dev_setup_pSeries()
1013 struct device_node *dn; in query_ddw() local
1036 dn = pci_device_to_OF_node(dev); in query_ddw()
1037 pdn = PCI_DN(dn); in query_ddw()
1070 struct device_node *dn; in create_ddw() local
1082 dn = pci_device_to_OF_node(dev); in create_ddw()
1083 pdn = PCI_DN(dn); in create_ddw()
1149 struct device_node *dn; in reset_dma_window() local
1156 dn = pci_device_to_OF_node(dev); in reset_dma_window()
1157 pdn = PCI_DN(dn); in reset_dma_window()
1246 struct device_node *dn; in enable_ddw() local
1256 dn = of_find_node_by_type(NULL, "ibm,pmemory"); in enable_ddw()
1257 pmem_present = dn != NULL; in enable_ddw()
1258 of_node_put(dn); in enable_ddw()
1298 dn = pci_device_to_OF_node(dev); in enable_ddw()
1387 create.liobn, dn); in enable_ddw()
1415 dn, ret); in enable_ddw()
1510 struct device_node *pdn, *dn; in pci_dma_dev_setup_pSeriesLP() local
1523 dn = pci_device_to_OF_node(dev); in pci_dma_dev_setup_pSeriesLP()
1524 pr_debug(" node is %pOF\n", dn); in pci_dma_dev_setup_pSeriesLP()
1526 pdn = pci_dma_find(dn, &dma_window); in pci_dma_dev_setup_pSeriesLP()
1530 pci_name(dev), dn); in pci_dma_dev_setup_pSeriesLP()
1556 struct device_node *dn = pci_device_to_OF_node(pdev), *pdn; in iommu_bypass_supported_pSeriesLP() local
1562 dev_dbg(&pdev->dev, "node is %pOF\n", dn); in iommu_bypass_supported_pSeriesLP()
1570 pdn = pci_dma_find(dn, NULL); in iommu_bypass_supported_pSeriesLP()
1621 struct device_node *np = rd->dn; in iommu_reconfig_notifier()