Home
last modified time | relevance | path

Searched full:scale (Results 1 – 25 of 1419) sorted by relevance

12345678910>>...57

/linux/drivers/iio/
H A Dindustrialio-gts-helper.c2 /* 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 …]
/linux/drivers/hwmon/pmbus/
H A Dmp2891.c16 * is used to identify the iout scale and the MFR_VOUT_LOOP_CTRL(0xBD)
17 * is used to identify the vout scale. The READ_PIN_EST(0x94) is used
99 * Obtain vout scale from the register MFR_VOUT_LOOP_CTRL, bits 15-14,bit 13. in mp2891_identify_vout_scale()
100 * If MFR_VOUT_LOOP_CTRL[13] = 1, the vout scale is below: in mp2891_identify_vout_scale()
102 * If MFR_VOUT_LOOP_CTRL[13] = 0, the vout scale is decided by in mp2891_identify_vout_scale()
179 /* Identify vout scale for rail 1. */ in mp2891_identify()
184 /* Identify vout scale for rail 2. */ in mp2891_identify()
189 /* Identify iout scale for rail 1. */ in mp2891_identify()
194 /* Identify iout scale for rail 2. */ in mp2891_identify()
241 * is linear11 format, But the pout scale is set to 1A/Lsb(using in mp2891_read_word_data()
[all …]
H A Dmp29502.c301 * The MP29502 PMBUS_READ_VIN[10:0] is the vin value, the vin scale is in mp29502_read_word_data()
302 * 125mV/LSB. And the vin scale is set to 125mV/Lsb(using r/m/b scale) in mp29502_read_word_data()
315 * value is calculated based on vout scale and vout divider. in mp29502_read_word_data()
331 * exponent is not a constant value. But the iin scale is set to in mp29502_read_word_data()
332 * 1A/Lsb(using r/m/b scale). As a result, the iin read from MP29502 in mp29502_read_word_data()
345 * exponent is not a constant value. But the pin scale is set to in mp29502_read_word_data()
346 * 1W/Lsb(using r/m/b scale). As a result, the pout read from MP29502 in mp29502_read_word_data()
358 * exponent is not a constant value. But the pout scale is set to in mp29502_read_word_data()
359 * 1W/Lsb(using r/m/b scale). As a result, the pout read from MP29502 in mp29502_read_word_data()
390 * the vin scale is set to 125mV/Lsb(using r/m/b scale), in mp29502_read_word_data()
[all …]
H A Dmp2869.c16 * the vout scale and the MFR_SVI3_IOUT_PRT(0x67) is used to identify
17 * the iout scale. The READ_PIN_EST(0x94) is used to read input power
124 * Obtain vout scale from the register PMBUS_VOUT_SCALE_LOOP, bits 12-10 in mp2869_identify_vout_scale()
264 * The MP2869 PMBUS_READ_VIN[10:0] is the vin value, the vin scale is in mp2869_read_word_data()
265 * 31.25mV/LSB. And the vin scale is set to 31.25mV/Lsb(using r/m/b scale) in mp2869_read_word_data()
289 * but the pin scale is set to 1W/Lsb(using r/m/b scale). As a result, in mp2869_read_word_data()
318 * scale is set to 1W/Lsb(using r/m/b scale). As a result, the pout read in mp2869_read_word_data()
360 * The scale of MP2869 PMBUS_OT_FAULT_LIMIT and PMBUS_OT_WARN_LIMIT in mp2869_read_word_data()
476 * The MP2869 scale of MP2869 PMBUS_OT_FAULT_LIMIT and PMBUS_OT_WARN_LIMIT in mp2869_write_word_data()
492 * should not be changed. The scale of PMBUS_VIN_OV_FAULT_LIMIT is 125mV/Lsb, in mp2869_write_word_data()
[all …]
H A Dmp9941.c15 * config the iin scale. The MFR_RESO_SET(0xC7) is used to
113 * page = 2, MFR_ICC_MAX[15:13] defines the iin scale in mp9941_identify_iin_scale()
114 * 3'b000 set the iout scale as 0.5A/Lsb in mp9941_identify_iin_scale()
153 /* The MP9941 vin scale is (1/32V)/Lsb */ in mp9941_read_word_data()
169 /* The MP9941 vin ov limit scale is (1/8V)/Lsb */ in mp9941_read_word_data()
188 * The vout scale is set to 1mV/Lsb(using r/m/b scale). in mp9941_read_word_data()
189 * But the vout uv limit and vout max/min scale is 1VID/Lsb, in mp9941_read_word_data()
225 /* The MP9941 vin ov limit scale is (1/8V)/Lsb */ in mp9941_write_word_data()
/linux/drivers/media/test-drivers/vidtv/
H A Dvidtv_demod.c133 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 …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-adc-mt63606 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 …]
/linux/drivers/iio/adc/
H A Dsc27xx_adc.c112 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 Dti-ads8688.c83 unsigned int scale; member
91 .scale = 76295,
96 .scale = 38148,
101 .scale = 19074,
106 .scale = 38148,
111 .scale = 19074,
123 ads8688_range_def[0].scale * st->vref_mv, in ads8688_show_scales()
124 ads8688_range_def[1].scale * st->vref_mv, in ads8688_show_scales()
125 ads8688_range_def[2].scale * st->vref_mv); in ads8688_show_scales()
262 scale_mv *= ads8688_range_def[st->range[chan->channel]].scale; in ads8688_read_raw()
[all …]
H A Dhx711.c24 /* gain to pulse and scale conversion */
31 int scale; member
36 * .scale depends on AVDD which in turn is known as soon as the regulator
38 * therefore we set .scale in hx711_probe()
65 return hx711_gain_to_scale[i].scale; in hx711_get_gain_to_scale()
69 static int hx711_get_scale_to_gain(int scale) in hx711_get_scale_to_gain() argument
74 if (hx711_gain_to_scale[i].scale == scale) in hx711_get_scale_to_gain()
316 * a scale greater than 1 mV per LSB is not possible in hx711_write_raw()
396 hx711_gain_to_scale[i].scale); in hx711_scale_available_show()
499 * full scale differential input range: AVDD / GAIN in hx711_probe()
[all …]
/linux/include/linux/iio/
H A Dconsumer.h206 * need the offset (default 0) and scale (default 1) to be applied
207 * as (raw + offset) * scale.
218 * need the offset (default 0) and scale (default 1) to be applied
219 * as (raw + offset) * scale.
236 * the function will query the raw value and the channels scale and offset and
242 * iio_read_channel_processed_scale() - read and scale a processed value
245 * @scale: Scale factor to apply during the conversion
250 * like @iio_read_channel_processed() but also scale with an additional
251 * scale factor while attempting to minimize any precision loss.
254 unsigned int scale);
[all …]
/linux/drivers/gpu/ipu-v3/
H A Dipu-ic-csc.c25 .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 …]
/linux/drivers/media/i2c/
H A Dtw9910.c229 const struct tw9910_scale_ctrl *scale; member
348 const struct tw9910_scale_ctrl *scale) in tw9910_set_scale() argument
353 (scale->vscale & 0x0F00) >> 4 | in tw9910_set_scale()
354 (scale->hscale & 0x0F00) >> 8); in tw9910_set_scale()
359 scale->hscale & 0x00FF); in tw9910_set_scale()
364 scale->vscale & 0x00FF); in tw9910_set_scale()
426 const struct tw9910_scale_ctrl *scale; in tw9910_select_norm() local
432 scale = tw9910_ntsc_scales; in tw9910_select_norm()
435 scale = tw9910_pal_scales; in tw9910_select_norm()
442 tmp = abs(width - scale[i].width) + in tw9910_select_norm()
[all …]
/linux/Documentation/admin-guide/acpi/
H A Dcppc_sysfs.rst14 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).
/linux/drivers/iio/afe/
H A Diio-rescale.c80 * 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 …]
/linux/drivers/iio/light/
H A Disl29018.c72 unsigned int scale; member
88 struct isl29018_scale scale; member
120 if (chip->scale.scale == isl29018_scales[int_time][i].scale && in isl29018_set_integration_time()
121 chip->scale.uscale == isl29018_scales[int_time][i].uscale) { in isl29018_set_integration_time()
122 chip->scale = isl29018_scales[new_int_time][i]; in isl29018_set_integration_time()
131 static int isl29018_set_scale(struct isl29018_chip *chip, int scale, int uscale) in isl29018_set_scale() argument
138 if (scale == isl29018_scales[chip->int_time][i].scale && in isl29018_set_scale()
154 chip->scale = new_scale; in isl29018_set_scale()
203 data_x_range = lux_data * chip->scale.scale + in isl29018_read_lux()
204 lux_data * chip->scale.uscale / 1000000; in isl29018_read_lux()
[all …]
/linux/arch/arm64/include/asm/
H A Dtlbflush.h124 * | ASID | TG | SCALE | NUM | TTL | BADDR |
129 * 2^(5*SCALE + 1) * PAGESIZE)
144 #define __TLBI_VADDR_RANGE(baddr, asid, scale, num, ttl) \ argument
151 __ta |= FIELD_PREP(TLBIR_SCALE_MASK, scale); \
158 #define __TLBI_RANGE_PAGES(num, scale) \ argument
159 ((unsigned long)((num) + 1) << (5 * (scale) + 1))
169 #define __TLBI_RANGE_NUM(pages, scale) \ argument
172 __TLBI_RANGE_PAGES(31, (scale))); \
173 (__pages >> (5 * (scale) + 1)) - 1; \
419 * 2. The minimum range granularity is decided by 'scale', so multiple range
[all …]
/linux/arch/arm64/kernel/
H A Dtopology.c121 u64 core_cnt, const_cnt, scale; in amu_scale_freq_tick() local
141 * scale = ------- * -------------------- in amu_scale_freq_tick()
147 scale = core_cnt - prev_core_cnt; in amu_scale_freq_tick()
148 scale *= this_cpu_read(arch_max_freq_scale); in amu_scale_freq_tick()
149 scale = div64_u64(scale >> SCHED_CAPACITY_SHIFT, in amu_scale_freq_tick()
152 scale = min_t(unsigned long, scale, SCHED_CAPACITY_SCALE); in amu_scale_freq_tick()
153 this_cpu_write(arch_freq_scale, (unsigned long)scale); in amu_scale_freq_tick()
190 u64 scale; in arch_freq_get_on_cpu() local
204 * (and thus freq scale), if available, for given policy: this boils in arch_freq_get_on_cpu()
247 scale = arch_scale_freq_capacity(cpu); in arch_freq_get_on_cpu()
[all …]
/linux/drivers/gpu/drm/sprd/
H A Dmegacores_pll.c219 const u32 scale = 100; in dphy_timing_config() local
226 t_ui = 1000 * scale / (pll->freq / 1000); in dphy_timing_config()
236 range[L] = 50 * scale; in dphy_timing_config()
243 range[L] = 38 * scale; in dphy_timing_config()
244 range[H] = 95 * scale; in dphy_timing_config()
247 range[L] = 40 * scale + 4 * t_ui; in dphy_timing_config()
248 range[H] = 85 * scale + 6 * t_ui; in dphy_timing_config()
254 range[L] = 300 * scale; in dphy_timing_config()
258 range[L] = 145 * scale + 10 * t_ui; in dphy_timing_config()
265 range[L] = 60 * scale; in dphy_timing_config()
[all …]
/linux/Documentation/driver-api/media/drivers/
H A Dsh_mobile_ceu_camera.rst59 (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)
/linux/drivers/media/common/siano/
H A Dsmsdvb-main.c136 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
137 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
150 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
151 c->post_bit_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
152 c->block_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
153 c->block_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
279 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
280 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
285 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
286 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
[all …]
/linux/include/linux/input/
H A Dadxl34x.h22 * form with a scale factor of 15.6 mg/LSB (i.e. 0x7F = +2 g)
49 * The data format is unsigned. The scale factor is 62.5 mg/LSB
60 * to qualify as a tap event. The scale factor is 625 us/LSB. A zero
70 * window tap_window for a possible second tap event. The scale
81 * tap can begin. The scale factor is 1.25 ms/LSB. A zero value will
126 * The data format is unsigned. The scale factor is
136 * detection. The data format is unsigned. The scale
147 * inactivity_threshold for inactivity to be declared. The scale factor
166 * occurring. The scale factor is 62.5 mg/LSB. A zero value may
179 * scale factor is 5 ms/LSB. A zero value may result in
[all …]
/linux/drivers/accel/ethosu/
H A Dethosu_gem.c142 struct buffer scale[2]; member
237 bool ifm, bool ifm2, bool weight, bool scale) in calc_sizes() argument
285 if (scale) { in calc_sizes()
287 op, st->scale[0].region, st->scale[0].base, in calc_sizes()
288 st->scale[0].base + st->scale[0].length - 1); in calc_sizes()
289 if (st->scale[0].region < 0 || st->scale[0].base == U64_MAX || in calc_sizes()
290 st->scale[0].length == U32_MAX) in calc_sizes()
292 info->region_size[st->scale[0].region] = in calc_sizes()
293 max(info->region_size[st->scale[0].region], in calc_sizes()
294 st->scale[0].base + st->scale[0].length); in calc_sizes()
[all …]
/linux/tools/testing/selftests/bpf/verifier/
H A Dscale.c2 "scale: scale test 1",
11 "scale: scale test 2",
/linux/Documentation/RCU/Design/Data-Structures/
H A DBigTreePreemptRCUBHdyntickCB.svg407 transform="scale(1.0213945,0.97905363)">struct</text>
418 transform="scale(1.0213945,0.97905363)">rcu_head</text>
429 transform="scale(1.0213945,0.97905363)">struct</text>
440 transform="scale(1.0213945,0.97905363)">rcu_head</text>
451 transform="scale(1.0213945,0.97905363)">struct</text>
462 transform="scale(1.0213945,0.97905363)">rcu_head</text>
473 transform="scale(1.0213945,0.97905363)">rcu_state</text>
485 transform="scale(1.0213945,0.97905363)">struct</text>
496 transform="scale(1.0213945,0.97905363)">rcu_node</text>
507 transform="scale(1.0213945,0.97905363)">struct</text>
[all …]

12345678910>>...57