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");
51 dev_err(dev, "init_cc_regs (%x)\n", rc);
67 int cc_pm_get(struct device *dev)
69 int rc = pm_runtime_get_sync(dev);
71 pm_runtime_put_noidle(dev);
78 void cc_pm_put_suspend(struct device *dev)
80 pm_runtime_mark_last_busy(dev);
81 pm_runtime_put_autosuspend(dev);