Lines Matching refs:eeh_ops
109 struct eeh_ops *eeh_ops = NULL; variable
182 eeh_ops->read_config(edev, PCI_VENDOR_ID, 4, &cfg); in eeh_dump_dev_log()
186 eeh_ops->read_config(edev, PCI_COMMAND, 4, &cfg); in eeh_dump_dev_log()
192 eeh_ops->read_config(edev, PCI_SEC_STATUS, 2, &cfg); in eeh_dump_dev_log()
196 eeh_ops->read_config(edev, PCI_BRIDGE_CONTROL, 2, &cfg); in eeh_dump_dev_log()
204 eeh_ops->read_config(edev, cap, 4, &cfg); in eeh_dump_dev_log()
208 eeh_ops->read_config(edev, cap+4, 4, &cfg); in eeh_dump_dev_log()
220 eeh_ops->read_config(edev, cap+4*i, 4, &cfg); in eeh_dump_dev_log()
247 eeh_ops->read_config(edev, cap+4*i, 4, &cfg); in eeh_dump_dev_log()
328 eeh_ops->configure_bridge(pe); in eeh_slot_error_detail()
337 eeh_ops->get_log(pe, severity, pci_regs_buf, loglen); in eeh_slot_error_detail()
382 ret = eeh_ops->get_state(phb_pe, NULL); in eeh_phb_check_failure()
502 ret = eeh_ops->get_state(pe, NULL); in eeh_dev_check_failure()
539 ret = eeh_ops->get_state(parent_pe, NULL); in eeh_dev_check_failure()
647 rc = eeh_ops->get_state(pe, NULL); in eeh_pci_enable()
662 rc = eeh_ops->set_option(pe, function); in eeh_pci_enable()
719 if (eeh_ops->restore_config) in eeh_restore_dev_state()
720 eeh_ops->restore_config(edev); in eeh_restore_dev_state()
748 eeh_ops->reset(pe, EEH_RESET_DEACTIVATE); in pcibios_set_pcie_reset_state()
758 eeh_ops->set_option(pe, EEH_OPT_FREEZE_PE); in pcibios_set_pcie_reset_state()
762 eeh_ops->reset(pe, EEH_RESET_HOT); in pcibios_set_pcie_reset_state()
767 eeh_ops->set_option(pe, EEH_OPT_FREEZE_PE); in pcibios_set_pcie_reset_state()
771 eeh_ops->reset(pe, EEH_RESET_FUNDAMENTAL); in pcibios_set_pcie_reset_state()
808 state = eeh_ops->get_state(pe, NULL); in eeh_pe_refreeze_passed()
910 eeh_ops->read_config(edev, i * 4, 4, &edev->config_space[i]); in eeh_save_bars()
963 int eeh_init(struct eeh_ops *ops) in eeh_init()
969 if (WARN_ON(eeh_ops)) in eeh_init()
973 eeh_ops = ops; in eeh_init()
1022 edev = eeh_ops->probe(dev); in eeh_probe_device()
1159 ret = eeh_ops->get_state(pe, NULL); in eeh_pe_change_owner()
1341 if (!eeh_ops || !eeh_ops->set_option) { in eeh_pe_set_option()
1374 if (!eeh_ops || !eeh_ops->get_state) in eeh_pe_get_state()
1388 result = eeh_ops->get_state(pe, NULL); in eeh_pe_get_state()
1463 if (!eeh_ops || !eeh_ops->set_option || !eeh_ops->reset) in eeh_pe_reset()
1468 ret = eeh_ops->reset(pe, option); in eeh_pe_reset()
1482 eeh_ops->set_option(pe, EEH_OPT_FREEZE_PE); in eeh_pe_reset()
1485 ret = eeh_ops->reset(pe, option); in eeh_pe_reset()
1537 if (!eeh_ops || !eeh_ops->err_inject) in eeh_pe_inject_err()
1544 return eeh_ops->err_inject(pe, type, func, addr, mask); in eeh_pe_inject_err()