Lines Matching defs:dev
18 static int cc_pm_suspend(struct device *dev)
20 struct cc_drvdata *drvdata = dev_get_drvdata(dev);
22 dev_dbg(dev, "set HOST_POWER_DOWN_EN\n");
29 static int cc_pm_resume(struct device *dev)
32 struct cc_drvdata *drvdata = dev_get_drvdata(dev);
34 dev_dbg(dev, "unset HOST_POWER_DOWN_EN\n");
38 dev_err(dev, "failed getting clock back on. We're toast.\n");
43 dev_err(dev, "Cryptocell reset not completed");
50 dev_err(dev, "init_cc_regs (%x)\n", rc);
65 int cc_pm_get(struct device *dev)
67 int rc = pm_runtime_get_sync(dev);
69 pm_runtime_put_noidle(dev);
76 void cc_pm_put_suspend(struct device *dev)
78 pm_runtime_mark_last_busy(dev);
79 pm_runtime_put_autosuspend(dev);