| /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 | 254 * Use this function on devices where slope and offset calculations 255 * depend on calibration data read from qfprom. On others the slope 256 * and offset values are derived from tz->tzp->slope and tz->tzp->offset 270 if (!priv->sensor[i].slope) in compute_intercept_slope() 271 priv->sensor[i].slope = SLOPE_DEFAULT; in compute_intercept_slope() 274 * slope (m) = adc_code2 - adc_code1 (y2 - y1)/ 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() [all …]
|
| H A D | tsens-8960.c | 48 /* Original slope - 350 to compensate mC to C inaccuracy */ 192 priv->sensor[i].slope = tsens_msm8960_slope[i]; in calibrate_8960()
|
| H A D | tsens.h | 54 * @slope: slope of temperature adjustment curve 62 int slope; member
|
| /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/include/linux/iio/adc/ |
| H A D | qcom-vadc-common.h | 70 * @dy: numerator slope to calculate the gain. 71 * @dx: denominator slope to calculate the gain. 93 * voltage (uV) with hardware applied offset/slope values to adc code. 95 * lookup table. The hardware applies offset/slope to adc code. 97 * 100k pullup. The hardware applies offset/slope to adc code. 99 * lookup table for PMIC7. The hardware applies offset/slope to adc code. 101 * The hardware applies offset/slope to adc code. 103 * The hardware applies offset/slope to adc code. This is for PMIC7.
|
| /linux/drivers/macintosh/ |
| H A D | windfarm_pm121.c | 28 * 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 : 65536 [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/thermal/ti-soc-thermal/ |
| H A D | ti-thermal-common.c | 55 * @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()
|
| /linux/drivers/thermal/ |
| H A D | thermal_helpers.c | 213 * thermal_zone_get_slope - return the slope attribute of the thermal zone 214 * @tz: thermal zone device with the slope attribute 216 * Return: If the thermal zone device has a slope attribute, return it, else 222 return tz->tzp->slope; in thermal_zone_get_slope()
|
| H A D | airoha_thermal.c | 184 /* Convert temp to raw value as read from ADC ((((temp / 100) - init) * slope) / 1000) + offset */ 189 /* Convert raw to temp ((((temp - offset) * 1000) / slope + init) * 100) */ 342 /* Different slope are applied if the sensor is used for CPU or for package */ in airoha_thermal_setup_adc_val()
|
| /linux/drivers/leds/ |
| H A D | leds-an30259a.c | 29 /* slope control registers */ 42 /* detention time control (length of each slope step) */ 136 /* slope time can only be a multiple of 500ms. */ in an30259a_blink_set() 174 /* slope time controls on/off cycle length. */ in an30259a_blink_set() 181 /* Finally, enable slope mode. */ in an30259a_blink_set()
|
| /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/media/platform/ti/omap3isp/ |
| H A D | ispresizer.h | 70 u8 slope; /* slope. */ member
|
| /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/net/sched/ |
| H A D | sch_hfsc.c | 78 * representation. The slope values are scaled to avoid overflow. 79 * the inverse slope values as well as the y-projection of the 1st 85 u64 sm1; /* scaled slope of the 1st segment */ 86 u64 ism1; /* scaled inverse-slope of the 1st segment */ 89 u64 sm2; /* scaled slope of the 2nd segment */ 90 u64 ism2; /* scaled inverse-slope of the 2nd segment */ 97 u64 sm1; /* scaled slope of the 1st segment */ 98 u64 ism1; /* scaled inverse-slope of the 1st segment */ 101 u64 sm2; /* scaled slope of the 2nd segment */ 102 u64 ism2; /* scaled inverse-slope of the 2nd segment */ [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_stream.c | 1034 long long slope = 0; in dc_stream_get_brightness_millinits_linear_interpolation() local 1036 …slope = (stream->lumin_data.luminance_millinits[index2] - stream->lumin_data.luminance_millinits[i… in dc_stream_get_brightness_millinits_linear_interpolation() 1040 …int y_intercept = stream->lumin_data.luminance_millinits[index2] - slope * stream->lumin_data.refr… in dc_stream_get_brightness_millinits_linear_interpolation() 1042 return (y_intercept + refresh_hz * slope); in dc_stream_get_brightness_millinits_linear_interpolation() 1053 long long slope = 1; in dc_stream_get_refresh_hz_linear_interpolation() local 1055 …slope = (stream->lumin_data.luminance_millinits[index2] - stream->lumin_data.luminance_millinits[i… in dc_stream_get_refresh_hz_linear_interpolation() 1059 …int y_intercept = stream->lumin_data.luminance_millinits[index2] - slope * stream->lumin_data.refr… in dc_stream_get_refresh_hz_linear_interpolation() 1061 return ((int)div64_s64((brightness_millinits - y_intercept), slope)); in dc_stream_get_refresh_hz_linear_interpolation()
|
| /linux/net/ipv4/ |
| H A D | tcp_nv.c | 102 u32 nv_min_rtt; /* active min rtt. Used to determine slope */ 361 /* Find the ideal cwnd for current rate from slope in tcpnv_acked() 362 * slope = 80000.0 * mss / nv_min_rtt in tcpnv_acked() 363 * cwnd_by_slope = nv_rtt_max_rate / slope in tcpnv_acked()
|
| /linux/drivers/net/wireless/mediatek/mt7601u/ |
| H A D | debugfs.c | 115 seq_printf(file, "\t slope:%02hhx\n", td->slope); in mt7601u_eeprom_param_show()
|
| H A D | eeprom.h | 107 u8 slope; member
|
| /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/gpu/drm/amd/pm/powerplay/hwmgr/ |
| H A D | pptable_v1_0.h | 276 USHORT usTHigh; /* The high point above TMed for adjusting the second slope. */ 296 USHORT usTHigh; /* The high point above TMed for adjusting the second slope. */ 323 USHORT usTHigh; /* The high point above TMed for adjusting the second slope. */
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A D | gm20b.c | 199 /* coeff = slope * voltage + offset */ in gm20b_dvfs_calc_det_coeff() 748 static const s32 ADC_SLOPE_UV = 10000; /* default ADC detection slope */ in gm20b_clk_init_dvfs() 772 * wait for completion, and use results along with default slope to in gm20b_clk_init_dvfs() 794 nvkm_debug(subdev, "calibrated DVFS parameters: offs %d, slope %d\n", in gm20b_clk_init_dvfs() 975 nvkm_debug(subdev, "fused calibration data: slope %d, offs %d\n", in gm20b_clk_init_fused_params()
|
| /linux/Documentation/devicetree/bindings/iio/afe/ |
| H A D | temperature-transducer.yaml | 80 Sometimes referred to as output gain, slope, or temperature coefficient.
|