/Linux-v4.19/arch/powerpc/kernel/ |
D | pci_dn.c | 43 static struct pci_dn *pci_bus_to_pdn(struct pci_bus *bus) in pci_bus_to_pdn() 47 struct pci_dn *pdn; in pci_bus_to_pdn() 71 struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus, in pci_get_pdn_by_devfn() 75 struct pci_dn *parent, *pdn; in pci_get_pdn_by_devfn() 108 struct pci_dn *pci_get_pdn(struct pci_dev *pdev) in pci_get_pdn() 111 struct pci_dn *parent, *pdn; in pci_get_pdn() 141 static struct pci_dn *add_one_dev_pci_data(struct pci_dn *parent, in add_one_dev_pci_data() 145 struct pci_dn *pdn; in add_one_dev_pci_data() 169 struct pci_dn *add_dev_pci_data(struct pci_dev *pdev) in add_dev_pci_data() 172 struct pci_dn *parent, *pdn; in add_dev_pci_data() [all …]
|
D | rtas_pci.c | 48 static inline int config_access_valid(struct pci_dn *dn, int where) in config_access_valid() 58 int rtas_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in rtas_read_config() 94 struct pci_dn *pdn; in rtas_pci_read_config() 110 int rtas_write_config(struct pci_dn *pdn, int where, int size, u32 val) in rtas_write_config() 144 struct pci_dn *pdn; in rtas_pci_write_config()
|
D | eeh_pe.c | 302 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_pe_get_parent() 340 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_add_to_parent_pe() 458 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_rmv_from_parent_pe() 709 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_bridge_check_link() 784 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_bridge_bars() 814 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_device_bars() 858 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_one_device_bars()
|
D | eeh.c | 166 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_dump_dev_log() 722 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_dev_state() 740 int eeh_restore_vf_config(struct pci_dn *pdn) in eeh_restore_vf_config() 948 struct pci_dn *pdn; in eeh_save_bars() 1032 struct pci_dn *pdn; in eeh_probe_devices() 1110 void eeh_add_device_early(struct pci_dn *pdn) in eeh_add_device_early() 1137 void eeh_add_device_tree_early(struct pci_dn *pdn) in eeh_add_device_tree_early() 1139 struct pci_dn *n; in eeh_add_device_tree_early() 1159 struct pci_dn *pdn; in eeh_add_device_late()
|
D | eeh_dev.c | 51 struct eeh_dev *eeh_dev_init(struct pci_dn *pdn) in eeh_dev_init()
|
D | eeh_cache.c | 173 struct pci_dn *pdn; in __eeh_addr_cache_insert_dev() 280 struct pci_dn *pdn; in eeh_addr_cache_build()
|
D | pci-hotplug.c | 44 struct pci_dn *pdn = PCI_DN(dn); in pci_find_bus_by_node()
|
D | eeh_sysfs.c | 99 struct pci_dn *pdn = pci_get_pdn(pdev); in eeh_notify_resume_show()
|
D | eeh_driver.c | 473 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_add_virt_device() 549 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_rmv_device()
|
D | Makefile | 106 pci64-$(CONFIG_PPC64) += pci_dn.o pci-hotplug.o isa-bridge.o
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | eeh.h | 34 struct pci_dn; 147 struct pci_dn *pdn; /* Associated PCI device node */ 154 static inline struct pci_dn *eeh_dev_to_pdn(struct eeh_dev *edev) in eeh_dev_to_pdn() 207 void* (*probe)(struct pci_dn *pdn, void *data); 217 int (*read_config)(struct pci_dn *pdn, int where, int size, u32 *val); 218 int (*write_config)(struct pci_dn *pdn, int where, int size, u32 val); 220 int (*restore_config)(struct pci_dn *pdn); 221 int (*notify_resume)(struct pci_dn *pdn); 288 struct eeh_dev *eeh_dev_init(struct pci_dn *pdn); 296 void eeh_add_device_early(struct pci_dn *); [all …]
|
D | pci-bridge.h | 128 struct pci_dn *pci_data; 185 struct pci_dn { struct 195 struct pci_dn *parent; argument 222 #define PCI_DN(dn) ((struct pci_dn *) (dn)->data) 224 extern struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus, 226 extern struct pci_dn *pci_get_pdn(struct pci_dev *pdev); 227 extern struct pci_dn *add_dev_pci_data(struct pci_dev *pdev); 229 extern struct pci_dn *pci_add_device_node_info(struct pci_controller *hose, 244 static inline struct eeh_dev *pdn_to_eeh_dev(struct pci_dn *pdn) in pdn_to_eeh_dev()
|
D | ppc-pci.h | 34 struct pci_dn; 39 void *traverse_pci_dn(struct pci_dn *root, 40 void *(*fn)(struct pci_dn *, void *), 58 int rtas_write_config(struct pci_dn *, int where, int size, u32 val); 59 int rtas_read_config(struct pci_dn *, int where, int size, u32 *val);
|
D | device.h | 11 struct pci_dn; 40 struct pci_dn *pci_data;
|
/Linux-v4.19/arch/powerpc/platforms/pseries/ |
D | eeh_pseries.c | 61 struct pci_dn *pdn = pci_get_pdn(pdev); in pseries_pcibios_bus_add_device() 62 struct pci_dn *physfn_pdn; in pseries_pcibios_bus_add_device() 168 static int pseries_eeh_cap_start(struct pci_dn *pdn) in pseries_eeh_cap_start() 183 static int pseries_eeh_find_cap(struct pci_dn *pdn, int cap) in pseries_eeh_find_cap() 208 static int pseries_eeh_find_ecap(struct pci_dn *pdn, int cap) in pseries_eeh_find_ecap() 246 static void *pseries_eeh_probe(struct pci_dn *pdn, void *data) in pseries_eeh_probe() 710 static int pseries_eeh_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in pseries_eeh_read_config() 724 static int pseries_eeh_write_config(struct pci_dn *pdn, int where, int size, u32 val) in pseries_eeh_write_config() 729 static int pseries_eeh_restore_config(struct pci_dn *pdn) in pseries_eeh_restore_config() 754 int pseries_send_allow_unfreeze(struct pci_dn *pdn, in pseries_send_allow_unfreeze() [all …]
|
D | pci.c | 74 struct pci_dn *pdn; in pseries_send_map_pe() 105 struct pci_dn *pdn; in pseries_set_pe_num() 119 struct pci_dn *pdn; in pseries_associate_pes() 163 struct pci_dn *pdn; in pseries_pci_sriov_enable() 213 struct pci_dn *pdn; in pseries_pcibios_sriov_disable()
|
D | msi.c | 34 static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs) in rtas_change_msi() 75 struct pci_dn *pdn; in rtas_disable_msi() 95 static int rtas_query_irq_number(struct pci_dn *pdn, int offset) in rtas_query_irq_number() 376 struct pci_dn *pdn; in rtas_setup_msi_irqs()
|
D | iommu.c | 584 struct pci_dn *pci; in pci_dma_bus_setup_pSeries() 698 struct pci_dn *ppci; in pci_dma_bus_setup_pSeriesLP() 900 struct pci_dn *pdn; in query_ddw() 929 struct pci_dn *pdn; in create_ddw() 1149 struct pci_dn *pci; in pci_dma_dev_setup_pSeriesLP() 1324 struct pci_dn *pci = PCI_DN(np); in iommu_reconfig_notifier()
|
D | setup.c | 219 struct pci_dn *pdn; in pci_dn_reconfig_notifier()
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | eeh-powernv.c | 48 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_pcibios_bus_add_device() 292 static int pnv_eeh_find_cap(struct pci_dn *pdn, int cap) in pnv_eeh_find_cap() 327 static int pnv_eeh_find_ecap(struct pci_dn *pdn, int cap) in pnv_eeh_find_ecap() 372 static void *pnv_eeh_probe(struct pci_dn *pdn, void *data) in pnv_eeh_probe() 855 struct pci_dn *pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); in __pnv_eeh_bridge_reset() 956 static void pnv_eeh_wait_for_pending(struct pci_dn *pdn, const char *type, in pnv_eeh_wait_for_pending() 976 static int pnv_eeh_do_flr(struct pci_dn *pdn, int option) in pnv_eeh_do_flr() 1014 static int pnv_eeh_do_af_flr(struct pci_dn *pdn, int option) in pnv_eeh_do_af_flr() 1053 struct pci_dn *pdn; in pnv_eeh_reset_vf_pe() 1272 static inline bool pnv_eeh_cfg_blocked(struct pci_dn *pdn) in pnv_eeh_cfg_blocked() [all …]
|
D | pci.h | 9 struct pci_dn; 203 int pnv_pci_cfg_read(struct pci_dn *pdn, 205 int pnv_pci_cfg_write(struct pci_dn *pdn,
|
D | pci.c | 602 static void pnv_pci_config_check_eeh(struct pci_dn *pdn) in pnv_pci_config_check_eeh() 657 int pnv_pci_cfg_read(struct pci_dn *pdn, in pnv_pci_cfg_read() 693 int pnv_pci_cfg_write(struct pci_dn *pdn, in pnv_pci_cfg_write() 719 static bool pnv_pci_cfg_check(struct pci_dn *pdn) in pnv_pci_cfg_check() 742 static inline pnv_pci_cfg_check(struct pci_dn *pdn) in pnv_pci_cfg_check() 752 struct pci_dn *pdn; in pnv_pci_read_config() 781 struct pci_dn *pdn; in pnv_pci_write_config() 825 struct pci_dn *pdn; in pnv_pci_dma_dev_setup()
|
D | pci-ioda.c | 675 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_get_pe() 773 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_ioda_set_peltv() 841 struct pci_dn *pdn = pci_get_pdn(parent); in pnv_ioda_deconfigure_pe() 970 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_pci_vf_resource_shift() 1056 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_setup_dev_PE() 1111 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_setup_same_PE() 1212 struct pci_dn *npu_pdn; in pnv_ioda_setup_npu_PE() 1305 struct pci_dn *pdn; in pnv_pci_vf_release_m64() 1338 struct pci_dn *pdn; in pnv_pci_vf_assign_m64() 1465 struct pci_dn *pdn; in pnv_ioda_release_vf_PE() [all …]
|
D | npu-dma.c | 58 struct pci_dn *pdn = PCI_DN(dn); in get_pci_dev() 181 struct pci_dn *pdn; in get_gpu_pci_dev_and_pe() 325 struct pci_dn *pdn; in pnv_npu_try_dma_set_bypass()
|
/Linux-v4.19/drivers/pci/hotplug/ |
D | rpadlpar_core.c | 137 struct pci_dn *pdn = PCI_DN(dn); in dlpar_pci_add_bus() 205 struct pci_dn *pdn; in dlpar_remove_phb()
|