| /Linux-v5.4/arch/powerpc/kernel/ |
| D | pci_dn.c | 30 static struct pci_dn *pci_bus_to_pdn(struct pci_bus *bus) in pci_bus_to_pdn() 34 struct pci_dn *pdn; in pci_bus_to_pdn() 58 struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus, in pci_get_pdn_by_devfn() 62 struct pci_dn *parent, *pdn; in pci_get_pdn_by_devfn() 95 struct pci_dn *pci_get_pdn(struct pci_dev *pdev) in pci_get_pdn() 98 struct pci_dn *parent, *pdn; in pci_get_pdn() 128 static struct pci_dn *add_one_dev_pci_data(struct pci_dn *parent, in add_one_dev_pci_data() 132 struct pci_dn *pdn; in add_one_dev_pci_data() 156 struct pci_dn *add_dev_pci_data(struct pci_dev *pdev) in add_dev_pci_data() 159 struct pci_dn *parent, *pdn; in add_dev_pci_data() [all …]
|
| D | rtas_pci.c | 35 static inline int config_access_valid(struct pci_dn *dn, int where) in config_access_valid() 45 int rtas_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in rtas_read_config() 81 struct pci_dn *pdn; in rtas_pci_read_config() 97 int rtas_write_config(struct pci_dn *pdn, int where, int size, u32 val) in rtas_write_config() 131 struct pci_dn *pdn; in rtas_pci_write_config()
|
| D | eeh_pe.c | 332 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_pe_get_parent() 370 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_add_to_parent_pe() 701 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_bridge_check_link() 772 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_bridge_bars() 802 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_device_bars() 846 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_one_device_bars()
|
| D | pci-hotplug.c | 40 struct pci_dn *pdn = PCI_DN(dn); in pci_find_bus_by_node() 58 struct pci_dn *pdn = pci_get_pdn(dev); in pcibios_release_device()
|
| D | eeh_dev.c | 38 struct eeh_dev *eeh_dev_init(struct pci_dn *pdn) in eeh_dev_init()
|
| D | eeh.c | 170 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_dump_dev_log() 729 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_dev_state() 745 int eeh_restore_vf_config(struct pci_dn *pdn) in eeh_restore_vf_config() 980 struct pci_dn *pdn; in eeh_save_bars() 1121 void eeh_add_device_early(struct pci_dn *pdn) in eeh_add_device_early() 1148 void eeh_add_device_tree_early(struct pci_dn *pdn) in eeh_add_device_tree_early() 1150 struct pci_dn *n; in eeh_add_device_tree_early() 1170 struct pci_dn *pdn; in eeh_add_device_late()
|
| D | eeh_sysfs.c | 100 struct pci_dn *pdn = pci_get_pdn(pdev); in eeh_notify_resume_show()
|
| D | eeh_cache.c | 162 struct pci_dn *pdn; in __eeh_addr_cache_insert_dev()
|
| D | Makefile | 125 pci64-$(CONFIG_PPC64) += pci_dn.o pci-hotplug.o isa-bridge.o
|
| D | eeh_driver.c | 540 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_rmv_device()
|
| /Linux-v5.4/arch/powerpc/include/asm/ |
| D | eeh.h | 21 struct pci_dn; 148 struct pci_dn *pdn; /* Associated PCI device node */ 165 static inline struct pci_dn *eeh_dev_to_pdn(struct eeh_dev *edev) in eeh_dev_to_pdn() 218 void* (*probe)(struct pci_dn *pdn, void *data); 227 int (*read_config)(struct pci_dn *pdn, int where, int size, u32 *val); 228 int (*write_config)(struct pci_dn *pdn, int where, int size, u32 val); 230 int (*restore_config)(struct pci_dn *pdn); 231 int (*notify_resume)(struct pci_dn *pdn); 296 struct eeh_dev *eeh_dev_init(struct pci_dn *pdn); 304 void eeh_add_device_early(struct pci_dn *); [all …]
|
| D | pci-bridge.h | 125 struct pci_dn *pci_data; 183 struct pci_dn { struct 194 struct pci_dn *parent; argument 221 #define PCI_DN(dn) ((struct pci_dn *) (dn)->data) 223 extern struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus, 225 extern struct pci_dn *pci_get_pdn(struct pci_dev *pdev); 226 extern struct pci_dn *add_dev_pci_data(struct pci_dev *pdev); 228 extern struct pci_dn *pci_add_device_node_info(struct pci_controller *hose, 243 static inline struct eeh_dev *pdn_to_eeh_dev(struct pci_dn *pdn) in pdn_to_eeh_dev()
|
| D | ppc-pci.h | 30 struct pci_dn; 35 void *traverse_pci_dn(struct pci_dn *root, 36 void *(*fn)(struct pci_dn *, void *), 54 int rtas_write_config(struct pci_dn *, int where, int size, u32 val); 55 int rtas_read_config(struct pci_dn *, int where, int size, u32 *val);
|
| D | device.h | 10 struct pci_dn; 41 struct pci_dn *pci_data;
|
| /Linux-v5.4/arch/powerpc/platforms/pseries/ |
| D | eeh_pseries.c | 47 struct pci_dn *pdn = pci_get_pdn(pdev); in pseries_pcibios_bus_add_device() 55 struct pci_dn *physfn_pdn; in pseries_pcibios_bus_add_device() 155 static int pseries_eeh_cap_start(struct pci_dn *pdn) in pseries_eeh_cap_start() 170 static int pseries_eeh_find_cap(struct pci_dn *pdn, int cap) in pseries_eeh_find_cap() 195 static int pseries_eeh_find_ecap(struct pci_dn *pdn, int cap) in pseries_eeh_find_ecap() 233 static void *pseries_eeh_probe(struct pci_dn *pdn, void *data) in pseries_eeh_probe() 642 static int pseries_eeh_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in pseries_eeh_read_config() 656 static int pseries_eeh_write_config(struct pci_dn *pdn, int where, int size, u32 val) in pseries_eeh_write_config() 661 static int pseries_eeh_restore_config(struct pci_dn *pdn) in pseries_eeh_restore_config() 686 int pseries_send_allow_unfreeze(struct pci_dn *pdn, in pseries_send_allow_unfreeze() [all …]
|
| D | pci.c | 62 struct pci_dn *pdn; in pseries_send_map_pe() 93 struct pci_dn *pdn; in pseries_set_pe_num() 107 struct pci_dn *pdn; in pseries_associate_pes() 151 struct pci_dn *pdn; in pseries_pci_sriov_enable() 201 struct pci_dn *pdn; in pseries_pcibios_sriov_disable()
|
| D | msi.c | 29 static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs) in rtas_change_msi() 70 struct pci_dn *pdn; in rtas_disable_msi() 90 static int rtas_query_irq_number(struct pci_dn *pdn, int offset) in rtas_query_irq_number() 372 struct pci_dn *pdn; in rtas_setup_msi_irqs()
|
| D | iommu.c | 550 struct pci_dn *pci; in pci_dma_bus_setup_pSeries() 664 struct pci_dn *ppci; in pci_dma_bus_setup_pSeriesLP() 862 struct pci_dn *pdn; in query_ddw() 891 struct pci_dn *pdn; in create_ddw() 1139 struct pci_dn *pci; in pci_dma_dev_setup_pSeriesLP() 1264 struct pci_dn *pci = PCI_DN(np); in iommu_reconfig_notifier()
|
| D | setup.c | 243 struct pci_dn *pdn; in pci_dn_reconfig_notifier()
|
| /Linux-v5.4/arch/powerpc/platforms/powernv/ |
| D | eeh-powernv.c | 43 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_pcibios_bus_add_device() 285 static int pnv_eeh_find_cap(struct pci_dn *pdn, int cap) in pnv_eeh_find_cap() 320 static int pnv_eeh_find_ecap(struct pci_dn *pdn, int cap) in pnv_eeh_find_ecap() 365 static void *pnv_eeh_probe(struct pci_dn *pdn, void *data) in pnv_eeh_probe() 848 struct pci_dn *pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); in __pnv_eeh_bridge_reset() 953 static void pnv_eeh_wait_for_pending(struct pci_dn *pdn, const char *type, in pnv_eeh_wait_for_pending() 973 static int pnv_eeh_do_flr(struct pci_dn *pdn, int option) in pnv_eeh_do_flr() 1011 static int pnv_eeh_do_af_flr(struct pci_dn *pdn, int option) in pnv_eeh_do_af_flr() 1050 struct pci_dn *pdn; in pnv_eeh_reset_vf_pe() 1252 static inline bool pnv_eeh_cfg_blocked(struct pci_dn *pdn) in pnv_eeh_cfg_blocked() [all …]
|
| D | pci.h | 10 struct pci_dn; 178 int pnv_pci_cfg_read(struct pci_dn *pdn, 180 int pnv_pci_cfg_write(struct pci_dn *pdn,
|
| D | pci.c | 596 static void pnv_pci_config_check_eeh(struct pci_dn *pdn) in pnv_pci_config_check_eeh() 651 int pnv_pci_cfg_read(struct pci_dn *pdn, in pnv_pci_cfg_read() 687 int pnv_pci_cfg_write(struct pci_dn *pdn, in pnv_pci_cfg_write() 713 static bool pnv_pci_cfg_check(struct pci_dn *pdn) in pnv_pci_cfg_check() 736 static inline pnv_pci_cfg_check(struct pci_dn *pdn) in pnv_pci_cfg_check() 746 struct pci_dn *pdn; in pnv_pci_read_config() 775 struct pci_dn *pdn; in pnv_pci_write_config() 819 struct pci_dn *pdn; in pnv_pci_dma_dev_setup() 985 struct pci_dn *pdn; in pnv_tce_iommu_bus_notifier()
|
| D | pci-ioda.c | 667 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_get_pe() 764 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_ioda_set_peltv() 832 struct pci_dn *pdn = pci_get_pdn(parent); in pnv_ioda_deconfigure_pe() 961 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_pci_vf_resource_shift() 1047 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_setup_dev_PE() 1102 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_setup_same_PE() 1204 struct pci_dn *npu_pdn; in pnv_ioda_setup_npu_PE() 1306 struct pci_dn *pdn; in pnv_pci_vf_release_m64() 1339 struct pci_dn *pdn; in pnv_pci_vf_assign_m64() 1466 struct pci_dn *pdn; in pnv_ioda_release_vf_PE() [all …]
|
| D | npu-dma.c | 24 struct pci_dn *pdn = PCI_DN(dn); in get_pci_dev() 104 struct pci_dn *pdn; in get_gpu_pci_dev_and_pe()
|
| /Linux-v5.4/drivers/pci/hotplug/ |
| D | rpadlpar_core.c | 139 struct pci_dn *pdn = PCI_DN(dn); in dlpar_pci_add_bus() 207 struct pci_dn *pdn; in dlpar_remove_phb()
|