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