Home
last modified time | relevance | path

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

12345678910>>...34

/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/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/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/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/adc/
H A Dti-ads8688.c81 unsigned int scale; member
89 .scale = 76295,
94 .scale = 38148,
99 .scale = 19074,
104 .scale = 38148,
109 .scale = 19074,
235 scale_mv *= ads8688_range_def[st->range[chan->channel]].scale; in ads8688_read_raw()
267 unsigned int scale = 0; in ads8688_write_raw() local
275 if (offset == 0 && val2 == ads8688_range_def[0].scale * st->vref_mv) { in ads8688_write_raw()
282 if (val2 == ads8688_range_def[i].scale * st->vref_mv && in ads8688_write_raw()
[all …]
/linux/drivers/iio/afe/
H A Diio-rescale.c79 * For IIO_VAL_INT_PLUS_{MICRO,NANO} scale types if either *val in rescale_process_scale()
80 * OR *val2 is negative the schan scale is negative, i.e. in rescale_process_scale()
94 * If only one of the rescaler elements or the schan scale is in rescale_process_scale()
95 * negative, the combined scale is negative. in rescale_process_scale()
112 int scale, int scale2, int schan_off, in rescale_process_offset()
120 *val = div_s64(tmp, scale) + schan_off; in rescale_process_offset()
123 *val = div_s64(rescale->offset, scale) + schan_off; in rescale_process_offset()
127 *val = div_s64(tmp, scale) + schan_off; in rescale_process_offset()
131 tmp2 = ((s64)scale * 1000000000LL) + scale2; in rescale_process_offset()
136 tmp2 = ((s64)scale * 1000000LL) + scale2; in rescale_process_offset()
[all …]
/linux/drivers/iio/light/
H A Disl29018.c71 unsigned int scale; member
87 struct isl29018_scale scale; member
119 if (chip->scale.scale == isl29018_scales[int_time][i].scale && in isl29018_set_integration_time()
120 chip->scale.uscale == isl29018_scales[int_time][i].uscale) { in isl29018_set_integration_time()
121 chip->scale = isl29018_scales[new_int_time][i]; in isl29018_set_integration_time()
130 static int isl29018_set_scale(struct isl29018_chip *chip, int scale, int uscale) in isl29018_set_scale() argument
137 if (scale == isl29018_scales[chip->int_time][i].scale && in isl29018_set_scale()
153 chip->scale = new_scale; in isl29018_set_scale()
202 data_x_range = lux_data * chip->scale.scale + in isl29018_read_lux()
203 lux_data * chip->scale.uscale / 1000000; in isl29018_read_lux()
[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/tools/testing/selftests/bpf/verifier/
H A Dscale.c2 "scale: scale test 1",
11 "scale: scale test 2",
/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/arch/arm64/include/asm/
H A Dtlbflush.h202 * | ASID | TG | SCALE | NUM | TTL | BADDR |
207 * 2^(5*SCALE + 1) * PAGESIZE)
223 #define __TLBI_RANGE_PAGES(num, scale) \ argument
224 ((unsigned long)((num) + 1) << (5 * (scale) + 1))
234 #define __TLBI_RANGE_NUM(pages, scale) \ argument
235 (((pages) >> (5 * (scale) + 1)) - 1)
435 * 2. The minimum range granularity is decided by 'scale', so multiple range
436 * TLBI operations may be required. Start from scale = 3, flush the largest
437 * possible number of pages ((num+1)*2^(5*scale+1)) that fit into the
438 * requested range, then decrement scale and continue until one or zero pages
[all …]
/linux/Documentation/devicetree/bindings/sound/
H A Drealtek,rt5640.yaml122 realtek,over-current-scale-factor:
123 description: micbias over-current detection scale-factor
126 - 0 # Scale current by 0.5
127 - 1 # Scale current by 0.75
128 - 2 # Scale current by 1.0
129 - 3 # Scale current by 1.5
/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 …]
/linux/drivers/leds/
H A Dleds-lp8788.c31 enum lp8788_isink_scale scale; member
37 .scale = LP8788_ISINK_SCALE_100mA,
50 cfg->scale = pdata->scale; in lp8788_led_init_device()
57 /* scale configuration */ in lp8788_led_init_device()
60 val = cfg->scale << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device()
/linux/drivers/media/platform/st/sti/bdisp/
H A Dbdisp-filter.h13 * @min: min scale factor for this filter (6.10 fixed point)
14 * @max: max scale factor for this filter (6.10 fixed point)
25 * @min: min scale factor for this filter (6.10 fixed point)
26 * @max: max scale factor for this filter (6.10 fixed point)
/linux/drivers/comedi/drivers/
H A Djr3_pci.h151 * coordinate transformation, or new sensor full scale is set by the
312 * measurements can be placed here. The JR3 DSP will then scale
326 * Default_FS contains the full scale that is used if the user does
327 * not set a full scale.
341 /* Min_full_scale is the recommend minimum full scale. */
346 * software allows the user to set the sensor full scale to an
348 * the full scale is set too low, the data will saturate
349 * prematurely, and dynamic range will be lost. If the full scale is
352 * maximum full scale is the maximum value at which no resolution is
353 * lost, and the minimum full scale is the value at which the data
[all …]
/linux/drivers/accel/ethosu/
H A Dethosu_gem.c143 struct buffer scale[2]; member
265 bool ifm, bool ifm2, bool weight, bool scale) in calc_sizes() argument
314 if (scale) { in calc_sizes()
316 op, st->scale[0].region, st->scale[0].base, in calc_sizes()
317 st->scale[0].base + st->scale[0].length - 1); in calc_sizes()
318 if (st->scale[0].region < 0 || st->scale[0].base == U64_MAX || in calc_sizes()
319 st->scale[0].length == U32_MAX) in calc_sizes()
321 info->region_size[st->scale[0].region] = in calc_sizes()
322 max(info->region_size[st->scale[0].region], in calc_sizes()
323 st->scale[0].base + st->scale[0].length); in calc_sizes()
[all …]
/linux/Documentation/i2c/
H A Di2c_bus.svg93 transform="scale(-0.6)"
111 transform="scale(0.4)"
126 transform="scale(0.8)"
141 transform="scale(0.8)"
171 transform="scale(0.6)"
186 transform="scale(-0.6)"
201 transform="scale(-0.6)"
216 transform="scale(-0.6)"
382 transform="scale(-0.6)" />
397 transform="scale(-0.6)" />
[all …]
/linux/drivers/hwmon/
H A Dmax197.c33 #define MAX197_SCALE 12207 /* Scale coefficient for raw data */
44 * @scale: Need to scale.
52 bool scale; member
191 * See Table 1. Full Scale and Zero Scale in the MAX197 datasheet. in max197_show_input()
193 if (data->scale) { in max197_show_input()
283 data->scale = true; in max197_probe()
286 data->scale = false; in max197_probe()
/linux/drivers/media/dvb-frontends/cxd2880/
H A Dcxd2880_top.c594 /* scale value to 0x0000-0xffff */ in cxd2880_read_signal_strength()
1049 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1052 c->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1055 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1058 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1061 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1064 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1140 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_get_stats()
1142 c->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_get_stats()
1144 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_get_stats()
[all …]
/linux/tools/perf/pmu-events/
H A Dintel_metrics.py46 scale = 2.3283064365386962890625e-10
49 d_ratio(cond_pkg * scale, interval_sec), "Watts"),
51 d_ratio(cond_cores * scale, interval_sec), "Watts"),
53 d_ratio(cond_ram * scale, interval_sec), "Watts"),
55 d_ratio(cond_gpu * scale, interval_sec), "Watts"),
57 d_ratio(cond_psys * scale, interval_sec), "Watts"),
992 scale = 64 / 1_000_000 # Cache lines to MB
1003 d_ratio(m2m_upd + cha_upd, interval_sec), f"{scale}MB/s"),
1020 scale = 64 / 1_000_000
1024 d_ratio(loc_rds, interval_sec), f"{scale}M
[all...]
/linux/drivers/iio/dac/
H A Dmcp47feb02.c324 * @scale: scales set on channels that are based on Vref/Vref0
339 int scale[2 * MCP47FEB02_MAX_SCALES_CH]; member
698 static void mcp47feb02_init_scale(struct mcp47feb02_data *data, enum mcp47feb02_scale scale, in mcp47feb02_init_scale() argument
707 scale_avail[scale * 2] = value_int; in mcp47feb02_init_scale()
708 scale_avail[scale * 2 + 1] = value_micro; in mcp47feb02_init_scale()
716 mcp47feb02_init_scale(data, MCP47FEB02_SCALE_VDD, vdd_uV, data->scale); in mcp47feb02_init_scales_avail()
723 mcp47feb02_init_scale(data, MCP47FEB02_SCALE_GAIN_X1, tmp_vref, data->scale); in mcp47feb02_init_scales_avail()
724 mcp47feb02_init_scale(data, MCP47FEB02_SCALE_GAIN_X2, tmp_vref * 2, data->scale); in mcp47feb02_init_scales_avail()
755 *vals = data->scale; in mcp47feb02_read_avail()
783 *val = data->scale[current_scale * 2]; in mcp47feb02_get_scale()
[all …]

12345678910>>...34