Home
last modified time | relevance | path

Searched refs:slope (Results 1 - 25 of 79) sorted by relevance

1234

/kernel/linux/linux-6.6/drivers/thermal/qcom/
H A Dtsens-v0_1.c212 priv->sensor[0].slope = 2901; in init_8226()
213 priv->sensor[1].slope = 2846; in init_8226()
214 priv->sensor[2].slope = 3038; in init_8226()
215 priv->sensor[3].slope = 2955; in init_8226()
216 priv->sensor[4].slope = 2901; in init_8226()
217 priv->sensor[5].slope = 2846; in init_8226()
227 priv->sensor[i].slope = 3000; in init_8909()
244 priv->sensor[0].slope = 2911; in init_8939()
245 priv->sensor[1].slope = 2789; in init_8939()
246 priv->sensor[2].slope in init_8939()
[all...]
H A Dtsens-v1.c138 priv->sensor[0].slope = 3313; in init_8956()
139 priv->sensor[1].slope = 3275; in init_8956()
140 priv->sensor[2].slope = 3320; in init_8956()
141 priv->sensor[3].slope = 3246; in init_8956()
142 priv->sensor[4].slope = 3279; in init_8956()
143 priv->sensor[5].slope = 3257; in init_8956()
144 priv->sensor[6].slope = 3234; in init_8956()
145 priv->sensor[7].slope = 3269; in init_8956()
146 priv->sensor[8].slope = 3255; in init_8956()
147 priv->sensor[9].slope in init_8956()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/timers/
H A Dfreq-step.c112 double *slope, double *r_stddev, double *r_max) in regress()
129 *slope = (xy_sum - x_sum * y_sum / n) / (x2_sum - x_sum * x_sum / n); in regress()
130 *intercept = (y_sum - *slope * x_sum) / n; in regress()
137 r = fabs(x * *slope + *intercept - y); in regress()
149 double intercept, slope, stddev1, max1, stddev2, max2; in run_test() local
173 regress(samples, SAMPLES, &intercept, &slope, &stddev1, &max1); in run_test()
174 mono_freq_offset = slope; in run_test()
180 regress(samples, SAMPLES / 2, &intercept, &slope, &stddev1, &max1); in run_test()
181 freq_error1 = slope * (1.0 - mono_freq_offset) - mono_freq_offset - in run_test()
184 regress(samples + SAMPLES / 2, SAMPLES / 2, &intercept, &slope, in run_test()
111 regress(struct sample *samples, int n, double *intercept, double *slope, double *r_stddev, double *r_max) regress() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/timers/
H A Dfreq-step.c112 double *slope, double *r_stddev, double *r_max) in regress()
129 *slope = (xy_sum - x_sum * y_sum / n) / (x2_sum - x_sum * x_sum / n); in regress()
130 *intercept = (y_sum - *slope * x_sum) / n; in regress()
137 r = fabs(x * *slope + *intercept - y); in regress()
149 double intercept, slope, stddev1, max1, stddev2, max2; in run_test() local
173 regress(samples, SAMPLES, &intercept, &slope, &stddev1, &max1); in run_test()
174 mono_freq_offset = slope; in run_test()
180 regress(samples, SAMPLES / 2, &intercept, &slope, &stddev1, &max1); in run_test()
181 freq_error1 = slope * (1.0 - mono_freq_offset) - mono_freq_offset - in run_test()
184 regress(samples + SAMPLES / 2, SAMPLES / 2, &intercept, &slope, in run_test()
111 regress(struct sample *samples, int n, double *intercept, double *slope, double *r_stddev, double *r_max) regress() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_cm_common.c144 /* corner_points[0] - beginning base, slope offset for R,G,B in cm_helper_convert_to_custom_float()
145 * corner_points[1] - end base, slope offset for R,G,B in cm_helper_convert_to_custom_float()
179 if (!convert_to_custom_float_format(corner_points[0].red.slope, &fmt, in cm_helper_convert_to_custom_float()
184 if (!convert_to_custom_float_format(corner_points[0].green.slope, &fmt, in cm_helper_convert_to_custom_float()
189 if (!convert_to_custom_float_format(corner_points[0].blue.slope, &fmt, in cm_helper_convert_to_custom_float()
239 if (!convert_to_custom_float_format(corner_points[1].red.slope, &fmt, in cm_helper_convert_to_custom_float()
244 if (!convert_to_custom_float_format(corner_points[1].green.slope, &fmt, in cm_helper_convert_to_custom_float()
249 if (!convert_to_custom_float_format(corner_points[1].blue.slope, &fmt, in cm_helper_convert_to_custom_float()
414 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm_helper_translate_curve_to_hw_format()
416 corner_points[0].green.slope in cm_helper_translate_curve_to_hw_format()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_cm_common.c61 REG_SET(reg->start_slope_cntl_b, 0, //linear slope at start of curve in cm_helper_program_gamcor_xfer_func()
213 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm3_helper_translate_curve_to_hw_format()
215 corner_points[0].green.slope = dc_fixpt_div(corner_points[0].green.y, in cm3_helper_translate_curve_to_hw_format()
217 corner_points[0].blue.slope = dc_fixpt_div(corner_points[0].blue.y, in cm3_helper_translate_curve_to_hw_format()
226 corner_points[1].red.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format()
227 corner_points[1].green.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format()
228 corner_points[1].blue.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format()
232 * and the slope to be such that we hit 1.0 at 10000/1000 nits. in cm3_helper_translate_curve_to_hw_format()
240 corner_points[1].red.slope = dc_fixpt_div( in cm3_helper_translate_curve_to_hw_format()
243 corner_points[1].green.slope in cm3_helper_translate_curve_to_hw_format()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_cm_common.c144 /* corner_points[0] - beginning base, slope offset for R,G,B in cm_helper_convert_to_custom_float()
145 * corner_points[1] - end base, slope offset for R,G,B in cm_helper_convert_to_custom_float()
179 if (!convert_to_custom_float_format(corner_points[0].red.slope, &fmt, in cm_helper_convert_to_custom_float()
184 if (!convert_to_custom_float_format(corner_points[0].green.slope, &fmt, in cm_helper_convert_to_custom_float()
189 if (!convert_to_custom_float_format(corner_points[0].blue.slope, &fmt, in cm_helper_convert_to_custom_float()
239 if (!convert_to_custom_float_format(corner_points[1].red.slope, &fmt, in cm_helper_convert_to_custom_float()
244 if (!convert_to_custom_float_format(corner_points[1].green.slope, &fmt, in cm_helper_convert_to_custom_float()
249 if (!convert_to_custom_float_format(corner_points[1].blue.slope, &fmt, in cm_helper_convert_to_custom_float()
417 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm_helper_translate_curve_to_hw_format()
419 corner_points[0].green.slope in cm_helper_translate_curve_to_hw_format()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_cm_common.c61 REG_SET(reg->start_slope_cntl_b, 0, //linear slope at start of curve in cm_helper_program_gamcor_xfer_func()
213 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm3_helper_translate_curve_to_hw_format()
215 corner_points[0].green.slope = dc_fixpt_div(corner_points[0].green.y, in cm3_helper_translate_curve_to_hw_format()
217 corner_points[0].blue.slope = dc_fixpt_div(corner_points[0].blue.y, in cm3_helper_translate_curve_to_hw_format()
226 corner_points[1].red.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format()
227 corner_points[1].green.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format()
228 corner_points[1].blue.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format()
232 * and the slope to be such that we hit 1.0 at 10000/1000 nits. in cm3_helper_translate_curve_to_hw_format()
240 corner_points[1].red.slope = dc_fixpt_div( in cm3_helper_translate_curve_to_hw_format()
243 corner_points[1].green.slope in cm3_helper_translate_curve_to_hw_format()
[all...]
/kernel/linux/linux-5.10/drivers/thermal/broadcom/
H A Dbcm2835_thermal.c73 static int bcm2835_thermal_adc2temp(u32 adc, int offset, int slope) in bcm2835_thermal_adc2temp() argument
75 return offset + slope * adc; in bcm2835_thermal_adc2temp()
78 static int bcm2835_thermal_temp2adc(int temp, int offset, int slope) in bcm2835_thermal_temp2adc() argument
81 temp /= slope; in bcm2835_thermal_temp2adc()
228 int trip_temp, offset, slope; in bcm2835_thermal_probe() local
230 slope = thermal_zone_get_slope(tz); in bcm2835_thermal_probe()
255 slope) in bcm2835_thermal_probe()
H A Dns-thermal.c26 int slope = thermal_zone_get_slope(ns_thermal->tz); in ns_thermal_get_temp() local
41 *temp = slope * val + offset; in ns_thermal_get_temp()
/kernel/linux/linux-6.6/drivers/thermal/broadcom/
H A Dbcm2835_thermal.c73 static int bcm2835_thermal_adc2temp(u32 adc, int offset, int slope) in bcm2835_thermal_adc2temp() argument
75 return offset + slope * adc; in bcm2835_thermal_adc2temp()
78 static int bcm2835_thermal_temp2adc(int temp, int offset, int slope) in bcm2835_thermal_temp2adc() argument
81 temp /= slope; in bcm2835_thermal_temp2adc()
226 int offset, slope; in bcm2835_thermal_probe() local
228 slope = thermal_zone_get_slope(tz); in bcm2835_thermal_probe()
253 slope) in bcm2835_thermal_probe()
H A Dns-thermal.c21 int slope = thermal_zone_get_slope(tz); in ns_thermal_get_temp() local
36 *temp = slope * val + offset; in ns_thermal_get_temp()
/kernel/linux/linux-5.10/drivers/thermal/qcom/
H A Dtsens-v1.c337 priv->sensor[0].slope = 3313; in init_8956()
338 priv->sensor[1].slope = 3275; in init_8956()
339 priv->sensor[2].slope = 3320; in init_8956()
340 priv->sensor[3].slope = 3246; in init_8956()
341 priv->sensor[4].slope = 3279; in init_8956()
342 priv->sensor[5].slope = 3257; in init_8956()
343 priv->sensor[6].slope = 3234; in init_8956()
344 priv->sensor[7].slope = 3269; in init_8956()
345 priv->sensor[8].slope = 3255; in init_8956()
346 priv->sensor[9].slope in init_8956()
[all...]
H A Dtsens-8960.c240 int slope, offset; in code_to_mdegC() local
242 slope = thermal_zone_get_slope(s->tzd); in code_to_mdegC()
243 offset = CAL_MDEGC - slope * s->offset; in code_to_mdegC()
245 return adc_code * slope + offset; in code_to_mdegC()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc2/
H A Dia_css_ctc2.host.c48 int slope, dydx; in ctc2_slope() local
59 slope = (int)(dy_shift + rounding) / dx; in ctc2_slope()
61 /*the slope must lie within the range in ctc2_slope()
64 if (slope <= -max_slope - 1) { in ctc2_slope()
66 } else if (slope >= max_slope) { in ctc2_slope()
69 dydx = slope; in ctc2_slope()
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc2/
H A Dia_css_ctc2.host.c48 int slope, dydx; in ctc2_slope() local
59 slope = (int)(dy_shift + rounding) / dx; in ctc2_slope()
61 /*the slope must lie within the range in ctc2_slope()
64 if (slope <= -max_slope - 1) { in ctc2_slope()
66 } else if (slope >= max_slope) { in ctc2_slope()
69 dydx = slope; in ctc2_slope()
/kernel/linux/linux-5.10/drivers/iio/humidity/
H A Dhts221_core.c260 int err, *slope, *b_gen, cal0, cal1; in hts221_parse_temp_caldata() local
290 slope = &hw->sensors[HTS221_SENSOR_T].slope; in hts221_parse_temp_caldata()
293 *slope = ((cal_y1 - cal_y0) * 8000) / (cal_x1 - cal_x0); in hts221_parse_temp_caldata()
303 int err, *slope, *b_gen, data; in hts221_parse_rh_caldata() local
329 slope = &hw->sensors[HTS221_SENSOR_H].slope; in hts221_parse_rh_caldata()
332 *slope = ((cal_y1 - cal_y0) * 8000) / (cal_x1 - cal_x0); in hts221_parse_rh_caldata()
349 data = hw->sensors[HTS221_SENSOR_H].slope; in hts221_get_sensor_scale()
353 data = hw->sensors[HTS221_SENSOR_T].slope; in hts221_get_sensor_scale()
[all...]
/kernel/linux/linux-6.6/drivers/iio/humidity/
H A Dhts221_core.c261 int err, *slope, *b_gen, cal0, cal1; in hts221_parse_temp_caldata() local
291 slope = &hw->sensors[HTS221_SENSOR_T].slope; in hts221_parse_temp_caldata()
294 *slope = ((cal_y1 - cal_y0) * 8000) / (cal_x1 - cal_x0); in hts221_parse_temp_caldata()
304 int err, *slope, *b_gen, data; in hts221_parse_rh_caldata() local
330 slope = &hw->sensors[HTS221_SENSOR_H].slope; in hts221_parse_rh_caldata()
333 *slope = ((cal_y1 - cal_y0) * 8000) / (cal_x1 - cal_x0); in hts221_parse_rh_caldata()
350 data = hw->sensors[HTS221_SENSOR_H].slope; in hts221_get_sensor_scale()
354 data = hw->sensors[HTS221_SENSOR_T].slope; in hts221_get_sensor_scale()
[all...]
/kernel/linux/linux-5.10/drivers/macintosh/
H A Dwindfarm_pm121.c28 * new_min = ((((average_power * slope) >> 16) + offset) >> 16) + min_value
35 * slope : 1956315
39 * slope : 1565065
45 * slope : 1565065
49 * slope : 1956315
55 * slope : 2543190
59 * slope : 1565065
66 * new_min = ref_value * slope + offset
77 * slope : 1565065
83 * slope
274 int slope; global() member
[all...]
/kernel/linux/linux-6.6/drivers/macintosh/
H A Dwindfarm_pm121.c28 * new_min = ((((average_power * slope) >> 16) + offset) >> 16) + min_value
35 * slope : 1956315
39 * slope : 1565065
45 * slope : 1565065
49 * slope : 1956315
55 * slope : 2543190
59 * slope : 1565065
66 * new_min = ref_value * slope + offset
77 * slope : 1565065
83 * slope
275 int slope; global() member
[all...]
/kernel/linux/linux-5.10/drivers/thermal/ti-soc-thermal/
H A Dti-thermal-common.c52 * @s: omap sensor slope value
73 int ret, tmp, slope, constant; in __ti_thermal_get_temp() local
87 slope = thermal_zone_get_slope(data->ti_thermal); in __ti_thermal_get_temp()
96 slope = s->slope_pcb; in __ti_thermal_get_temp()
104 *temp = ti_thermal_hotspot_temperature(tmp, slope, constant); in __ti_thermal_get_temp()
/kernel/linux/linux-6.6/drivers/thermal/ti-soc-thermal/
H A Dti-thermal-common.c55 * @s: omap sensor slope value
76 int ret, tmp, slope, constant; in __ti_thermal_get_temp() local
90 slope = thermal_zone_get_slope(tz); in __ti_thermal_get_temp()
99 slope = s->slope_pcb; in __ti_thermal_get_temp()
107 *temp = ti_thermal_hotspot_temperature(tmp, slope, constant); in __ti_thermal_get_temp()
/kernel/linux/linux-5.10/net/sched/
H A Dsch_cbs.c138 /* timediff is in ns, slope is in bytes/s */
139 static s64 timediff_to_credits(s64 timediff, s64 slope) in timediff_to_credits() argument
141 return div64_s64(timediff * slope, NSEC_PER_SEC); in timediff_to_credits()
144 static s64 delay_from_credits(s64 credits, s64 slope) in delay_from_credits() argument
146 if (unlikely(slope == 0)) in delay_from_credits()
149 return div64_s64(-credits * NSEC_PER_SEC, slope); in delay_from_credits()
152 static s64 credits_from_len(unsigned int len, s64 slope, s64 port_rate) in credits_from_len() argument
157 return div64_s64(len * slope, port_rate); in credits_from_len()
/kernel/linux/linux-6.6/net/sched/
H A Dsch_cbs.c139 /* timediff is in ns, slope is in bytes/s */
140 static s64 timediff_to_credits(s64 timediff, s64 slope) in timediff_to_credits() argument
142 return div64_s64(timediff * slope, NSEC_PER_SEC); in timediff_to_credits()
145 static s64 delay_from_credits(s64 credits, s64 slope) in delay_from_credits() argument
147 if (unlikely(slope == 0)) in delay_from_credits()
150 return div64_s64(-credits * NSEC_PER_SEC, slope); in delay_from_credits()
153 static s64 credits_from_len(unsigned int len, s64 slope, s64 port_rate) in credits_from_len() argument
158 return div64_s64(len * slope, port_rate); in credits_from_len()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Deeprom.c473 u16 val, slope; in mt76x2_get_temp_comp() local
487 slope = mt76x02_eeprom_get(dev, MT_EE_RF_TEMP_COMP_SLOPE_5G); in mt76x2_get_temp_comp()
490 slope = mt76x02_eeprom_get(dev, MT_EE_RF_TEMP_COMP_SLOPE_2G); in mt76x2_get_temp_comp()
495 t->high_slope = slope & 0xff; in mt76x2_get_temp_comp()
496 t->low_slope = slope >> 8; in mt76x2_get_temp_comp()

Completed in 14 milliseconds

1234