pdn 148 arch/powerpc/include/asm/eeh.h struct pci_dn *pdn; /* Associated PCI device node */ pdn 167 arch/powerpc/include/asm/eeh.h return edev ? edev->pdn : NULL; pdn 218 arch/powerpc/include/asm/eeh.h void* (*probe)(struct pci_dn *pdn, void *data); pdn 227 arch/powerpc/include/asm/eeh.h int (*read_config)(struct pci_dn *pdn, int where, int size, u32 *val); pdn 228 arch/powerpc/include/asm/eeh.h int (*write_config)(struct pci_dn *pdn, int where, int size, u32 val); pdn 230 arch/powerpc/include/asm/eeh.h int (*restore_config)(struct pci_dn *pdn); pdn 231 arch/powerpc/include/asm/eeh.h int (*notify_resume)(struct pci_dn *pdn); pdn 296 arch/powerpc/include/asm/eeh.h struct eeh_dev *eeh_dev_init(struct pci_dn *pdn); pdn 321 arch/powerpc/include/asm/eeh.h int eeh_restore_vf_config(struct pci_dn *pdn); pdn 347 arch/powerpc/include/asm/eeh.h static inline void *eeh_dev_init(struct pci_dn *pdn, void *data) pdn 363 arch/powerpc/include/asm/eeh.h static inline void eeh_add_device_early(struct pci_dn *pdn) { } pdn 365 arch/powerpc/include/asm/eeh.h static inline void eeh_add_device_tree_early(struct pci_dn *pdn) { } pdn 243 arch/powerpc/include/asm/pci-bridge.h static inline struct eeh_dev *pdn_to_eeh_dev(struct pci_dn *pdn) pdn 245 arch/powerpc/include/asm/pci-bridge.h return pdn ? pdn->edev : NULL; pdn 170 arch/powerpc/kernel/eeh.c struct pci_dn *pdn = eeh_dev_to_pdn(edev); pdn 176 arch/powerpc/kernel/eeh.c if (!pdn) { pdn 182 arch/powerpc/kernel/eeh.c pdn->phb->global_number, pdn->busno, pdn 183 arch/powerpc/kernel/eeh.c PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); pdn 185 arch/powerpc/kernel/eeh.c pdn->phb->global_number, pdn->busno, pdn 186 arch/powerpc/kernel/eeh.c PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); pdn 188 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, PCI_VENDOR_ID, 4, &cfg); pdn 192 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, PCI_COMMAND, 4, &cfg); pdn 198 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, PCI_SEC_STATUS, 2, &cfg); pdn 202 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, PCI_BRIDGE_CONTROL, 2, &cfg); pdn 210 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, cap, 4, &cfg); pdn 214 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, cap+4, 4, &cfg); pdn 226 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, cap+4*i, 4, &cfg); pdn 253 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, cap+4*i, 4, &cfg); pdn 729 arch/powerpc/kernel/eeh.c struct pci_dn *pdn = eeh_dev_to_pdn(edev); pdn 737 arch/powerpc/kernel/eeh.c if (pdn && eeh_ops->restore_config) pdn 738 arch/powerpc/kernel/eeh.c eeh_ops->restore_config(pdn); pdn 745 arch/powerpc/kernel/eeh.c int eeh_restore_vf_config(struct pci_dn *pdn) pdn 747 arch/powerpc/kernel/eeh.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 753 arch/powerpc/kernel/eeh.c old_mps = (ffs(pdn->mps) - 8) << 5; pdn 754 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, pdn 758 arch/powerpc/kernel/eeh.c eeh_ops->write_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, pdn 762 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCAP2, pdn 765 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, pdn 769 arch/powerpc/kernel/eeh.c eeh_ops->write_config(pdn, pdn 776 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, PCI_COMMAND, 2, &cmd); pdn 778 arch/powerpc/kernel/eeh.c eeh_ops->write_config(pdn, PCI_COMMAND, 2, cmd); pdn 782 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, pdn 788 arch/powerpc/kernel/eeh.c eeh_ops->write_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, pdn 794 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, edev->aer_cap + PCI_ERR_CAP, pdn 797 arch/powerpc/kernel/eeh.c eeh_ops->write_config(pdn, edev->aer_cap + PCI_ERR_CAP, pdn 980 arch/powerpc/kernel/eeh.c struct pci_dn *pdn; pdn 983 arch/powerpc/kernel/eeh.c pdn = eeh_dev_to_pdn(edev); pdn 984 arch/powerpc/kernel/eeh.c if (!pdn) pdn 988 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, i * 4, 4, &edev->config_space[i]); pdn 1121 arch/powerpc/kernel/eeh.c void eeh_add_device_early(struct pci_dn *pdn) pdn 1123 arch/powerpc/kernel/eeh.c struct pci_controller *phb = pdn ? pdn->phb : NULL; pdn 1124 arch/powerpc/kernel/eeh.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 1137 arch/powerpc/kernel/eeh.c eeh_ops->probe(pdn, NULL); pdn 1148 arch/powerpc/kernel/eeh.c void eeh_add_device_tree_early(struct pci_dn *pdn) pdn 1152 arch/powerpc/kernel/eeh.c if (!pdn) pdn 1155 arch/powerpc/kernel/eeh.c list_for_each_entry(n, &pdn->child_list, list) pdn 1157 arch/powerpc/kernel/eeh.c eeh_add_device_early(pdn); pdn 1170 arch/powerpc/kernel/eeh.c struct pci_dn *pdn; pdn 1176 arch/powerpc/kernel/eeh.c pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); pdn 1177 arch/powerpc/kernel/eeh.c edev = pdn_to_eeh_dev(pdn); pdn 1208 arch/powerpc/kernel/eeh.c eeh_ops->probe(pdn, NULL); pdn 162 arch/powerpc/kernel/eeh_cache.c struct pci_dn *pdn; pdn 166 arch/powerpc/kernel/eeh_cache.c pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); pdn 167 arch/powerpc/kernel/eeh_cache.c if (!pdn) { pdn 173 arch/powerpc/kernel/eeh_cache.c edev = pdn_to_eeh_dev(pdn); pdn 38 arch/powerpc/kernel/eeh_dev.c struct eeh_dev *eeh_dev_init(struct pci_dn *pdn) pdn 48 arch/powerpc/kernel/eeh_dev.c pdn->edev = edev; pdn 49 arch/powerpc/kernel/eeh_dev.c edev->pdn = pdn; pdn 50 arch/powerpc/kernel/eeh_dev.c edev->bdfn = (pdn->busno << 8) | pdn->devfn; pdn 51 arch/powerpc/kernel/eeh_dev.c edev->controller = pdn->phb; pdn 540 arch/powerpc/kernel/eeh_driver.c struct pci_dn *pdn = eeh_dev_to_pdn(edev); pdn 542 arch/powerpc/kernel/eeh_driver.c pci_iov_remove_virtfn(edev->physfn, pdn->vf_index); pdn 332 arch/powerpc/kernel/eeh_pe.c struct pci_dn *pdn = eeh_dev_to_pdn(edev); pdn 340 arch/powerpc/kernel/eeh_pe.c pdn = pci_get_pdn(edev->physfn); pdn 342 arch/powerpc/kernel/eeh_pe.c pdn = pdn ? pdn->parent : NULL; pdn 343 arch/powerpc/kernel/eeh_pe.c while (pdn) { pdn 345 arch/powerpc/kernel/eeh_pe.c parent = pdn_to_eeh_dev(pdn); pdn 352 arch/powerpc/kernel/eeh_pe.c pdn = pdn->parent; pdn 370 arch/powerpc/kernel/eeh_pe.c struct pci_dn *pdn = eeh_dev_to_pdn(edev); pdn 371 arch/powerpc/kernel/eeh_pe.c int config_addr = (pdn->busno << 8) | (pdn->devfn); pdn 385 arch/powerpc/kernel/eeh_pe.c pe = eeh_pe_get(pdn->phb, edev->pe_config_addr, config_addr); pdn 419 arch/powerpc/kernel/eeh_pe.c pe = eeh_pe_alloc(pdn->phb, EEH_PE_VF); pdn 421 arch/powerpc/kernel/eeh_pe.c pe = eeh_pe_alloc(pdn->phb, EEH_PE_DEVICE); pdn 437 arch/powerpc/kernel/eeh_pe.c parent = eeh_phb_pe_get(pdn->phb); pdn 440 arch/powerpc/kernel/eeh_pe.c __func__, pdn->phb->global_number); pdn 701 arch/powerpc/kernel/eeh_pe.c struct pci_dn *pdn = eeh_dev_to_pdn(edev); pdn 717 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_SLTSTA, 2, &val); pdn 724 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_SLTCAP, 2, &val); pdn 726 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_SLTCTL, 2, &val); pdn 731 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, cap + PCI_EXP_SLTCTL, 2, val); pdn 737 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_LNKCTL, 2, &val); pdn 739 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, cap + PCI_EXP_LNKCTL, 2, val); pdn 742 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_LNKCAP, 4, &val); pdn 755 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_LNKSTA, 2, &val); pdn 772 arch/powerpc/kernel/eeh_pe.c struct pci_dn *pdn = eeh_dev_to_pdn(edev); pdn 780 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, i*4, 4, edev->config_space[i]); pdn 782 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, 14*4, 4, edev->config_space[14]); pdn 785 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, PCI_CACHE_LINE_SIZE, 1, pdn 787 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, PCI_LATENCY_TIMER, 1, pdn 790 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, 15*4, 4, edev->config_space[15]); pdn 793 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, PCI_COMMAND, 4, edev->config_space[1] | pdn 802 arch/powerpc/kernel/eeh_pe.c struct pci_dn *pdn = eeh_dev_to_pdn(edev); pdn 807 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, i*4, 4, edev->config_space[i]); pdn 809 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, 12*4, 4, edev->config_space[12]); pdn 811 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, PCI_CACHE_LINE_SIZE, 1, pdn 813 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, PCI_LATENCY_TIMER, 1, pdn 817 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, 15*4, 4, edev->config_space[15]); pdn 823 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, PCI_COMMAND, 4, &cmd); pdn 832 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, PCI_COMMAND, 4, cmd); pdn 846 arch/powerpc/kernel/eeh_pe.c struct pci_dn *pdn = eeh_dev_to_pdn(edev); pdn 854 arch/powerpc/kernel/eeh_pe.c if (eeh_ops->restore_config && pdn) pdn 855 arch/powerpc/kernel/eeh_pe.c eeh_ops->restore_config(pdn); pdn 100 arch/powerpc/kernel/eeh_sysfs.c struct pci_dn *pdn = pci_get_pdn(pdev); pdn 105 arch/powerpc/kernel/eeh_sysfs.c pdn = pci_get_pdn(pdev); pdn 106 arch/powerpc/kernel/eeh_sysfs.c return sprintf(buf, "%d\n", pdn->last_allow_rc); pdn 40 arch/powerpc/kernel/pci-hotplug.c struct pci_dn *pdn = PCI_DN(dn); pdn 42 arch/powerpc/kernel/pci-hotplug.c if (!pdn || !pdn->phb || !pdn->phb->bus) pdn 45 arch/powerpc/kernel/pci-hotplug.c return find_bus_among_children(pdn->phb->bus, dn); pdn 58 arch/powerpc/kernel/pci-hotplug.c struct pci_dn *pdn = pci_get_pdn(dev); pdn 66 arch/powerpc/kernel/pci-hotplug.c if (pdn && (pdn->flags & PCI_DN_FLAG_DEAD)) { pdn 68 arch/powerpc/kernel/pci-hotplug.c kfree(pdn); pdn 34 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn; pdn 53 arch/powerpc/kernel/pci_dn.c pdn = dn ? PCI_DN(dn) : NULL; pdn 55 arch/powerpc/kernel/pci_dn.c return pdn; pdn 62 arch/powerpc/kernel/pci_dn.c struct pci_dn *parent, *pdn; pdn 77 arch/powerpc/kernel/pci_dn.c pdn = dn ? PCI_DN(dn) : NULL; pdn 78 arch/powerpc/kernel/pci_dn.c if (pdn) pdn 79 arch/powerpc/kernel/pci_dn.c return pdn; pdn 86 arch/powerpc/kernel/pci_dn.c list_for_each_entry(pdn, &parent->child_list, list) { pdn 87 arch/powerpc/kernel/pci_dn.c if (pdn->busno == bus->number && pdn 88 arch/powerpc/kernel/pci_dn.c pdn->devfn == devfn) pdn 89 arch/powerpc/kernel/pci_dn.c return pdn; pdn 98 arch/powerpc/kernel/pci_dn.c struct pci_dn *parent, *pdn; pdn 106 arch/powerpc/kernel/pci_dn.c pdn = dn ? PCI_DN(dn) : NULL; pdn 107 arch/powerpc/kernel/pci_dn.c if (pdn) pdn 108 arch/powerpc/kernel/pci_dn.c return pdn; pdn 118 arch/powerpc/kernel/pci_dn.c list_for_each_entry(pdn, &parent->child_list, list) { pdn 119 arch/powerpc/kernel/pci_dn.c if (pdn->busno == pdev->bus->number && pdn 120 arch/powerpc/kernel/pci_dn.c pdn->devfn == pdev->devfn) pdn 121 arch/powerpc/kernel/pci_dn.c return pdn; pdn 132 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn; pdn 138 arch/powerpc/kernel/pci_dn.c pdn = kzalloc(sizeof(*pdn), GFP_KERNEL); pdn 139 arch/powerpc/kernel/pci_dn.c if (!pdn) pdn 142 arch/powerpc/kernel/pci_dn.c pdn->phb = parent->phb; pdn 143 arch/powerpc/kernel/pci_dn.c pdn->parent = parent; pdn 144 arch/powerpc/kernel/pci_dn.c pdn->busno = busno; pdn 145 arch/powerpc/kernel/pci_dn.c pdn->devfn = devfn; pdn 146 arch/powerpc/kernel/pci_dn.c pdn->vf_index = vf_index; pdn 147 arch/powerpc/kernel/pci_dn.c pdn->pe_number = IODA_INVALID_PE; pdn 148 arch/powerpc/kernel/pci_dn.c INIT_LIST_HEAD(&pdn->child_list); pdn 149 arch/powerpc/kernel/pci_dn.c INIT_LIST_HEAD(&pdn->list); pdn 150 arch/powerpc/kernel/pci_dn.c list_add_tail(&pdn->list, &parent->child_list); pdn 152 arch/powerpc/kernel/pci_dn.c return pdn; pdn 159 arch/powerpc/kernel/pci_dn.c struct pci_dn *parent, *pdn; pdn 167 arch/powerpc/kernel/pci_dn.c pdn = pci_get_pdn(pdev); pdn 168 arch/powerpc/kernel/pci_dn.c if (!pdn || (pdn->flags & PCI_DN_FLAG_IOV_VF)) pdn 171 arch/powerpc/kernel/pci_dn.c pdn->flags |= PCI_DN_FLAG_IOV_VF; pdn 179 arch/powerpc/kernel/pci_dn.c pdn = add_one_dev_pci_data(parent, i, pdn 182 arch/powerpc/kernel/pci_dn.c if (!pdn) { pdn 190 arch/powerpc/kernel/pci_dn.c edev = eeh_dev_init(pdn); pdn 204 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn, *tmp; pdn 213 arch/powerpc/kernel/pci_dn.c pdn = pci_get_pdn(pdev); pdn 214 arch/powerpc/kernel/pci_dn.c pdn->pe_number = IODA_INVALID_PE; pdn 223 arch/powerpc/kernel/pci_dn.c pdn = pci_get_pdn(pdev); pdn 224 arch/powerpc/kernel/pci_dn.c if (!pdn || !(pdn->flags & PCI_DN_FLAG_IOV_VF)) pdn 227 arch/powerpc/kernel/pci_dn.c pdn->flags &= ~PCI_DN_FLAG_IOV_VF; pdn 240 arch/powerpc/kernel/pci_dn.c list_for_each_entry_safe(pdn, tmp, pdn 242 arch/powerpc/kernel/pci_dn.c if (pdn->busno != pci_iov_virtfn_bus(pdev, i) || pdn 243 arch/powerpc/kernel/pci_dn.c pdn->devfn != pci_iov_virtfn_devfn(pdev, i)) pdn 253 arch/powerpc/kernel/pci_dn.c edev = pdn_to_eeh_dev(pdn); pdn 263 arch/powerpc/kernel/pci_dn.c pdn->edev = NULL; pdn 268 arch/powerpc/kernel/pci_dn.c if (!list_empty(&pdn->list)) pdn 269 arch/powerpc/kernel/pci_dn.c list_del(&pdn->list); pdn 271 arch/powerpc/kernel/pci_dn.c kfree(pdn); pdn 283 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn; pdn 288 arch/powerpc/kernel/pci_dn.c pdn = kzalloc(sizeof(*pdn), GFP_KERNEL); pdn 289 arch/powerpc/kernel/pci_dn.c if (pdn == NULL) pdn 291 arch/powerpc/kernel/pci_dn.c dn->data = pdn; pdn 292 arch/powerpc/kernel/pci_dn.c pdn->phb = hose; pdn 293 arch/powerpc/kernel/pci_dn.c pdn->pe_number = IODA_INVALID_PE; pdn 299 arch/powerpc/kernel/pci_dn.c pdn->busno = (addr >> 16) & 0xff; pdn 300 arch/powerpc/kernel/pci_dn.c pdn->devfn = (addr >> 8) & 0xff; pdn 305 arch/powerpc/kernel/pci_dn.c pdn->vendor_id = regs ? of_read_number(regs, 1) : 0; pdn 307 arch/powerpc/kernel/pci_dn.c pdn->device_id = regs ? of_read_number(regs, 1) : 0; pdn 309 arch/powerpc/kernel/pci_dn.c pdn->class_code = regs ? of_read_number(regs, 1) : 0; pdn 312 arch/powerpc/kernel/pci_dn.c pdn->pci_ext_config_space = (type && of_read_number(type, 1) == 1); pdn 316 arch/powerpc/kernel/pci_dn.c edev = eeh_dev_init(pdn); pdn 318 arch/powerpc/kernel/pci_dn.c kfree(pdn); pdn 324 arch/powerpc/kernel/pci_dn.c INIT_LIST_HEAD(&pdn->child_list); pdn 325 arch/powerpc/kernel/pci_dn.c INIT_LIST_HEAD(&pdn->list); pdn 327 arch/powerpc/kernel/pci_dn.c pdn->parent = parent ? PCI_DN(parent) : NULL; pdn 328 arch/powerpc/kernel/pci_dn.c if (pdn->parent) pdn 329 arch/powerpc/kernel/pci_dn.c list_add_tail(&pdn->list, &pdn->parent->child_list); pdn 331 arch/powerpc/kernel/pci_dn.c return pdn; pdn 337 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn = dn ? PCI_DN(dn) : NULL; pdn 341 arch/powerpc/kernel/pci_dn.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 344 arch/powerpc/kernel/pci_dn.c edev->pdn = NULL; pdn 347 arch/powerpc/kernel/pci_dn.c if (!pdn) pdn 350 arch/powerpc/kernel/pci_dn.c WARN_ON(!list_empty(&pdn->child_list)); pdn 351 arch/powerpc/kernel/pci_dn.c list_del(&pdn->list); pdn 363 arch/powerpc/kernel/pci_dn.c pdev = pci_get_domain_bus_and_slot(pdn->phb->global_number, pdn 364 arch/powerpc/kernel/pci_dn.c pdn->busno, pdn->devfn); pdn 368 arch/powerpc/kernel/pci_dn.c pdn->flags |= PCI_DN_FLAG_DEAD; pdn 371 arch/powerpc/kernel/pci_dn.c kfree(pdn); pdn 442 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn) pdn 444 arch/powerpc/kernel/pci_dn.c struct list_head *next = pdn->child_list.next; pdn 446 arch/powerpc/kernel/pci_dn.c if (next != &pdn->child_list) pdn 450 arch/powerpc/kernel/pci_dn.c if (pdn == root) pdn 453 arch/powerpc/kernel/pci_dn.c next = pdn->list.next; pdn 454 arch/powerpc/kernel/pci_dn.c if (next != &pdn->parent->child_list) pdn 457 arch/powerpc/kernel/pci_dn.c pdn = pdn->parent; pdn 467 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn = root; pdn 471 arch/powerpc/kernel/pci_dn.c for (pdn = pci_dn_next_one(root, pdn); pdn; pdn 472 arch/powerpc/kernel/pci_dn.c pdn = pci_dn_next_one(root, pdn)) { pdn 473 arch/powerpc/kernel/pci_dn.c ret = fn(pdn, data); pdn 484 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn; pdn 486 arch/powerpc/kernel/pci_dn.c pdn = pci_add_device_node_info(hose, dn); pdn 487 arch/powerpc/kernel/pci_dn.c if (!pdn) pdn 504 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn; pdn 507 arch/powerpc/kernel/pci_dn.c pdn = pci_add_device_node_info(phb, dn); pdn 508 arch/powerpc/kernel/pci_dn.c if (pdn) { pdn 509 arch/powerpc/kernel/pci_dn.c pdn->devfn = pdn->busno = -1; pdn 510 arch/powerpc/kernel/pci_dn.c pdn->vendor_id = pdn->device_id = pdn->class_code = 0; pdn 511 arch/powerpc/kernel/pci_dn.c pdn->phb = phb; pdn 512 arch/powerpc/kernel/pci_dn.c phb->pci_data = pdn; pdn 543 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn; pdn 549 arch/powerpc/kernel/pci_dn.c pdn = pci_get_pdn(pdev); pdn 550 arch/powerpc/kernel/pci_dn.c pdev->dev.archdata.pci_data = pdn; pdn 45 arch/powerpc/kernel/rtas_pci.c int rtas_read_config(struct pci_dn *pdn, int where, int size, u32 *val) pdn 51 arch/powerpc/kernel/rtas_pci.c if (!pdn) pdn 53 arch/powerpc/kernel/rtas_pci.c if (!config_access_valid(pdn, where)) pdn 56 arch/powerpc/kernel/rtas_pci.c if (pdn->edev && pdn->edev->pe && pdn 57 arch/powerpc/kernel/rtas_pci.c (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) pdn 61 arch/powerpc/kernel/rtas_pci.c addr = rtas_config_addr(pdn->busno, pdn->devfn, where); pdn 62 arch/powerpc/kernel/rtas_pci.c buid = pdn->phb->buid; pdn 81 arch/powerpc/kernel/rtas_pci.c struct pci_dn *pdn; pdn 86 arch/powerpc/kernel/rtas_pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); pdn 89 arch/powerpc/kernel/rtas_pci.c ret = rtas_read_config(pdn, where, size, val); pdn 91 arch/powerpc/kernel/rtas_pci.c eeh_dev_check_failure(pdn_to_eeh_dev(pdn))) pdn 97 arch/powerpc/kernel/rtas_pci.c int rtas_write_config(struct pci_dn *pdn, int where, int size, u32 val) pdn 102 arch/powerpc/kernel/rtas_pci.c if (!pdn) pdn 104 arch/powerpc/kernel/rtas_pci.c if (!config_access_valid(pdn, where)) pdn 107 arch/powerpc/kernel/rtas_pci.c if (pdn->edev && pdn->edev->pe && pdn 108 arch/powerpc/kernel/rtas_pci.c (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) pdn 112 arch/powerpc/kernel/rtas_pci.c addr = rtas_config_addr(pdn->busno, pdn->devfn, where); pdn 113 arch/powerpc/kernel/rtas_pci.c buid = pdn->phb->buid; pdn 131 arch/powerpc/kernel/rtas_pci.c struct pci_dn *pdn; pdn 133 arch/powerpc/kernel/rtas_pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); pdn 136 arch/powerpc/kernel/rtas_pci.c return rtas_write_config(pdn, where, size, val); pdn 43 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_dn *pdn = pci_get_pdn(pdev); pdn 45 arch/powerpc/platforms/powernv/eeh-powernv.c if (!pdn || eeh_has_flag(EEH_FORCE_DISABLED)) pdn 49 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_add_device_early(pdn); pdn 285 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_find_cap(struct pci_dn *pdn, int cap) pdn 291 arch/powerpc/platforms/powernv/eeh-powernv.c if (!pdn) pdn 295 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_pci_cfg_read(pdn, PCI_STATUS, 2, &status); pdn 300 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_pci_cfg_read(pdn, pos, 1, &pos); pdn 305 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_pci_cfg_read(pdn, pos + PCI_CAP_LIST_ID, 1, &id); pdn 320 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_find_ecap(struct pci_dn *pdn, int cap) pdn 322 arch/powerpc/platforms/powernv/eeh-powernv.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 328 arch/powerpc/platforms/powernv/eeh-powernv.c if (pnv_pci_cfg_read(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL) pdn 341 arch/powerpc/platforms/powernv/eeh-powernv.c if (pnv_pci_cfg_read(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL) pdn 365 arch/powerpc/platforms/powernv/eeh-powernv.c static void *pnv_eeh_probe(struct pci_dn *pdn, void *data) pdn 367 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose = pdn->phb; pdn 369 arch/powerpc/platforms/powernv/eeh-powernv.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 372 arch/powerpc/platforms/powernv/eeh-powernv.c int config_addr = (pdn->busno << 8) | (pdn->devfn); pdn 384 arch/powerpc/platforms/powernv/eeh-powernv.c if ((pdn->class_code >> 8) == PCI_CLASS_BRIDGE_ISA) pdn 390 arch/powerpc/platforms/powernv/eeh-powernv.c edev->class_code = pdn->class_code; pdn 392 arch/powerpc/platforms/powernv/eeh-powernv.c edev->pcix_cap = pnv_eeh_find_cap(pdn, PCI_CAP_ID_PCIX); pdn 393 arch/powerpc/platforms/powernv/eeh-powernv.c edev->pcie_cap = pnv_eeh_find_cap(pdn, PCI_CAP_ID_EXP); pdn 394 arch/powerpc/platforms/powernv/eeh-powernv.c edev->af_cap = pnv_eeh_find_cap(pdn, PCI_CAP_ID_AF); pdn 395 arch/powerpc/platforms/powernv/eeh-powernv.c edev->aer_cap = pnv_eeh_find_ecap(pdn, PCI_EXT_CAP_ID_ERR); pdn 399 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_pci_cfg_read(pdn, edev->pcie_cap + PCI_EXP_FLAGS, pdn 436 arch/powerpc/platforms/powernv/eeh-powernv.c if ((pdn->vendor_id == PCI_VENDOR_ID_BROADCOM && pdn 437 arch/powerpc/platforms/powernv/eeh-powernv.c pdn->device_id == 0x1656) || pdn 438 arch/powerpc/platforms/powernv/eeh-powernv.c (pdn->vendor_id == PCI_VENDOR_ID_BROADCOM && pdn 439 arch/powerpc/platforms/powernv/eeh-powernv.c pdn->device_id == 0x1657) || pdn 440 arch/powerpc/platforms/powernv/eeh-powernv.c (pdn->vendor_id == PCI_VENDOR_ID_BROADCOM && pdn 441 arch/powerpc/platforms/powernv/eeh-powernv.c pdn->device_id == 0x168a) || pdn 442 arch/powerpc/platforms/powernv/eeh-powernv.c (pdn->vendor_id == PCI_VENDOR_ID_BROADCOM && pdn 443 arch/powerpc/platforms/powernv/eeh-powernv.c pdn->device_id == 0x168e)) pdn 454 arch/powerpc/platforms/powernv/eeh-powernv.c pdn->busno); pdn 848 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_dn *pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); pdn 849 arch/powerpc/platforms/powernv/eeh-powernv.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 862 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->read_config(pdn, aer + PCI_ERR_UNCOR_MASK, pdn 865 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->write_config(pdn, aer + PCI_ERR_UNCOR_MASK, pdn 869 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->read_config(pdn, PCI_BRIDGE_CONTROL, 2, &ctrl); pdn 871 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->write_config(pdn, PCI_BRIDGE_CONTROL, 2, ctrl); pdn 876 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->read_config(pdn, PCI_BRIDGE_CONTROL, 2, &ctrl); pdn 878 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->write_config(pdn, PCI_BRIDGE_CONTROL, 2, ctrl); pdn 884 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->read_config(pdn, aer + PCI_ERR_UNCOR_MASK, pdn 887 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->write_config(pdn, aer + PCI_ERR_UNCOR_MASK, pdn 953 arch/powerpc/platforms/powernv/eeh-powernv.c static void pnv_eeh_wait_for_pending(struct pci_dn *pdn, const char *type, pdn 960 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->read_config(pdn, pos, 2, &status); pdn 969 arch/powerpc/platforms/powernv/eeh-powernv.c pdn->phb->global_number, pdn->busno, pdn 970 arch/powerpc/platforms/powernv/eeh-powernv.c PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); pdn 973 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_do_flr(struct pci_dn *pdn, int option) pdn 975 arch/powerpc/platforms/powernv/eeh-powernv.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 981 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCAP, 4, ®); pdn 988 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_eeh_wait_for_pending(pdn, "", pdn 991 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, pdn 994 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->write_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, pdn 999 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, pdn 1002 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->write_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, pdn 1011 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_do_af_flr(struct pci_dn *pdn, int option) pdn 1013 arch/powerpc/platforms/powernv/eeh-powernv.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 1019 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->read_config(pdn, edev->af_cap + PCI_AF_CAP, 1, &cap); pdn 1031 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_eeh_wait_for_pending(pdn, "AF", pdn 1034 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->write_config(pdn, edev->af_cap + PCI_AF_CTRL, pdn 1039 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->write_config(pdn, edev->af_cap + PCI_AF_CTRL, 1, 0); pdn 1050 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_dn *pdn; pdn 1055 arch/powerpc/platforms/powernv/eeh-powernv.c pdn = eeh_dev_to_pdn(edev); pdn 1056 arch/powerpc/platforms/powernv/eeh-powernv.c if (!pdn) pdn 1059 arch/powerpc/platforms/powernv/eeh-powernv.c ret = pnv_eeh_do_flr(pdn, option); pdn 1063 arch/powerpc/platforms/powernv/eeh-powernv.c return pnv_eeh_do_af_flr(pdn, option); pdn 1252 arch/powerpc/platforms/powernv/eeh-powernv.c static inline bool pnv_eeh_cfg_blocked(struct pci_dn *pdn) pdn 1254 arch/powerpc/platforms/powernv/eeh-powernv.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 1273 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_read_config(struct pci_dn *pdn, pdn 1276 arch/powerpc/platforms/powernv/eeh-powernv.c if (!pdn) pdn 1279 arch/powerpc/platforms/powernv/eeh-powernv.c if (pnv_eeh_cfg_blocked(pdn)) { pdn 1284 arch/powerpc/platforms/powernv/eeh-powernv.c return pnv_pci_cfg_read(pdn, where, size, val); pdn 1287 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_write_config(struct pci_dn *pdn, pdn 1290 arch/powerpc/platforms/powernv/eeh-powernv.c if (!pdn) pdn 1293 arch/powerpc/platforms/powernv/eeh-powernv.c if (pnv_eeh_cfg_blocked(pdn)) pdn 1296 arch/powerpc/platforms/powernv/eeh-powernv.c return pnv_pci_cfg_write(pdn, where, size, val); pdn 1643 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_restore_config(struct pci_dn *pdn) pdn 1645 arch/powerpc/platforms/powernv/eeh-powernv.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 1648 arch/powerpc/platforms/powernv/eeh-powernv.c int config_addr = (pdn->busno << 8) | (pdn->devfn); pdn 1661 arch/powerpc/platforms/powernv/eeh-powernv.c ret = eeh_restore_vf_config(pdn); pdn 1663 arch/powerpc/platforms/powernv/eeh-powernv.c phb = pdn->phb->private_data; pdn 1698 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_dn *pdn = pci_get_pdn(pdev); pdn 1708 arch/powerpc/platforms/powernv/eeh-powernv.c pdn->mps = pcie_get_mps(pdev); pdn 24 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dn *pdn = PCI_DN(dn); pdn 27 arch/powerpc/platforms/powernv/npu-dma.c pdev = pci_get_domain_bus_and_slot(pci_domain_nr(pdn->phb->bus), pdn 28 arch/powerpc/platforms/powernv/npu-dma.c pdn->busno, pdn->devfn); pdn 104 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dn *pdn; pdn 110 arch/powerpc/platforms/powernv/npu-dma.c pdn = pci_get_pdn(pdev); pdn 111 arch/powerpc/platforms/powernv/npu-dma.c if (WARN_ON(!pdn || pdn->pe_number == IODA_INVALID_PE)) pdn 116 arch/powerpc/platforms/powernv/npu-dma.c pe = &phb->ioda.pe_array[pdn->pe_number]; pdn 667 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn = pci_get_pdn(dev); pdn 669 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn) pdn 671 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->pe_number == IODA_INVALID_PE) pdn 673 arch/powerpc/platforms/powernv/pci-ioda.c return &phb->ioda.pe_array[pdn->pe_number]; pdn 764 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn = pci_get_pdn(pdev); pdn 767 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn && pdn->pe_number != IODA_INVALID_PE) { pdn 768 arch/powerpc/platforms/powernv/pci-ioda.c parent = &phb->ioda.pe_array[pdn->pe_number]; pdn 832 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn = pci_get_pdn(parent); pdn 833 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn && pdn->pe_number != IODA_INVALID_PE) { pdn 834 arch/powerpc/platforms/powernv/pci-ioda.c rc = opal_pci_set_peltv(phb->opal_id, pdn->pe_number, pdn 961 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn = pci_get_pdn(dev); pdn 978 arch/powerpc/platforms/powernv/pci-ioda.c num_vfs = pdn->num_vfs; pdn 1024 arch/powerpc/platforms/powernv/pci-ioda.c devm_release_resource(&dev->dev, &pdn->holes[i]); pdn 1025 arch/powerpc/platforms/powernv/pci-ioda.c memset(&pdn->holes[i], 0, sizeof(pdn->holes[i])); pdn 1031 arch/powerpc/platforms/powernv/pci-ioda.c pdn->holes[i].start = res2.start; pdn 1032 arch/powerpc/platforms/powernv/pci-ioda.c pdn->holes[i].end = res2.start + size * offset - 1; pdn 1033 arch/powerpc/platforms/powernv/pci-ioda.c pdn->holes[i].flags = IORESOURCE_BUS; pdn 1034 arch/powerpc/platforms/powernv/pci-ioda.c pdn->holes[i].name = "pnv_iov_reserved"; pdn 1036 arch/powerpc/platforms/powernv/pci-ioda.c &pdn->holes[i]); pdn 1047 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn = pci_get_pdn(dev); pdn 1050 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn) { pdn 1055 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->pe_number != IODA_INVALID_PE) pdn 1073 arch/powerpc/platforms/powernv/pci-ioda.c pdn->pe_number = pe->pe_number; pdn 1078 arch/powerpc/platforms/powernv/pci-ioda.c pe->rid = dev->bus->number << 8 | pdn->devfn; pdn 1085 arch/powerpc/platforms/powernv/pci-ioda.c pdn->pe_number = IODA_INVALID_PE; pdn 1102 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn = pci_get_pdn(dev); pdn 1104 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn == NULL) { pdn 1115 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->pe_number != IODA_INVALID_PE) pdn 1119 arch/powerpc/platforms/powernv/pci-ioda.c pdn->pe_number = pe->pe_number; pdn 1306 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn; pdn 1313 arch/powerpc/platforms/powernv/pci-ioda.c pdn = pci_get_pdn(pdev); pdn 1315 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) pdn 1322 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_map[j][i] == IODA_INVALID_M64) pdn 1325 arch/powerpc/platforms/powernv/pci-ioda.c OPAL_M64_WINDOW_TYPE, pdn->m64_map[j][i], 0); pdn 1326 arch/powerpc/platforms/powernv/pci-ioda.c clear_bit(pdn->m64_map[j][i], &phb->ioda.m64_bar_alloc); pdn 1327 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[j][i] = IODA_INVALID_M64; pdn 1330 arch/powerpc/platforms/powernv/pci-ioda.c kfree(pdn->m64_map); pdn 1339 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn; pdn 1352 arch/powerpc/platforms/powernv/pci-ioda.c pdn = pci_get_pdn(pdev); pdn 1355 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) pdn 1360 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map = kmalloc_array(m64_bars, pdn 1361 arch/powerpc/platforms/powernv/pci-ioda.c sizeof(*pdn->m64_map), pdn 1363 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn->m64_map) pdn 1368 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[i][j] = IODA_INVALID_M64; pdn 1385 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[j][i] = win; pdn 1387 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) { pdn 1397 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) { pdn 1398 arch/powerpc/platforms/powernv/pci-ioda.c pe_num = pdn->pe_num_map[j]; pdn 1401 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[j][i], 0); pdn 1406 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[j][i], pdn 1418 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) pdn 1420 arch/powerpc/platforms/powernv/pci-ioda.c OPAL_M64_WINDOW_TYPE, pdn->m64_map[j][i], 2); pdn 1423 arch/powerpc/platforms/powernv/pci-ioda.c OPAL_M64_WINDOW_TYPE, pdn->m64_map[j][i], 1); pdn 1466 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn; pdn 1471 arch/powerpc/platforms/powernv/pci-ioda.c pdn = pci_get_pdn(pdev); pdn 1499 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn; pdn 1505 arch/powerpc/platforms/powernv/pci-ioda.c pdn = pci_get_pdn(pdev); pdn 1506 arch/powerpc/platforms/powernv/pci-ioda.c num_vfs = pdn->num_vfs; pdn 1512 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn->m64_single_mode) pdn 1513 arch/powerpc/platforms/powernv/pci-ioda.c pnv_pci_vf_resource_shift(pdev, -*pdn->pe_num_map); pdn 1519 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) { pdn 1521 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->pe_num_map[i] == IODA_INVALID_PE) pdn 1524 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pdn->pe_num_map[i]]; pdn 1528 arch/powerpc/platforms/powernv/pci-ioda.c bitmap_clear(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); pdn 1530 arch/powerpc/platforms/powernv/pci-ioda.c kfree(pdn->pe_num_map); pdn 1549 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn; pdn 1554 arch/powerpc/platforms/powernv/pci-ioda.c pdn = pci_get_pdn(pdev); pdn 1565 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) pdn 1566 arch/powerpc/platforms/powernv/pci-ioda.c pe_num = pdn->pe_num_map[vf_index]; pdn 1568 arch/powerpc/platforms/powernv/pci-ioda.c pe_num = *pdn->pe_num_map + vf_index; pdn 1596 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(vf_pdn, &pdn->parent->child_list, list) { pdn 1619 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn; pdn 1626 arch/powerpc/platforms/powernv/pci-ioda.c pdn = pci_get_pdn(pdev); pdn 1629 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn->vfs_expanded) { pdn 1639 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode && num_vfs > phb->ioda.m64_bar_idx) { pdn 1645 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) pdn 1646 arch/powerpc/platforms/powernv/pci-ioda.c pdn->pe_num_map = kmalloc_array(num_vfs, pdn 1647 arch/powerpc/platforms/powernv/pci-ioda.c sizeof(*pdn->pe_num_map), pdn 1650 arch/powerpc/platforms/powernv/pci-ioda.c pdn->pe_num_map = kmalloc(sizeof(*pdn->pe_num_map), GFP_KERNEL); pdn 1652 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn->pe_num_map) pdn 1655 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) pdn 1657 arch/powerpc/platforms/powernv/pci-ioda.c pdn->pe_num_map[i] = IODA_INVALID_PE; pdn 1660 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) { pdn 1668 arch/powerpc/platforms/powernv/pci-ioda.c pdn->pe_num_map[i] = pe->pe_number; pdn 1672 arch/powerpc/platforms/powernv/pci-ioda.c *pdn->pe_num_map = bitmap_find_next_zero_area( pdn 1675 arch/powerpc/platforms/powernv/pci-ioda.c if (*pdn->pe_num_map >= phb->ioda.total_pe_num) { pdn 1678 arch/powerpc/platforms/powernv/pci-ioda.c kfree(pdn->pe_num_map); pdn 1681 arch/powerpc/platforms/powernv/pci-ioda.c bitmap_set(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); pdn 1684 arch/powerpc/platforms/powernv/pci-ioda.c pdn->num_vfs = num_vfs; pdn 1698 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn->m64_single_mode) { pdn 1699 arch/powerpc/platforms/powernv/pci-ioda.c ret = pnv_pci_vf_resource_shift(pdev, *pdn->pe_num_map); pdn 1711 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) { pdn 1713 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->pe_num_map[i] == IODA_INVALID_PE) pdn 1716 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pdn->pe_num_map[i]]; pdn 1720 arch/powerpc/platforms/powernv/pci-ioda.c bitmap_clear(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); pdn 1723 arch/powerpc/platforms/powernv/pci-ioda.c kfree(pdn->pe_num_map); pdn 1748 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn = pci_get_pdn(pdev); pdn 1756 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn || pdn->pe_number == IODA_INVALID_PE) pdn 1759 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pdn->pe_number]; pdn 1845 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn = pci_get_pdn(pdev); pdn 1848 arch/powerpc/platforms/powernv/pci-ioda.c if (WARN_ON(!pdn || pdn->pe_number == IODA_INVALID_PE)) pdn 1851 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pdn->pe_number]; pdn 2900 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn; pdn 2903 arch/powerpc/platforms/powernv/pci-ioda.c pdn = pci_get_pdn(pdev); pdn 2904 arch/powerpc/platforms/powernv/pci-ioda.c pdn->vfs_expanded = 0; pdn 2905 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_single_mode = false; pdn 2942 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_single_mode = true; pdn 2957 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode && (size < SZ_32M)) pdn 2965 arch/powerpc/platforms/powernv/pci-ioda.c pdn->vfs_expanded = mul; pdn 3364 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn = pci_get_pdn(pdev); pdn 3385 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn->vfs_expanded) pdn 3387 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode) pdn 3390 arch/powerpc/platforms/powernv/pci-ioda.c return pdn->vfs_expanded * align; pdn 3401 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn; pdn 3411 arch/powerpc/platforms/powernv/pci-ioda.c pdn = pci_get_pdn(dev); pdn 3412 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn || pdn->pe_number == IODA_INVALID_PE) pdn 3587 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dn *pdn = pci_get_pdn(pdev); pdn 3593 arch/powerpc/platforms/powernv/pci-ioda.c if (!pdn || pdn->pe_number == IODA_INVALID_PE) pdn 3604 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pdn->pe_number]; pdn 3605 arch/powerpc/platforms/powernv/pci-ioda.c pdn->pe_number = IODA_INVALID_PE; pdn 596 arch/powerpc/platforms/powernv/pci.c static void pnv_pci_config_check_eeh(struct pci_dn *pdn) pdn 598 arch/powerpc/platforms/powernv/pci.c struct pnv_phb *phb = pdn->phb->private_data; pdn 609 arch/powerpc/platforms/powernv/pci.c pe_no = pdn->pe_number; pdn 634 arch/powerpc/platforms/powernv/pci.c (pdn->busno << 8) | (pdn->devfn), pe_no, fstate); pdn 651 arch/powerpc/platforms/powernv/pci.c int pnv_pci_cfg_read(struct pci_dn *pdn, pdn 654 arch/powerpc/platforms/powernv/pci.c struct pnv_phb *phb = pdn->phb->private_data; pdn 655 arch/powerpc/platforms/powernv/pci.c u32 bdfn = (pdn->busno << 8) | pdn->devfn; pdn 683 arch/powerpc/platforms/powernv/pci.c __func__, pdn->busno, pdn->devfn, where, size, *val); pdn 687 arch/powerpc/platforms/powernv/pci.c int pnv_pci_cfg_write(struct pci_dn *pdn, pdn 690 arch/powerpc/platforms/powernv/pci.c struct pnv_phb *phb = pdn->phb->private_data; pdn 691 arch/powerpc/platforms/powernv/pci.c u32 bdfn = (pdn->busno << 8) | pdn->devfn; pdn 694 arch/powerpc/platforms/powernv/pci.c __func__, pdn->busno, pdn->devfn, where, size, val); pdn 713 arch/powerpc/platforms/powernv/pci.c static bool pnv_pci_cfg_check(struct pci_dn *pdn) pdn 716 arch/powerpc/platforms/powernv/pci.c struct pnv_phb *phb = pdn->phb->private_data; pdn 723 arch/powerpc/platforms/powernv/pci.c edev = pdn->edev; pdn 736 arch/powerpc/platforms/powernv/pci.c static inline pnv_pci_cfg_check(struct pci_dn *pdn) pdn 746 arch/powerpc/platforms/powernv/pci.c struct pci_dn *pdn; pdn 751 arch/powerpc/platforms/powernv/pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); pdn 752 arch/powerpc/platforms/powernv/pci.c if (!pdn) pdn 755 arch/powerpc/platforms/powernv/pci.c if (!pnv_pci_cfg_check(pdn)) pdn 758 arch/powerpc/platforms/powernv/pci.c ret = pnv_pci_cfg_read(pdn, where, size, val); pdn 759 arch/powerpc/platforms/powernv/pci.c phb = pdn->phb->private_data; pdn 760 arch/powerpc/platforms/powernv/pci.c if (phb->flags & PNV_PHB_FLAG_EEH && pdn->edev) { pdn 762 arch/powerpc/platforms/powernv/pci.c eeh_dev_check_failure(pdn->edev)) pdn 765 arch/powerpc/platforms/powernv/pci.c pnv_pci_config_check_eeh(pdn); pdn 775 arch/powerpc/platforms/powernv/pci.c struct pci_dn *pdn; pdn 779 arch/powerpc/platforms/powernv/pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); pdn 780 arch/powerpc/platforms/powernv/pci.c if (!pdn) pdn 783 arch/powerpc/platforms/powernv/pci.c if (!pnv_pci_cfg_check(pdn)) pdn 786 arch/powerpc/platforms/powernv/pci.c ret = pnv_pci_cfg_write(pdn, where, size, val); pdn 787 arch/powerpc/platforms/powernv/pci.c phb = pdn->phb->private_data; pdn 789 arch/powerpc/platforms/powernv/pci.c pnv_pci_config_check_eeh(pdn); pdn 984 arch/powerpc/platforms/powernv/pci.c struct pci_dn *pdn; pdn 992 arch/powerpc/platforms/powernv/pci.c pdn = pci_get_pdn(pdev); pdn 997 arch/powerpc/platforms/powernv/pci.c if (!pdn || pdn->pe_number == IODA_INVALID_PE || !phb) pdn 1000 arch/powerpc/platforms/powernv/pci.c pe = &phb->ioda.pe_array[pdn->pe_number]; pdn 178 arch/powerpc/platforms/powernv/pci.h int pnv_pci_cfg_read(struct pci_dn *pdn, pdn 180 arch/powerpc/platforms/powernv/pci.h int pnv_pci_cfg_write(struct pci_dn *pdn, pdn 47 arch/powerpc/platforms/pseries/eeh_pseries.c struct pci_dn *pdn = pci_get_pdn(pdev); pdn 57 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->device_id = pdev->device; pdn 58 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->vendor_id = pdev->vendor; pdn 59 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->class_code = pdev->class; pdn 65 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->last_allow_rc = 0; pdn 67 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->pe_number = physfn_pdn->pe_num_map[pdn->vf_index]; pdn 70 arch/powerpc/platforms/pseries/eeh_pseries.c eeh_add_device_early(pdn); pdn 74 arch/powerpc/platforms/pseries/eeh_pseries.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 76 arch/powerpc/platforms/pseries/eeh_pseries.c edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8); pdn 155 arch/powerpc/platforms/pseries/eeh_pseries.c static int pseries_eeh_cap_start(struct pci_dn *pdn) pdn 159 arch/powerpc/platforms/pseries/eeh_pseries.c if (!pdn) pdn 162 arch/powerpc/platforms/pseries/eeh_pseries.c rtas_read_config(pdn, PCI_STATUS, 2, &status); pdn 170 arch/powerpc/platforms/pseries/eeh_pseries.c static int pseries_eeh_find_cap(struct pci_dn *pdn, int cap) pdn 172 arch/powerpc/platforms/pseries/eeh_pseries.c int pos = pseries_eeh_cap_start(pdn); pdn 180 arch/powerpc/platforms/pseries/eeh_pseries.c rtas_read_config(pdn, pos, 1, &pos); pdn 184 arch/powerpc/platforms/pseries/eeh_pseries.c rtas_read_config(pdn, pos + PCI_CAP_LIST_ID, 1, &id); pdn 195 arch/powerpc/platforms/pseries/eeh_pseries.c static int pseries_eeh_find_ecap(struct pci_dn *pdn, int cap) pdn 197 arch/powerpc/platforms/pseries/eeh_pseries.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 204 arch/powerpc/platforms/pseries/eeh_pseries.c if (rtas_read_config(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL) pdn 217 arch/powerpc/platforms/pseries/eeh_pseries.c if (rtas_read_config(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL) pdn 233 arch/powerpc/platforms/pseries/eeh_pseries.c static void *pseries_eeh_probe(struct pci_dn *pdn, void *data) pdn 242 arch/powerpc/platforms/pseries/eeh_pseries.c edev = pdn_to_eeh_dev(pdn); pdn 247 arch/powerpc/platforms/pseries/eeh_pseries.c if (!pdn->vendor_id || !pdn->device_id || !pdn->class_code) pdn 251 arch/powerpc/platforms/pseries/eeh_pseries.c if ((pdn->class_code >> 8) == PCI_CLASS_BRIDGE_ISA) pdn 261 arch/powerpc/platforms/pseries/eeh_pseries.c edev->class_code = pdn->class_code; pdn 262 arch/powerpc/platforms/pseries/eeh_pseries.c edev->pcix_cap = pseries_eeh_find_cap(pdn, PCI_CAP_ID_PCIX); pdn 263 arch/powerpc/platforms/pseries/eeh_pseries.c edev->pcie_cap = pseries_eeh_find_cap(pdn, PCI_CAP_ID_EXP); pdn 264 arch/powerpc/platforms/pseries/eeh_pseries.c edev->aer_cap = pseries_eeh_find_ecap(pdn, PCI_EXT_CAP_ID_ERR); pdn 269 arch/powerpc/platforms/pseries/eeh_pseries.c rtas_read_config(pdn, edev->pcie_cap + PCI_EXP_FLAGS, pdn 281 arch/powerpc/platforms/pseries/eeh_pseries.c pe.phb = pdn->phb; pdn 282 arch/powerpc/platforms/pseries/eeh_pseries.c pe.config_addr = (pdn->busno << 16) | (pdn->devfn << 8); pdn 305 arch/powerpc/platforms/pseries/eeh_pseries.c } else if (pdn->parent && pdn_to_eeh_dev(pdn->parent) && pdn 306 arch/powerpc/platforms/pseries/eeh_pseries.c (pdn_to_eeh_dev(pdn->parent))->pe) { pdn 310 arch/powerpc/platforms/pseries/eeh_pseries.c edev->pe_config_addr = pdn_to_eeh_dev(pdn->parent)->pe_config_addr; pdn 642 arch/powerpc/platforms/pseries/eeh_pseries.c static int pseries_eeh_read_config(struct pci_dn *pdn, int where, int size, u32 *val) pdn 644 arch/powerpc/platforms/pseries/eeh_pseries.c return rtas_read_config(pdn, where, size, val); pdn 656 arch/powerpc/platforms/pseries/eeh_pseries.c static int pseries_eeh_write_config(struct pci_dn *pdn, int where, int size, u32 val) pdn 658 arch/powerpc/platforms/pseries/eeh_pseries.c return rtas_write_config(pdn, where, size, val); pdn 661 arch/powerpc/platforms/pseries/eeh_pseries.c static int pseries_eeh_restore_config(struct pci_dn *pdn) pdn 663 arch/powerpc/platforms/pseries/eeh_pseries.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 674 arch/powerpc/platforms/pseries/eeh_pseries.c ret = eeh_restore_vf_config(pdn); pdn 686 arch/powerpc/platforms/pseries/eeh_pseries.c int pseries_send_allow_unfreeze(struct pci_dn *pdn, pdn 693 arch/powerpc/platforms/pseries/eeh_pseries.c addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); pdn 694 arch/powerpc/platforms/pseries/eeh_pseries.c buid = pdn->phb->buid; pdn 706 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->phb->global_number, addr, rc); pdn 712 arch/powerpc/platforms/pseries/eeh_pseries.c struct pci_dn *pdn, *tmp, *parent, *physfn_pdn; pdn 722 arch/powerpc/platforms/pseries/eeh_pseries.c pdn = eeh_dev_to_pdn(edev); pdn 723 arch/powerpc/platforms/pseries/eeh_pseries.c parent = pdn->parent; pdn 726 arch/powerpc/platforms/pseries/eeh_pseries.c cpu_to_be16(pdn->pe_num_map[vf_index]); pdn 727 arch/powerpc/platforms/pseries/eeh_pseries.c rc = pseries_send_allow_unfreeze(pdn, vf_pe_array, pdn 729 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->last_allow_rc = rc; pdn 731 arch/powerpc/platforms/pseries/eeh_pseries.c list_for_each_entry_safe(pdn, tmp, pdn 738 arch/powerpc/platforms/pseries/eeh_pseries.c if (pdn->busno != bus || pdn 739 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->devfn != devfn) pdn 741 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->last_allow_rc = rc; pdn 745 arch/powerpc/platforms/pseries/eeh_pseries.c pdn = pci_get_pdn(edev->pdev); pdn 746 arch/powerpc/platforms/pseries/eeh_pseries.c vf_pe_array[0] = cpu_to_be16(pdn->pe_number); pdn 750 arch/powerpc/platforms/pseries/eeh_pseries.c pdn->last_allow_rc = rc; pdn 758 arch/powerpc/platforms/pseries/eeh_pseries.c static int pseries_notify_resume(struct pci_dn *pdn) pdn 760 arch/powerpc/platforms/pseries/eeh_pseries.c struct eeh_dev *edev = pdn_to_eeh_dev(pdn); pdn 677 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn, *pdn; pdn 687 arch/powerpc/platforms/pseries/iommu.c for (pdn = dn; pdn != NULL; pdn = pdn->parent) { pdn 688 arch/powerpc/platforms/pseries/iommu.c dma_window = of_get_property(pdn, "ibm,dma-window", NULL); pdn 698 arch/powerpc/platforms/pseries/iommu.c ppci = PCI_DN(pdn); pdn 701 arch/powerpc/platforms/pseries/iommu.c pdn, ppci->table_group); pdn 706 arch/powerpc/platforms/pseries/iommu.c iommu_table_setparms_lpar(ppci->phb, pdn, tbl, pdn 819 arch/powerpc/platforms/pseries/iommu.c static u64 find_existing_ddw(struct device_node *pdn) pdn 828 arch/powerpc/platforms/pseries/iommu.c if (window->device == pdn) { pdn 842 arch/powerpc/platforms/pseries/iommu.c struct device_node *pdn; pdn 849 arch/powerpc/platforms/pseries/iommu.c for_each_node_with_property(pdn, DIRECT64_PROPNAME) { pdn 850 arch/powerpc/platforms/pseries/iommu.c direct64 = of_get_property(pdn, DIRECT64_PROPNAME, &len); pdn 857 arch/powerpc/platforms/pseries/iommu.c remove_ddw(pdn, true); pdn 861 arch/powerpc/platforms/pseries/iommu.c window->device = pdn; pdn 876 arch/powerpc/platforms/pseries/iommu.c struct pci_dn *pdn; pdn 888 arch/powerpc/platforms/pseries/iommu.c pdn = PCI_DN(dn); pdn 889 arch/powerpc/platforms/pseries/iommu.c buid = pdn->phb->buid; pdn 890 arch/powerpc/platforms/pseries/iommu.c cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); pdn 905 arch/powerpc/platforms/pseries/iommu.c struct pci_dn *pdn; pdn 917 arch/powerpc/platforms/pseries/iommu.c pdn = PCI_DN(dn); pdn 918 arch/powerpc/platforms/pseries/iommu.c buid = pdn->phb->buid; pdn 919 arch/powerpc/platforms/pseries/iommu.c cfg_addr = ((pdn->busno << 16) | (pdn->devfn << 8)); pdn 937 arch/powerpc/platforms/pseries/iommu.c struct device_node *pdn; pdn 982 arch/powerpc/platforms/pseries/iommu.c static u64 enable_ddw(struct pci_dev *dev, struct device_node *pdn) pdn 998 arch/powerpc/platforms/pseries/iommu.c dma_addr = find_existing_ddw(pdn); pdn 1010 arch/powerpc/platforms/pseries/iommu.c if (fpdn->pdn == pdn) pdn 1022 arch/powerpc/platforms/pseries/iommu.c ret = of_property_read_u32_array(pdn, "ibm,ddw-applicable", pdn 1108 arch/powerpc/platforms/pseries/iommu.c ret = of_add_property(pdn, win64); pdn 1111 arch/powerpc/platforms/pseries/iommu.c pdn, ret); pdn 1115 arch/powerpc/platforms/pseries/iommu.c window->device = pdn; pdn 1128 arch/powerpc/platforms/pseries/iommu.c remove_ddw(pdn, true); pdn 1140 arch/powerpc/platforms/pseries/iommu.c fpdn->pdn = pdn; pdn 1150 arch/powerpc/platforms/pseries/iommu.c struct device_node *pdn, *dn; pdn 1166 arch/powerpc/platforms/pseries/iommu.c for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; pdn 1167 arch/powerpc/platforms/pseries/iommu.c pdn = pdn->parent) { pdn 1168 arch/powerpc/platforms/pseries/iommu.c dma_window = of_get_property(pdn, "ibm,dma-window", NULL); pdn 1173 arch/powerpc/platforms/pseries/iommu.c if (!pdn || !PCI_DN(pdn)) { pdn 1179 arch/powerpc/platforms/pseries/iommu.c pr_debug(" parent is %pOF\n", pdn); pdn 1181 arch/powerpc/platforms/pseries/iommu.c pci = PCI_DN(pdn); pdn 1185 arch/powerpc/platforms/pseries/iommu.c iommu_table_setparms_lpar(pci->phb, pdn, tbl, pdn 1202 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn = pci_device_to_OF_node(pdev), *pdn; pdn 1217 arch/powerpc/platforms/pseries/iommu.c for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; pdn 1218 arch/powerpc/platforms/pseries/iommu.c pdn = pdn->parent) { pdn 1219 arch/powerpc/platforms/pseries/iommu.c dma_window = of_get_property(pdn, "ibm,dma-window", NULL); pdn 1224 arch/powerpc/platforms/pseries/iommu.c if (pdn && PCI_DN(pdn)) { pdn 1225 arch/powerpc/platforms/pseries/iommu.c pdev->dev.archdata.dma_offset = enable_ddw(pdev, pdn); pdn 29 arch/powerpc/platforms/pseries/msi.c static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs) pdn 35 arch/powerpc/platforms/pseries/msi.c addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); pdn 36 arch/powerpc/platforms/pseries/msi.c buid = pdn->phb->buid; pdn 70 arch/powerpc/platforms/pseries/msi.c struct pci_dn *pdn; pdn 72 arch/powerpc/platforms/pseries/msi.c pdn = pci_get_pdn(pdev); pdn 73 arch/powerpc/platforms/pseries/msi.c if (!pdn) pdn 79 arch/powerpc/platforms/pseries/msi.c if (rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, 0) != 0) { pdn 84 arch/powerpc/platforms/pseries/msi.c if (rtas_change_msi(pdn, RTAS_CHANGE_FN, 0) != 0) { pdn 90 arch/powerpc/platforms/pseries/msi.c static int rtas_query_irq_number(struct pci_dn *pdn, int offset) pdn 96 arch/powerpc/platforms/pseries/msi.c addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); pdn 97 arch/powerpc/platforms/pseries/msi.c buid = pdn->phb->buid; pdn 372 arch/powerpc/platforms/pseries/msi.c struct pci_dn *pdn; pdn 407 arch/powerpc/platforms/pseries/msi.c pdn = pci_get_pdn(pdev); pdn 417 arch/powerpc/platforms/pseries/msi.c rc = rtas_change_msi(pdn, RTAS_CHANGE_32MSI_FN, nvec); pdn 432 arch/powerpc/platforms/pseries/msi.c rc = rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, nvec); pdn 436 arch/powerpc/platforms/pseries/msi.c rc = rtas_change_msi(pdn, RTAS_CHANGE_FN, nvec); pdn 442 arch/powerpc/platforms/pseries/msi.c rc = rtas_change_msi(pdn, RTAS_CHANGE_MSIX_FN, nvec); pdn 455 arch/powerpc/platforms/pseries/msi.c hwirq = rtas_query_irq_number(pdn, i++); pdn 62 arch/powerpc/platforms/pseries/pci.c struct pci_dn *pdn; pdn 70 arch/powerpc/platforms/pseries/pci.c pdn = pci_get_pdn(pdev); pdn 71 arch/powerpc/platforms/pseries/pci.c addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); pdn 72 arch/powerpc/platforms/pseries/pci.c buid = pdn->phb->buid; pdn 93 arch/powerpc/platforms/pseries/pci.c struct pci_dn *pdn; pdn 95 arch/powerpc/platforms/pseries/pci.c pdn = pci_get_pdn(pdev); pdn 96 arch/powerpc/platforms/pseries/pci.c pdn->pe_num_map[vf_index] = be16_to_cpu(pe_num); pdn 102 arch/powerpc/platforms/pseries/pci.c pdn->pe_num_map[vf_index]); pdn 107 arch/powerpc/platforms/pseries/pci.c struct pci_dn *pdn; pdn 117 arch/powerpc/platforms/pseries/pci.c pdn = pci_get_pdn(pdev); pdn 120 arch/powerpc/platforms/pseries/pci.c pdn->pe_num_map[vf_index] = IODA_INVALID_PE; pdn 151 arch/powerpc/platforms/pseries/pci.c struct pci_dn *pdn; pdn 172 arch/powerpc/platforms/pseries/pci.c pdn = pci_get_pdn(pdev); pdn 173 arch/powerpc/platforms/pseries/pci.c pdn->pe_num_map = kmalloc_array(num_vfs, pdn 174 arch/powerpc/platforms/pseries/pci.c sizeof(*pdn->pe_num_map), pdn 176 arch/powerpc/platforms/pseries/pci.c if (!pdn->pe_num_map) pdn 184 arch/powerpc/platforms/pseries/pci.c kfree(pdn->pe_num_map); pdn 201 arch/powerpc/platforms/pseries/pci.c struct pci_dn *pdn; pdn 203 arch/powerpc/platforms/pseries/pci.c pdn = pci_get_pdn(pdev); pdn 205 arch/powerpc/platforms/pseries/pci.c kfree(pdn->pe_num_map); pdn 295 arch/powerpc/platforms/pseries/pci.c struct device_node *dn, *pdn; pdn 310 arch/powerpc/platforms/pseries/pci.c for (pdn = dn; pdn != NULL; pdn = of_get_next_parent(pdn)) { pdn 311 arch/powerpc/platforms/pseries/pci.c rc = of_property_read_u32_array(pdn, pdn 318 arch/powerpc/platforms/pseries/pci.c of_node_put(pdn); pdn 246 arch/powerpc/platforms/pseries/setup.c struct pci_dn *pdn; pdn 252 arch/powerpc/platforms/pseries/setup.c pdn = parent ? PCI_DN(parent) : NULL; pdn 253 arch/powerpc/platforms/pseries/setup.c if (pdn) pdn 254 arch/powerpc/platforms/pseries/setup.c pci_add_device_node_info(pdn->phb, np); pdn 259 arch/powerpc/platforms/pseries/setup.c pdn = PCI_DN(np); pdn 260 arch/powerpc/platforms/pseries/setup.c if (pdn) pdn 261 arch/powerpc/platforms/pseries/setup.c list_del(&pdn->list); pdn 81 drivers/infiniband/hw/efa/efa.h u16 pdn; pdn 308 drivers/infiniband/hw/efa/efa_com_cmd.c ah_cmd.pd = params->pdn; pdn 337 drivers/infiniband/hw/efa/efa_com_cmd.c ah_cmd.pd = params->pdn; pdn 648 drivers/infiniband/hw/efa/efa_com_cmd.c result->pdn = resp.pd; pdn 662 drivers/infiniband/hw/efa/efa_com_cmd.c cmd.pd = params->pdn; pdn 89 drivers/infiniband/hw/efa/efa_com_cmd.h u16 pdn; pdn 100 drivers/infiniband/hw/efa/efa_com_cmd.h u16 pdn; pdn 213 drivers/infiniband/hw/efa/efa_com_cmd.h u16 pdn; pdn 217 drivers/infiniband/hw/efa/efa_com_cmd.h u16 pdn; pdn 419 drivers/infiniband/hw/efa/efa_verbs.c static int efa_pd_dealloc(struct efa_dev *dev, u16 pdn) pdn 422 drivers/infiniband/hw/efa/efa_verbs.c .pdn = pdn, pdn 448 drivers/infiniband/hw/efa/efa_verbs.c pd->pdn = result.pdn; pdn 449 drivers/infiniband/hw/efa/efa_verbs.c resp.pdn = result.pdn; pdn 461 drivers/infiniband/hw/efa/efa_verbs.c ibdev_dbg(&dev->ibdev, "Allocated pd[%d]\n", pd->pdn); pdn 466 drivers/infiniband/hw/efa/efa_verbs.c efa_pd_dealloc(dev, result.pdn); pdn 477 drivers/infiniband/hw/efa/efa_verbs.c ibdev_dbg(&dev->ibdev, "Dealloc pd[%d]\n", pd->pdn); pdn 478 drivers/infiniband/hw/efa/efa_verbs.c efa_pd_dealloc(dev, pd->pdn); pdn 691 drivers/infiniband/hw/efa/efa_verbs.c create_qp_params.pd = to_epd(ibpd)->pdn; pdn 1434 drivers/infiniband/hw/efa/efa_verbs.c params.pd = to_epd(ibpd)->pdn; pdn 1675 drivers/infiniband/hw/efa/efa_verbs.c .pdn = to_epd(ah->ibah.pd)->pdn, pdn 1709 drivers/infiniband/hw/efa/efa_verbs.c params.pdn = to_epd(ibah->pd)->pdn; pdn 291 drivers/infiniband/hw/hns/hns_roce_device.h unsigned long pdn; pdn 373 drivers/infiniband/hw/hns/hns_roce_device.h u32 pdn; pdn 948 drivers/infiniband/hw/hns/hns_roce_device.h struct hns_roce_mr *mr, int flags, u32 pdn, pdn 982 drivers/infiniband/hw/hns/hns_roce_device.h struct hns_roce_srq *srq, u32 pdn, u16 xrcd, u32 cqn, pdn 2605 drivers/infiniband/hw/hns/hns_roce_hw_v1.c QP1C_BYTES_4_PD_S, to_hr_pd(ibqp->pd)->pdn); pdn 2791 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_pd(ibqp->pd)->pdn); pdn 2857 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_pd(ibqp->pd)->pdn); pdn 375 drivers/infiniband/hw/hns/hns_roce_hw_v2.c to_hr_pd(ibqp->pd)->pdn); pdn 2324 drivers/infiniband/hw/hns/hns_roce_hw_v2.c u32 pdn, int mr_access_flags, u64 iova, pdn 2335 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_MPT_BYTE_4_PD_S, pdn); pdn 2336 drivers/infiniband/hw/hns/hns_roce_hw_v2.c mr->pd = pdn; pdn 2421 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_MPT_BYTE_4_PD_S, mw->pdn); pdn 3282 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_16_PD_S, to_hr_pd(ibqp->pd)->pdn); pdn 3602 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_16_PD_S, to_hr_pd(ibqp->pd)->pdn); pdn 6028 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_srq *srq, u32 pdn, u16 xrcd, pdn 6067 drivers/infiniband/hw/hns/hns_roce_hw_v2.c SRQC_BYTE_28_PD_S, pdn); pdn 997 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hns_roce_mr_alloc(to_hr_dev(pd->device), to_hr_pd(pd)->pdn, 0, pdn 1180 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hns_roce_mr_alloc(hr_dev, to_hr_pd(pd)->pdn, virt_addr, length, pdn 1212 drivers/infiniband/hw/hns/hns_roce_mr.c u32 pdn, struct ib_udata *udata) pdn 1253 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hr_dev->hw->rereg_write_mtpt(hr_dev, mr, flags, pdn, pdn 1294 drivers/infiniband/hw/hns/hns_roce_mr.c u32 pdn = 0; pdn 1318 drivers/infiniband/hw/hns/hns_roce_mr.c pdn = to_hr_pd(pd)->pdn; pdn 1324 drivers/infiniband/hw/hns/hns_roce_mr.c mailbox, pdn, udata); pdn 1328 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hr_dev->hw->rereg_write_mtpt(hr_dev, mr, flags, pdn, pdn 1403 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hns_roce_mr_alloc(hr_dev, to_hr_pd(pd)->pdn, 0, length, pdn 1533 drivers/infiniband/hw/hns/hns_roce_mr.c mw->pdn = to_hr_pd(ib_pd)->pdn; pdn 38 drivers/infiniband/hw/hns/hns_roce_pd.c static int hns_roce_pd_alloc(struct hns_roce_dev *hr_dev, unsigned long *pdn) pdn 40 drivers/infiniband/hw/hns/hns_roce_pd.c return hns_roce_bitmap_alloc(&hr_dev->pd_bitmap, pdn) ? -ENOMEM : 0; pdn 43 drivers/infiniband/hw/hns/hns_roce_pd.c static void hns_roce_pd_free(struct hns_roce_dev *hr_dev, unsigned long pdn) pdn 45 drivers/infiniband/hw/hns/hns_roce_pd.c hns_roce_bitmap_free(&hr_dev->pd_bitmap, pdn, BITMAP_NO_RR); pdn 68 drivers/infiniband/hw/hns/hns_roce_pd.c ret = hns_roce_pd_alloc(to_hr_dev(ib_dev), &pd->pdn); pdn 75 drivers/infiniband/hw/hns/hns_roce_pd.c struct hns_roce_ib_alloc_pd_resp uresp = {.pdn = pd->pdn}; pdn 78 drivers/infiniband/hw/hns/hns_roce_pd.c hns_roce_pd_free(to_hr_dev(ib_dev), pd->pdn); pdn 89 drivers/infiniband/hw/hns/hns_roce_pd.c hns_roce_pd_free(to_hr_dev(pd->device), to_hr_pd(pd)->pdn); pdn 80 drivers/infiniband/hw/hns/hns_roce_srq.c static int hns_roce_srq_alloc(struct hns_roce_dev *hr_dev, u32 pdn, u32 cqn, pdn 133 drivers/infiniband/hw/hns/hns_roce_srq.c hr_dev->hw->write_srqc(hr_dev, srq, pdn, xrcd, cqn, mailbox->buf, pdn 413 drivers/infiniband/hw/hns/hns_roce_srq.c ret = hns_roce_srq_alloc(hr_dev, to_hr_pd(ib_srq->pd)->pdn, cqn, 0, pdn 48 drivers/infiniband/hw/mlx4/ah.c ah->av.ib.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | pdn 118 drivers/infiniband/hw/mlx4/ah.c ah->av.eth.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | pdn 1200 drivers/infiniband/hw/mlx4/main.c err = mlx4_pd_alloc(to_mdev(ibdev)->dev, &pd->pdn); pdn 1204 drivers/infiniband/hw/mlx4/main.c if (udata && ib_copy_to_udata(udata, &pd->pdn, sizeof(__u32))) { pdn 1205 drivers/infiniband/hw/mlx4/main.c mlx4_pd_free(to_mdev(ibdev)->dev, pd->pdn); pdn 1213 drivers/infiniband/hw/mlx4/main.c mlx4_pd_free(to_mdev(pd->device)->dev, to_mpd(pd)->pdn); pdn 94 drivers/infiniband/hw/mlx4/mlx4_ib.h u32 pdn; pdn 67 drivers/infiniband/hw/mlx4/mr.c err = mlx4_mr_alloc(to_mdev(pd->device)->dev, to_mpd(pd)->pdn, 0, pdn 427 drivers/infiniband/hw/mlx4/mr.c err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, virt_addr, length, pdn 481 drivers/infiniband/hw/mlx4/mr.c to_mpd(pd)->pdn); pdn 625 drivers/infiniband/hw/mlx4/mr.c err = mlx4_mw_alloc(dev->dev, to_mpd(pd)->pdn, pdn 672 drivers/infiniband/hw/mlx4/mr.c err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, 0, 0, 0, pdn 712 drivers/infiniband/hw/mlx4/mr.c err = mlx4_fmr_alloc(dev->dev, to_mpd(pd)->pdn, convert_access(acc), pdn 2375 drivers/infiniband/hw/mlx4/qp.c context->pd = cpu_to_be32(pd->pdn); pdn 179 drivers/infiniband/hw/mlx4/srq.c err = mlx4_srq_alloc(dev->dev, to_mpd(ib_srq->pd)->pdn, cqn, xrcdn, pdn 266 drivers/infiniband/hw/mlx5/cmd.c void mlx5_cmd_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn, u16 uid) pdn 272 drivers/infiniband/hw/mlx5/cmd.c MLX5_SET(dealloc_pd_in, in, pd, pdn); pdn 50 drivers/infiniband/hw/mlx5/cmd.h void mlx5_cmd_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn, u16 uid); pdn 2487 drivers/infiniband/hw/mlx5/main.c pd->pdn = MLX5_GET(alloc_pd_out, out, pd); pdn 2490 drivers/infiniband/hw/mlx5/main.c resp.pdn = pd->pdn; pdn 2492 drivers/infiniband/hw/mlx5/main.c mlx5_cmd_dealloc_pd(to_mdev(ibdev)->mdev, pd->pdn, uid); pdn 2505 drivers/infiniband/hw/mlx5/main.c mlx5_cmd_dealloc_pd(mdev->mdev, mpd->pdn, mpd->uid); pdn 151 drivers/infiniband/hw/mlx5/mlx5_ib.h u32 pdn; pdn 712 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); pdn 880 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.pd = to_mpd(pd)->pdn; pdn 1101 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); pdn 1179 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); pdn 1474 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.pd = to_mpd(pd)->pdn; pdn 1651 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); pdn 1764 drivers/infiniband/hw/mlx5/mr.c err = mlx5_core_create_psv(dev->mdev, to_mpd(pd)->pdn, 2, psv_index); pdn 1929 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); pdn 2177 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, pd, to_mpd(pd ? pd : devr->p0)->pdn); pdn 2572 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, pd, to_mpd(pd)->pdn); pdn 3566 drivers/infiniband/hw/mlx5/qp.c context->flags_pd = cpu_to_be32(pd ? pd->pdn : to_mpd(dev->devr.p0)->pdn); pdn 4380 drivers/infiniband/hw/mlx5/qp.c seg->flags_pd = cpu_to_be32(to_mpd(umrwr->pd)->pdn); pdn 4703 drivers/infiniband/hw/mlx5/qp.c u32 size, u32 length, u32 pdn) pdn 4713 drivers/infiniband/hw/mlx5/qp.c MLX5_MKEY_BSF_EN | pdn); pdn 4738 drivers/infiniband/hw/mlx5/qp.c u32 pdn = get_pd(qp)->pdn; pdn 4767 drivers/infiniband/hw/mlx5/qp.c pdn); pdn 5968 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(wq, wq, pd, to_mpd(pd)->pdn); pdn 299 drivers/infiniband/hw/mlx5/srq.c in.pd = to_mpd(ib_srq->pd)->pdn; pdn 769 drivers/infiniband/hw/mthca/mthca_cq.c struct mthca_ucontext *ctx, u32 pdn, pdn 833 drivers/infiniband/hw/mthca/mthca_cq.c cq_context->pd = cpu_to_be32(pdn); pdn 499 drivers/infiniband/hw/mthca/mthca_dev.h struct mthca_ucontext *ctx, u32 pdn, pdn 652 drivers/infiniband/hw/mthca/mthca_provider.c udata ? ucmd.pdn : to_mdev(ibdev)->driver_pd.pd_num, pdn 129 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h u32 pdn; pdn 457 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c pd->pdn = resp->pd_handle; pdn 458 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c pd_resp.pdn = resp->pd_handle; pdn 425 drivers/net/can/usb/peak_usb/pcan_usb_pro.c struct pcan_usb_pro_devid *pdn; pdn 441 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pdn = (struct pcan_usb_pro_devid *)pc; pdn 443 drivers/net/can/usb/peak_usb/pcan_usb_pro.c *device_id = le32_to_cpu(pdn->serial_num); pdn 391 drivers/net/ethernet/mellanox/mlx4/mr.c u32 pdn) pdn 399 drivers/net/ethernet/mellanox/mlx4/mr.c (pdn & MLX4_MPT_PD_MASK) pdn 47 drivers/net/ethernet/mellanox/mlx4/pd.c int mlx4_pd_alloc(struct mlx4_dev *dev, u32 *pdn) pdn 51 drivers/net/ethernet/mellanox/mlx4/pd.c *pdn = mlx4_bitmap_alloc(&priv->pd_bitmap); pdn 52 drivers/net/ethernet/mellanox/mlx4/pd.c if (*pdn == -1) pdn 59 drivers/net/ethernet/mellanox/mlx4/pd.c void mlx4_pd_free(struct mlx4_dev *dev, u32 pdn) pdn 61 drivers/net/ethernet/mellanox/mlx4/pd.c mlx4_bitmap_free(&mlx4_priv(dev)->pd_bitmap, pdn, MLX4_USE_RR); pdn 162 drivers/net/ethernet/mellanox/mlx4/srq.c int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcd, pdn 198 drivers/net/ethernet/mellanox/mlx4/srq.c srq_context->pd = cpu_to_be32(pdn); pdn 199 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET(mkc, mkc, pd, tracer->buff.pdn); pdn 1005 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c err = mlx5_core_alloc_pd(dev, &tracer->buff.pdn); pdn 1025 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c mlx5_core_dealloc_pd(dev, tracer->buff.pdn); pdn 1045 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c mlx5_core_dealloc_pd(tracer->dev, tracer->buff.pdn); pdn 88 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h u32 pdn; pdn 64 drivers/net/ethernet/mellanox/mlx5/core/en_common.c static int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, pdn 81 drivers/net/ethernet/mellanox/mlx5/core/en_common.c MLX5_SET(mkc, mkc, pd, pdn); pdn 96 drivers/net/ethernet/mellanox/mlx5/core/en_common.c err = mlx5_core_alloc_pd(mdev, &res->pdn); pdn 108 drivers/net/ethernet/mellanox/mlx5/core/en_common.c err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey); pdn 130 drivers/net/ethernet/mellanox/mlx5/core/en_common.c mlx5_core_dealloc_pd(mdev, res->pdn); pdn 141 drivers/net/ethernet/mellanox/mlx5/core/en_common.c mlx5_core_dealloc_pd(mdev, res->pdn); pdn 289 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(mkc, mkc, pd, mdev->mlx5e_res.pdn); pdn 2178 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(wq, wq, pd, mdev->mlx5e_res.pdn); pdn 2208 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(wq, wq, pd, priv->mdev->mlx5e_res.pdn); pdn 3210 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(tisc, tisc, pd, mdev->mlx5e_res.pdn); pdn 223 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c static int mlx5_fpga_conn_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, pdn 240 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(mkc, mkc, pd, pdn); pdn 589 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, qpc, pd, fdev->conn_res.pdn); pdn 698 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, qpc, pd, conn->fdev->conn_res.pdn); pdn 1016 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c err = mlx5_core_alloc_pd(fdev->mdev, &fdev->conn_res.pdn); pdn 1021 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c mlx5_fpga_dbg(fdev, "Allocated PD %u\n", fdev->conn_res.pdn); pdn 1023 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c err = mlx5_fpga_conn_create_mkey(fdev->mdev, fdev->conn_res.pdn, pdn 1034 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c mlx5_core_dealloc_pd(fdev->mdev, fdev->conn_res.pdn); pdn 1046 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c mlx5_core_dealloc_pd(fdev->mdev, fdev->conn_res.pdn); pdn 56 drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h u32 pdn; pdn 674 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c return mdev->mlx5e_res.pdn != 0; pdn 50 drivers/net/ethernet/mellanox/mlx5/core/lib/crypto.c MLX5_SET(encryption_key_obj, obj, pd, mdev->mlx5e_res.pdn); pdn 149 drivers/net/ethernet/mellanox/mlx5/core/mr.c int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn, pdn 160 drivers/net/ethernet/mellanox/mlx5/core/mr.c MLX5_SET(create_psv_in, in, pd, pdn); pdn 39 drivers/net/ethernet/mellanox/mlx5/core/pd.c int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn) pdn 48 drivers/net/ethernet/mellanox/mlx5/core/pd.c *pdn = MLX5_GET(alloc_pd_out, out, pd); pdn 53 drivers/net/ethernet/mellanox/mlx5/core/pd.c int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn) pdn 59 drivers/net/ethernet/mellanox/mlx5/core/pd.c MLX5_SET(dealloc_pd_in, in, pd, pdn); pdn 60 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c ret = mlx5_core_alloc_pd(dmn->mdev, &dmn->pdn); pdn 102 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c mlx5_core_dealloc_pd(dmn->mdev, dmn->pdn); pdn 113 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c mlx5_core_dealloc_pd(dmn->mdev, dmn->pdn); pdn 128 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c err = dr_icm_create_dm_mkey(mdev, pool->dmn->pdn, pdn 45 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c u32 pdn; pdn 164 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, pd, attr->pdn); pdn 798 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c dr_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, struct mlx5_core_mkey *mkey) pdn 811 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(mkc, mkc, pd, pdn); pdn 819 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c u32 pdn, void *buf, size_t size) pdn 839 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c err = dr_create_mkey(mdev, pdn, &mr->mkey); pdn 882 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c init_attr.pdn = dmn->pdn; pdn 921 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c dmn->pdn, dmn->send_ring->buf, size); pdn 928 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c dmn->pdn, dmn->send_ring->sync_buff, pdn 650 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h u32 pdn; pdn 930 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h u32 pdn; pdn 241 drivers/pci/hotplug/pnv_php.c struct pci_dn *pdn; pdn 243 drivers/pci/hotplug/pnv_php.c pdn = pci_add_device_node_info(hose, dn); pdn 244 drivers/pci/hotplug/pnv_php.c if (!pdn) pdn 139 drivers/pci/hotplug/rpadlpar_core.c struct pci_dn *pdn = PCI_DN(dn); pdn 140 drivers/pci/hotplug/rpadlpar_core.c struct pci_controller *phb = pdn->phb; pdn 143 drivers/pci/hotplug/rpadlpar_core.c eeh_add_device_tree_early(pdn); pdn 146 drivers/pci/hotplug/rpadlpar_core.c dev = of_create_pci_dev(dn, phb->bus, pdn->devfn); pdn 207 drivers/pci/hotplug/rpadlpar_core.c struct pci_dn *pdn; pdn 221 drivers/pci/hotplug/rpadlpar_core.c pdn = dn->data; pdn 222 drivers/pci/hotplug/rpadlpar_core.c BUG_ON(!pdn || !pdn->phb); pdn 223 drivers/pci/hotplug/rpadlpar_core.c rc = remove_phb_dynamic(pdn->phb); pdn 227 drivers/pci/hotplug/rpadlpar_core.c pdn->phb = NULL; pdn 1150 fs/ceph/inode.c static int splice_dentry(struct dentry **pdn, struct inode *in) pdn 1152 fs/ceph/inode.c struct dentry *dn = *pdn; pdn 1195 fs/ceph/inode.c *pdn = realdn; pdn 1102 include/linux/mlx4/device.h int mlx4_pd_alloc(struct mlx4_dev *dev, u32 *pdn); pdn 1103 include/linux/mlx4/device.h void mlx4_pd_free(struct mlx4_dev *dev, u32 pdn); pdn 1150 include/linux/mlx4/device.h int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcdn, pdn 1530 include/linux/mlx4/device.h u32 pdn); pdn 623 include/linux/mlx5/driver.h u32 pdn; pdn 961 include/linux/mlx5/driver.h int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn); pdn 962 include/linux/mlx5/driver.h int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn); pdn 995 include/linux/mlx5/driver.h int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn, pdn 38 include/uapi/rdma/efa-abi.h __u16 pdn; pdn 80 include/uapi/rdma/hns-abi.h __u32 pdn; pdn 75 include/uapi/rdma/mlx4-abi.h __u32 pdn; pdn 153 include/uapi/rdma/mlx5-abi.h __u32 pdn; pdn 59 include/uapi/rdma/mthca-abi.h __u32 pdn; pdn 76 include/uapi/rdma/mthca-abi.h __u32 pdn; pdn 142 include/uapi/rdma/vmw_pvrdma-abi.h __u32 pdn;