/arch/powerpc/kernel/ |
D | pci_dn.c | 42 static struct pci_dn *pci_bus_to_pdn(struct pci_bus *bus) in pci_bus_to_pdn() 46 struct pci_dn *pdn; in pci_bus_to_pdn() 70 struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus, in pci_get_pdn_by_devfn() 74 struct pci_dn *parent, *pdn; in pci_get_pdn_by_devfn() 107 struct pci_dn *pci_get_pdn(struct pci_dev *pdev) in pci_get_pdn() 110 struct pci_dn *parent, *pdn; in pci_get_pdn() 140 static struct pci_dn *add_one_dev_pci_data(struct pci_dn *parent, in add_one_dev_pci_data() 144 struct pci_dn *pdn; in add_one_dev_pci_data() 178 struct pci_dn *add_dev_pci_data(struct pci_dev *pdev) in add_dev_pci_data() 181 struct pci_dn *parent, *pdn; in add_dev_pci_data() [all …]
|
D | eeh_dev.c | 52 void *eeh_dev_init(struct pci_dn *pdn, void *data) in eeh_dev_init() 83 struct pci_dn *root = phb->pci_data; in eeh_dev_phb_init_dynamic()
|
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() 95 struct pci_dn *pdn; in rtas_pci_read_config() 122 int rtas_write_config(struct pci_dn *pdn, int where, int size, u32 val) in rtas_write_config() 157 struct pci_dn *pdn; in rtas_pci_write_config()
|
D | eeh.c | 165 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_dump_dev_log() 451 struct pci_dn *pdn; in eeh_dev_check_failure() 737 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_dev_state() 912 struct pci_dn *pdn; in eeh_save_bars() 1011 struct pci_dn *pdn; in eeh_init() 1084 void eeh_add_device_early(struct pci_dn *pdn) in eeh_add_device_early() 1112 void eeh_add_device_tree_early(struct pci_dn *pdn) in eeh_add_device_tree_early() 1114 struct pci_dn *n; in eeh_add_device_tree_early() 1134 struct pci_dn *pdn; in eeh_add_device_late()
|
D | eeh_pe.c | 295 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_pe_get_parent() 695 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_bridge_check_link() 770 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_bridge_bars() 800 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_device_bars() 845 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_one_device_bars()
|
D | eeh_cache.c | 174 struct pci_dn *pdn; in __eeh_addr_cache_insert_dev() 282 struct pci_dn *pdn; in eeh_addr_cache_build()
|
D | Makefile | 108 pci64-$(CONFIG_PPC64) += pci_dn.o pci-hotplug.o isa-bridge.o
|
/arch/powerpc/include/asm/ |
D | ppc-pci.h | 34 struct pci_dn; 39 void *traverse_pci_dn(struct pci_dn *root, 40 void *(*fn)(struct pci_dn *, void *), 60 int rtas_write_config(struct pci_dn *, int where, int size, u32 val); 61 int rtas_read_config(struct pci_dn *, int where, int size, u32 *val);
|
D | eeh.h | 34 struct pci_dn; 142 struct pci_dn *pdn; /* Associated PCI device node */ 147 static inline struct pci_dn *eeh_dev_to_pdn(struct eeh_dev *edev) in eeh_dev_to_pdn() 201 void* (*probe)(struct pci_dn *pdn, void *data); 211 int (*read_config)(struct pci_dn *pdn, int where, int size, u32 *val); 212 int (*write_config)(struct pci_dn *pdn, int where, int size, u32 val); 214 int (*restore_config)(struct pci_dn *pdn); 272 void *eeh_dev_init(struct pci_dn *pdn, void *data); 280 void eeh_add_device_early(struct pci_dn *); 281 void eeh_add_device_tree_early(struct pci_dn *); [all …]
|
D | pci-bridge.h | 126 struct pci_dn *pci_data; 191 struct pci_dn { struct 201 struct pci_dn *parent; argument 229 #define PCI_DN(dn) ((struct pci_dn *) (dn)->data) 231 extern struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus, 233 extern struct pci_dn *pci_get_pdn(struct pci_dev *pdev); 234 extern struct pci_dn *add_dev_pci_data(struct pci_dev *pdev); 249 static inline struct eeh_dev *pdn_to_eeh_dev(struct pci_dn *pdn) in pdn_to_eeh_dev()
|
D | device.h | 12 struct pci_dn; 44 struct pci_dn *pci_data;
|
/arch/powerpc/platforms/pseries/ |
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() 135 struct pci_dn *pdn; in check_req() 200 struct pci_dn *pdn; in find_pe_dn() 383 struct pci_dn *pdn; in rtas_setup_msi_irqs()
|
D | eeh_pseries.c | 121 static int pseries_eeh_cap_start(struct pci_dn *pdn) in pseries_eeh_cap_start() 136 static int pseries_eeh_find_cap(struct pci_dn *pdn, int cap) in pseries_eeh_find_cap() 161 static int pseries_eeh_find_ecap(struct pci_dn *pdn, int cap) in pseries_eeh_find_ecap() 199 static void *pseries_eeh_probe(struct pci_dn *pdn, void *data) in pseries_eeh_probe() 674 static int pseries_eeh_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in pseries_eeh_read_config() 688 static int pseries_eeh_write_config(struct pci_dn *pdn, int where, int size, u32 val) in pseries_eeh_write_config()
|
D | pci_dlpar.c | 60 struct pci_dn *pdn = dn->data; in pcibios_find_pci_bus()
|
D | iommu.c | 646 struct pci_dn *pci; in pci_dma_bus_setup_pSeries() 730 struct pci_dn *ppci; in pci_dma_bus_setup_pSeriesLP() 931 struct pci_dn *pdn; in query_ddw() 960 struct pci_dn *pdn; in create_ddw() 1180 struct pci_dn *pci; in pci_dma_dev_setup_pSeriesLP() 1354 struct pci_dn *pci = PCI_DN(np); in iommu_reconfig_notifier()
|
D | setup.c | 260 struct pci_dn *pdn; in pci_dn_reconfig_notifier()
|
/arch/powerpc/platforms/powernv/ |
D | pci.h | 4 struct pci_dn; 215 int pnv_pci_cfg_read(struct pci_dn *pdn, 217 int pnv_pci_cfg_write(struct pci_dn *pdn,
|
D | pci.c | 370 static void pnv_pci_config_check_eeh(struct pci_dn *pdn) in pnv_pci_config_check_eeh() 428 int pnv_pci_cfg_read(struct pci_dn *pdn, in pnv_pci_cfg_read() 464 int pnv_pci_cfg_write(struct pci_dn *pdn, in pnv_pci_cfg_write() 490 static bool pnv_pci_cfg_check(struct pci_dn *pdn) in pnv_pci_cfg_check() 513 static inline pnv_pci_cfg_check(struct pci_dn *pdn) in pnv_pci_cfg_check() 523 struct pci_dn *pdn; in pnv_pci_read_config() 552 struct pci_dn *pdn; in pnv_pci_write_config() 750 struct pci_dn *pdn; in pnv_pci_dma_dev_setup()
|
D | eeh-powernv.c | 284 static int pnv_eeh_find_cap(struct pci_dn *pdn, int cap) in pnv_eeh_find_cap() 319 static int pnv_eeh_find_ecap(struct pci_dn *pdn, int cap) in pnv_eeh_find_ecap() 364 static void *pnv_eeh_probe(struct pci_dn *pdn, void *data) in pnv_eeh_probe() 835 struct pci_dn *pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); in pnv_eeh_bridge_reset() 1096 static inline bool pnv_eeh_cfg_blocked(struct pci_dn *pdn) in pnv_eeh_cfg_blocked() 1109 static int pnv_eeh_read_config(struct pci_dn *pdn, in pnv_eeh_read_config() 1123 static int pnv_eeh_write_config(struct pci_dn *pdn, in pnv_eeh_write_config() 1487 static int pnv_eeh_restore_config(struct pci_dn *pdn) in pnv_eeh_restore_config()
|
D | pci-ioda.c | 530 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_get_pe() 628 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_ioda_set_peltv() 695 struct pci_dn *pdn = pci_get_pdn(parent); in pnv_ioda_deconfigure_pe() 857 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_pci_vf_resource_shift() 932 struct pci_dn *pdn = pci_get_pdn(dev); 1003 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_setup_same_PE() 1132 struct pci_dn *pdn; in pnv_pci_vf_release_m64() 1158 struct pci_dn *pdn; in pnv_pci_vf_assign_m64() 1290 struct pci_dn *pdn; in pnv_ioda_release_vf_PE() 1353 struct pci_dn *pdn; in pnv_pci_sriov_disable() [all …]
|