/openbmc/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 | 138 priv->sensor[0].slope = 3313; in init_8956() 139 priv->sensor[1].slope = 3275; in init_8956() 140 priv->sensor[2].slope = 3320; in init_8956() 141 priv->sensor[3].slope = 3246; in init_8956() 142 priv->sensor[4].slope = 3279; in init_8956() 143 priv->sensor[5].slope = 3257; in init_8956() 144 priv->sensor[6].slope = 3234; in init_8956() 145 priv->sensor[7].slope = 3269; in init_8956() 146 priv->sensor[8].slope = 3255; in init_8956() 147 priv->sensor[9].slope = 3239; in init_8956() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_cm_common.c | 61 REG_SET(reg->start_slope_cntl_b, 0, //linear slope at start of curve in cm_helper_program_gamcor_xfer_func() 215 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm3_helper_translate_curve_to_hw_format() 217 corner_points[0].green.slope = dc_fixpt_div(corner_points[0].green.y, in cm3_helper_translate_curve_to_hw_format() 219 corner_points[0].blue.slope = dc_fixpt_div(corner_points[0].blue.y, in cm3_helper_translate_curve_to_hw_format() 228 corner_points[1].red.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format() 229 corner_points[1].green.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format() 230 corner_points[1].blue.slope = dc_fixpt_zero; in cm3_helper_translate_curve_to_hw_format() 234 * and the slope to be such that we hit 1.0 at 10000/1000 nits. in cm3_helper_translate_curve_to_hw_format() 242 corner_points[1].red.slope = dc_fixpt_div( in cm3_helper_translate_curve_to_hw_format() 245 corner_points[1].green.slope = dc_fixpt_div( in cm3_helper_translate_curve_to_hw_format() [all …]
|
/openbmc/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.
|
/openbmc/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 …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_cm_common.c | 144 /* 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() 422 corner_points[0].red.slope = dc_fixpt_div(corner_points[0].red.y, in cm_helper_translate_curve_to_hw_format() 424 corner_points[0].green.slope = dc_fixpt_div(corner_points[0].green.y, in cm_helper_translate_curve_to_hw_format() [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc2/ |
H A D | ia_css_ctc2.host.c | 36 * 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()
|
/openbmc/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 …]
|
/openbmc/linux/drivers/thermal/broadcom/ |
H A D | bcm2835_thermal.c | 73 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() 222 int offset, slope; in bcm2835_thermal_probe() local 224 slope = thermal_zone_get_slope(tz); in bcm2835_thermal_probe() 249 slope) in bcm2835_thermal_probe()
|
H A D | ns-thermal.c | 21 int slope = thermal_zone_get_slope(tz); in ns_thermal_get_temp() local 36 *temp = slope * val + offset; in ns_thermal_get_temp()
|
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()
|
/openbmc/u-boot/drivers/thermal/ |
H A D | imx_thermal.c | 66 * slope = 0.4445388 - (0.0016549 * 25C fuse) in read_cpu_temperature() 73 * slope = 0.4445388 - (0.0016549 * 25C fuse) in read_cpu_temperature() 74 * slope = (FACTOR2 - FACTOR1 * n1) / FACTOR0 in read_cpu_temperature() 77 * (Nmeas - n1) / (Tmeas - t1 - offset) = slope in read_cpu_temperature() 81 * Tmeas = (Nmeas - n1) / slope + t1 + offset in read_cpu_temperature() 82 * milli_Tmeas = 1000000 * (Nmeas - n1) / slope + 1000000 * t1 + OFFSET in read_cpu_temperature() 83 * milli_Tmeas = -1000000 * (n1 - Nmeas) / slope + 1000000 * t1 + OFFSET in read_cpu_temperature() 84 * Let constant c1 = (-1000000 / slope) in read_cpu_temperature()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/tnr/tnr3/ |
H A D | ia_css_tnr3_types.h | 35 * 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
|
/openbmc/u-boot/drivers/power/ |
H A D | exynos-tmu.c | 74 /* 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, ®->tmu_control); in tmu_setup_parameters()
|
H A D | axp209.c | 47 /* Do we really need to be this gentle? It has built-in voltage slope */ in axp_set_dcdc2() 114 * slope to ramp up voltage. Note, this only works when changing an in axp_set_aldo3() 131 * high inrush currents, the voltage slope should be increased. in axp_set_aldo3()
|
/openbmc/openbmc/poky/meta/recipes-support/libgcrypt/files/ |
H A D | no-bench-slope.patch | 1 The bench-slope test appears to be aborting fairly frequently, which causes 20 - { "bench-slope" },
|
/openbmc/linux/net/sched/ |
H A D | sch_cbs.c | 139 /* 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()
|
/openbmc/linux/drivers/thermal/ |
H A D | thermal_helpers.c | 203 * thermal_zone_get_slope - return the slope attribute of the thermal zone 204 * @tz: thermal zone device with the slope attribute 206 * Return: If the thermal zone device has a slope attribute, return it, else 212 return tz->tzp->slope; in thermal_zone_get_slope()
|
/openbmc/linux/drivers/staging/media/ipu3/include/uapi/ |
H A D | intel-ipu3.h | 1246 * @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 …]
|
/openbmc/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()
|
/openbmc/u-boot/doc/device-tree-bindings/exynos/ |
H A D | tmu.txt | 21 - samsung,slope : Default value 274761730 (Constant 0x1060_8802). 42 samsung,slope = <274761730>;
|
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr2_2/ |
H A D | ia_css_bnr2_2_types.h | 41 /* Slope of Directional variance gain between dark and bright region */ 53 /* Slope of Non-Directional variance gain between dark and bright region */
|
/openbmc/phosphor-pid-control/tools/ |
H A D | fan_rpm_loop_test.sh | 34 # rearrange negative slope to positive slope running backward;
|