Lines Matching refs:pdev

28 	struct pci_dev *pdev = to_pci_dev(dev);               \
29 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \
44 struct pci_dev *pdev = to_pci_dev(dev);
45 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev);
60 struct pci_dev *pdev = to_pci_dev(dev);
61 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev);
83 struct pci_dev *pdev = to_pci_dev(dev);
84 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev);
85 struct pci_dn *pdn = pci_get_pdn(pdev);
97 struct pci_dev *pdev = to_pci_dev(dev);
98 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev);
110 static int eeh_notify_resume_add(struct pci_dev *pdev)
115 np = pci_device_to_OF_node(pdev->is_physfn ? pdev : pdev->physfn);
118 rc = device_create_file(&pdev->dev, &dev_attr_eeh_notify_resume);
123 static void eeh_notify_resume_remove(struct pci_dev *pdev)
127 np = pci_device_to_OF_node(pdev->is_physfn ? pdev : pdev->physfn);
130 device_remove_file(&pdev->dev, &dev_attr_eeh_notify_resume);
133 static inline int eeh_notify_resume_add(struct pci_dev *pdev) { return 0; }
134 static inline void eeh_notify_resume_remove(struct pci_dev *pdev) { }
137 void eeh_sysfs_add_device(struct pci_dev *pdev)
139 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev);
148 rc += device_create_file(&pdev->dev, &dev_attr_eeh_mode);
149 rc += device_create_file(&pdev->dev, &dev_attr_eeh_pe_config_addr);
150 rc += device_create_file(&pdev->dev, &dev_attr_eeh_pe_state);
151 rc += eeh_notify_resume_add(pdev);
159 void eeh_sysfs_remove_device(struct pci_dev *pdev)
161 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev);
174 if (!pdev->dev.kobj.sd)
177 device_remove_file(&pdev->dev, &dev_attr_eeh_mode);
178 device_remove_file(&pdev->dev, &dev_attr_eeh_pe_config_addr);
179 device_remove_file(&pdev->dev, &dev_attr_eeh_pe_state);
181 eeh_notify_resume_remove(pdev);