Home
last modified time | relevance | path

Searched full:slope (Results 1 – 25 of 107) sorted by relevance

12345

/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_cm_common.c61 REG_SET(reg->start_slope_cntl_b, 0, //linear slope at start of curve in cm_helper_program_gamcor_xfer_func()
213 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm3_helper_translate_curve_to_hw_format()
215 corner_points[0].green.slope = dc_fixpt_div(corner_points[0].green.y, in cm3_helper_translate_curve_to_hw_format()
217 corner_points[0].blue.slope = dc_fixpt_div(corner_points[0].blue.y, in cm3_helper_translate_curve_to_hw_format()
226 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()
232 * and the slope to be such that we hit 1.0 at 10000/1000 nits. 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()
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_cm_common.c144 /* corner_points[0] - beginning base, slope offset for R,G,B in cm_helper_convert_to_custom_float()
145 * corner_points[1] - end base, slope offset for R,G,B in cm_helper_convert_to_custom_float()
179 if (!convert_to_custom_float_format(corner_points[0].red.slope, &fmt, in cm_helper_convert_to_custom_float()
184 if (!convert_to_custom_float_format(corner_points[0].green.slope, &fmt, in cm_helper_convert_to_custom_float()
189 if (!convert_to_custom_float_format(corner_points[0].blue.slope, &fmt, in cm_helper_convert_to_custom_float()
239 if (!convert_to_custom_float_format(corner_points[1].red.slope, &fmt, in cm_helper_convert_to_custom_float()
244 if (!convert_to_custom_float_format(corner_points[1].green.slope, &fmt, in cm_helper_convert_to_custom_float()
249 if (!convert_to_custom_float_format(corner_points[1].blue.slope, &fmt, in cm_helper_convert_to_custom_float()
414 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm_helper_translate_curve_to_hw_format()
416 corner_points[0].green.slope = dc_fixpt_div(corner_points[0].green.y, in cm_helper_translate_curve_to_hw_format()
[all …]
/Linux-v6.1/include/linux/iio/adc/
Dqcom-vadc-common.h70 * @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-v6.1/tools/testing/selftests/timers/
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-v6.1/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc2/
Dia_css_ctc2.host.c36 * Calculation of the Slope of a Line = ((y1 - y0) >> 8)/(x1 - x0)
48 int slope, dydx; in ctc2_slope() local
59 slope = (int)(dy_shift + rounding) / dx; in ctc2_slope()
61 /*the slope must lie within the range 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()
155 /*Slope Calculation*/ in ia_css_ctc2_encode()
/Linux-v6.1/drivers/macintosh/
Dwindfarm_pm121.c28 * 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-v6.1/drivers/thermal/qcom/
Dtsens-v1.c150 priv->sensor[0].slope = 3313; in compute_intercept_slope_8976()
151 priv->sensor[1].slope = 3275; in compute_intercept_slope_8976()
152 priv->sensor[2].slope = 3320; in compute_intercept_slope_8976()
153 priv->sensor[3].slope = 3246; in compute_intercept_slope_8976()
154 priv->sensor[4].slope = 3279; in compute_intercept_slope_8976()
155 priv->sensor[5].slope = 3257; in compute_intercept_slope_8976()
156 priv->sensor[6].slope = 3234; in compute_intercept_slope_8976()
157 priv->sensor[7].slope = 3269; in compute_intercept_slope_8976()
158 priv->sensor[8].slope = 3255; in compute_intercept_slope_8976()
159 priv->sensor[9].slope = 3239; in compute_intercept_slope_8976()
[all …]
Dtsens.c74 * Use this function on devices where slope and offset calculations
75 * depend on calibration data read from qfprom. On others the slope
76 * and offset values are derived from tz->tzp->slope and tz->tzp->offset
90 if (!priv->sensor[i].slope) in compute_intercept_slope()
91 priv->sensor[i].slope = SLOPE_DEFAULT; in compute_intercept_slope()
94 * slope (m) = adc_code2 - adc_code1 (y2 - y1)/ in compute_intercept_slope()
100 priv->sensor[i].slope = num / den; in compute_intercept_slope()
105 priv->sensor[i].slope); in compute_intercept_slope()
113 u64 code = div_u64(((u64)degc * s->slope + s->offset), SLOPE_FACTOR); in degc_to_code()
124 den = s->slope; in code_to_degc()
[all …]
/Linux-v6.1/drivers/thermal/broadcom/
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()
227 int trip_temp, offset, slope; in bcm2835_thermal_probe() local
229 slope = thermal_zone_get_slope(tz); in bcm2835_thermal_probe()
254 slope) in bcm2835_thermal_probe()
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()
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-v6.1/drivers/iio/humidity/
Dhts221_core.c260 int err, *slope, *b_gen, cal0, cal1; in hts221_parse_temp_caldata() local
290 slope = &hw->sensors[HTS221_SENSOR_T].slope; in hts221_parse_temp_caldata()
293 *slope = ((cal_y1 - cal_y0) * 8000) / (cal_x1 - cal_x0); in hts221_parse_temp_caldata()
303 int err, *slope, *b_gen, data; in hts221_parse_rh_caldata() local
329 slope = &hw->sensors[HTS221_SENSOR_H].slope; in hts221_parse_rh_caldata()
332 *slope = ((cal_y1 - cal_y0) * 8000) / (cal_x1 - cal_x0); in hts221_parse_rh_caldata()
349 data = hw->sensors[HTS221_SENSOR_H].slope; in hts221_get_sensor_scale()
353 data = hw->sensors[HTS221_SENSOR_T].slope; in hts221_get_sensor_scale()
379 div = hw->sensors[HTS221_SENSOR_H].slope; in hts221_get_sensor_offset()
383 div = hw->sensors[HTS221_SENSOR_T].slope; in hts221_get_sensor_offset()
/Linux-v6.1/drivers/thermal/ti-soc-thermal/
Dti-thermal-common.c53 * @s: omap sensor slope value
74 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-v6.1/drivers/staging/media/atomisp/pci/isp/kernels/tnr/tnr3/
Dia_css_tnr3_types.h35 * slope and the point of Luma value which where the slope may change is called
39 * ISP bit depth). The other two points are the points where the slope may
/Linux-v6.1/net/sched/
Dsch_cbs.c139 /* timediff is in ns, slope is in bytes/s */
140 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()
Dsch_hfsc.c78 * 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-v6.1/drivers/staging/media/ipu3/include/uapi/
Dintel-ipu3.h1246 * @a01: Slope A of Config Unit, s4.4, default 0.
1247 * @b01: Slope B, always 0.
1253 * slope A factor between points calculated by driver based on calibration
1261 * the CU slope values should be based on the slope resolution 1/16 (binary
1262 * 0.0001 - the minimal interval value), the slope value range is [-256, +255].
1285 * @a01: slope A points 01, s4.4, default 0.
1286 * @a12: slope A points 12, s4.4, default 0.
1287 * @a23: slope A points 23, s4.4, default 0.
1289 * @a34: slope A points 34, s4.4, default 0.
1290 * @a45: slope A points 45, s4.4, default 0.
[all …]
/Linux-v6.1/drivers/leds/
Dleds-an30259a.c29 /* slope control registers */
42 /* detention time control (length of each slope step) */
140 /* slope time can only be a multiple of 500ms. */ in an30259a_blink_set()
178 /* slope time controls on/off cycle length. */ in an30259a_blink_set()
185 /* Finally, enable slope mode. */ in an30259a_blink_set()
/Linux-v6.1/drivers/thermal/
Dthermal_helpers.c238 * thermal_zone_get_slope - return the slope attribute of the thermal zone
239 * @tz: thermal zone device with the slope attribute
241 * Return: If the thermal zone device has a slope attribute, return it, else
247 return tz->tzp->slope; in thermal_zone_get_slope()
/Linux-v6.1/drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr2_2/
Dia_css_bnr2_2_types.h41 /* Slope of Directional variance gain between dark and bright region */
53 /* Slope of Non-Directional variance gain between dark and bright region */
/Linux-v6.1/drivers/net/wireless/mediatek/mt76/mt76x2/
Deeprom.c464 u16 val, slope; in mt76x2_get_temp_comp() local
478 slope = mt76x02_eeprom_get(dev, MT_EE_RF_TEMP_COMP_SLOPE_5G); in mt76x2_get_temp_comp()
481 slope = mt76x02_eeprom_get(dev, MT_EE_RF_TEMP_COMP_SLOPE_2G); in mt76x2_get_temp_comp()
486 t->high_slope = slope & 0xff; in mt76x2_get_temp_comp()
487 t->low_slope = slope >> 8; in mt76x2_get_temp_comp()
/Linux-v6.1/drivers/media/platform/ti/omap3isp/
Dispresizer.h70 u8 slope; /* slope. */ member
/Linux-v6.1/Documentation/networking/device_drivers/ethernet/intel/
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-v6.1/drivers/iio/adc/
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-v6.1/drivers/net/wireless/mediatek/mt7601u/
Ddebugfs.c115 seq_printf(file, "\t slope:%02hhx\n", td->slope); in mt7601u_eeprom_param_show()

12345