• Home
  • Raw
  • Download

Lines Matching refs:dom

30 static int etna_perfmon_query_signals(struct etna_perfmon *pm, struct etna_perfmon_domain *dom)  in etna_perfmon_query_signals()  argument
35 .domain = dom->id in etna_perfmon_query_signals()
54 sig->domain = dom; in etna_perfmon_query_signals()
57 list_addtail(&sig->head, &dom->signals); in etna_perfmon_query_signals()
71 struct etna_perfmon_domain *dom; in etna_perfmon_query_domains() local
78 dom = calloc(1, sizeof(*dom)); in etna_perfmon_query_domains()
79 if (!dom) in etna_perfmon_query_domains()
82 list_inithead(&dom->signals); in etna_perfmon_query_domains()
83 dom->id = req.id; in etna_perfmon_query_domains()
84 strncpy(dom->name, req.name, sizeof(dom->name)); in etna_perfmon_query_domains()
85 list_addtail(&dom->head, &pm->domains); in etna_perfmon_query_domains()
94 ret = etna_perfmon_query_signals(pm, dom); in etna_perfmon_query_domains()
103 static void etna_perfmon_free_signals(struct etna_perfmon_domain *dom) in etna_perfmon_free_signals() argument
107 LIST_FOR_EACH_ENTRY_SAFE(sig, next, &dom->signals, head) { in etna_perfmon_free_signals()
115 struct etna_perfmon_domain *dom, *next; in etna_perfmon_free_domains() local
117 LIST_FOR_EACH_ENTRY_SAFE(dom, next, &pm->domains, head) { in etna_perfmon_free_domains()
118 etna_perfmon_free_signals(dom); in etna_perfmon_free_domains()
119 list_del(&dom->head); in etna_perfmon_free_domains()
120 free(dom); in etna_perfmon_free_domains()
161 struct etna_perfmon_domain *dom; in etna_perfmon_get_dom_by_name() local
164 LIST_FOR_EACH_ENTRY(dom, &pm->domains, head) { in etna_perfmon_get_dom_by_name()
165 if (!strcmp(dom->name, name)) in etna_perfmon_get_dom_by_name()
166 return dom; in etna_perfmon_get_dom_by_name()
173 drm_public struct etna_perfmon_signal *etna_perfmon_get_sig_by_name(struct etna_perfmon_domain *dom in etna_perfmon_get_sig_by_name() argument
177 if (dom) { in etna_perfmon_get_sig_by_name()
178 LIST_FOR_EACH_ENTRY(signal, &dom->signals, head) { in etna_perfmon_get_sig_by_name()