Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/thermal/qcom/
A Dtsens-v1.c160 priv->sensor[0].slope = 3313; in init_8956()
161 priv->sensor[1].slope = 3275; in init_8956()
162 priv->sensor[2].slope = 3320; in init_8956()
163 priv->sensor[3].slope = 3246; in init_8956()
164 priv->sensor[4].slope = 3279; in init_8956()
165 priv->sensor[5].slope = 3257; in init_8956()
166 priv->sensor[6].slope = 3234; in init_8956()
167 priv->sensor[7].slope = 3269; in init_8956()
168 priv->sensor[8].slope = 3255; in init_8956()
169 priv->sensor[9].slope = 3239; in init_8956()
[all …]
A Dtsens-v0_1.c247 priv->sensor[0].slope = 2911; in init_8939()
248 priv->sensor[1].slope = 2789; in init_8939()
249 priv->sensor[2].slope = 2906; in init_8939()
250 priv->sensor[3].slope = 2763; in init_8939()
251 priv->sensor[4].slope = 2922; in init_8939()
252 priv->sensor[5].slope = 2867; in init_8939()
253 priv->sensor[6].slope = 2833; in init_8939()
254 priv->sensor[7].slope = 2838; in init_8939()
255 priv->sensor[8].slope = 2840; in init_8939()
A Dtsens.c255 if (!priv->sensor[i].slope) in compute_intercept_slope()
256 priv->sensor[i].slope = SLOPE_DEFAULT; in compute_intercept_slope()
265 priv->sensor[i].slope = num / den; in compute_intercept_slope()
270 priv->sensor[i].slope); in compute_intercept_slope()
278 u64 code = div_u64(((u64)degc * s->slope + s->offset), SLOPE_FACTOR); in degc_to_code()
289 den = s->slope; in code_to_degc()
809 priv->sensor[i].slope, priv->sensor[i].offset); in dbg_sensors_show()
/linux-6.3-rc2/tools/testing/selftests/timers/
A Dfreq-step.c112 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-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/
A Ddcn10_cm_common.c427 corner_points[1].red.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_hw_format()
428 corner_points[1].green.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_hw_format()
429 corner_points[1].blue.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_hw_format()
438 corner_points[1].red.slope = dc_fixpt_div( in cm_helper_translate_curve_to_hw_format()
441 corner_points[1].green.slope = dc_fixpt_div( in cm_helper_translate_curve_to_hw_format()
444 corner_points[1].blue.slope = dc_fixpt_div( in cm_helper_translate_curve_to_hw_format()
594 corner_points[1].red.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_degamma_hw_format()
595 corner_points[1].green.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_degamma_hw_format()
596 corner_points[1].blue.slope = dc_fixpt_zero; in cm_helper_translate_curve_to_degamma_hw_format()
605 corner_points[1].red.slope = dc_fixpt_div( in cm_helper_translate_curve_to_degamma_hw_format()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn30/
A Ddcn30_cm_common.c226 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()
240 corner_points[1].red.slope = dc_fixpt_div( in cm3_helper_translate_curve_to_hw_format()
243 corner_points[1].green.slope = dc_fixpt_div( in cm3_helper_translate_curve_to_hw_format()
246 corner_points[1].blue.slope = dc_fixpt_div( in cm3_helper_translate_curve_to_hw_format()
390 corner_points[1].red.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_degamma_hw_format()
391 corner_points[1].green.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_degamma_hw_format()
392 corner_points[1].blue.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_degamma_hw_format()
401 corner_points[1].red.slope = dc_fixpt_div( in cm3_helper_translate_curve_to_degamma_hw_format()
[all …]
/linux-6.3-rc2/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()
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()
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()
/linux-6.3-rc2/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
/linux-6.3-rc2/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc2/
A Dia_css_ctc2.host.c48 int slope, dydx; in ctc2_slope() local
59 slope = (int)(dy_shift + rounding) / dx; 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()
/linux-6.3-rc2/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 …]
/linux-6.3-rc2/drivers/thermal/ti-soc-thermal/
A Dti-thermal-common.c74 int ret, tmp, slope, constant; in __ti_thermal_get_temp() local
88 slope = thermal_zone_get_slope(tz); in __ti_thermal_get_temp()
97 slope = s->slope_pcb; in __ti_thermal_get_temp()
105 *temp = ti_thermal_hotspot_temperature(tmp, slope, constant); in __ti_thermal_get_temp()
/linux-6.3-rc2/net/sched/
A Dsch_cbs.c140 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()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt76x2/
A Deeprom.c452 u16 val, slope; in mt76x2_get_temp_comp() local
466 slope = mt76x02_eeprom_get(dev, MT_EE_RF_TEMP_COMP_SLOPE_5G); in mt76x2_get_temp_comp()
469 slope = mt76x02_eeprom_get(dev, MT_EE_RF_TEMP_COMP_SLOPE_2G); in mt76x2_get_temp_comp()
474 t->high_slope = slope & 0xff; in mt76x2_get_temp_comp()
475 t->low_slope = slope >> 8; in mt76x2_get_temp_comp()
/linux-6.3-rc2/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()
/linux-6.3-rc2/drivers/media/platform/ti/omap3isp/
A Dispresizer.h70 u8 slope; /* slope. */ member
/linux-6.3-rc2/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()
/linux-6.3-rc2/drivers/platform/x86/
A Dintel_ips.c833 u64 slope, offset; in read_mgtv() local
839 slope = offset = thm_readw(THM_MGTA); in read_mgtv()
840 slope = (slope & MGTA_SLOPE_MASK) >> MGTA_SLOPE_SHIFT; in read_mgtv()
843 ret = ((val * slope + 0x40) >> 7) + offset; in read_mgtv()
/linux-6.3-rc2/sound/soc/uniphier/
A 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-6.3-rc2/Documentation/networking/device_drivers/ethernet/intel/
A Digb.rst192 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-6.3-rc2/drivers/thermal/
A Dthermal_helpers.c206 return tz->tzp->slope; in thermal_zone_get_slope()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/inc/hw/
A Dhw_shared.h60 struct fixed31_32 slope; member

Completed in 40 milliseconds

12