/arch/powerpc/kernel/ |
D | pci_dn.c | 34 struct pci_dn *pdn; in pci_bus_to_pdn() local 53 pdn = dn ? PCI_DN(dn) : NULL; in pci_bus_to_pdn() 55 return pdn; in pci_bus_to_pdn() 62 struct pci_dn *parent, *pdn; in pci_get_pdn_by_devfn() local 77 pdn = dn ? PCI_DN(dn) : NULL; in pci_get_pdn_by_devfn() 78 if (pdn) in pci_get_pdn_by_devfn() 79 return pdn; in pci_get_pdn_by_devfn() 86 list_for_each_entry(pdn, &parent->child_list, list) { in pci_get_pdn_by_devfn() 87 if (pdn->busno == bus->number && in pci_get_pdn_by_devfn() 88 pdn->devfn == devfn) in pci_get_pdn_by_devfn() [all …]
|
D | rtas_pci.c | 45 int rtas_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in rtas_read_config() argument 51 if (!pdn) in rtas_read_config() 53 if (!config_access_valid(pdn, where)) in rtas_read_config() 56 if (pdn->edev && pdn->edev->pe && in rtas_read_config() 57 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) in rtas_read_config() 61 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_read_config() 62 buid = pdn->phb->buid; in rtas_read_config() 81 struct pci_dn *pdn; in rtas_pci_read_config() local 86 pdn = pci_get_pdn_by_devfn(bus, devfn); in rtas_pci_read_config() 89 ret = rtas_read_config(pdn, where, size, val); in rtas_pci_read_config() [all …]
|
D | pci-hotplug.c | 40 struct pci_dn *pdn = PCI_DN(dn); in pci_find_bus_by_node() local 42 if (!pdn || !pdn->phb || !pdn->phb->bus) in pci_find_bus_by_node() 45 return find_bus_among_children(pdn->phb->bus, dn); in pci_find_bus_by_node() 58 struct pci_dn *pdn = pci_get_pdn(dev); in pcibios_release_device() local 64 if (pdn && (pdn->flags & PCI_DN_FLAG_DEAD)) { in pcibios_release_device() 66 kfree(pdn); in pcibios_release_device()
|
D | eeh_sysfs.c | 84 struct pci_dn *pdn = pci_get_pdn(pdev); in eeh_notify_resume_show() local 89 return sprintf(buf, "%d\n", pdn->last_allow_rc); in eeh_notify_resume_show()
|
/arch/powerpc/platforms/pseries/ |
D | eeh_pseries.c | 48 struct pci_dn *pdn = pci_get_pdn(pdev); in pseries_pcibios_bus_add_device() local 56 pdn->device_id = pdev->device; in pseries_pcibios_bus_add_device() 57 pdn->vendor_id = pdev->vendor; in pseries_pcibios_bus_add_device() 58 pdn->class_code = pdev->class; in pseries_pcibios_bus_add_device() 64 pdn->last_allow_rc = 0; in pseries_pcibios_bus_add_device() 67 pseries_eeh_init_edev(pdn); in pseries_pcibios_bus_add_device() 75 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pseries_pcibios_bus_add_device() 77 edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8); in pseries_pcibios_bus_add_device() 99 static int pseries_eeh_get_pe_config_addr(struct pci_dn *pdn) in pseries_eeh_get_pe_config_addr() argument 101 int config_addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_eeh_get_pe_config_addr() [all …]
|
D | pci.c | 61 struct pci_dn *pdn; in pseries_send_map_pe() local 69 pdn = pci_get_pdn(pdev); in pseries_send_map_pe() 70 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in pseries_send_map_pe() 71 buid = pdn->phb->buid; in pseries_send_map_pe() 92 struct pci_dn *pdn; in pseries_set_pe_num() local 94 pdn = pci_get_pdn(pdev); in pseries_set_pe_num() 95 pdn->pe_num_map[vf_index] = be16_to_cpu(pe_num); in pseries_set_pe_num() 101 pdn->pe_num_map[vf_index]); in pseries_set_pe_num() 106 struct pci_dn *pdn; in pseries_associate_pes() local 116 pdn = pci_get_pdn(pdev); in pseries_associate_pes() [all …]
|
D | iommu.c | 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() [all …]
|
D | msi.c | 31 static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs) in rtas_change_msi() argument 37 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi() 38 buid = pdn->phb->buid; in rtas_change_msi() 72 struct pci_dn *pdn; in rtas_disable_msi() local 74 pdn = pci_get_pdn(pdev); in rtas_disable_msi() 75 if (!pdn) in rtas_disable_msi() 81 if (rtas_change_msi(pdn, RTAS_CHANGE_MSI_FN, 0) != 0) { in rtas_disable_msi() 86 if (rtas_change_msi(pdn, RTAS_CHANGE_FN, 0) != 0) { in rtas_disable_msi() 92 static int rtas_query_irq_number(struct pci_dn *pdn, int offset) in rtas_query_irq_number() argument 98 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_query_irq_number() [all …]
|
D | setup.c | 255 struct pci_dn *pdn; in pci_dn_reconfig_notifier() local 261 pdn = parent ? PCI_DN(parent) : NULL; in pci_dn_reconfig_notifier() 262 if (pdn) in pci_dn_reconfig_notifier() 263 pci_add_device_node_info(pdn->phb, np); in pci_dn_reconfig_notifier() 268 pdn = PCI_DN(np); in pci_dn_reconfig_notifier() 269 if (pdn) in pci_dn_reconfig_notifier() 270 list_del(&pdn->list); in pci_dn_reconfig_notifier()
|
D | mobility.c | 66 struct device_node *pdn; in delete_dt_node() local 69 pdn = of_get_parent(dn); in delete_dt_node() 71 of_node_is_type(pdn, "ibm,platform-facilities"); in delete_dt_node() 72 of_node_put(pdn); in delete_dt_node()
|
/arch/powerpc/platforms/powernv/ |
D | eeh-powernv.c | 230 static int pnv_eeh_find_cap(struct pci_dn *pdn, int cap) in pnv_eeh_find_cap() argument 236 if (!pdn) in pnv_eeh_find_cap() 240 pnv_pci_cfg_read(pdn, PCI_STATUS, 2, &status); in pnv_eeh_find_cap() 245 pnv_pci_cfg_read(pdn, pos, 1, &pos); in pnv_eeh_find_cap() 250 pnv_pci_cfg_read(pdn, pos + PCI_CAP_LIST_ID, 1, &id); in pnv_eeh_find_cap() 265 static int pnv_eeh_find_ecap(struct pci_dn *pdn, int cap) in pnv_eeh_find_ecap() argument 267 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_find_ecap() 273 if (pnv_pci_cfg_read(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL) in pnv_eeh_find_ecap() 286 if (pnv_pci_cfg_read(pdn, pos, 4, &header) != PCIBIOS_SUCCESSFUL) in pnv_eeh_find_ecap() 323 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_eeh_probe() local [all …]
|
D | pci.c | 531 static void pnv_pci_config_check_eeh(struct pci_dn *pdn) in pnv_pci_config_check_eeh() argument 533 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_config_check_eeh() 544 pe_no = pdn->pe_number; in pnv_pci_config_check_eeh() 569 (pdn->busno << 8) | (pdn->devfn), pe_no, fstate); in pnv_pci_config_check_eeh() 586 int pnv_pci_cfg_read(struct pci_dn *pdn, in pnv_pci_cfg_read() argument 589 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_read() 590 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_read() 618 __func__, pdn->busno, pdn->devfn, where, size, *val); in pnv_pci_cfg_read() 622 int pnv_pci_cfg_write(struct pci_dn *pdn, in pnv_pci_cfg_write() argument 625 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_write() [all …]
|
D | pci-ioda.c | 681 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_get_pe() local 683 if (!pdn) in pnv_ioda_get_pe() 685 if (pdn->pe_number == IODA_INVALID_PE) in pnv_ioda_get_pe() 687 return &phb->ioda.pe_array[pdn->pe_number]; in pnv_ioda_get_pe() 778 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_ioda_set_peltv() local 781 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_set_peltv() 782 parent = &phb->ioda.pe_array[pdn->pe_number]; in pnv_ioda_set_peltv() 801 struct pci_dn *pdn = pci_get_pdn(parent); in pnv_ioda_unset_peltv() local 803 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_unset_peltv() 804 rc = opal_pci_set_peltv(phb->opal_id, pdn->pe_number, in pnv_ioda_unset_peltv() [all …]
|
D | pci.h | 276 int pnv_pci_cfg_read(struct pci_dn *pdn, 278 int pnv_pci_cfg_write(struct pci_dn *pdn,
|
D | pci-sriov.c | 627 struct pci_dn *pdn; in pnv_ioda_setup_vf_PE() local 633 pdn = pci_get_pdn(pdev); in pnv_ioda_setup_vf_PE() 668 list_for_each_entry(vf_pdn, &pdn->parent->child_list, list) { in pnv_ioda_setup_vf_PE()
|
/arch/powerpc/include/asm/ |
D | eeh.h | 145 struct pci_dn *pdn; /* Associated PCI device node */ member 167 return edev ? edev->pdn : NULL; in eeh_dev_to_pdn() 357 void pseries_eeh_init_edev(struct pci_dn *pdn); 358 void pseries_eeh_init_edev_recursive(struct pci_dn *pdn); 360 static inline void pseries_eeh_add_device_early(struct pci_dn *pdn) { } in pseries_eeh_add_device_early() argument 361 static inline void pseries_eeh_add_device_tree_early(struct pci_dn *pdn) { } in pseries_eeh_add_device_tree_early() argument
|
D | pci-bridge.h | 249 static inline struct eeh_dev *pdn_to_eeh_dev(struct pci_dn *pdn) in pdn_to_eeh_dev() argument 251 return pdn ? pdn->edev : NULL; in pdn_to_eeh_dev()
|
/arch/arm/boot/dts/ |
D | exynos3250-artik5.dtsi | 363 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_PREV>; 364 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_DOWN>; 384 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>; 385 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>; 392 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT0>; 393 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_DOWN>;
|
D | exynos4210-i9100.dts | 685 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>; 686 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>; 691 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT0>; 692 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>; 697 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>; 698 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>; 703 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT1>; 704 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>;
|
D | rk3188-bqedison2qc.dts | 551 cif0_pdn: cif0-pdn { 555 cif1_pdn: cif1-pdn {
|
D | exynos3250-pinctrl.dtsi | 50 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_ ##_mode>; \ 51 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_ ##_pull>; \
|
/arch/arm/mach-imx/ |
D | src.c | 99 void imx_gpcv2_set_core1_pdn_pup_by_software(bool pdn) in imx_gpcv2_set_core1_pdn_pup_by_software() argument 101 u32 reg = pdn ? GPC_CPU_PGC_SW_PDN_REQ : GPC_CPU_PGC_SW_PUP_REQ; in imx_gpcv2_set_core1_pdn_pup_by_software()
|
D | common.h | 83 void imx_gpcv2_set_core1_pdn_pup_by_software(bool pdn);
|
/arch/arm64/boot/dts/socionext/ |
D | uniphier-ld20-global.dts | 118 pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(0, 1) GPIO_ACTIVE_LOW>;
|
D | uniphier-ld11-global.dts | 118 pdn-gpios = <&gpio UNIPHIER_GPIO_PORT(23, 5) GPIO_ACTIVE_LOW>;
|