Home
last modified time | relevance | path

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

12

/drivers/thermal/qcom/
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()
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()
247 priv->sensor[3].slope = 2763; in init_8939()
[all …]
A Dtsens-v1.c149 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 …]
A Dtsens-v2.c145 u32 slope = V2_SLOPE_DEFAULT; in tsens_v2_calibrate_sensor() local
163 slope = (TWO_PT_SHIFTED_GAIN / (base1 - base0)); in tsens_v2_calibrate_sensor()
171 slope = ONE_PT_SLOPE; in tsens_v2_calibrate_sensor()
179 FIELD_PREP(CONVERSION_SLOPE_MASK, slope) | in tsens_v2_calibrate_sensor()
A Dtsens.c270 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()
/drivers/gpu/drm/amd/display/dc/dcn10/
A Ddcn10_cm_common.c450 corner_points[1].red.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_hw_format()
451 corner_points[1].green.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_hw_format()
452 corner_points[1].blue.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_hw_format()
461 corner_points[1].red.slope = dc_fixpt_div( in cm_helper_translate_curve_to_hw_format()
464 corner_points[1].green.slope = dc_fixpt_div( in cm_helper_translate_curve_to_hw_format()
467 corner_points[1].blue.slope = dc_fixpt_div( in cm_helper_translate_curve_to_hw_format()
627 corner_points[1].red.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_degamma_hw_format()
628 corner_points[1].green.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_degamma_hw_format()
629 corner_points[1].blue.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_degamma_hw_format()
638 corner_points[1].red.slope = dc_fixpt_div( in cm_helper_translate_curve_to_degamma_hw_format()
[all …]
/drivers/thermal/broadcom/
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()
211 int offset, slope, crit_temp; in bcm2835_thermal_probe() local
213 slope = thermal_zone_get_slope(tz); in bcm2835_thermal_probe()
236 slope) in bcm2835_thermal_probe()
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()
A Dbcm2711_thermal.c37 int slope = thermal_zone_get_slope(tz); in bcm2711_get_temp() local
52 *temp = slope * val + offset; in bcm2711_get_temp()
/drivers/gpu/drm/amd/display/dc/dcn30/
A Ddcn30_cm_common.c209 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm3_helper_translate_curve_to_hw_format()
211 corner_points[0].green.slope = dc_fixpt_div(corner_points[0].green.y, in cm3_helper_translate_curve_to_hw_format()
213 corner_points[0].blue.slope = dc_fixpt_div(corner_points[0].blue.y, in cm3_helper_translate_curve_to_hw_format()
222 corner_points[1].red.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format()
223 corner_points[1].green.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format()
224 corner_points[1].blue.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format()
334 if (!convert_to_custom_float_format(corner_points[0].red.slope, &fmt, in cm3_helper_convert_to_custom_float()
339 if (!convert_to_custom_float_format(corner_points[0].green.slope, &fmt, in cm3_helper_convert_to_custom_float()
344 if (!convert_to_custom_float_format(corner_points[0].blue.slope, &fmt, in cm3_helper_convert_to_custom_float()
394 if (!convert_to_custom_float_format(corner_points[1].red.slope, &fmt, in cm3_helper_convert_to_custom_float()
[all …]
/drivers/iio/humidity/
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()
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()
A Dhts221.h25 int slope, b_gen; member
/drivers/macintosh/
A Dwindfarm_pm121.c275 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 …]
/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc2/
A Dia_css_ctc2.host.c39 int slope, dydx; in ctc2_slope() local
50 slope = (int)(dy_shift + rounding) / dx; in ctc2_slope()
55 if (slope <= -max_slope - 1) { in ctc2_slope()
57 } else if (slope >= max_slope) { in ctc2_slope()
60 dydx = slope; in ctc2_slope()
/drivers/thermal/ti-soc-thermal/
A Dti-thermal-common.c76 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()
/drivers/net/wireless/mediatek/mt76/mt76x2/
A Deeprom.c461 u16 val, slope; in mt76x2_get_temp_comp() local
475 slope = mt76x02_eeprom_get(dev, MT_EE_RF_TEMP_COMP_SLOPE_5G); in mt76x2_get_temp_comp()
478 slope = mt76x02_eeprom_get(dev, MT_EE_RF_TEMP_COMP_SLOPE_2G); in mt76x2_get_temp_comp()
483 t->high_slope = slope & 0xff; in mt76x2_get_temp_comp()
484 t->low_slope = slope >> 8; in mt76x2_get_temp_comp()
/drivers/iio/adc/
A Dqcom-spmi-rradc.c304 int64_t *slope) in rradc_get_fab_coeff() argument
310 *slope = RR_ADC_CHG_TEMP_660_GF_SLOPE_UV_PER_C; in rradc_get_fab_coeff()
314 *slope = RR_ADC_CHG_TEMP_660_SMIC_SLOPE_UV_PER_C; in rradc_get_fab_coeff()
318 *slope = RR_ADC_CHG_TEMP_660_MGNA_SLOPE_UV_PER_C; in rradc_get_fab_coeff()
324 *slope = RR_ADC_CHG_TEMP_GF_SLOPE_UV_PER_C; in rradc_get_fab_coeff()
328 *slope = RR_ADC_CHG_TEMP_SMIC_SLOPE_UV_PER_C; in rradc_get_fab_coeff()
/drivers/gpu/drm/amd/display/dc/core/
A Ddc_stream.c947 long long slope = 0; in dc_stream_get_brightness_millinits_linear_interpolation() local
949slope = (stream->lumin_data.luminance_millinits[index2] - stream->lumin_data.luminance_millinits[i… in dc_stream_get_brightness_millinits_linear_interpolation()
953 …int y_intercept = stream->lumin_data.luminance_millinits[index2] - slope * stream->lumin_data.refr… in dc_stream_get_brightness_millinits_linear_interpolation()
955 return (y_intercept + refresh_hz * slope); in dc_stream_get_brightness_millinits_linear_interpolation()
966 long long slope = 1; in dc_stream_get_refresh_hz_linear_interpolation() local
968slope = (stream->lumin_data.luminance_millinits[index2] - stream->lumin_data.luminance_millinits[i… in dc_stream_get_refresh_hz_linear_interpolation()
972 …int y_intercept = stream->lumin_data.luminance_millinits[index2] - slope * stream->lumin_data.refr… in dc_stream_get_refresh_hz_linear_interpolation()
974 return ((int)div64_s64((brightness_millinits - y_intercept), slope)); in dc_stream_get_refresh_hz_linear_interpolation()
/drivers/media/platform/ti/omap3isp/
A Dispresizer.h70 u8 slope; /* slope. */ member
/drivers/platform/x86/
A Dintel_ips.c841 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()
/drivers/hwmon/
A Damc6821.c154 int slope; in amc6821_get_auto_point_temps() local
164 slope = 32 >> FIELD_GET(AMC6821_TEMP_SLOPE_MASK, regvals[2]); in amc6821_get_auto_point_temps()
165 if (slope) in amc6821_get_auto_point_temps()
166 temps[2] = temps[1] + DIV_ROUND_CLOSEST(255 - regvals[0], slope); in amc6821_get_auto_point_temps()
/drivers/net/wireless/mediatek/mt7601u/
A Deeprom.h107 u8 slope; member
A Ddebugfs.c115 seq_printf(file, "\t slope:%02hhx\n", td->slope); in mt7601u_eeprom_param_show()
/drivers/net/wireless/ath/ath9k/
A Dar9002_calib.c380 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()
/drivers/gpu/drm/amd/display/dc/inc/hw/
A Dhw_shared.h62 struct fixed31_32 slope; member
/drivers/thermal/
A Dthermal_helpers.c222 return tz->tzp->slope; in thermal_zone_get_slope()

Completed in 69 milliseconds

12