Lines Matching refs:num_pds
196 int ret, i, num_pds = 0; in dev_pm_domain_attach_list() local
211 num_pds = data->num_pd_names; in dev_pm_domain_attach_list()
214 num_pds = of_count_phandle_with_args(np, "power-domains", in dev_pm_domain_attach_list()
218 if (num_pds <= 0) in dev_pm_domain_attach_list()
226 pds->pd_devs = kcalloc(num_pds, size, GFP_KERNEL); in dev_pm_domain_attach_list()
231 pds->pd_links = (void *)(pds->pd_devs + num_pds); in dev_pm_domain_attach_list()
236 for (i = 0; i < num_pds; i++) { in dev_pm_domain_attach_list()
262 pds->num_pds = num_pds; in dev_pm_domain_attach_list()
264 return num_pds; in dev_pm_domain_attach_list()
312 int ret, num_pds; in devm_pm_domain_attach_list() local
314 num_pds = dev_pm_domain_attach_list(dev, data, list); in devm_pm_domain_attach_list()
315 if (num_pds <= 0) in devm_pm_domain_attach_list()
316 return num_pds; in devm_pm_domain_attach_list()
322 return num_pds; in devm_pm_domain_attach_list()
363 for (i = 0; i < list->num_pds; i++) { in dev_pm_domain_detach_list()