Lines Matching refs:edev
28 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \
30 if (!edev) \
33 return sprintf(buf, _format "\n", edev->_memb); \
44 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_show() local
47 if (!edev || !edev->pe) in eeh_pe_state_show()
50 state = eeh_ops->get_state(edev->pe, NULL); in eeh_pe_state_show()
52 state, edev->pe->state); in eeh_pe_state_show()
60 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_store() local
62 if (!edev || !edev->pe) in eeh_pe_state_store()
66 if (!(edev->pe->state & EEH_PE_ISOLATED)) in eeh_pe_state_store()
69 if (eeh_unfreeze_pe(edev->pe)) in eeh_pe_state_store()
71 eeh_pe_state_clear(edev->pe, EEH_PE_ISOLATED, true); in eeh_pe_state_store()
83 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_show() local
86 if (!edev || !edev->pe) in eeh_notify_resume_show()
97 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_store() local
99 if (!edev || !edev->pe || !eeh_ops->notify_resume) in eeh_notify_resume_store()
102 if (eeh_ops->notify_resume(edev)) in eeh_notify_resume_store()
138 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_sysfs_add_device() local
144 if (edev && (edev->mode & EEH_DEV_SYSFS)) in eeh_sysfs_add_device()
154 else if (edev) in eeh_sysfs_add_device()
155 edev->mode |= EEH_DEV_SYSFS; in eeh_sysfs_add_device()
160 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_sysfs_remove_device() local
162 if (!edev) { in eeh_sysfs_remove_device()
167 edev->mode &= ~EEH_DEV_SYSFS; in eeh_sysfs_remove_device()