Searched refs:core_temp (Results 1 – 3 of 3) sorted by relevance
78 int core_temp; in nv40_temp_get() local82 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()
133 int core_temp; in nv50_temp_get() local135 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()
113 u16 core_temp[8]; /* in centi-Celsius */ member