• Home
  • Raw
  • Download

Lines Matching refs:pdn

721 	struct device_node *dn, *pdn;  in pci_dma_bus_setup_pSeriesLP()  local
734 for (pdn = dn; pdn != NULL; pdn = pdn->parent) { in pci_dma_bus_setup_pSeriesLP()
735 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_bus_setup_pSeriesLP()
745 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP()
748 pdn, ppci->table_group); in pci_dma_bus_setup_pSeriesLP()
753 iommu_table_setparms_lpar(ppci->phb, pdn, tbl, in pci_dma_bus_setup_pSeriesLP()
894 static bool find_existing_ddw(struct device_node *pdn, u64 *dma_addr, int *window_shift) in find_existing_ddw() argument
903 if (window->device == pdn) { in find_existing_ddw()
916 static struct dma_win *ddw_list_new_entry(struct device_node *pdn, in ddw_list_new_entry() argument
925 window->device = pdn; in ddw_list_new_entry()
934 struct device_node *pdn; in find_existing_ddw_windows_named() local
938 for_each_node_with_property(pdn, name) { in find_existing_ddw_windows_named()
939 dma64 = of_get_property(pdn, name, &len); in find_existing_ddw_windows_named()
941 remove_ddw(pdn, true, name); in find_existing_ddw_windows_named()
945 window = ddw_list_new_entry(pdn, dma64); in find_existing_ddw_windows_named()
1008 struct pci_dn *pdn; in query_ddw() local
1031 pdn = PCI_DN(dn); in query_ddw()
1032 buid = pdn->phb->buid; in query_ddw()
1033 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in query_ddw()
1065 struct pci_dn *pdn; in create_ddw() local
1077 pdn = PCI_DN(dn); in create_ddw()
1078 buid = pdn->phb->buid; in create_ddw()
1079 cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); in create_ddw()
1098 struct device_node *pdn; member
1144 struct pci_dn *pdn; in reset_dma_window() local
1151 pdn = PCI_DN(dn); in reset_dma_window()
1152 buid = pdn->phb->buid; in reset_dma_window()
1153 cfg_addr = (pdn->busno << 16) | (pdn->devfn << 8); in reset_dma_window()
1231 static bool enable_ddw(struct pci_dev *dev, struct device_node *pdn) in enable_ddw() argument
1247 struct pci_dn *pci = PCI_DN(pdn); in enable_ddw()
1256 if (find_existing_ddw(pdn, &dev->dev.archdata.dma_offset, &len)) { in enable_ddw()
1269 if (fpdn->pdn == pdn) in enable_ddw()
1281 ret = of_property_read_u32_array(pdn, "ibm,ddw-applicable", in enable_ddw()
1293 ret = query_ddw(dev, ddw_avail, &query, pdn); in enable_ddw()
1314 default_win = of_find_property(pdn, "ibm,dma-window", NULL); in enable_ddw()
1318 reset_win_ext = ddw_read_ext(pdn, DDW_EXT_RESET_DMA_WIN, NULL); in enable_ddw()
1322 remove_dma_window(pdn, ddw_avail, default_win); in enable_ddw()
1326 ret = query_ddw(dev, ddw_avail, &query, pdn); in enable_ddw()
1393 ret = of_add_property(pdn, win64); in enable_ddw()
1396 pdn, ret); in enable_ddw()
1400 window = ddw_list_new_entry(pdn, win64->value); in enable_ddw()
1413 clean_dma_window(pdn, win64->value); in enable_ddw()
1466 of_remove_property(pdn, win64); in enable_ddw()
1475 __remove_dma_window(pdn, ddw_avail, create.liobn); in enable_ddw()
1479 reset_dma_window(dev, pdn); in enable_ddw()
1484 fpdn->pdn = pdn; in enable_ddw()
1503 struct device_node *pdn, *dn; in pci_dma_dev_setup_pSeriesLP() local
1519 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; in pci_dma_dev_setup_pSeriesLP()
1520 pdn = pdn->parent) { in pci_dma_dev_setup_pSeriesLP()
1521 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_dev_setup_pSeriesLP()
1526 if (!pdn || !PCI_DN(pdn)) { in pci_dma_dev_setup_pSeriesLP()
1532 pr_debug(" parent is %pOF\n", pdn); in pci_dma_dev_setup_pSeriesLP()
1534 pci = PCI_DN(pdn); in pci_dma_dev_setup_pSeriesLP()
1538 iommu_table_setparms_lpar(pci->phb, pdn, tbl, in pci_dma_dev_setup_pSeriesLP()
1555 struct device_node *dn = pci_device_to_OF_node(pdev), *pdn; in iommu_bypass_supported_pSeriesLP() local
1570 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; in iommu_bypass_supported_pSeriesLP()
1571 pdn = pdn->parent) { in iommu_bypass_supported_pSeriesLP()
1572 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in iommu_bypass_supported_pSeriesLP()
1577 if (pdn && PCI_DN(pdn)) in iommu_bypass_supported_pSeriesLP()
1578 return enable_ddw(pdev, pdn); in iommu_bypass_supported_pSeriesLP()