Home
last modified time | relevance | path

Searched refs:rkdev (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/crypto/rockchip/
H A Drk3288_crypto.c119 struct rk_crypto_info *rkdev = dev_get_drvdata(dev); in rk_crypto_pm_suspend() local
121 rk_crypto_disable_clk(rkdev); in rk_crypto_pm_suspend()
122 reset_control_assert(rkdev->rst); in rk_crypto_pm_suspend()
129 struct rk_crypto_info *rkdev = dev_get_drvdata(dev); in rk_crypto_pm_resume() local
132 ret = rk_crypto_enable_clk(rkdev); in rk_crypto_pm_resume()
136 reset_control_deassert(rkdev->rst); in rk_crypto_pm_resume()
145 static int rk_crypto_pm_init(struct rk_crypto_info *rkdev) in rk_crypto_pm_init() argument
149 pm_runtime_use_autosuspend(rkdev->dev); in rk_crypto_pm_init()
150 pm_runtime_set_autosuspend_delay(rkdev->dev, 2000); in rk_crypto_pm_init()
152 err = pm_runtime_set_suspended(rkdev->dev); in rk_crypto_pm_init()
[all …]