Lines Matching refs:l_pds
16 struct lpass_macro *l_pds; in lpass_macro_pds_init() local
22 l_pds = devm_kzalloc(dev, sizeof(*l_pds), GFP_KERNEL); in lpass_macro_pds_init()
23 if (!l_pds) in lpass_macro_pds_init()
26 l_pds->macro_pd = dev_pm_domain_attach_by_name(dev, "macro"); in lpass_macro_pds_init()
27 if (IS_ERR_OR_NULL(l_pds->macro_pd)) { in lpass_macro_pds_init()
28 ret = l_pds->macro_pd ? PTR_ERR(l_pds->macro_pd) : -ENODATA; in lpass_macro_pds_init()
32 ret = pm_runtime_resume_and_get(l_pds->macro_pd); in lpass_macro_pds_init()
36 l_pds->dcodec_pd = dev_pm_domain_attach_by_name(dev, "dcodec"); in lpass_macro_pds_init()
37 if (IS_ERR_OR_NULL(l_pds->dcodec_pd)) { in lpass_macro_pds_init()
38 ret = l_pds->dcodec_pd ? PTR_ERR(l_pds->dcodec_pd) : -ENODATA; in lpass_macro_pds_init()
42 ret = pm_runtime_resume_and_get(l_pds->dcodec_pd); in lpass_macro_pds_init()
45 return l_pds; in lpass_macro_pds_init()
48 dev_pm_domain_detach(l_pds->dcodec_pd, false); in lpass_macro_pds_init()
50 pm_runtime_put(l_pds->macro_pd); in lpass_macro_pds_init()
52 dev_pm_domain_detach(l_pds->macro_pd, false); in lpass_macro_pds_init()