Lines Matching defs:prd
34 struct pm_runtime_data *prd = res;
38 if (test_bit(BIT_CLK_ENABLED, &prd->flags))
39 clk_disable(prd->clk);
41 if (test_bit(BIT_ACTIVE, &prd->flags))
42 clk_put(prd->clk);
51 struct pm_runtime_data *prd)
53 if (prd && !test_and_set_bit(BIT_ONCE, &prd->flags)) {
54 prd->clk = clk_get(dev, NULL);
55 if (!IS_ERR(prd->clk)) {
56 set_bit(BIT_ACTIVE, &prd->flags);
63 struct pm_runtime_data *prd)
65 if (prd && !test_and_set_bit(BIT_ONCE, &prd->flags))
71 struct pm_runtime_data *prd = __to_prd(dev);
75 platform_pm_runtime_bug(dev, prd);
77 if (prd && test_bit(BIT_ACTIVE, &prd->flags)) {
78 clk_disable(prd->clk);
79 clear_bit(BIT_CLK_ENABLED, &prd->flags);
87 struct pm_runtime_data *prd = __to_prd(dev);
91 platform_pm_runtime_init(dev, prd);
93 if (prd && test_bit(BIT_ACTIVE, &prd->flags)) {
94 clk_enable(prd->clk);
95 set_bit(BIT_CLK_ENABLED, &prd->flags);
111 struct pm_runtime_data *prd;
116 prd = devres_alloc(__devres_release, sizeof(*prd), GFP_KERNEL);
117 if (prd)
118 devres_add(dev, prd);