Lines Matching refs:psd
27 struct pm_subsys_data *psd; in dev_pm_get_subsys_data() local
29 psd = kzalloc(sizeof(*psd), GFP_KERNEL); in dev_pm_get_subsys_data()
30 if (!psd) in dev_pm_get_subsys_data()
38 spin_lock_init(&psd->lock); in dev_pm_get_subsys_data()
39 psd->refcount = 1; in dev_pm_get_subsys_data()
40 dev->power.subsys_data = psd; in dev_pm_get_subsys_data()
42 psd = NULL; in dev_pm_get_subsys_data()
48 kfree(psd); in dev_pm_get_subsys_data()
63 struct pm_subsys_data *psd; in dev_pm_put_subsys_data() local
67 psd = dev_to_psd(dev); in dev_pm_put_subsys_data()
68 if (!psd) in dev_pm_put_subsys_data()
71 if (--psd->refcount == 0) in dev_pm_put_subsys_data()
74 psd = NULL; in dev_pm_put_subsys_data()
78 kfree(psd); in dev_pm_put_subsys_data()