Home
last modified time | relevance | path

Searched refs:core_temp (Results 1 – 2 of 2) sorted by relevance

/drivers/gpu/drm/nouveau/core/subdev/therm/
Dnv40.c85 int core_temp; in nv40_temp_get() local
89 core_temp = nv_rd32(therm, 0x15b4) & 0x3fff; in nv40_temp_get()
92 core_temp = nv_rd32(therm, 0x15b4) & 0xff; in nv40_temp_get()
101 core_temp = core_temp * sensor->slope_mult / sensor->slope_div; in nv40_temp_get()
102 core_temp = core_temp + sensor->offset_num / sensor->offset_den; in nv40_temp_get()
103 core_temp = core_temp + sensor->offset_constant - 8; in nv40_temp_get()
106 if (core_temp < 0) in nv40_temp_get()
107 core_temp = 0; in nv40_temp_get()
109 return core_temp; in nv40_temp_get()
Dnv50.c133 int core_temp; in nv50_temp_get() local
135 core_temp = nv_rd32(therm, 0x20014) & 0x3fff; in nv50_temp_get()
142 core_temp = core_temp * sensor->slope_mult / sensor->slope_div; in nv50_temp_get()
143 core_temp = core_temp + sensor->offset_num / sensor->offset_den; in nv50_temp_get()
144 core_temp = core_temp + sensor->offset_constant - 8; in nv50_temp_get()
147 if (core_temp < 0) in nv50_temp_get()
148 core_temp = 0; in nv50_temp_get()
150 return core_temp; in nv50_temp_get()