Home
last modified time | relevance | path

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

/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dnv40.c78 int core_temp; in nv40_temp_get() local
82 core_temp = nvkm_rd32(device, 0x15b4) & 0x3fff; in nv40_temp_get()
85 core_temp = nvkm_rd32(device, 0x15b4) & 0xff; in nv40_temp_get()
94 core_temp = core_temp * sensor->slope_mult / sensor->slope_div; in nv40_temp_get()
95 core_temp = core_temp + sensor->offset_num / sensor->offset_den; in nv40_temp_get()
96 core_temp = core_temp + sensor->offset_constant - 8; in nv40_temp_get()
99 if (core_temp < 0) in nv40_temp_get()
100 core_temp = 0; in nv40_temp_get()
102 return core_temp; in nv40_temp_get()
Dnv50.c133 int core_temp; in nv50_temp_get() local
135 core_temp = nvkm_rd32(device, 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()
/drivers/platform/x86/amd/pmf/
Dpmf.h113 u16 core_temp[8]; /* in centi-Celsius */ member