Lines Matching defs:device

9 #include <linux/device.h>
147 * @pdev: PCI device structure
166 * @pdev: PCI device structure
189 dev_err(&pdev->dev, "failed to enable pci device.\n");
194 /* pci request regions and mapping IO device memory for mei driver */
258 * eventually brings the device into D3cold/hot state,
259 * but the mei device cannot wake up from D3 unlike from D0i3.
260 * To get around the PCI device native runtime pm,
290 * @pdev: PCI device structure
316 * @pdev: PCI device structure
319 * that it should release a PCI device.
345 static int mei_me_pci_prepare(struct device *device)
347 pm_runtime_resume(device);
351 static int mei_me_pci_suspend(struct device *device)
353 struct pci_dev *pdev = to_pci_dev(device);
371 static int mei_me_pci_resume(struct device *device)
373 struct pci_dev *pdev = to_pci_dev(device);
408 static void mei_me_pci_complete(struct device *device)
410 pm_runtime_suspend(device);
420 static int mei_me_pm_runtime_idle(struct device *device)
424 dev_dbg(device, "rpm: me: runtime_idle\n");
426 dev = dev_get_drvdata(device);
430 pm_runtime_autosuspend(device);
435 static int mei_me_pm_runtime_suspend(struct device *device)
440 dev_dbg(device, "rpm: me: runtime suspend\n");
442 dev = dev_get_drvdata(device);
455 dev_dbg(device, "rpm: me: runtime suspend ret=%d\n", ret);
463 static int mei_me_pm_runtime_resume(struct device *device)
468 dev_dbg(device, "rpm: me: runtime resume\n");
470 dev = dev_get_drvdata(device);
480 dev_dbg(device, "rpm: me: runtime resume ret = %d\n", ret);
489 * mei_me_set_pm_domain - fill and set pm domain structure for device
509 * mei_me_unset_pm_domain - clean pm domain structure for device