Lines Matching refs:pm
27 nv40_perfctr_init(struct nvkm_pm *pm, struct nvkm_perfdom *dom, in nv40_perfctr_init() argument
30 struct nvkm_device *device = pm->engine.subdev.device; in nv40_perfctr_init()
44 nv40_perfctr_read(struct nvkm_pm *pm, struct nvkm_perfdom *dom, in nv40_perfctr_read() argument
47 struct nvkm_device *device = pm->engine.subdev.device; in nv40_perfctr_read()
59 nv40_perfctr_next(struct nvkm_pm *pm, struct nvkm_perfdom *dom) in nv40_perfctr_next() argument
61 struct nvkm_device *device = pm->engine.subdev.device; in nv40_perfctr_next()
62 struct nv40_pm *nv40pm = container_of(pm, struct nv40_pm, base); in nv40_perfctr_next()
64 if (nv40pm->sequence != pm->sequence) { in nv40_perfctr_next()
66 nv40pm->sequence = pm->sequence; in nv40_perfctr_next()
85 struct nv40_pm *pm; in nv40_pm_new_() local
88 if (!(pm = kzalloc(sizeof(*pm), GFP_KERNEL))) in nv40_pm_new_()
90 *ppm = &pm->base; in nv40_pm_new_()
92 ret = nvkm_pm_ctor(&nv40_pm_, device, type, inst, &pm->base); in nv40_pm_new_()
96 return nvkm_perfdom_new(&pm->base, "pc", 0, 0, 0, 4, doms); in nv40_pm_new_()