Lines Matching refs:device

54 	struct nvkm_clk *clk = pmu->base.subdev.device->clk;  in gk20a_pmu_dvfs_target()
62 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_get_cur_state()
73 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_get_target_state()
103 struct nvkm_device *device = pmu->base.subdev.device; in gk20a_pmu_dvfs_get_dev_status() local
104 status->busy = nvkm_rd32(device, 0x10a508 + (BUSY_SLOT * 0x10)); in gk20a_pmu_dvfs_get_dev_status()
105 status->total= nvkm_rd32(device, 0x10a508 + (CLK_SLOT * 0x10)); in gk20a_pmu_dvfs_get_dev_status()
112 struct nvkm_device *device = pmu->base.subdev.device; in gk20a_pmu_dvfs_reset_dev_status() local
113 nvkm_wr32(device, 0x10a508 + (BUSY_SLOT * 0x10), 0x80000000); in gk20a_pmu_dvfs_reset_dev_status()
114 nvkm_wr32(device, 0x10a508 + (CLK_SLOT * 0x10), 0x80000000); in gk20a_pmu_dvfs_reset_dev_status()
125 struct nvkm_device *device = subdev->device; in gk20a_pmu_dvfs_work() local
126 struct nvkm_clk *clk = device->clk; in gk20a_pmu_dvfs_work()
127 struct nvkm_timer *tmr = device->timer; in gk20a_pmu_dvfs_work()
128 struct nvkm_volt *volt = device->volt; in gk20a_pmu_dvfs_work()
173 nvkm_timer_alarm_cancel(subdev->device->timer, &pmu->alarm); in gk20a_pmu_fini()
187 struct nvkm_device *device = pmu->base.subdev.device; in gk20a_pmu_init() local
190 nvkm_wr32(device, 0x10a504 + (BUSY_SLOT * 0x10), 0x00200001); in gk20a_pmu_init()
191 nvkm_wr32(device, 0x10a50c + (BUSY_SLOT * 0x10), 0x00000002); in gk20a_pmu_init()
192 nvkm_wr32(device, 0x10a50c + (CLK_SLOT * 0x10), 0x00000003); in gk20a_pmu_init()
194 nvkm_timer_alarm(device->timer, 2000000000, &pmu->alarm); in gk20a_pmu_init()
213 gk20a_pmu_new(struct nvkm_device *device, int index, struct nvkm_pmu **ppmu) in gk20a_pmu_new() argument
223 nvkm_subdev_ctor(&gk20a_pmu, device, index, 0, &pmu->base.subdev); in gk20a_pmu_new()