Lines Matching refs:device
31 struct nvkm_device *device = therm->subdev.device; in gt215_therm_fan_sense() local
32 u32 tach = nvkm_rd32(device, 0x00e728) & 0x0000ffff; in gt215_therm_fan_sense()
33 u32 ctrl = nvkm_rd32(device, 0x00e720); in gt215_therm_fan_sense()
42 struct nvkm_device *device = therm->subdev.device; in gt215_therm_init() local
48 nvkm_mask(device, 0x00e720, 0x00000003, 0x00000002); in gt215_therm_init()
50 nvkm_wr32(device, 0x00e724, device->crystal * 1000); in gt215_therm_init()
51 nvkm_mask(device, 0x00e720, 0x001f0000, tach->line << 16); in gt215_therm_init()
52 nvkm_mask(device, 0x00e720, 0x00000001, 0x00000001); in gt215_therm_init()
54 nvkm_mask(device, 0x00e720, 0x00000002, 0x00000000); in gt215_therm_init()
71 gt215_therm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, in gt215_therm_new() argument
74 return nvkm_therm_new_(>215_therm, device, type, inst, ptherm); in gt215_therm_new()