Home
last modified time | relevance | path

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

12345678

/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn30/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn10/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/timers/
H 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 …]
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dqcom-vadc-common.h83 * @dy: numerator slope to calculate the gain.
84 * @dx: denominator slope to calculate the gain.
116 * voltage (uV) with hardware applied offset/slope values to adc code.
118 * lookup table. The hardware applies offset/slope to adc code.
120 * 100k pullup. The hardware applies offset/slope to adc code.
122 * lookup table for PMIC7. The hardware applies offset/slope to adc code.
124 * The hardware applies offset/slope to adc code.
126 * The hardware applies offset/slope to adc code. This is for PMIC7.
/OK3568_Linux_fs/yocto/poky/meta/recipes-support/libgcrypt/files/
H A D0003-tests-bench-slope.c-workaround-ICE-failure-on-mips-w.patch4 Subject: [PATCH 3/4] tests/bench-slope.c: workaround ICE failure on mips with
52 tests/bench-slope.c | 4 ++--
55 diff --git a/tests/bench-slope.c b/tests/bench-slope.c
57 --- a/tests/bench-slope.c
58 +++ b/tests/bench-slope.c
/OK3568_Linux_fs/kernel/drivers/macintosh/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc2/
H A 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()
/OK3568_Linux_fs/kernel/drivers/thermal/qcom/
H A 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 …]
H A Dtsens-8960.c240 int slope, offset; in code_to_mdegC() local
242 slope = thermal_zone_get_slope(s->tzd); in code_to_mdegC()
243 offset = CAL_MDEGC - slope * s->offset; in code_to_mdegC()
245 return adc_code * slope + offset; in code_to_mdegC()
H A Dtsens.c72 * Use this function on devices where slope and offset calculations
73 * depend on calibration data read from qfprom. On others the slope
74 * and offset values are derived from tz->tzp->slope and tz->tzp->offset
88 priv->sensor[i].slope = SLOPE_DEFAULT; in compute_intercept_slope()
91 * slope (m) = adc_code2 - adc_code1 (y2 - y1)/ in compute_intercept_slope()
97 priv->sensor[i].slope = num / den; in compute_intercept_slope()
102 priv->sensor[i].slope); in compute_intercept_slope()
110 u64 code = div_u64(((u64)degc * s->slope + s->offset), SLOPE_FACTOR); in degc_to_code()
121 den = s->slope; in code_to_degc()
632 seq_puts(s, " id slope offset\n--------------------------\n"); in dbg_sensors_show()
[all …]
/OK3568_Linux_fs/u-boot/drivers/thermal/
H A Dimx_thermal.c67 * slope = 0.4445388 - (0.0016549 * 25C fuse) in read_cpu_temperature()
74 * slope = 0.4445388 - (0.0016549 * 25C fuse) in read_cpu_temperature()
75 * slope = (FACTOR2 - FACTOR1 * n1) / FACTOR0 in read_cpu_temperature()
78 * (Nmeas - n1) / (Tmeas - t1 - offset) = slope in read_cpu_temperature()
82 * Tmeas = (Nmeas - n1) / slope + t1 + offset in read_cpu_temperature()
83 * milli_Tmeas = 1000000 * (Nmeas - n1) / slope + 1000000 * t1 + OFFSET in read_cpu_temperature()
84 * milli_Tmeas = -1000000 * (n1 - Nmeas) / slope + 1000000 * t1 + OFFSET in read_cpu_temperature()
85 * Let constant c1 = (-1000000 / slope) in read_cpu_temperature()
/OK3568_Linux_fs/kernel/drivers/iio/humidity/
H A 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()
/OK3568_Linux_fs/kernel/drivers/thermal/broadcom/
H 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()
228 int trip_temp, offset, slope; in bcm2835_thermal_probe() local
230 slope = thermal_zone_get_slope(tz); in bcm2835_thermal_probe()
255 slope) in bcm2835_thermal_probe()
/OK3568_Linux_fs/buildroot/dl/sox/git/lpc10/
H A Dpitsyn.c120 real slope; in pitsyn_() local
234 slope = (*pitch - *ipito) / (real) lsamp; in pitsyn_()
248 slope = (*pitch - *ipito) / (real) lsamp; in pitsyn_()
271 slope = 0.f; in pitsyn_()
291 slope = 0.f; in pitsyn_()
334 /* SLOPE | 0 0 0 seebelow 0 0 */ in pitsyn_()
347 /* SLOPE | -- -- -- -- 0 0 */ in pitsyn_()
360 /* The only possible non-0 value of SLOPE (in column 111) is */ in pitsyn_()
372 /* definitions of IPITO, SLOPE, UVPIT, and that I is in the range ISTA in pitsyn_()
398 r__1 = *ipito + slope * i__; in pitsyn_()
[all …]
H A Donset.c134 /* L2 Threshold for filtered slope of FPC (function of L2WID!) */ in onset_()
135 /* L2LAG Lag due to both filters which compute filtered slope of FPC */ in onset_()
136 /* L2WID Width of the filter which computes the slope of FPC */ in onset_()
137 /* OSHYST The number of samples of slope(FPC) which must be below */ in onset_()
144 /* L2BUF, L2SUM1, L2SUM2 State of slope filter */ in onset_()
/OK3568_Linux_fs/kernel/drivers/thermal/ti-soc-thermal/
H A Dti-thermal-common.c52 * @s: omap sensor slope value
73 int ret, tmp, slope, constant; in __ti_thermal_get_temp() local
87 slope = thermal_zone_get_slope(data->ti_thermal); in __ti_thermal_get_temp()
96 slope = s->slope_pcb; in __ti_thermal_get_temp()
104 *temp = ti_thermal_hotspot_temperature(tmp, slope, constant); in __ti_thermal_get_temp()
/OK3568_Linux_fs/u-boot/drivers/power/
H A Dexynos-tmu.c74 /* current temperature sensing slope */
75 unsigned slope; member
240 info->data.slope = fdtdec_get_int(blob, in get_tmu_fdt_values()
241 node, "samsung,slope", -1); in get_tmu_fdt_values()
242 error |= (info->data.slope == -1); in get_tmu_fdt_values()
313 writel(data->slope, &reg->tmu_control); in tmu_setup_parameters()
/OK3568_Linux_fs/kernel/net/sched/
H A Dsch_cbs.c138 /* timediff is in ns, slope is in bytes/s */
139 static s64 timediff_to_credits(s64 timediff, s64 slope) in timediff_to_credits() argument
141 return div64_s64(timediff * slope, NSEC_PER_SEC); in timediff_to_credits()
144 static s64 delay_from_credits(s64 credits, s64 slope) in delay_from_credits() argument
146 if (unlikely(slope == 0)) in delay_from_credits()
149 return div64_s64(-credits * NSEC_PER_SEC, slope); in delay_from_credits()
152 static s64 credits_from_len(unsigned int len, s64 slope, s64 port_rate) in credits_from_len() argument
157 return div64_s64(len * slope, port_rate); in credits_from_len()
/OK3568_Linux_fs/kernel/drivers/staging/media/ipu3/include/
H A Dintel-ipu3.h1209 * @a01: Slope A of Config Unit, s4.4, default 0.
1210 * @b01: Slope B, always 0.
1216 * slope A factor between points calculated by driver based on calibration
1224 * the CU slope values should be based on the slope resolution 1/16 (binary
1225 * 0.0001 - the minimal interval value), the slope value range is [-256, +255].
1248 * @a01: slope A points 01, s4.4, default 0.
1249 * @a12: slope A points 12, s4.4, default 0.
1250 * @a23: slope A points 23, s4.4, default 0.
1252 * @a34: slope A points 34, s4.4, default 0.
1253 * @a45: slope A points 45, s4.4, default 0.
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/isp/kernels/tnr/tnr3/
H A 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
/OK3568_Linux_fs/external/xserver/glamor/
H A Dglamor_gradient.c404 * sqrt(1/(slope*slope+1.0)) ------>\ \ \ / in _glamor_create_linear_gradient_program()
414 * slope = (p2.y - p1.y) / | / p2d / in _glamor_create_linear_gradient_program()
430 * step 1: compute the distance of p, pt1 and pt2 in the slope direction. in _glamor_create_linear_gradient_program()
432 * get the value on slope direction(pd, p1d and p2d represent the in _glamor_create_linear_gradient_program()
1122 float slope; in glamor_generate_linear_gradient_picture() local
1396 /* The slope need to compute here. In shader, the viewport set will change in glamor_generate_linear_gradient_picture()
1397 the original slope and the slope which is vertical to it will not be correct. */ in glamor_generate_linear_gradient_picture()
1398 slope = -(float) (src_picture->pSourcePict->linear.p2.x in glamor_generate_linear_gradient_picture()
1402 slope = slope * yscale / xscale; in glamor_generate_linear_gradient_picture()
1403 glUniform1f(pt_slope_uniform_location, slope); in glamor_generate_linear_gradient_picture()
[all …]
/OK3568_Linux_fs/kernel/drivers/leds/
H A 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()
/OK3568_Linux_fs/kernel/drivers/thermal/
H A Dthermal_helpers.c220 * thermal_zone_get_slope - return the slope attribute of the thermal zone
221 * @tz: thermal zone device with the slope attribute
223 * Return: If the thermal zone device has a slope attribute, return it, else
229 return tz->tzp->slope; in thermal_zone_get_slope()
H A Drk_virtual_thermal.c439 int slope = ctx->tuning_info->bn_slope; in compensate_brightness() local
451 cur_ajust = cur - intercept + brightness * slope; in compensate_brightness()
564 int slope = ctx->tuning_info->cur_slope; in map_temp_from_current() local
567 int milli_degree = cur * slope + intercept; in map_temp_from_current()
601 int slope = ctx->tuning_info->load_slope; in ajudt_temp_by_load() local
610 load_rate = (total_load * slope + intercept) / 1000; in ajudt_temp_by_load()
761 int slope = ctx->tuning_info->lkg_slope; in compensate_leakage() local
769 milli_degree = slope * lkg - intercept; in compensate_leakage()
/OK3568_Linux_fs/u-boot/doc/device-tree-bindings/exynos/
H A Dtmu.txt21 - samsung,slope : Default value 274761730 (Constant 0x1060_8802).
42 samsung,slope = <274761730>;

12345678