Home
last modified time | relevance | path

Searched refs:slope (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v4.19/tools/testing/selftests/timers/
Dfreq-step.c120 double *slope, double *r_stddev, double *r_max) in regress() argument
137 *slope = (xy_sum - x_sum * y_sum / n) / (x2_sum - x_sum * x_sum / n); in regress()
138 *intercept = (y_sum - *slope * x_sum) / n; in regress()
145 r = fabs(x * *slope + *intercept - y); in regress()
157 double intercept, slope, stddev1, max1, stddev2, max2; in run_test() local
181 regress(samples, SAMPLES, &intercept, &slope, &stddev1, &max1); in run_test()
182 mono_freq_offset = slope; in run_test()
188 regress(samples, SAMPLES / 2, &intercept, &slope, &stddev1, &max1); in run_test()
189 freq_error1 = slope * (1.0 - mono_freq_offset) - mono_freq_offset - in run_test()
192 regress(samples + SAMPLES / 2, SAMPLES / 2, &intercept, &slope, in run_test()
[all …]
/Linux-v4.19/drivers/thermal/broadcom/
Dbcm2835_thermal.c80 static int bcm2835_thermal_adc2temp(u32 adc, int offset, int slope) in bcm2835_thermal_adc2temp() argument
82 return offset + slope * adc; in bcm2835_thermal_adc2temp()
85 static int bcm2835_thermal_temp2adc(int temp, int offset, int slope) in bcm2835_thermal_temp2adc() argument
88 temp /= slope; in bcm2835_thermal_temp2adc()
238 int trip_temp, offset, slope; in bcm2835_thermal_probe() local
240 slope = thermal_zone_get_slope(tz); in bcm2835_thermal_probe()
265 slope) in bcm2835_thermal_probe()
Dbrcmstb_thermal.c120 static void avs_tmon_get_coeffs(struct thermal_zone_device *tz, int *slope, in avs_tmon_get_coeffs() argument
123 *slope = thermal_zone_get_slope(tz); in avs_tmon_get_coeffs()
132 int slope, offset; in avs_tmon_code_to_temp() local
134 avs_tmon_get_coeffs(tz, &slope, &offset); in avs_tmon_code_to_temp()
136 return slope * val + offset; in avs_tmon_code_to_temp()
148 int slope, offset; in avs_tmon_temp_to_code() local
153 avs_tmon_get_coeffs(tz, &slope, &offset); in avs_tmon_temp_to_code()
159 return (u32)(DIV_ROUND_UP(offset - temp, abs(slope))); in avs_tmon_temp_to_code()
161 return (u32)((offset - temp) / abs(slope)); in avs_tmon_temp_to_code()
Dns-thermal.c29 int slope = thermal_zone_get_slope(ns_thermal->tz); in ns_thermal_get_temp() local
44 *temp = slope * val + offset; in ns_thermal_get_temp()
/Linux-v4.19/drivers/iio/humidity/
Dhts221_core.c268 int err, *slope, *b_gen, cal0, cal1; in hts221_parse_temp_caldata() local
298 slope = &hw->sensors[HTS221_SENSOR_T].slope; in hts221_parse_temp_caldata()
301 *slope = ((cal_y1 - cal_y0) * 8000) / (cal_x1 - cal_x0); in hts221_parse_temp_caldata()
311 int err, *slope, *b_gen, data; in hts221_parse_rh_caldata() local
337 slope = &hw->sensors[HTS221_SENSOR_H].slope; in hts221_parse_rh_caldata()
340 *slope = ((cal_y1 - cal_y0) * 8000) / (cal_x1 - cal_x0); in hts221_parse_rh_caldata()
357 data = hw->sensors[HTS221_SENSOR_H].slope; in hts221_get_sensor_scale()
361 data = hw->sensors[HTS221_SENSOR_T].slope; in hts221_get_sensor_scale()
387 div = hw->sensors[HTS221_SENSOR_H].slope; in hts221_get_sensor_offset()
391 div = hw->sensors[HTS221_SENSOR_T].slope; in hts221_get_sensor_offset()
Dhts221.h28 int slope, b_gen; member
/Linux-v4.19/drivers/thermal/qcom/
Dtsens-common.c65 tmdev->sensor[i].slope = SLOPE_DEFAULT; in compute_intercept_slope()
74 tmdev->sensor[i].slope = num / den; in compute_intercept_slope()
79 tmdev->sensor[i].slope); in compute_intercept_slope()
89 den = s->slope; in code_to_degc()
Dtsens-8960.c247 int slope, offset; in code_to_mdegC() local
249 slope = thermal_zone_get_slope(s->tzd); in code_to_mdegC()
250 offset = CAL_MDEGC - slope * s->offset; in code_to_mdegC()
252 return adc_code * slope + offset; in code_to_mdegC()
Dtsens.h30 int slope; member
/Linux-v4.19/drivers/macintosh/
Dwindfarm_pm121.c285 int slope; member
293 .slope = 1956315
297 .slope = 1565065
304 .slope = 1565065
308 .slope = 1956315
315 .slope = 2543190
319 .slope = 1565065
336 .slope = 65536
343 .slope = 65536
482 new_min = (average_power * correction->slope) >> 16; in pm121_correct()
[all …]
/Linux-v4.19/net/sched/
Dsch_cbs.c138 static s64 timediff_to_credits(s64 timediff, s64 slope) in timediff_to_credits() argument
140 return div64_s64(timediff * slope, NSEC_PER_SEC); in timediff_to_credits()
143 static s64 delay_from_credits(s64 credits, s64 slope) in delay_from_credits() argument
145 if (unlikely(slope == 0)) in delay_from_credits()
148 return div64_s64(-credits * NSEC_PER_SEC, slope); in delay_from_credits()
151 static s64 credits_from_len(unsigned int len, s64 slope, s64 port_rate) in credits_from_len() argument
156 return div64_s64(len * slope, port_rate); in credits_from_len()
/Linux-v4.19/drivers/thermal/ti-soc-thermal/
Dti-thermal-common.c87 int ret, tmp, slope, constant; in __ti_thermal_get_temp() local
101 slope = thermal_zone_get_slope(data->ti_thermal); in __ti_thermal_get_temp()
110 slope = s->slope_pcb; in __ti_thermal_get_temp()
118 *temp = ti_thermal_hotspot_temperature(tmp, slope, constant); in __ti_thermal_get_temp()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_cm_common.c156 if (!convert_to_custom_float_format(arr_points[0].slope, &fmt, in cm_helper_convert_to_custom_float()
179 if (!convert_to_custom_float_format(arr_points[1].slope, &fmt, in cm_helper_convert_to_custom_float()
342 arr_points[0].slope = dc_fixpt_div(arr_points[0].y, arr_points[0].x); in cm_helper_translate_curve_to_hw_format()
354 arr_points[1].slope = dc_fixpt_zero; in cm_helper_translate_curve_to_hw_format()
363 arr_points[1].slope = dc_fixpt_div( in cm_helper_translate_curve_to_hw_format()
504 arr_points[0].slope = dc_fixpt_div(arr_points[0].y, arr_points[0].x); in cm_helper_translate_curve_to_degamma_hw_format()
516 arr_points[1].slope = dc_fixpt_zero; in cm_helper_translate_curve_to_degamma_hw_format()
525 arr_points[1].slope = dc_fixpt_div( in cm_helper_translate_curve_to_degamma_hw_format()
/Linux-v4.19/Documentation/devicetree/bindings/thermal/
Dzx2967-thermal.txt13 Please note: slope coefficient defined in thermal-zones section need to be
52 * slope need to be multiplied by 1000.
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmt76x2_eeprom.c611 u16 val, slope; in mt76x2_get_temp_comp() local
625 slope = mt76x2_eeprom_get(dev, MT_EE_RF_TEMP_COMP_SLOPE_5G); in mt76x2_get_temp_comp()
628 slope = mt76x2_eeprom_get(dev, MT_EE_RF_TEMP_COMP_SLOPE_2G); in mt76x2_get_temp_comp()
632 t->high_slope = slope & 0xff; in mt76x2_get_temp_comp()
633 t->low_slope = slope >> 8; in mt76x2_get_temp_comp()
/Linux-v4.19/drivers/thermal/
Dzx2967_thermal.c107 priv->tzd->tzp->slope); in zx2967_thermal_get_temp()
171 if (priv->tzd->tzp->slope == 0) { in zx2967_thermal_probe()
Dof-thermal.c57 int slope; member
841 tz->slope = coef[0]; in thermal_of_build_thermal_zone()
844 tz->slope = 1; in thermal_of_build_thermal_zone()
992 tzp->slope = tz->slope; in of_parse_thermal_zones()
Dthermal_helpers.c208 return tz->tzp->slope; in thermal_zone_get_slope()
/Linux-v4.19/drivers/media/platform/omap3isp/
Dispresizer.h73 u8 slope; /* slope. */ member
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/
Deeprom.h115 u8 slope; member
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/inc/hw/
Dhw_shared.h48 struct fixed31_32 slope; member
/Linux-v4.19/drivers/platform/x86/
Dintel_ips.c844 u64 slope, offset; in read_mgtv() local
850 slope = offset = thm_readw(THM_MGTA); in read_mgtv()
851 slope = (slope & MGTA_SLOPE_MASK) >> MGTA_SLOPE_SHIFT; in read_mgtv()
854 ret = ((val * slope + 0x40) >> 7) + offset; in read_mgtv()
/Linux-v4.19/sound/soc/uniphier/
Daio-core.c746 int cur, diff, slope = 0, fs; in aio_port_set_volume() local
755 slope = diff / AUD_VOL_FADE_TIME * 1000 / fs; in aio_port_set_volume()
756 slope = max(1, slope); in aio_port_set_volume()
759 OPORTMXTYVOLPARA1_SLOPEU_MASK, slope << 16); in aio_port_set_volume()
/Linux-v4.19/drivers/staging/media/davinci_vpfe/
Ddavinci_vpfe_user.h785 unsigned short slope; member
907 short slope; member
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Dar9002_calib.c371 int32_t delta, currPDADC, slope; in ar9287_hw_olc_temp_compensation() local
384 slope = ah->eep_ops->get_eeprom(ah, EEP_TEMPSENSE_SLOPE); in ar9287_hw_olc_temp_compensation()
386 if (slope == 0) { /* to avoid divide by zero case */ in ar9287_hw_olc_temp_compensation()
389 delta = ((currPDADC - ah->initPDADC)*4) / slope; in ar9287_hw_olc_temp_compensation()

12