| /linux/drivers/thermal/qcom/ |
| H A D | tsens-v0_1.c | 212 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 = 2906; in init_8939() [all …]
|
| H A D | tsens-v1.c | 149 priv->sensor[0].slope = 3313; in init_8956() 150 priv->sensor[1].slope = 3275; in init_8956() 151 priv->sensor[2].slope = 3320; in init_8956() 152 priv->sensor[3].slope = 3246; in init_8956() 153 priv->sensor[4].slope = 3279; in init_8956() 154 priv->sensor[5].slope = 3257; in init_8956() 155 priv->sensor[6].slope = 3234; in init_8956() 156 priv->sensor[7].slope = 3269; in init_8956() 157 priv->sensor[8].slope = 3255; in init_8956() 158 priv->sensor[9].slope = 3239; in init_8956() [all …]
|
| H A D | tsens.c | 270 if (!priv->sensor[i].slope) in compute_intercept_slope() 271 priv->sensor[i].slope = SLOPE_DEFAULT; in compute_intercept_slope() 280 priv->sensor[i].slope = num / den; in compute_intercept_slope() 285 priv->sensor[i].slope); in compute_intercept_slope() 293 u64 code = div_u64(((u64)degc * s->slope + s->offset), SLOPE_FACTOR); in degc_to_code() 304 den = s->slope; in code_to_degc() 824 priv->sensor[i].slope, priv->sensor[i].offset); in dbg_sensors_show()
|
| H A D | tsens-8960.c | 192 priv->sensor[i].slope = tsens_msm8960_slope[i]; in calibrate_8960()
|
| /linux/tools/testing/selftests/timers/ |
| H A D | freq-step.c | 112 double *slope, double *r_stddev, double *r_max) in regress() argument 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() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
| H A D | dcn10_cm_common.c | 199 if (!convert_to_custom_float_format(corner_points[0].red.slope, &fmt, in cm_helper_convert_to_custom_float() 204 if (!convert_to_custom_float_format(corner_points[0].green.slope, &fmt, in cm_helper_convert_to_custom_float() 209 if (!convert_to_custom_float_format(corner_points[0].blue.slope, &fmt, in cm_helper_convert_to_custom_float() 259 if (!convert_to_custom_float_format(corner_points[1].red.slope, &fmt, in cm_helper_convert_to_custom_float() 264 if (!convert_to_custom_float_format(corner_points[1].green.slope, &fmt, in cm_helper_convert_to_custom_float() 269 if (!convert_to_custom_float_format(corner_points[1].blue.slope, &fmt, in cm_helper_convert_to_custom_float() 437 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm_helper_translate_curve_to_hw_format() 439 corner_points[0].green.slope = dc_fixpt_div(corner_points[0].green.y, in cm_helper_translate_curve_to_hw_format() 441 corner_points[0].blue.slope = dc_fixpt_div(corner_points[0].blue.y, in cm_helper_translate_curve_to_hw_format() 450 corner_points[1].red.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_hw_format() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
| H A D | dcn30_cm_common.c | 217 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm3_helper_translate_curve_to_hw_format() 219 corner_points[0].green.slope = dc_fixpt_div(corner_points[0].green.y, in cm3_helper_translate_curve_to_hw_format() 221 corner_points[0].blue.slope = dc_fixpt_div(corner_points[0].blue.y, in cm3_helper_translate_curve_to_hw_format() 230 corner_points[1].red.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format() 231 corner_points[1].green.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format() 232 corner_points[1].blue.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format() 355 if (!convert_to_custom_float_format(corner_points[0].red.slope, &fmt, in cm3_helper_convert_to_custom_float() 360 if (!convert_to_custom_float_format(corner_points[0].green.slope, &fmt, in cm3_helper_convert_to_custom_float() 365 if (!convert_to_custom_float_format(corner_points[0].blue.slope, &fmt, in cm3_helper_convert_to_custom_float() 415 if (!convert_to_custom_float_format(corner_points[1].red.slope, &fmt, in cm3_helper_convert_to_custom_float() [all …]
|
| /linux/drivers/iio/humidity/ |
| H A D | hts221_core.c | 261 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() 380 div = hw->sensors[HTS221_SENSOR_H].slope; in hts221_get_sensor_offset() 384 div = hw->sensors[HTS221_SENSOR_T].slope; in hts221_get_sensor_offset()
|
| /linux/drivers/macintosh/ |
| H A D | windfarm_pm121.c | 275 int slope; member 283 .slope = 1956315 287 .slope = 1565065 294 .slope = 1565065 298 .slope = 1956315 305 .slope = 2543190 309 .slope = 1565065 326 .slope = 65536 333 .slope = 65536 472 new_min = (average_power * correction->slope) >> 16; in pm121_correct() [all …]
|
| /linux/drivers/thermal/ti-soc-thermal/ |
| H A D | ti-thermal-common.c | 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()
|
| /linux/drivers/thermal/broadcom/ |
| H A D | bcm2711_thermal.c | 37 int slope = thermal_zone_get_slope(tz); in bcm2711_get_temp() local 52 *temp = slope * val + offset; in bcm2711_get_temp()
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_stream.c | 1024 long long slope = 0; in dc_stream_get_brightness_millinits_linear_interpolation() local 1026 …slope = (stream->lumin_data.luminance_millinits[index2] - stream->lumin_data.luminance_millinits[i… in dc_stream_get_brightness_millinits_linear_interpolation() 1030 …int y_intercept = stream->lumin_data.luminance_millinits[index2] - slope * stream->lumin_data.refr… in dc_stream_get_brightness_millinits_linear_interpolation() 1032 return (y_intercept + refresh_hz * slope); in dc_stream_get_brightness_millinits_linear_interpolation() 1043 long long slope = 1; in dc_stream_get_refresh_hz_linear_interpolation() local 1045 …slope = (stream->lumin_data.luminance_millinits[index2] - stream->lumin_data.luminance_millinits[i… in dc_stream_get_refresh_hz_linear_interpolation() 1049 …int y_intercept = stream->lumin_data.luminance_millinits[index2] - slope * stream->lumin_data.refr… in dc_stream_get_refresh_hz_linear_interpolation() 1051 return ((int)div64_s64((brightness_millinits - y_intercept), slope)); in dc_stream_get_refresh_hz_linear_interpolation()
|
| /linux/drivers/media/platform/ti/omap3isp/ |
| H A D | ispresizer.h | 70 u8 slope; /* slope. */ member
|
| /linux/drivers/net/wireless/mediatek/mt7601u/ |
| H A D | eeprom.h | 107 u8 slope; member
|
| H A D | debugfs.c | 115 seq_printf(file, "\t slope:%02hhx\n", td->slope); in mt7601u_eeprom_param_show()
|
| H A D | eeprom.c | 337 d->slope = eeprom[MT_EE_TX_TSSI_SLOPE]; in mt7601u_init_tssi_params()
|
| /linux/drivers/platform/x86/ |
| H A D | intel_ips.c | 841 u64 slope, offset; in read_mgtv() local 847 slope = offset = thm_readw(THM_MGTA); in read_mgtv() 848 slope = (slope & MGTA_SLOPE_MASK) >> MGTA_SLOPE_SHIFT; in read_mgtv() 851 ret = ((val * slope + 0x40) >> 7) + offset; in read_mgtv()
|
| /linux/Documentation/networking/device_drivers/ethernet/intel/ |
| H A D | igb.rst | 192 slope is expressed in the adapter's registers. It can only represent idle slopes 193 in 16.38431 kbps units, which means that if a idle slope of 2576kbps is 194 requested, the controller will be configured to use a idle slope of ~2589 kbps,
|
| /linux/drivers/thermal/ |
| H A D | thermal_helpers.c | 222 return tz->tzp->slope; in thermal_zone_get_slope()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9002_calib.c | 380 int32_t delta, currPDADC, slope; in ar9287_hw_olc_temp_compensation() local 393 slope = ah->eep_ops->get_eeprom(ah, EEP_TEMPSENSE_SLOPE); in ar9287_hw_olc_temp_compensation() 395 if (slope == 0) { /* to avoid divide by zero case */ in ar9287_hw_olc_temp_compensation() 398 delta = ((currPDADC - ah->initPDADC)*4) / slope; in ar9287_hw_olc_temp_compensation()
|
| /linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| H A D | hw_shared.h | 117 struct fixed31_32 slope; member
|
| /linux/drivers/video/backlight/ |
| H A D | pwm_bl.c | 382 unsigned int slope = (128 * (max_val - min_val)) / nlevels; in pwm_backlight_is_linear() local 387 unsigned int linear_value = min_val + ((i * slope) / 128); in pwm_backlight_is_linear()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-thermal | 171 What: /sys/class/thermal/thermal_zoneX/slope 173 The slope constant used in a linear extrapolation model
|
| /linux/drivers/hwmon/ |
| H A D | lm93.c | 347 const long slope = (uv_max - uv_min) / in LM93_IN_FROM_REG() local 349 const long intercept = uv_min - slope * lm93_vin_reg_min[nr]; in LM93_IN_FROM_REG() 351 return (slope * reg + intercept + 500) / 1000; in LM93_IN_FROM_REG() 370 const long slope = (uv_max - uv_min) / in LM93_IN_TO_REG() local 372 const long intercept = uv_min - slope * lm93_vin_reg_min[nr]; in LM93_IN_TO_REG() 374 u8 result = ((uv - intercept + (slope/2)) / slope); in LM93_IN_TO_REG()
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | dib0090.c | 856 struct slope { struct 858 s16 slope; argument 860 static u16 slopes_to_scale(const struct slope *slopes, u8 num, s16 val) in slopes_to_scale() 870 ret += (rest * slopes[i].slope) / slopes[i].range; in slopes_to_scale() 876 static const struct slope dib0090_wbd_slopes[3] = {
|