Lines Matching refs:perfmon
214 struct nvkm_pm *pm = dom->perfmon->pm; in nvkm_perfdom_init()
244 struct nvkm_pm *pm = dom->perfmon->pm; in nvkm_perfdom_sample()
268 struct nvkm_pm *pm = dom->perfmon->pm; in nvkm_perfdom_read()
313 struct nvkm_pm *pm = dom->perfmon->pm; in nvkm_perfdom_dtor()
366 nvkm_perfdom_new_(struct nvkm_perfmon *perfmon, in nvkm_perfdom_new_() argument
373 struct nvkm_pm *pm = perfmon->pm; in nvkm_perfdom_new_()
419 dom->perfmon = perfmon; in nvkm_perfdom_new_()
434 nvkm_perfmon_mthd_query_domain(struct nvkm_perfmon *perfmon, in nvkm_perfmon_mthd_query_domain() argument
440 struct nvkm_object *object = &perfmon->object; in nvkm_perfmon_mthd_query_domain()
441 struct nvkm_pm *pm = perfmon->pm; in nvkm_perfmon_mthd_query_domain()
482 nvkm_perfmon_mthd_query_signal(struct nvkm_perfmon *perfmon, in nvkm_perfmon_mthd_query_signal() argument
488 struct nvkm_object *object = &perfmon->object; in nvkm_perfmon_mthd_query_signal()
489 struct nvkm_pm *pm = perfmon->pm; in nvkm_perfmon_mthd_query_signal()
536 nvkm_perfmon_mthd_query_source(struct nvkm_perfmon *perfmon, in nvkm_perfmon_mthd_query_source() argument
542 struct nvkm_object *object = &perfmon->object; in nvkm_perfmon_mthd_query_source()
543 struct nvkm_pm *pm = perfmon->pm; in nvkm_perfmon_mthd_query_source()
590 struct nvkm_perfmon *perfmon = nvkm_perfmon(object); in nvkm_perfmon_mthd() local
593 return nvkm_perfmon_mthd_query_domain(perfmon, data, size); in nvkm_perfmon_mthd()
595 return nvkm_perfmon_mthd_query_signal(perfmon, data, size); in nvkm_perfmon_mthd()
597 return nvkm_perfmon_mthd_query_source(perfmon, data, size); in nvkm_perfmon_mthd()
608 struct nvkm_perfmon *perfmon = nvkm_perfmon(oclass->parent); in nvkm_perfmon_child_new() local
609 return nvkm_perfdom_new_(perfmon, oclass, data, size, pobject); in nvkm_perfmon_child_new()
629 struct nvkm_perfmon *perfmon = nvkm_perfmon(object); in nvkm_perfmon_dtor() local
630 struct nvkm_pm *pm = perfmon->pm; in nvkm_perfmon_dtor()
632 if (pm->client.object == &perfmon->object) in nvkm_perfmon_dtor()
635 return perfmon; in nvkm_perfmon_dtor()
649 struct nvkm_perfmon *perfmon; in nvkm_perfmon_new() local
651 if (!(perfmon = kzalloc(sizeof(*perfmon), GFP_KERNEL))) in nvkm_perfmon_new()
653 nvkm_object_ctor(&nvkm_perfmon, oclass, &perfmon->object); in nvkm_perfmon_new()
654 perfmon->pm = pm; in nvkm_perfmon_new()
655 *pobject = &perfmon->object; in nvkm_perfmon_new()