Lines Matching defs:device
9 #include <linux/device.h>
146 * @pdev: PCI device structure
165 * @pdev: PCI device structure
188 dev_err(&pdev->dev, "failed to enable pci device.\n");
193 /* pci request regions and mapping IO device memory for mei driver */
264 * eventually brings the device into D3cold/hot state,
265 * but the mei device cannot wake up from D3 unlike from D0i3.
266 * To get around the PCI device native runtime pm,
296 * @pdev: PCI device structure
322 * @pdev: PCI device structure
325 * that it should release a PCI 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);
410 static int mei_me_pm_runtime_idle(struct device *device)
414 dev_dbg(device, "rpm: me: runtime_idle\n");
416 dev = dev_get_drvdata(device);
420 pm_runtime_autosuspend(device);
425 static int mei_me_pm_runtime_suspend(struct device *device)
430 dev_dbg(device, "rpm: me: runtime suspend\n");
432 dev = dev_get_drvdata(device);
445 dev_dbg(device, "rpm: me: runtime suspend ret=%d\n", ret);
453 static int mei_me_pm_runtime_resume(struct device *device)
458 dev_dbg(device, "rpm: me: runtime resume\n");
460 dev = dev_get_drvdata(device);
470 dev_dbg(device, "rpm: me: runtime resume ret = %d\n", ret);
479 * mei_me_set_pm_domain - fill and set pm domain structure for device
499 * mei_me_unset_pm_domain - clean pm domain structure for device