| /kernel/linux/linux-6.6/drivers/iio/ |
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/ABI/testing/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/test-drivers/vidtv/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/media/test-drivers/vidtv/ |
| 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 …]
|
| /kernel/linux/linux-6.6/include/linux/iio/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/ipu-v3/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/ipu-v3/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/iio/adc/ |
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/arch/arm64/include/asm/ |
| D | tlbflush.h | 128 * | ASID | TG | SCALE | NUM | TTL | BADDR | 133 * [BADDR, BADDR + (NUM + 1) * 2^(5*SCALE + 1) * PAGESIZE) 136 #define __TLBI_VADDR_RANGE(addr, asid, scale, num, ttl) \ argument 142 __ta |= (unsigned long)(scale) << 44; \ 149 #define __TLBI_RANGE_PAGES(num, scale) \ argument 150 ((unsigned long)((num) + 1) << (5 * (scale) + 1)) 158 #define __TLBI_RANGE_NUM(pages, scale) \ argument 159 ((((pages) >> (5 * (scale) + 1)) & TLBI_RANGE_MASK) - 1) 287 int scale = 0; in __flush_tlb_range() local 319 * by 'scale', so multiple range TLBI operations may be required. in __flush_tlb_range() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/i2c/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/media/i2c/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | sc27xx_adc.c | 93 * should use the small-scale graph, and if more than 1.2v, we should use the 94 * big-scale graph. 163 static int sc27xx_adc_get_ratio(int channel, int scale) in sc27xx_adc_get_ratio() argument 170 return scale ? SC27XX_VOLT_RATIO(400, 1025) : in sc27xx_adc_get_ratio() 178 return scale ? SC27XX_VOLT_RATIO(100, 125) : in sc27xx_adc_get_ratio() 189 int scale, int *val) in sc27xx_adc_read() argument 210 /* Configure the channel id and scale */ in sc27xx_adc_read() 211 tmp = (scale << SC27XX_ADC_SCALE_SHIFT) & SC27XX_ADC_SCALE_MASK; in sc27xx_adc_read() 262 int channel, int scale, in sc27xx_adc_volt_ratio() argument 265 u32 ratio = sc27xx_adc_get_ratio(channel, scale); in sc27xx_adc_volt_ratio() [all …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/ |
| 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
|
| 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
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| 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
|
| D | rt5640.txt | 53 - realtek,over-current-scale-factor 54 u32, micbias over-current detection scale-factor, valid values are: 55 0: Scale current by 0.5 56 1: Scale current by 0.75 57 2: Scale current by 1.0 58 3: Scale current by 1.5
|
| /kernel/linux/linux-5.10/Documentation/admin-guide/acpi/ |
| D | cppc_sysfs.rst | 12 scale. CPPC exposes a set of registers to describe abstract performance scale, 38 * highest_perf : Highest performance of this processor (abstract scale). 40 (abstract scale). 42 power savings (abstract scale). 43 * lowest_perf : Lowest performance of this processor (abstract scale). 48 freqency instead of abstract scale. These values should not be used for any 57 accumulates (abstract scale).
|
| /kernel/linux/linux-6.6/Documentation/admin-guide/acpi/ |
| 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).
|
| /kernel/linux/linux-6.6/arch/arm64/include/asm/ |
| 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; \ 361 * 1. The minimum range granularity is decided by 'scale', so multiple range [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/afe/ |
| D | iio-rescale.c | 80 * For IIO_VAL_INT_PLUS_{MICRO,NANO} scale types if either *val in rescale_process_scale() 81 * OR *val2 is negative the schan scale is negative, i.e. in rescale_process_scale() 95 * If only one of the rescaler elements or the schan scale is in rescale_process_scale() 96 * negative, the combined scale is negative. in rescale_process_scale() 113 int scale, int scale2, int schan_off, in rescale_process_offset() 121 *val = div_s64(tmp, scale) + schan_off; in rescale_process_offset() 124 *val = div_s64(rescale->offset, scale) + schan_off; in rescale_process_offset() 128 *val = div_s64(tmp, scale) + schan_off; in rescale_process_offset() 132 tmp2 = ((s64)scale * 1000000000LL) + scale2; in rescale_process_offset() 137 tmp2 = ((s64)scale * 1000000LL) + scale2; in rescale_process_offset() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/verifier/ |
| D | scale.c | 2 "scale: scale test 1", 11 "scale: scale test 2",
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/verifier/ |
| D | scale.c | 2 "scale: scale test 1", 11 "scale: scale test 2",
|
| /kernel/linux/linux-5.10/Documentation/driver-api/media/drivers/ |
| D | sh_mobile_ceu_camera.rst | 59 (3) to (3') - sensor scale 62 (5) to (5') - reverse sensor scale applied to CEU cropped width or height 63 (2) to (5) - reverse sensor scale applied to CEU cropped left or top 64 (6) to (6') - CEU scale - user window 111 10. Use CEU scaling to scale to the requested user window: 119 The :ref:`V4L2 crop API <crop-scale>` says: 137 4. Sensor scaled to 3 : 3'. Sensor's scale is (2' - 2) / (3' - 3). Calculate 140 5. Calculate and apply host scale = (6' - 6) / (4' - 4)
|