Lines Matching defs:device

9 #include <linux/device.h>
151 * @pdev: PCI device structure
170 * @pdev: PCI device structure
193 dev_err(&pdev->dev, "failed to enable pci device.\n");
198 /* pci request regions and mapping IO device memory for mei driver */
262 * eventually brings the device into D3cold/hot state,
263 * but the mei device cannot wake up from D3 unlike from D0i3.
264 * To get around the PCI device native runtime pm,
294 * @pdev: PCI device structure
316 * @pdev: PCI device structure
319 * that it should release a PCI device.
341 static int mei_me_pci_prepare(struct device *device)
343 pm_runtime_resume(device);
347 static int mei_me_pci_suspend(struct device *device)
349 struct pci_dev *pdev = to_pci_dev(device);
364 static int mei_me_pci_resume(struct device *device)
366 struct pci_dev *pdev = to_pci_dev(device);
397 static void mei_me_pci_complete(struct device *device)
399 pm_runtime_suspend(device);
409 static int mei_me_pm_runtime_idle(struct device *device)
411 struct mei_device *dev = dev_get_drvdata(device);
413 dev_dbg(device, "rpm: me: runtime_idle\n");
416 pm_runtime_autosuspend(device);
421 static int mei_me_pm_runtime_suspend(struct device *device)
423 struct mei_device *dev = dev_get_drvdata(device);
426 dev_dbg(device, "rpm: me: runtime suspend\n");
437 dev_dbg(device, "rpm: me: runtime suspend ret=%d\n", ret);
445 static int mei_me_pm_runtime_resume(struct device *device)
447 struct mei_device *dev = dev_get_drvdata(device);
450 dev_dbg(device, "rpm: me: runtime resume\n");
458 dev_dbg(device, "rpm: me: runtime resume ret = %d\n", ret);
467 * mei_me_set_pm_domain - fill and set pm domain structure for device
487 * mei_me_unset_pm_domain - clean pm domain structure for device