Lines Matching refs:sensor
37 struct nouveau_pm_temp_sensor_constants *sensor = &pm->sensor_constants; in nouveau_temp_vbios_parse() local
47 sensor->offset_constant = 0; in nouveau_temp_vbios_parse()
48 sensor->offset_mult = 0; in nouveau_temp_vbios_parse()
49 sensor->offset_div = 1; in nouveau_temp_vbios_parse()
50 sensor->slope_mult = 1; in nouveau_temp_vbios_parse()
51 sensor->slope_div = 1; in nouveau_temp_vbios_parse()
66 sensor->offset_mult = 32060; in nouveau_temp_vbios_parse()
67 sensor->offset_div = 1000; in nouveau_temp_vbios_parse()
68 sensor->slope_mult = 792; in nouveau_temp_vbios_parse()
69 sensor->slope_div = 1000; in nouveau_temp_vbios_parse()
75 sensor->offset_mult = 27839; in nouveau_temp_vbios_parse()
76 sensor->offset_div = 1000; in nouveau_temp_vbios_parse()
77 sensor->slope_mult = 780; in nouveau_temp_vbios_parse()
78 sensor->slope_div = 1000; in nouveau_temp_vbios_parse()
82 sensor->offset_mult = -24775; in nouveau_temp_vbios_parse()
83 sensor->offset_div = 100; in nouveau_temp_vbios_parse()
84 sensor->slope_mult = 467; in nouveau_temp_vbios_parse()
85 sensor->slope_div = 10000; in nouveau_temp_vbios_parse()
89 sensor->offset_mult = -25051; in nouveau_temp_vbios_parse()
90 sensor->offset_div = 100; in nouveau_temp_vbios_parse()
91 sensor->slope_mult = 458; in nouveau_temp_vbios_parse()
92 sensor->slope_div = 10000; in nouveau_temp_vbios_parse()
96 sensor->offset_mult = -24088; in nouveau_temp_vbios_parse()
97 sensor->offset_div = 100; in nouveau_temp_vbios_parse()
98 sensor->slope_mult = 442; in nouveau_temp_vbios_parse()
99 sensor->slope_div = 10000; in nouveau_temp_vbios_parse()
103 sensor->offset_mult = -22749; in nouveau_temp_vbios_parse()
104 sensor->offset_div = 100; in nouveau_temp_vbios_parse()
105 sensor->slope_mult = 431; in nouveau_temp_vbios_parse()
106 sensor->slope_div = 10000; in nouveau_temp_vbios_parse()
110 sensor->offset_mult = -26149; in nouveau_temp_vbios_parse()
111 sensor->offset_div = 100; in nouveau_temp_vbios_parse()
112 sensor->slope_mult = 484; in nouveau_temp_vbios_parse()
113 sensor->slope_div = 10000; in nouveau_temp_vbios_parse()
130 sensor->offset_constant = (value >> 9) & 0x7f; in nouveau_temp_vbios_parse()
149 sensor->offset_mult = value; in nouveau_temp_vbios_parse()
153 sensor->offset_div = value; in nouveau_temp_vbios_parse()
157 sensor->slope_mult = value; in nouveau_temp_vbios_parse()
161 sensor->slope_div = value; in nouveau_temp_vbios_parse()
190 struct nouveau_pm_temp_sensor_constants *sensor = &pm->sensor_constants; in nv40_sensor_setup() local
191 s32 offset = sensor->offset_mult / sensor->offset_div; in nv40_sensor_setup()
195 sensor_calibration = 120 - offset - sensor->offset_constant; in nv40_sensor_setup()
196 sensor_calibration = sensor_calibration * sensor->slope_div / in nv40_sensor_setup()
197 sensor->slope_mult; in nv40_sensor_setup()
218 struct nouveau_pm_temp_sensor_constants *sensor = &pm->sensor_constants; in nv40_temp_get() local
219 int offset = sensor->offset_mult / sensor->offset_div; in nv40_temp_get()
231 core_temp = core_temp * sensor->slope_mult / sensor->slope_div; in nv40_temp_get()
232 core_temp = core_temp + offset + sensor->offset_constant; in nv40_temp_get()