Home
last modified time | relevance | path

Searched refs:eeh_ops (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/arch/powerpc/kernel/
Deeh.c109 struct eeh_ops *eeh_ops = NULL; variable
188 eeh_ops->read_config(pdn, PCI_VENDOR_ID, 4, &cfg); in eeh_dump_dev_log()
192 eeh_ops->read_config(pdn, PCI_COMMAND, 4, &cfg); in eeh_dump_dev_log()
198 eeh_ops->read_config(pdn, PCI_SEC_STATUS, 2, &cfg); in eeh_dump_dev_log()
202 eeh_ops->read_config(pdn, PCI_BRIDGE_CONTROL, 2, &cfg); in eeh_dump_dev_log()
210 eeh_ops->read_config(pdn, cap, 4, &cfg); in eeh_dump_dev_log()
214 eeh_ops->read_config(pdn, cap+4, 4, &cfg); in eeh_dump_dev_log()
226 eeh_ops->read_config(pdn, cap+4*i, 4, &cfg); in eeh_dump_dev_log()
253 eeh_ops->read_config(pdn, cap+4*i, 4, &cfg); in eeh_dump_dev_log()
334 eeh_ops->configure_bridge(pe); in eeh_slot_error_detail()
[all …]
Deeh_pe.c123 ret = eeh_ops->get_state(pe, &mwait); in eeh_wait_state()
717 eeh_ops->read_config(pdn, cap + PCI_EXP_SLTSTA, 2, &val); in eeh_bridge_check_link()
724 eeh_ops->read_config(pdn, cap + PCI_EXP_SLTCAP, 2, &val); in eeh_bridge_check_link()
726 eeh_ops->read_config(pdn, cap + PCI_EXP_SLTCTL, 2, &val); in eeh_bridge_check_link()
731 eeh_ops->write_config(pdn, cap + PCI_EXP_SLTCTL, 2, val); in eeh_bridge_check_link()
737 eeh_ops->read_config(pdn, cap + PCI_EXP_LNKCTL, 2, &val); in eeh_bridge_check_link()
739 eeh_ops->write_config(pdn, cap + PCI_EXP_LNKCTL, 2, val); in eeh_bridge_check_link()
742 eeh_ops->read_config(pdn, cap + PCI_EXP_LNKCAP, 4, &val); in eeh_bridge_check_link()
755 eeh_ops->read_config(pdn, cap + PCI_EXP_LNKSTA, 2, &val); in eeh_bridge_check_link()
780 eeh_ops->write_config(pdn, i*4, 4, edev->config_space[i]); in eeh_restore_bridge_bars()
[all …]
Deeh_sysfs.c66 state = eeh_ops->get_state(edev->pe, NULL); in eeh_pe_state_show()
116 if (!edev || !edev->pe || !eeh_ops->notify_resume) in eeh_notify_resume_store()
119 if (eeh_ops->notify_resume(pci_get_pdn(pdev))) in eeh_notify_resume_store()
Deeh_driver.c444 if (eeh_ops->notify_resume && eeh_dev_to_pdn(edev)) in eeh_report_resume()
445 eeh_ops->notify_resume(eeh_dev_to_pdn(edev)); in eeh_report_resume()
696 eeh_ops->configure_bridge(pe); in eeh_reset_device()
1155 rc = eeh_ops->next_error(&pe); in eeh_handle_special_event()
/Linux-v5.4/arch/powerpc/platforms/powernv/
Deeh-powernv.c130 if (!eeh_ops || !eeh_ops->err_inject) in pnv_eeh_ei_write()
150 ret = eeh_ops->err_inject(pe, type, func, addr, mask); in pnv_eeh_ei_write()
862 eeh_ops->read_config(pdn, aer + PCI_ERR_UNCOR_MASK, in __pnv_eeh_bridge_reset()
865 eeh_ops->write_config(pdn, aer + PCI_ERR_UNCOR_MASK, in __pnv_eeh_bridge_reset()
869 eeh_ops->read_config(pdn, PCI_BRIDGE_CONTROL, 2, &ctrl); in __pnv_eeh_bridge_reset()
871 eeh_ops->write_config(pdn, PCI_BRIDGE_CONTROL, 2, ctrl); in __pnv_eeh_bridge_reset()
876 eeh_ops->read_config(pdn, PCI_BRIDGE_CONTROL, 2, &ctrl); in __pnv_eeh_bridge_reset()
878 eeh_ops->write_config(pdn, PCI_BRIDGE_CONTROL, 2, ctrl); in __pnv_eeh_bridge_reset()
884 eeh_ops->read_config(pdn, aer + PCI_ERR_UNCOR_MASK, in __pnv_eeh_bridge_reset()
887 eeh_ops->write_config(pdn, aer + PCI_ERR_UNCOR_MASK, in __pnv_eeh_bridge_reset()
[all …]
Dpci-ioda.c3585 if (eehpe && eeh_ops && eeh_ops->reset) in pnv_npu_disable_device()
3586 eeh_ops->reset(eehpe, EEH_RESET_HOT); in pnv_npu_disable_device()
/Linux-v5.4/arch/powerpc/include/asm/
Deeh.h215 struct eeh_ops { struct
237 extern struct eeh_ops *eeh_ops; argument
299 int __init eeh_ops_register(struct eeh_ops *ops);
/Linux-v5.4/arch/powerpc/platforms/pseries/
Deeh_pseries.c286 ret = eeh_ops->set_option(&pe, EEH_OPT_ENABLE); in pseries_eeh_probe()
291 edev->pe_config_addr = eeh_ops->get_pe_addr(&pe); in pseries_eeh_probe()
298 ret = eeh_ops->get_state(&pe, NULL); in pseries_eeh_probe()
776 static struct eeh_ops pseries_eeh_ops = {