/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | eeh_sysfs.c | 17 * @_memb: name of member in struct eeh_dev to access 28 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \ 44 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_show() 60 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_store() 83 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_show() 97 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_store() 138 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_sysfs_add_device() 160 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_sysfs_remove_device()
|
H A D | eeh_driver.c | 77 static bool eeh_dev_removed(struct eeh_dev *edev) in eeh_dev_removed() 82 static bool eeh_edev_actionable(struct eeh_dev *edev) in eeh_edev_actionable() 141 static void eeh_disable_irq(struct eeh_dev *edev) in eeh_disable_irq() 164 static void eeh_enable_irq(struct eeh_dev *edev) in eeh_enable_irq() 193 static void eeh_dev_save_state(struct eeh_dev *edev, void *userdata) in eeh_dev_save_state() 220 struct eeh_dev *edev, *tmp; in eeh_set_channel_state() 231 struct eeh_dev *edev, *tmp; in eeh_set_irq_state() 251 typedef enum pci_ers_result (*eeh_report_fn)(struct eeh_dev *, 254 static void eeh_pe_report_edev(struct eeh_dev *edev, eeh_report_fn fn, in eeh_pe_report_edev() 305 struct eeh_dev *ede in eeh_pe_report() [all...] |
H A D | eeh_pe.c | 238 struct eeh_dev *edev, *tmp; in eeh_pe_dev_traverse() 306 int eeh_pe_tree_insert(struct eeh_dev *edev, struct eeh_pe *new_pe_parent) in eeh_pe_tree_insert() 402 int eeh_pe_tree_remove(struct eeh_dev *edev) in eeh_pe_tree_remove() 536 struct eeh_dev *edev; in eeh_pe_mark_isolated() 553 static void __eeh_pe_dev_mode_mark(struct eeh_dev *edev, void *flag) in __eeh_pe_dev_mode_mark() 584 struct eeh_dev *edev, *tmp; in eeh_pe_state_clear() 631 static void eeh_bridge_check_link(struct eeh_dev *edev) in eeh_bridge_check_link() 701 static void eeh_restore_bridge_bars(struct eeh_dev *edev) in eeh_restore_bridge_bars() 730 static void eeh_restore_device_bars(struct eeh_dev *edev) in eeh_restore_device_bars() 773 static void eeh_restore_one_device_bars(struct eeh_dev *ede [all...] |
H A D | eeh_cache.c | 44 struct eeh_dev *edev; 54 static inline struct eeh_dev *__eeh_addr_cache_get_device(unsigned long addr) in __eeh_addr_cache_get_device() 82 struct eeh_dev *eeh_addr_cache_get_dev(unsigned long addr) in eeh_addr_cache_get_dev() 84 struct eeh_dev *edev; in eeh_addr_cache_get_dev() 162 struct eeh_dev *edev; in __eeh_addr_cache_insert_dev()
|
H A D | eeh.c | 168 static size_t eeh_dump_dev_log(struct eeh_dev *edev, char *buf, size_t len) in eeh_dump_dev_log() 271 struct eeh_dev *edev, *tmp; in eeh_dump_pe_log() 437 int eeh_dev_check_failure(struct eeh_dev *edev) in eeh_dev_check_failure() 595 struct eeh_dev *edev; in eeh_check_failure() 687 static void eeh_disable_and_save_dev_state(struct eeh_dev *edev, in eeh_disable_and_save_dev_state() 713 static void eeh_restore_dev_state(struct eeh_dev *edev, void *userdata) in eeh_restore_dev_state() 740 struct eeh_dev *edev = pci_dev_to_eeh_dev(dev); in pcibios_set_pcie_reset_state() 794 static void eeh_set_dev_freset(struct eeh_dev *edev, void *flag) in eeh_set_dev_freset() 904 void eeh_save_bars(struct eeh_dev *edev) in eeh_save_bars() 1010 struct eeh_dev *ede in eeh_probe_device() [all...] |
H A D | pci_dn.c | 128 static struct eeh_dev *eeh_dev_init(struct pci_dn *pdn) in eeh_dev_init() 130 struct eeh_dev *edev; in eeh_dev_init() 193 struct eeh_dev *edev __maybe_unused; in add_sriov_vf_pdns() 243 struct eeh_dev *edev __maybe_unused; in remove_sriov_vf_pdns() 255 * we're responsible to removing the eeh_dev since it in remove_sriov_vf_pdns() 290 struct eeh_dev *edev; in pci_add_device_node_info() 347 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pci_remove_device_node_info()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | eeh_sysfs.c | 18 * @_memb: name of member in struct eeh_dev to access 29 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \ 45 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_show() 61 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_store() 84 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_show() 98 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_store() 139 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_sysfs_add_device() 161 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_sysfs_remove_device()
|
H A D | eeh_driver.c | 76 static bool eeh_dev_removed(struct eeh_dev *edev) in eeh_dev_removed() 81 static bool eeh_edev_actionable(struct eeh_dev *edev) in eeh_edev_actionable() 140 static void eeh_disable_irq(struct eeh_dev *edev) in eeh_disable_irq() 163 static void eeh_enable_irq(struct eeh_dev *edev) in eeh_enable_irq() 192 static void eeh_dev_save_state(struct eeh_dev *edev, void *userdata) in eeh_dev_save_state() 219 struct eeh_dev *edev, *tmp; in eeh_set_channel_state() 230 struct eeh_dev *edev, *tmp; in eeh_set_irq_state() 250 typedef enum pci_ers_result (*eeh_report_fn)(struct eeh_dev *, 253 static void eeh_pe_report_edev(struct eeh_dev *edev, eeh_report_fn fn, in eeh_pe_report_edev() 304 struct eeh_dev *ede in eeh_pe_report() [all...] |
H A D | eeh_pe.c | 239 struct eeh_dev *edev, *tmp; in eeh_pe_dev_traverse() 307 int eeh_pe_tree_insert(struct eeh_dev *edev, struct eeh_pe *new_pe_parent) in eeh_pe_tree_insert() 403 int eeh_pe_tree_remove(struct eeh_dev *edev) in eeh_pe_tree_remove() 537 struct eeh_dev *edev; in eeh_pe_mark_isolated() 554 static void __eeh_pe_dev_mode_mark(struct eeh_dev *edev, void *flag) in __eeh_pe_dev_mode_mark() 585 struct eeh_dev *edev, *tmp; in eeh_pe_state_clear() 632 static void eeh_bridge_check_link(struct eeh_dev *edev) in eeh_bridge_check_link() 701 static void eeh_restore_bridge_bars(struct eeh_dev *edev) in eeh_restore_bridge_bars() 730 static void eeh_restore_device_bars(struct eeh_dev *edev) in eeh_restore_device_bars() 773 static void eeh_restore_one_device_bars(struct eeh_dev *ede [all...] |
H A D | eeh_cache.c | 44 struct eeh_dev *edev; 54 static inline struct eeh_dev *__eeh_addr_cache_get_device(unsigned long addr) in __eeh_addr_cache_get_device() 82 struct eeh_dev *eeh_addr_cache_get_dev(unsigned long addr) in eeh_addr_cache_get_dev() 84 struct eeh_dev *edev; in eeh_addr_cache_get_dev() 162 struct eeh_dev *edev; in __eeh_addr_cache_insert_dev()
|
H A D | eeh.c | 168 static size_t eeh_dump_dev_log(struct eeh_dev *edev, char *buf, size_t len) in eeh_dump_dev_log() 271 struct eeh_dev *edev, *tmp; in eeh_dump_pe_log() 424 int eeh_dev_check_failure(struct eeh_dev *edev) in eeh_dev_check_failure() 582 struct eeh_dev *edev; in eeh_check_failure() 675 static void eeh_disable_and_save_dev_state(struct eeh_dev *edev, in eeh_disable_and_save_dev_state() 701 static void eeh_restore_dev_state(struct eeh_dev *edev, void *userdata) in eeh_restore_dev_state() 728 struct eeh_dev *edev = pci_dev_to_eeh_dev(dev); in pcibios_set_pcie_reset_state() 782 static void eeh_set_dev_freset(struct eeh_dev *edev, void *flag) in eeh_set_dev_freset() 893 void eeh_save_bars(struct eeh_dev *edev) in eeh_save_bars() 1000 struct eeh_dev *ede in eeh_probe_device() [all...] |
H A D | pci_dn.c | 128 static struct eeh_dev *eeh_dev_init(struct pci_dn *pdn) in eeh_dev_init() 130 struct eeh_dev *edev; in eeh_dev_init() 193 struct eeh_dev *edev __maybe_unused; in add_sriov_vf_pdns() 243 struct eeh_dev *edev __maybe_unused; in remove_sriov_vf_pdns() 255 * we're responsible to removing the eeh_dev since it in remove_sriov_vf_pdns() 290 struct eeh_dev *edev; in pci_add_device_node_info() 347 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pci_remove_device_node_info()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | eeh.h | 88 struct list_head edevs; /* List of eeh_dev in this PE */ 132 struct eeh_dev { struct 165 static inline struct pci_dn *eeh_dev_to_pdn(struct eeh_dev *edev) in eeh_dev_to_pdn() 170 static inline struct pci_dev *eeh_dev_to_pci_dev(struct eeh_dev *edev) in eeh_dev_to_pci_dev() 175 static inline struct eeh_pe *eeh_dev_to_pe(struct eeh_dev* edev) in eeh_dev_to_pe() 217 struct eeh_dev *(*probe)(struct pci_dev *pdev); 225 int (*read_config)(struct eeh_dev *edev, int where, int size, u32 *val); 226 int (*write_config)(struct eeh_dev *edev, int where, int size, u32 val); 228 int (*restore_config)(struct eeh_dev *edev); 229 int (*notify_resume)(struct eeh_dev *ede [all...] |
H A D | ppc-pci.h | 49 struct eeh_dev *eeh_addr_cache_get_dev(unsigned long addr); 53 void eeh_save_bars(struct eeh_dev *edev);
|
H A D | device.h | 36 struct eeh_dev *edev;
|
H A D | pci-bridge.h | 200 struct eeh_dev *edev; /* eeh device */ 245 static inline struct eeh_dev *pdn_to_eeh_dev(struct pci_dn *pdn) in pdn_to_eeh_dev()
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | eeh.h | 88 struct list_head edevs; /* List of eeh_dev in this PE */ 132 struct eeh_dev { struct 165 static inline struct pci_dn *eeh_dev_to_pdn(struct eeh_dev *edev) in eeh_dev_to_pdn() 170 static inline struct pci_dev *eeh_dev_to_pci_dev(struct eeh_dev *edev) in eeh_dev_to_pci_dev() 175 static inline struct eeh_pe *eeh_dev_to_pe(struct eeh_dev* edev) in eeh_dev_to_pe() 217 struct eeh_dev *(*probe)(struct pci_dev *pdev); 225 int (*read_config)(struct eeh_dev *edev, int where, int size, u32 *val); 226 int (*write_config)(struct eeh_dev *edev, int where, int size, u32 val); 228 int (*restore_config)(struct eeh_dev *edev); 229 int (*notify_resume)(struct eeh_dev *ede [all...] |
H A D | ppc-pci.h | 52 struct eeh_dev *eeh_addr_cache_get_dev(unsigned long addr); 56 void eeh_save_bars(struct eeh_dev *edev);
|
H A D | device.h | 36 struct eeh_dev *edev;
|
H A D | pci-bridge.h | 217 struct eeh_dev *edev; /* eeh device */ 252 static inline struct eeh_dev *pdn_to_eeh_dev(struct pci_dn *pdn) in pdn_to_eeh_dev()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | eeh_pseries.c | 75 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pseries_pcibios_bus_add_device() 288 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pseries_eeh_find_ecap() 323 static struct eeh_pe *pseries_eeh_pe_get_parent(struct eeh_dev *edev) in pseries_eeh_pe_get_parent() 325 struct eeh_dev *parent; in pseries_eeh_pe_get_parent() 353 * pseries_eeh_init_edev - initialise the eeh_dev and eeh_pe for a pci_dn 358 * corresponding pci_dn and we allocate, but don't initialise, an eeh_dev. 359 * This function takes care of the initialisation and inserts the eeh_dev 365 struct eeh_dev *edev; in pseries_eeh_init_edev() 373 * Find the eeh_dev for this pdn. The storage for the eeh_dev wa in pseries_eeh_init_edev() [all...] |
H A D | msi.c | 191 struct eeh_dev *edev; in find_pe_dn() 202 edev = list_first_entry(&edev->pe->edevs, struct eeh_dev, in find_pe_dn()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | eeh_pseries.c | 77 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pseries_pcibios_bus_add_device() 290 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pseries_eeh_find_ecap() 325 static struct eeh_pe *pseries_eeh_pe_get_parent(struct eeh_dev *edev) in pseries_eeh_pe_get_parent() 327 struct eeh_dev *parent; in pseries_eeh_pe_get_parent() 355 * pseries_eeh_init_edev - initialise the eeh_dev and eeh_pe for a pci_dn 360 * corresponding pci_dn and we allocate, but don't initialise, an eeh_dev. 361 * This function takes care of the initialisation and inserts the eeh_dev 367 struct eeh_dev *edev; in pseries_eeh_init_edev() 375 * Find the eeh_dev for this pdn. The storage for the eeh_dev wa in pseries_eeh_init_edev() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | eeh-powernv.c | 267 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_find_ecap() 319 * Create, or find the existing, eeh_dev for this pci_dev. 321 static struct eeh_dev *pnv_eeh_probe(struct pci_dev *pdev) in pnv_eeh_probe() 326 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_probe() 804 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in __pnv_eeh_bridge_reset() 911 struct eeh_dev *edev = pdn->edev; in pnv_eeh_wait_for_pending() 931 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_do_flr() 969 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_do_af_flr() 1005 struct eeh_dev *edev; in pnv_eeh_reset_vf_pe() 1010 edev = list_first_entry_or_null(&pe->edevs, struct eeh_dev, entr in pnv_eeh_reset_vf_pe() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | eeh-powernv.c | 268 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_find_ecap() 320 * Create, or find the existing, eeh_dev for this pci_dev. 322 static struct eeh_dev *pnv_eeh_probe(struct pci_dev *pdev) in pnv_eeh_probe() 327 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_probe() 805 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in __pnv_eeh_bridge_reset() 911 struct eeh_dev *edev = pdn->edev; in pnv_eeh_wait_for_pending() 931 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_do_flr() 969 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_do_af_flr() 1005 struct eeh_dev *edev; in pnv_eeh_reset_vf_pe() 1010 edev = list_first_entry_or_null(&pe->edevs, struct eeh_dev, entr in pnv_eeh_reset_vf_pe() [all...] |