Lines Matching defs:device
3 * PCI glue for ISHTP provider device (ISH) driver
12 #include <linux/device.h>
54 * @dev: ishtp device
76 * @dev: ishtp device
114 return !pm_suspend_via_firmware() || pdev->device == CHV_DEVICE_ID;
119 return !pm_resume_via_firmware() || pdev->device == CHV_DEVICE_ID;
122 static int enable_gpe(struct device *dev)
168 * @pdev: pci device
169 * @ent: pci device id
181 struct device *dev = &pdev->dev;
190 dev_err(dev, "ISH: Failed to enable PCI device\n");
213 /* mapping IO device memory */
235 if (pdev->device == EHL_Ax_DEVICE_ID)
247 * @pdev: pci device
259 static struct device __maybe_unused *ish_resume_device;
311 * @device: device pointer
317 static int __maybe_unused ish_suspend(struct device *device)
319 struct pci_dev *pdev = to_pci_dev(device);
348 * Save state so PCI core will keep the device at D0,
370 * @device: device pointer
376 static int __maybe_unused ish_resume(struct device *device)
378 struct pci_dev *pdev = to_pci_dev(device);
382 if (dev->pdev->device == EHL_Ax_DEVICE_ID) {
388 ish_resume_device = device;