/linux-master/drivers/iio/ |
H A D | industrialio-gts-helper.c | 2 /* gain-time-scale conversion helpers for IIO light sensors 22 * iio_gts_get_gain - Convert scale to total gain 24 * Internal helper for converting scale to total gain. 26 * @max: Maximum linearized scale. As an example, when scale is created 27 * in magnitude of NANOs and max scale is 64.1 - The linearized 28 * scale is 64 100 000 000. 29 * @scale: Linearized scale to compute the gain for. 31 * Return: (floored) gain corresponding to the scale 34 iio_gts_get_gain(const u64 max, const u64 scale) argument 60 gain_get_scale_fraction(const u64 max, u64 scale, int known, int *unknown) argument 930 iio_gts_get_scale_linear(struct iio_gts *gts, int gain, int time, u64 *scale) argument 1002 u64 scale; local 1059 u64 scale; local [all...] |
/linux-master/drivers/iio/common/cros_ec_sensors/ |
H A D | cros_ec_sensors.c | 89 st->core.calib[i].scale = 90 st->core.resp->sensor_scale.scale[i]; 92 *val = st->core.calib[idx].scale >> 15; 93 *val2 = ((st->core.calib[idx].scale & 0x7FFF) * 1000000LL) / 178 st->core.calib[idx].scale = val; 185 st->core.param.sensor_scale.scale[i] = 186 st->core.calib[i].scale;
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | mb86a20s.c | 1407 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; 1451 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; 1495 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; 1547 c->strength.stat[0].scale = FE_SCALE_RELATIVE; 1552 c->cnr.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; 1553 c->pre_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; 1554 c->pre_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; 1555 c->post_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; 1556 c->post_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; 1557 c->block_error.stat[layer].scale [all...] |
H A D | lgdt330x.c | 290 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 292 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 294 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 608 /* scale the range 0 - 35*2^24 into 0 - 65535 */ 680 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 681 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 682 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 694 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; 697 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 711 p->block_error.stat[0].scale [all...] |
H A D | mn88473.c | 324 c->strength.stat[0].scale = FE_SCALE_RELATIVE; 327 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 349 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; 383 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; 405 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; 407 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 424 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; 426 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; 429 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 430 c->post_bit_count.stat[0].scale [all...] |
H A D | cxd2820r_c.c | 189 c->strength.stat[0].scale = FE_SCALE_RELATIVE; 193 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 224 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; 228 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 265 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; 269 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
|
H A D | mn88443x.c | 286 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 295 c->strength.stat[0].scale = FE_SCALE_RELATIVE; 300 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 334 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; 340 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 341 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 355 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; 358 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; 489 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 499 c->strength.stat[0].scale [all...] |
/linux-master/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | ovly507e.c | 43 NVVAL(NV507E, SET_POINT_IN, X, asyw->scale.sx) | 44 NVVAL(NV507E, SET_POINT_IN, Y, asyw->scale.sy), 47 NVVAL(NV507E, SET_SIZE_IN, WIDTH, asyw->scale.sw) | 48 NVVAL(NV507E, SET_SIZE_IN, HEIGHT, asyw->scale.sh), 51 NVVAL(NV507E, SET_SIZE_OUT, WIDTH, asyw->scale.dw));
|
/linux-master/sound/isa/gus/ |
H A D | gus_volume.c | 183 int scale = 0; 186 scale++; 195 while (scale--)
|
/linux-master/include/linux/ |
H A D | pwm.h | 184 * @scale: target scale of the relative duty cycle 195 pwm_get_relative_duty_cycle(const struct pwm_state *state, unsigned int scale) argument 200 return DIV_ROUND_CLOSEST_ULL((u64)state->duty_cycle * scale, 208 * @scale: scale in which @duty_cycle is expressed 219 * This functions returns -EINVAL if @duty_cycle and/or @scale are 220 * inconsistent (@scale == 0 or @duty_cycle > @scale). 224 unsigned int scale) 223 pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle, unsigned int scale) argument [all...] |
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | intel_llc.c | 97 const int scale = 180; local 110 ia_freq = consts->max_ia_freq - diff * scale / 2;
|
/linux-master/include/linux/iio/ |
H A D | consumer.h | 205 * need the offset (default 0) and scale (default 1) to be applied 206 * as (raw + offset) * scale. 217 * need the offset (default 0) and scale (default 1) to be applied 218 * as (raw + offset) * scale. 235 * the function will query the raw value and the channels scale and offset and 241 * iio_read_channel_processed_scale() - read and scale a processed value 244 * @scale: Scale factor to apply during the conversion 249 * like @iio_read_channel_processed() but also scale with an additional 250 * scale factor while attempting to minimize any precision loss. 253 unsigned int scale); [all...] |
/linux-master/tools/perf/tests/ |
H A D | stat.c | 37 TEST_ASSERT_VAL("wrong scale", HAS(SCALE, 1)); 45 TEST_ASSERT_VAL("wrong scale", stat_config.scale == 1); 55 .scale = 1,
|
/linux-master/drivers/media/dvb-frontends/cxd2880/ |
H A D | cxd2880_top.c | 594 /* scale value to 0x0000-0xffff */ 1049 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 1052 c->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 1055 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 1058 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 1061 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 1064 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 1140 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 1142 c->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; 1144 c->post_bit_error.stat[0].scale [all...] |
/linux-master/drivers/input/keyboard/ |
H A D | qt1050.c | 110 u32 scale; member in struct:qt1050_key 327 (button->samples << 4) | (button->scale)); 400 &button.scale)) { 401 button.scale = 0; 403 if (is_power_of_2(button.scale)) 404 button.scale = ilog2(button.scale); 406 button.scale = 0;
|
/linux-master/include/linux/mfd/ |
H A D | lp8788.h | 200 * @scale : current scale 206 enum lp8788_isink_scale scale; member in struct:lp8788_led_platform_data 214 * @scale : current scale 221 enum lp8788_isink_scale scale; member in struct:lp8788_vib_platform_data
|
/linux-master/drivers/thermal/ |
H A D | sun8i_thermal.c | 73 int scale; member in struct:ths_thermal_chip 102 return tmdev->chip->offset - (reg * tmdev->chip->scale / 10); 275 * minus actual factory temperature) * 14.88 (scale from 279 ((sensor_temp - ft_temp) * 10 / tmdev->chip->scale); 602 .scale = 705, 613 .scale = 1211, 627 .scale = 1130, 640 .scale = 1170, 655 .scale = 672, 679 .scale [all...] |
/linux-master/drivers/video/backlight/ |
H A D | pwm_bl.c | 29 unsigned int scale; member in struct:pwm_bl_data 86 do_div(duty_cycle, pb->scale); 136 #define PWM_LUMINANCE_SCALE (1 << PWM_LUMINANCE_SHIFT) /* luminance scale */ 159 * as a fixed-point number in scale 539 if (data->levels[i] > pb->scale) 540 pb->scale = data->levels[i]; 543 props.scale = BACKLIGHT_SCALE_LINEAR; 545 props.scale = BACKLIGHT_SCALE_NON_LINEAR; 567 if (data->levels[i] > pb->scale) 568 pb->scale [all...] |
/linux-master/drivers/iio/dac/ |
H A D | adi-axi-dac.c | 192 unsigned int scale, sign; local 207 scale = DIV_ROUND_CLOSEST_ULL((u64)raw * MEGA, AXI_DAC_SCALE_INT); 209 vals[0] = scale / MEGA; 210 vals[1] = scale % MEGA; 301 int integer, frac, scale; local 309 scale = integer * MEGA + frac; 310 if (scale <= -2 * (int)MEGA || scale >= 2 * (int)MEGA) 314 if (scale < 0) { 316 scale * [all...] |
/linux-master/drivers/gpu/drm/sun4i/ |
H A D | sun8i_ui_scaler.c | 108 unsigned int scale, int_part, float_part; local 110 scale = step >> (SUN8I_UI_SCALER_SCALE_FRAC - 3); 111 int_part = scale >> 3; 112 float_part = scale & 0x7;
|
/linux-master/arch/m68k/fpsp040/ |
H A D | Makefile | 9 smovecr.o srem_mod.o scale.o \
|
/linux-master/tools/iio/ |
H A D | iio_utils.h | 27 * @scale: scale factor to be applied for conversion to si units 41 float scale; member in struct:iio_channel_info
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_ddi_buf_trans.h | 23 u8 scale; /* scale value */ member in struct:bxt_ddi_buf_trans 24 u8 enable; /* scale enable */
|
/linux-master/tools/lib/perf/include/perf/ |
H A D | evsel.h | 48 bool scale, __s8 *pscaled);
|
/linux-master/arch/powerpc/include/asm/ |
H A D | imc-pmu.h | 56 char *scale; member in struct:imc_events
|