Lines Matching full:service
55 struct qcom_pdm_service *service; in qcom_pdm_find() local
57 list_for_each_entry(service, &data->services, list) { in qcom_pdm_find()
58 if (!strcmp(service->name, name)) in qcom_pdm_find()
59 return service; in qcom_pdm_find()
70 struct qcom_pdm_service *service; in qcom_pdm_add_service_domain() local
73 service = qcom_pdm_find(data, service_name); in qcom_pdm_add_service_domain()
74 if (service) { in qcom_pdm_add_service_domain()
75 list_for_each_entry(domain, &service->domains, list) { in qcom_pdm_add_service_domain()
80 service = kzalloc(sizeof(*service), GFP_KERNEL); in qcom_pdm_add_service_domain()
81 if (!service) in qcom_pdm_add_service_domain()
84 INIT_LIST_HEAD(&service->domains); in qcom_pdm_add_service_domain()
85 service->name = service_name; in qcom_pdm_add_service_domain()
87 list_add_tail(&service->list, &data->services); in qcom_pdm_add_service_domain()
92 if (list_empty(&service->domains)) { in qcom_pdm_add_service_domain()
93 list_del(&service->list); in qcom_pdm_add_service_domain()
94 kfree(service); in qcom_pdm_add_service_domain()
102 list_add_tail(&domain->list, &service->domains); in qcom_pdm_add_service_domain()
135 struct qcom_pdm_service *service, *tservice; in qcom_pdm_free_domains() local
138 list_for_each_entry_safe(service, tservice, &data->services, list) { in qcom_pdm_free_domains()
139 list_for_each_entry_safe(domain, tdomain, &service->domains, list) { in qcom_pdm_free_domains()
144 list_del(&service->list); in qcom_pdm_free_domains()
145 kfree(service); in qcom_pdm_free_domains()
157 struct qcom_pdm_service *service; in qcom_pdm_get_domain_list() local
178 service = qcom_pdm_find(data, req->service_name); in qcom_pdm_get_domain_list()
179 if (service) { in qcom_pdm_get_domain_list()
185 list_for_each_entry(domain, &service->domains, list) { in qcom_pdm_get_domain_list()
201 pr_debug("PDM: service '%s' offset %d returning %d domains (of %d)\n", req->service_name, in qcom_pdm_get_domain_list()
224 pr_warn_ratelimited("PDM: service '%s' crash: '%s'\n", req->service, req->reason); in qcom_pdm_pfr()