/openbmc/linux/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. -EINVAL if scale 34 static int iio_gts_get_gain(const u64 max, const u64 scale) in iio_gts_get_gain() argument 38 if (scale > full || !scale) in iio_gts_get_gain() [all …]
|
/openbmc/openbmc/meta-ieisystem/meta-fp5280g3/recipes-phosphor/configuration/fp5280g3-yaml-config/ |
H A D | fp5280g3-ipmi-sensors.yaml | 16 scale: 0 37 scale: 0 58 scale: 0 79 scale: 0 101 scale: 0 123 scale: 0 145 scale: 0 167 scale: 0 189 scale: 0 211 scale: 0 [all …]
|
/openbmc/openbmc/meta-amd/meta-ethanolx/recipes-phosphor/configuration/ethanolx-yaml-config/ |
H A D | ethanolx-ipmi-sensors.yaml | 7 scale: 0 27 scale: 0 47 scale: 0 67 scale: 0 87 scale: 0 107 scale: 0 127 scale: 0 147 scale: 0 170 scale: 0 192 scale: 0 [all …]
|
/openbmc/openbmc/meta-bytedance/meta-g220a/recipes-phosphor/configuration/g220a-yaml-config/ |
H A D | g220a-ipmi-sensors.yaml | 17 scale: 0 39 scale: 0 61 scale: 0 83 scale: 0 105 scale: 0 127 scale: 0 149 scale: 0 171 scale: 0 193 scale: 0 215 scale: 0 [all …]
|
/openbmc/openbmc/meta-ieisystem/meta-nf5280m7/recipes-phosphor/configuration/nf5280m7-yaml-config/ |
H A D | nf5280m7-ipmi-sensors.yaml | 17 scale: 0 39 scale: 0 62 scale: 0 85 scale: 0 107 scale: 0 128 scale: 0 149 scale: 0 170 scale: 0 191 scale: 0 212 scale: 0 [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/configuration/acx22-yaml-config/witherspoon/ |
H A D | acx22-ipmi-hwmon-sensors.yaml | 16 scale: 0 37 scale: 0 58 scale: 0 79 scale: 0 100 scale: -6 121 scale: -6 142 scale: -6 163 scale: -6 184 scale: -6 205 scale: -6 [all …]
|
/openbmc/openbmc/meta-amd/meta-daytonax/recipes-phosphor/configuration/daytonax-yaml-config/ |
H A D | daytonax-ipmi-sensors.yaml | 7 scale: 0 27 scale: 0 50 scale: 0 71 scale: 0 92 scale: 0 113 scale: 0 134 scale: 0 155 scale: 0 176 scale: 0 197 scale: 0 [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/configuration/acx22-yaml-config/swift/ |
H A D | acx22-ipmi-hwmon-sensors.yaml | 16 scale: 0 37 scale: 0 58 scale: 0 79 scale: 0 100 scale: -6 121 scale: -6 142 scale: -6 163 scale: -6 184 scale: -6 205 scale: -6 [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-adc-mt6360 | 6 Calculating with scale and offset returns voltage in uV 14 Calculating with scale and offset returns voltage in uV 22 Calculating with scale and offset returns voltage in uV 29 Calculating with scale and offset returns voltage in uV 36 Calculating with scale and offset returns voltage in uV 43 Calculating with scale and offset returns voltage in uA 50 Calculating with scale and offset returns voltage in uA 57 Calculating with scale and offset returns voltage in uV 64 Calculating with scale and offset returns temperature in degree 71 Calculating with scale and offset returns voltage in uV [all …]
|
/openbmc/linux/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_demod.c | 133 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in vidtv_clean_stats() 137 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats() 142 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats() 145 c->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats() 148 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats() 151 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats() 154 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats() 157 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats() 166 u32 scale; in vidtv_demod_update_stats() local 169 scale = FE_SCALE_COUNTER; in vidtv_demod_update_stats() [all …]
|
/openbmc/openbmc-test-automation/data/ |
H A D | Romulus.py | 520 "scale": 1, 526 "scale": 1, 532 "scale": 1, 538 "scale": 1, 544 "scale": 1, 550 "scale": 1, 558 "scale": -3, 569 "scale": -3, 580 "scale": -3, 591 "scale" [all...] |
/openbmc/linux/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 …]
|
/openbmc/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-ic-csc.c | 25 .scale = 2, 42 .scale = 1, 59 .scale = 2, 76 .scale = 1, 94 .scale = 2, 125 .scale = 1, 136 .scale = 1, 148 .scale = 1, 159 .scale = 1, 183 .scale = 2, [all …]
|
/openbmc/u-boot/drivers/serial/ |
H A D | serial_ar933x.c | 41 * baudrate = (clk / (scale + 1)) * (step * (1 / 2^17)) 43 static u32 ar933x_serial_get_baud(u32 clk, u32 scale, u32 step) in ar933x_serial_get_baud() argument 48 div = (2 << 16) * (scale + 1); in ar933x_serial_get_baud() 58 u32 *scale, u32 *step) in ar933x_serial_get_scale_step() argument 63 *scale = 0; in ar933x_serial_get_scale_step() 82 *scale = tscale; in ar933x_serial_get_scale_step() 91 u32 val, scale, step; in ar933x_serial_setbrg() local 94 ar933x_serial_get_scale_step(val, baudrate, &scale, &step); in ar933x_serial_setbrg() 96 val = (scale & AR933X_UART_CLK_SCALE_M) in ar933x_serial_setbrg() 201 u32 val, scale, step; in _debug_uart_init() local [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | sc27xx_adc.c | 112 int (*get_ratio)(int channel, int scale); 126 * should use the small-scale graph, and if more than 1.2v, we should use the 127 * big-scale graph. 220 static int sc2720_adc_get_ratio(int channel, int scale) in sc2720_adc_get_ratio() argument 224 switch (scale) { in sc2720_adc_get_ratio() 237 switch (scale) { in sc2720_adc_get_ratio() 252 switch (scale) { in sc2720_adc_get_ratio() 265 switch (scale) { in sc2720_adc_get_ratio() 281 static int sc2721_adc_get_ratio(int channel, int scale) in sc2721_adc_get_ratio() argument 288 return scale ? SC27XX_VOLT_RATIO(400, 1025) : in sc2721_adc_get_ratio() [all …]
|
H A D | ti-ads8688.c | 84 unsigned int scale; member 92 .scale = 76295, 97 .scale = 38148, 102 .scale = 19074, 107 .scale = 38148, 112 .scale = 19074, 124 ads8688_range_def[0].scale * st->vref_mv, in ads8688_show_scales() 125 ads8688_range_def[1].scale * st->vref_mv, in ads8688_show_scales() 126 ads8688_range_def[2].scale * st->vref_mv); in ads8688_show_scales() 263 scale_mv *= ads8688_range_def[st->range[chan->channel]].scale; in ads8688_read_raw() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | test-arm-mptimer.c | 43 static void timer_start(int periodic, uint32_t scale) in timer_start() argument 45 uint32_t ctl = TIMER_CONTROL_ENABLE | TIMER_CONTROL_PRESCALER(scale); in timer_start() 998 static void add_scaler_test(const char *str, bool scale, in add_scaler_test() argument 1002 int *scaler = scale ? &scaled : &nonscaled; in add_scaler_test() 1012 int scale; in main() local 1030 for (scale = 0; scale < 2; scale++) { in main() 1032 scale, test_timer_oneshot); in main() 1034 scale, test_timer_pause); in main() 1036 scale, test_timer_reload); in main() 1038 scale, test_timer_periodic); in main() [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | tw9910.c | 234 const struct tw9910_scale_ctrl *scale; member 353 const struct tw9910_scale_ctrl *scale) in tw9910_set_scale() argument 358 (scale->vscale & 0x0F00) >> 4 | in tw9910_set_scale() 359 (scale->hscale & 0x0F00) >> 8); in tw9910_set_scale() 364 scale->hscale & 0x00FF); in tw9910_set_scale() 369 scale->vscale & 0x00FF); in tw9910_set_scale() 431 const struct tw9910_scale_ctrl *scale; in tw9910_select_norm() local 437 scale = tw9910_ntsc_scales; in tw9910_select_norm() 440 scale = tw9910_pal_scales; in tw9910_select_norm() 447 tmp = abs(width - scale[i].width) + in tw9910_select_norm() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | rt5651.txt | 34 - realtek,over-current-scale-factor 35 u32, micbias over-current detection scale-factor, valid values are: 36 0: Scale current by 0.5 37 1: Scale current by 0.75 38 2: Scale current by 1.0 39 3: Scale current by 1.5
|
H A D | rt5640.txt | 56 - realtek,over-current-scale-factor 57 u32, micbias over-current detection scale-factor, valid values are: 58 0: Scale current by 0.5 59 1: Scale current by 0.75 60 2: Scale current by 1.0 61 3: Scale current by 1.5
|
/openbmc/linux/Documentation/admin-guide/acpi/ |
H A D | cppc_sysfs.rst | 14 scale. CPPC exposes a set of registers to describe abstract performance scale, 40 * highest_perf : Highest performance of this processor (abstract scale). 42 (abstract scale). 44 power savings (abstract scale). 45 * lowest_perf : Lowest performance of this processor (abstract scale). 50 frequency instead of abstract scale. These values should not be used for any 59 accumulates (abstract scale).
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | tlbflush.h | 129 * | ASID | TG | SCALE | NUM | TTL | BADDR | 134 * [BADDR, BADDR + (NUM + 1) * 2^(5*SCALE + 1) * PAGESIZE) 137 #define __TLBI_VADDR_RANGE(addr, asid, scale, num, ttl) \ argument 143 __ta |= (unsigned long)(scale) << 44; \ 150 #define __TLBI_RANGE_PAGES(num, scale) \ argument 151 ((unsigned long)((num) + 1) << (5 * (scale) + 1)) 161 #define __TLBI_RANGE_NUM(pages, scale) \ argument 164 __TLBI_RANGE_PAGES(31, (scale))); \ 165 (__pages >> (5 * (scale) + 1)) - 1; \ 360 * 1. The minimum range granularity is decided by 'scale', so multiple range [all …]
|
/openbmc/qemu/hw/timer/ |
H A D | sifive_pwm.c | 44 FIELD(CONFIG, SCALE, 0, 4) 97 uint64_t scale = sifive_pwm_compute_scale(s); in sifive_pwm_set_alarms() local 98 /* PWMs only contains PWMCMP_MASK bits starting at scale */ in sifive_pwm_set_alarms() 99 uint64_t pwms = (pwmcount & (PWMCMP_MASK << scale)) >> scale; in sifive_pwm_set_alarms() 103 uint64_t pwmcmp_ticks = pwmcmp << scale; in sifive_pwm_set_alarms() 129 uint64_t scale = sifive_pwm_compute_scale(s); in sifive_pwm_set_alarms() local 130 uint64_t pwms = (pwmcount & (PWMCMP_MASK << scale)) >> scale; in sifive_pwm_set_alarms() 225 uint64_t cur_time, scale; in sifive_pwm_read() local 248 scale = sifive_pwm_compute_scale(s); in sifive_pwm_read() 254 return ((cur_time & PWMCOUNT_MASK) >> scale) & PWMCMP_MASK; in sifive_pwm_read() [all …]
|
/openbmc/qemu/target/xtensa/ |
H A D | fpu_helper.c | 266 uint32_t rounding_mode, uint32_t scale) in HELPER() 272 res = float64_to_int32(float64_scalbn(v, scale, &fp_status), &fp_status); in HELPER() 279 uint32_t rounding_mode, uint32_t scale) in HELPER() 285 res = float32_to_int32(float32_scalbn(v, scale, &fp_status), &fp_status); in HELPER() 292 uint32_t rounding_mode, uint32_t scale) in HELPER() 300 res = float64_scalbn(v, scale, &fp_status); in HELPER() 314 uint32_t rounding_mode, uint32_t scale) in HELPER() 322 res = float32_scalbn(v, scale, &fp_status); in HELPER() 337 float64 HELPER(itof_d)(CPUXtensaState *env, uint32_t v, uint32_t scale) in HELPER() 340 (int32_t)scale, &env->fp_status); in HELPER() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | scale.c | 2 "scale: scale test 1", 11 "scale: scale test 2",
|