Lines Matching refs:edev
29 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \
31 if (!edev) \
34 return sprintf(buf, _format "\n", edev->_memb); \
45 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_show() local
48 if (!edev || !edev->pe) in eeh_pe_state_show()
51 state = eeh_ops->get_state(edev->pe, NULL); in eeh_pe_state_show()
53 state, edev->pe->state); in eeh_pe_state_show()
61 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_store() local
63 if (!edev || !edev->pe) in eeh_pe_state_store()
67 if (!(edev->pe->state & EEH_PE_ISOLATED)) in eeh_pe_state_store()
70 if (eeh_unfreeze_pe(edev->pe)) in eeh_pe_state_store()
72 eeh_pe_state_clear(edev->pe, EEH_PE_ISOLATED, true); in eeh_pe_state_store()
84 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_show() local
87 if (!edev || !edev->pe) in eeh_notify_resume_show()
98 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_store() local
100 if (!edev || !edev->pe || !eeh_ops->notify_resume) in eeh_notify_resume_store()
103 if (eeh_ops->notify_resume(edev)) in eeh_notify_resume_store()
139 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_sysfs_add_device() local
145 if (edev && (edev->mode & EEH_DEV_SYSFS)) in eeh_sysfs_add_device()
155 else if (edev) in eeh_sysfs_add_device()
156 edev->mode |= EEH_DEV_SYSFS; in eeh_sysfs_add_device()
161 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_sysfs_remove_device() local
163 if (!edev) { in eeh_sysfs_remove_device()
168 edev->mode &= ~EEH_DEV_SYSFS; in eeh_sysfs_remove_device()