Lines Matching +full:signal +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0
20 const struct etnaviv_pm_signal *signal);
31 const struct etnaviv_pm_signal *signal; member
42 const struct etnaviv_pm_signal *signal) in perf_reg_read() argument
44 gpu_write(gpu, domain->profile_config, signal->data); in perf_reg_read()
46 return gpu_read(gpu, domain->profile_read); in perf_reg_read()
59 const struct etnaviv_pm_signal *signal) in pipe_perf_reg_read() argument
65 for (i = 0; i < gpu->identity.pixel_pipes; i++) { in pipe_perf_reg_read()
67 value += perf_reg_read(gpu, domain, signal); in pipe_perf_reg_read()
78 const struct etnaviv_pm_signal *signal) in pipe_reg_read() argument
84 for (i = 0; i < gpu->identity.pixel_pipes; i++) { in pipe_reg_read()
86 value += gpu_read(gpu, signal->data); in pipe_reg_read()
97 const struct etnaviv_pm_signal *signal) in hi_total_cycle_read() argument
101 if (gpu->identity.model == chipModel_GC880 || in hi_total_cycle_read()
102 gpu->identity.model == chipModel_GC2000 || in hi_total_cycle_read()
103 gpu->identity.model == chipModel_GC2100) in hi_total_cycle_read()
111 const struct etnaviv_pm_signal *signal) in hi_total_idle_cycle_read() argument
115 if (gpu->identity.model == chipModel_GC880 || in hi_total_idle_cycle_read()
116 gpu->identity.model == chipModel_GC2000 || in hi_total_idle_cycle_read()
117 gpu->identity.model == chipModel_GC2100) in hi_total_idle_cycle_read()
129 .signal = (const struct etnaviv_pm_signal[]) {
172 .signal = (const struct etnaviv_pm_signal[]) {
200 .signal = (const struct etnaviv_pm_signal[]) {
253 .signal = (const struct etnaviv_pm_signal[]) {
291 .signal = (const struct etnaviv_pm_signal[]) {
309 .signal = (const struct etnaviv_pm_signal[]) {
352 .signal = (const struct etnaviv_pm_signal[]) {
405 .signal = (const struct etnaviv_pm_signal[]) {
431 .signal = (const struct etnaviv_pm_signal[]) {
469 if (gpu->identity.features & meta->feature) in num_pm_domains()
470 num += meta->nr_domains; in num_pm_domains()
485 if (!(gpu->identity.features & meta->feature)) in pm_domain()
488 if (index - offset >= meta->nr_domains) { in pm_domain()
489 offset += meta->nr_domains; in pm_domain()
493 domain = meta->domains + (index - offset); in pm_domain()
505 if (domain->iter >= nr_domains) in etnaviv_pm_query_dom()
506 return -EINVAL; in etnaviv_pm_query_dom()
508 dom = pm_domain(gpu, domain->iter); in etnaviv_pm_query_dom()
510 return -EINVAL; in etnaviv_pm_query_dom()
512 domain->id = domain->iter; in etnaviv_pm_query_dom()
513 domain->nr_signals = dom->nr_signals; in etnaviv_pm_query_dom()
514 strncpy(domain->name, dom->name, sizeof(domain->name)); in etnaviv_pm_query_dom()
516 domain->iter++; in etnaviv_pm_query_dom()
517 if (domain->iter == nr_domains) in etnaviv_pm_query_dom()
518 domain->iter = 0xff; in etnaviv_pm_query_dom()
524 struct drm_etnaviv_pm_signal *signal) in etnaviv_pm_query_sig() argument
530 if (signal->domain >= nr_domains) in etnaviv_pm_query_sig()
531 return -EINVAL; in etnaviv_pm_query_sig()
533 dom = pm_domain(gpu, signal->domain); in etnaviv_pm_query_sig()
535 return -EINVAL; in etnaviv_pm_query_sig()
537 if (signal->iter >= dom->nr_signals) in etnaviv_pm_query_sig()
538 return -EINVAL; in etnaviv_pm_query_sig()
540 sig = &dom->signal[signal->iter]; in etnaviv_pm_query_sig()
542 signal->id = signal->iter; in etnaviv_pm_query_sig()
543 strncpy(signal->name, sig->name, sizeof(signal->name)); in etnaviv_pm_query_sig()
545 signal->iter++; in etnaviv_pm_query_sig()
546 if (signal->iter == dom->nr_signals) in etnaviv_pm_query_sig()
547 signal->iter = 0xffff; in etnaviv_pm_query_sig()
558 if (r->domain >= meta->nr_domains) in etnaviv_pm_req_validate()
559 return -EINVAL; in etnaviv_pm_req_validate()
561 dom = meta->domains + r->domain; in etnaviv_pm_req_validate()
563 if (r->signal >= dom->nr_signals) in etnaviv_pm_req_validate()
564 return -EINVAL; in etnaviv_pm_req_validate()
575 u32 *bo = pmr->bo_vma; in etnaviv_perfmon_process()
578 dom = meta->domains + pmr->domain; in etnaviv_perfmon_process()
579 sig = &dom->signal[pmr->signal]; in etnaviv_perfmon_process()
580 val = sig->sample(gpu, dom, sig); in etnaviv_perfmon_process()
582 *(bo + pmr->offset) = val; in etnaviv_perfmon_process()