Lines Matching defs:device
9 #include <linux/device.h>
45 * @pdev: PCI device structure
60 dev_err(&pdev->dev, "failed to enable pci device.\n");
65 /* pci request regions and mapping IO device memory for mei driver */
136 * eventually brings the device into D3cold/hot state.
137 * But the TXE device cannot wake up from D3 unlike from own
138 * power gating. To get around PCI device native runtime pm,
161 * @pdev: PCI device structure
187 * @pdev: PCI device structure
190 * that it should release a PCI device.
216 static int mei_txe_pci_suspend(struct device *device)
218 struct pci_dev *pdev = to_pci_dev(device);
236 static int mei_txe_pci_resume(struct device *device)
238 struct pci_dev *pdev = to_pci_dev(device);
274 static int mei_txe_pm_runtime_idle(struct device *device)
278 dev_dbg(device, "rpm: txe: runtime_idle\n");
280 dev = dev_get_drvdata(device);
284 pm_runtime_autosuspend(device);
288 static int mei_txe_pm_runtime_suspend(struct device *device)
293 dev_dbg(device, "rpm: txe: runtime suspend\n");
295 dev = dev_get_drvdata(device);
308 dev_dbg(device, "rpm: txe: runtime suspend ret=%d\n", ret);
318 static int mei_txe_pm_runtime_resume(struct device *device)
323 dev_dbg(device, "rpm: txe: runtime resume\n");
325 dev = dev_get_drvdata(device);
337 dev_dbg(device, "rpm: txe: runtime resume ret = %d\n", ret);
346 * mei_txe_set_pm_domain - fill and set pm domain structure for device
366 * mei_txe_unset_pm_domain - clean pm domain structure for device