Lines Matching full:v0

265 		struct nvif_perfdom_read_v0 v0;  in nvkm_perfdom_read()  member
272 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_perfdom_read()
273 nvif_ioctl(object, "perfdom read vers %d\n", args->v0.version); in nvkm_perfdom_read()
287 args->v0.ctr[i] = dom->ctr[i]->ctr; in nvkm_perfdom_read()
288 args->v0.clk = dom->clk; in nvkm_perfdom_read()
371 struct nvif_perfdom_v0 v0; in nvkm_perfdom_new_() member
382 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_perfdom_new_()
384 args->v0.version, args->v0.domain, args->v0.mode); in nvkm_perfdom_new_()
388 for (c = 0; c < ARRAY_SIZE(args->v0.ctr); c++) { in nvkm_perfdom_new_()
392 for (s = 0; s < ARRAY_SIZE(args->v0.ctr[c].signal); s++) { in nvkm_perfdom_new_()
393 sig[s] = nvkm_perfsig_find(pm, args->v0.domain, in nvkm_perfdom_new_()
394 args->v0.ctr[c].signal[s], in nvkm_perfdom_new_()
396 if (args->v0.ctr[c].signal[s] && !sig[s]) in nvkm_perfdom_new_()
400 src[s][m] = args->v0.ctr[c].source[s][m]; in nvkm_perfdom_new_()
407 ret = nvkm_perfctr_new(sdom, c, args->v0.domain, sig, src, in nvkm_perfdom_new_()
408 args->v0.ctr[c].logic_op, &ctr[c]); in nvkm_perfdom_new_()
424 dom->mode = args->v0.mode; in nvkm_perfdom_new_()
438 struct nvif_perfmon_query_domain_v0 v0; in nvkm_perfmon_mthd_query_domain() member
447 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_perfmon_mthd_query_domain()
449 args->v0.version, args->v0.iter); in nvkm_perfmon_mthd_query_domain()
450 di = (args->v0.iter & 0xff) - 1; in nvkm_perfmon_mthd_query_domain()
463 args->v0.id = di; in nvkm_perfmon_mthd_query_domain()
464 args->v0.signal_nr = nvkm_perfdom_count_perfsig(dom); in nvkm_perfmon_mthd_query_domain()
465 strncpy(args->v0.name, dom->name, sizeof(args->v0.name) - 1); in nvkm_perfmon_mthd_query_domain()
469 args->v0.counter_nr = 4; in nvkm_perfmon_mthd_query_domain()
473 args->v0.iter = ++di; in nvkm_perfmon_mthd_query_domain()
477 args->v0.iter = 0xff; in nvkm_perfmon_mthd_query_domain()
486 struct nvif_perfmon_query_signal_v0 v0; in nvkm_perfmon_mthd_query_signal() member
498 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_perfmon_mthd_query_signal()
501 args->v0.version, args->v0.domain, args->v0.iter); in nvkm_perfmon_mthd_query_signal()
502 si = (args->v0.iter & 0xffff) - 1; in nvkm_perfmon_mthd_query_signal()
506 dom = nvkm_perfdom_find(pm, args->v0.domain); in nvkm_perfmon_mthd_query_signal()
513 snprintf(args->v0.name, sizeof(args->v0.name), in nvkm_perfmon_mthd_query_signal()
516 strncpy(args->v0.name, sig->name, in nvkm_perfmon_mthd_query_signal()
517 sizeof(args->v0.name) - 1); in nvkm_perfmon_mthd_query_signal()
520 args->v0.signal = si; in nvkm_perfmon_mthd_query_signal()
521 args->v0.source_nr = nvkm_perfsig_count_perfsrc(sig); in nvkm_perfmon_mthd_query_signal()
526 args->v0.iter = ++si; in nvkm_perfmon_mthd_query_signal()
531 args->v0.iter = 0xffff; in nvkm_perfmon_mthd_query_signal()
540 struct nvif_perfmon_query_source_v0 v0; in nvkm_perfmon_mthd_query_source() member
551 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_perfmon_mthd_query_source()
554 args->v0.version, args->v0.domain, args->v0.signal, in nvkm_perfmon_mthd_query_source()
555 args->v0.iter); in nvkm_perfmon_mthd_query_source()
556 si = (args->v0.iter & 0xff) - 1; in nvkm_perfmon_mthd_query_source()
560 sig = nvkm_perfsig_find(pm, args->v0.domain, args->v0.signal, &dom); in nvkm_perfmon_mthd_query_source()
573 args->v0.source = sig->source[si]; in nvkm_perfmon_mthd_query_source()
574 args->v0.mask = src->mask; in nvkm_perfmon_mthd_query_source()
575 strncpy(args->v0.name, src->name, sizeof(args->v0.name) - 1); in nvkm_perfmon_mthd_query_source()
579 args->v0.iter = ++si; in nvkm_perfmon_mthd_query_source()
583 args->v0.iter = 0xff; in nvkm_perfmon_mthd_query_source()