Lines Matching refs:sig
92 nvkm_perfsig_count_perfsrc(struct nvkm_perfsig *sig) in nvkm_perfsig_count_perfsrc() argument
96 for (i = 0; i < ARRAY_SIZE(sig->source); i++) { in nvkm_perfsig_count_perfsrc()
97 if (sig->source[i]) in nvkm_perfsig_count_perfsrc()
104 nvkm_perfsrc_find(struct nvkm_pm *pm, struct nvkm_perfsig *sig, int si) in nvkm_perfsrc_find() argument
111 for (i = 0; i < ARRAY_SIZE(sig->source) && sig->source[i]; i++) { in nvkm_perfsrc_find()
112 if (sig->source[i] == si) { in nvkm_perfsrc_find()
134 struct nvkm_perfsig *sig; in nvkm_perfsrc_enable() local
141 sig = nvkm_perfsig_find(pm, ctr->domain, in nvkm_perfsrc_enable()
143 if (!sig) in nvkm_perfsrc_enable()
146 src = nvkm_perfsrc_find(pm, sig, ctr->source[i][j]); in nvkm_perfsrc_enable()
173 struct nvkm_perfsig *sig; in nvkm_perfsrc_disable() local
180 sig = nvkm_perfsig_find(pm, ctr->domain, in nvkm_perfsrc_disable()
182 if (!sig) in nvkm_perfsrc_disable()
185 src = nvkm_perfsrc_find(pm, sig, ctr->source[i][j]); in nvkm_perfsrc_disable()
389 struct nvkm_perfsig *sig[4] = {}; in nvkm_perfdom_new_() local
393 sig[s] = nvkm_perfsig_find(pm, args->v0.domain, in nvkm_perfdom_new_()
396 if (args->v0.ctr[c].signal[s] && !sig[s]) in nvkm_perfdom_new_()
401 if (src[s][m] && !nvkm_perfsrc_find(pm, sig[s], in nvkm_perfdom_new_()
407 ret = nvkm_perfctr_new(sdom, c, args->v0.domain, sig, src, in nvkm_perfdom_new_()
492 struct nvkm_perfsig *sig; in nvkm_perfmon_mthd_query_signal() local
511 sig = &dom->signal[si]; in nvkm_perfmon_mthd_query_signal()
512 if (raw || !sig->name) { in nvkm_perfmon_mthd_query_signal()
516 strncpy(args->v0.name, sig->name, in nvkm_perfmon_mthd_query_signal()
521 args->v0.source_nr = nvkm_perfsig_count_perfsrc(sig); in nvkm_perfmon_mthd_query_signal()
545 struct nvkm_perfsig *sig; in nvkm_perfmon_mthd_query_source() local
560 sig = nvkm_perfsig_find(pm, args->v0.domain, args->v0.signal, &dom); in nvkm_perfmon_mthd_query_source()
561 if (!sig) in nvkm_perfmon_mthd_query_source()
564 source_nr = nvkm_perfsig_count_perfsrc(sig); in nvkm_perfmon_mthd_query_source()
569 src = nvkm_perfsrc_find(pm, sig, sig->source[si]); in nvkm_perfmon_mthd_query_source()
573 args->v0.source = sig->source[si]; in nvkm_perfmon_mthd_query_source()
703 nvkm_perfsrc_new(struct nvkm_pm *pm, struct nvkm_perfsig *sig, in nvkm_perfsrc_new() argument
756 sig->source[source_nr++] = source_id + 1; in nvkm_perfsrc_new()
804 struct nvkm_perfsig *sig = in nvkm_perfdom_new() local
806 sig->name = ssig->name; in nvkm_perfdom_new()
807 ret = nvkm_perfsrc_new(pm, sig, ssig->source); in nvkm_perfdom_new()