Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/Linux-v4.19/drivers/media/i2c/soc_camera/
Dtw9910.c233 const struct tw9910_scale_ctrl *scale; member
351 const struct tw9910_scale_ctrl *scale) in tw9910_set_scale() argument
356 (scale->vscale & 0x0F00) >> 4 | in tw9910_set_scale()
357 (scale->hscale & 0x0F00) >> 8); in tw9910_set_scale()
362 scale->hscale & 0x00FF); in tw9910_set_scale()
367 scale->vscale & 0x00FF); in tw9910_set_scale()
429 const struct tw9910_scale_ctrl *scale; in tw9910_select_norm() local
435 scale = tw9910_ntsc_scales; in tw9910_select_norm()
438 scale = tw9910_pal_scales; in tw9910_select_norm()
445 tmp = abs(width - scale[i].width) + in tw9910_select_norm()
[all …]
/Linux-v4.19/drivers/media/i2c/
Dtw9910.c234 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 …]
/Linux-v4.19/drivers/iio/adc/
Dti-ads8688.c86 unsigned int scale; member
94 .scale = 76295,
99 .scale = 38148,
104 .scale = 19074,
109 .scale = 38148,
114 .scale = 19074,
126 ads8688_range_def[0].scale * st->vref_mv, in ads8688_show_scales()
127 ads8688_range_def[1].scale * st->vref_mv, in ads8688_show_scales()
128 ads8688_range_def[2].scale * st->vref_mv); in ads8688_show_scales()
265 scale_mv *= ads8688_range_def[st->range[chan->channel]].scale; in ads8688_read_raw()
[all …]
Dsc27xx_adc.c100 static int sc27xx_adc_get_ratio(int channel, int scale) in sc27xx_adc_get_ratio() argument
107 return scale ? SC27XX_VOLT_RATIO(400, 1025) : in sc27xx_adc_get_ratio()
115 return scale ? SC27XX_VOLT_RATIO(100, 125) : in sc27xx_adc_get_ratio()
126 int scale, int *val) in sc27xx_adc_read() argument
145 tmp = (scale << SC27XX_ADC_SCALE_SHIFT) & SC27XX_ADC_SCALE_MASK; in sc27xx_adc_read()
203 int channel, int scale, in sc27xx_adc_volt_ratio() argument
206 u32 ratio = sc27xx_adc_get_ratio(channel, scale); in sc27xx_adc_volt_ratio()
225 int scale, int raw_adc) in sc27xx_adc_convert_volt() argument
249 sc27xx_adc_volt_ratio(data, channel, scale, &numerator, &denominator); in sc27xx_adc_convert_volt()
255 int channel, int scale, int *val) in sc27xx_adc_read_processed() argument
[all …]
/Linux-v4.19/drivers/iio/light/
Disl29018.c79 unsigned int scale; member
95 struct isl29018_scale scale; member
126 if (chip->scale.scale == isl29018_scales[int_time][i].scale && in isl29018_set_integration_time()
127 chip->scale.uscale == isl29018_scales[int_time][i].uscale) { in isl29018_set_integration_time()
128 chip->scale = isl29018_scales[new_int_time][i]; in isl29018_set_integration_time()
137 static int isl29018_set_scale(struct isl29018_chip *chip, int scale, int uscale) in isl29018_set_scale() argument
144 if (scale == isl29018_scales[chip->int_time][i].scale && in isl29018_set_scale()
160 chip->scale = new_scale; in isl29018_set_scale()
209 data_x_range = lux_data * chip->scale.scale + in isl29018_read_lux()
210 lux_data * chip->scale.uscale / 1000000; in isl29018_read_lux()
[all …]
Dzopt2201.c85 unsigned int scale; /* micro lux per count */ member
96 unsigned int scale; /* micro W/m2 per count */ member
118 unsigned int scale, uscale; /* scale factor as integer + micro */ member
147 unsigned int scale, uscale; /* scale factor as integer + micro */ member
281 *val = zopt2201_gain_als[data->gain].scale; in zopt2201_read_raw()
284 *val = zopt2201_gain_uvb[data->gain].scale; in zopt2201_read_raw()
374 if (val == zopt2201_scale_als[i].scale && in zopt2201_write_scale_als()
404 if (val == zopt2201_scale_uvb[i].scale && in zopt2201_write_scale_uvb()
460 zopt2201_scale_als[i].scale, in zopt2201_show_als_scale_avail()
476 zopt2201_scale_uvb[i].scale, in zopt2201_show_uvb_scale_avail()
Dlv0104cs.c42 u8 scale; member
167 regval |= lv0104cs_scales[lv0104cs->scale].regval; in lv0104cs_get_lux()
200 switch (lv0104cs->scale) { in lv0104cs_get_lux()
253 *val = lv0104cs_scales[lv0104cs->scale].val; in lv0104cs_read_raw()
254 *val2 = lv0104cs_scales[lv0104cs->scale].val2; in lv0104cs_read_raw()
339 lv0104cs->scale = i; in lv0104cs_set_scale()
496 lv0104cs->scale = LV0104CS_SCALE_1X; in lv0104cs_probe()
/Linux-v4.19/drivers/media/platform/coda/
Dcoda-jpeg.c209 static void coda_scale_quant_table(u8 *q_tab, int scale) in coda_scale_quant_table() argument
215 temp = DIV_ROUND_CLOSEST((unsigned int)q_tab[i] * scale, 100); in coda_scale_quant_table()
226 unsigned int scale; in coda_set_jpeg_compression_quality() local
241 scale = 5000 / quality; in coda_set_jpeg_compression_quality()
243 scale = 200 - 2 * quality; in coda_set_jpeg_compression_quality()
247 coda_scale_quant_table(ctx->params.jpeg_qmat_tab[0], scale); in coda_set_jpeg_compression_quality()
251 coda_scale_quant_table(ctx->params.jpeg_qmat_tab[1], scale); in coda_set_jpeg_compression_quality()
/Linux-v4.19/drivers/media/dvb-frontends/
Dlgdt330x.c300 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
302 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
304 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
690 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
691 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
692 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
704 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in lgdt3302_read_status()
707 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
721 p->block_error.stat[0].scale = FE_SCALE_COUNTER; in lgdt3302_read_status()
722 p->block_count.stat[0].scale = FE_SCALE_COUNTER; in lgdt3302_read_status()
[all …]
Dmn88473.c333 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88473_read_status()
336 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
358 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
392 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
414 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
416 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
433 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in mn88473_read_status()
435 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in mn88473_read_status()
438 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
439 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
[all …]
Dmb86a20s.c1423 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR()
1467 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR()
1511 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR()
1563 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mb86a20s_stats_not_ready()
1568 c->cnr.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1569 c->pre_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1570 c->pre_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1571 c->post_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1572 c->post_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1573 c->block_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
[all …]
Dmn88443x.c277 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
286 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88443x_s_read_status()
291 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
325 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88443x_s_read_status()
331 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
332 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
346 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in mn88443x_s_read_status()
349 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in mn88443x_s_read_status()
480 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_t_read_status()
490 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88443x_t_read_status()
[all …]
Drtl2830.c131 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
133 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
135 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
137 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
433 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in rtl2830_read_status()
436 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_read_status()
475 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2830_read_status()
478 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_read_status()
493 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in rtl2830_read_status()
495 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in rtl2830_read_status()
[all …]
Dcxd2820r_c.c202 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_c()
206 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_c()
237 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_c()
241 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_c()
278 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in cxd2820r_read_status_c()
282 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_c()
/Linux-v4.19/Documentation/acpi/
Dcppc_sysfs.txt6 scale. CPPC exposes a set of registers to describe abstract performance scale,
36 * highest_perf : Highest performance of this processor (abstract scale).
37 * nominal_perf : Highest sustained performance of this processor (abstract scale).
39 power savings (abstract scale).
40 * lowest_perf : Lowest performance of this processor (abstract scale).
45 freqency instead of abstract scale. These values should not be used for any
53 accumulates (abstract scale).
/Linux-v4.19/drivers/media/common/siano/
Dsmsdvb-main.c147 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
148 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
161 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
162 c->post_bit_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
163 c->block_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
164 c->block_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
262 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
263 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
268 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
269 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
[all …]
/Linux-v4.19/Documentation/media/v4l-drivers/
Dsh_mobile_ceu_camera.rst57 (3) to (3') - sensor scale
60 (5) to (5') - reverse sensor scale applied to CEU cropped width or height
61 (2) to (5) - reverse sensor scale applied to CEU cropped left or top
62 (6) to (6') - CEU scale - user window
109 10. Use CEU scaling to scale to the requested user window:
135 4. Sensor scaled to 3 : 3'. Sensor's scale is (2' - 2) / (3' - 3). Calculate
138 5. Calculate and apply host scale = (6' - 6) / (4' - 4)
/Linux-v4.19/drivers/gpu/drm/sun4i/
Dsun8i_ui_scaler.c93 unsigned int scale, int_part, float_part; in sun8i_ui_scaler_coef_index() local
95 scale = step >> (SUN8I_UI_SCALER_SCALE_FRAC - 3); in sun8i_ui_scaler_coef_index()
96 int_part = scale >> 3; in sun8i_ui_scaler_coef_index()
97 float_part = scale & 0x7; in sun8i_ui_scaler_coef_index()
/Linux-v4.19/drivers/leds/
Dleds-lp8788.c35 enum lp8788_isink_scale scale; member
41 .scale = LP8788_ISINK_SCALE_100mA,
54 cfg->scale = pdata->scale; in lp8788_led_init_device()
64 val = cfg->scale << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device()
/Linux-v4.19/drivers/clk/
Dclk-xgene.c257 u64 ret, scale; in xgene_clk_pmd_recalc_rate() local
274 scale = (val & fd->mask) >> fd->shift; in xgene_clk_pmd_recalc_rate()
276 scale = fd->denom - scale; in xgene_clk_pmd_recalc_rate()
278 scale++; in xgene_clk_pmd_recalc_rate()
282 ret *= scale; in xgene_clk_pmd_recalc_rate()
293 u64 ret, scale; in xgene_clk_pmd_round_rate() local
300 scale = DIV_ROUND_UP_ULL(ret, *parent_rate); in xgene_clk_pmd_round_rate()
302 ret = (u64)*parent_rate * scale; in xgene_clk_pmd_round_rate()
313 u64 scale, ret; in xgene_clk_pmd_set_rate() local
323 scale = DIV_ROUND_UP_ULL(ret, (u64)parent_rate); in xgene_clk_pmd_set_rate()
[all …]
/Linux-v4.19/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_top.c1049 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()
1146 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_get_stats()
[all …]
/Linux-v4.19/drivers/hwmon/
Dscpi-hwmon.c27 unsigned int scale; member
67 if (scpi_scale[sensor->info.class] != sensor->scale) { in scpi_scale_reading()
69 do_div(*value, sensor->scale); in scpi_scale_reading()
137 const u32 *scale; in scpi_hwmon_probe() local
178 scale = of_id->data; in scpi_hwmon_probe()
227 sensor->scale = scale[sensor->info.class]; in scpi_hwmon_probe()
/Linux-v4.19/tools/perf/util/
Dpmu.c103 static int convert_scale(const char *scale, char **end, double *sval) in convert_scale() argument
131 *sval = strtod(scale, end); in convert_scale()
144 char scale[128]; in perf_pmu__parse_scale() local
157 sret = read(fd, scale, sizeof(scale)-1); in perf_pmu__parse_scale()
161 if (scale[sret - 1] == '\n') in perf_pmu__parse_scale()
162 scale[sret - 1] = '\0'; in perf_pmu__parse_scale()
164 scale[sret] = '\0'; in perf_pmu__parse_scale()
166 ret = convert_scale(scale, NULL, &alias->scale); in perf_pmu__parse_scale()
267 old->scale = newalias->scale; in perf_pmu_update_alias()
323 alias->scale = 1.0; in __perf_pmu__new_alias()
[all …]
/Linux-v4.19/tools/iio/
Diio_generic_buffer.c86 printf("%05f ", ((float)val + info->offset) * info->scale); in print1byte()
88 printf("%05f ", ((float)input + info->offset) * info->scale); in print1byte()
109 printf("%05f ", ((float)val + info->offset) * info->scale); in print2byte()
111 printf("%05f ", ((float)input + info->offset) * info->scale); in print2byte()
132 printf("%05f ", ((float)val + info->offset) * info->scale); in print4byte()
134 printf("%05f ", ((float)input + info->offset) * info->scale); in print4byte()
156 if (info->scale == 1.0f && info->offset == 0.0f) in print8byte()
160 ((float)val + info->offset) * info->scale); in print8byte()
162 printf("%05f ", ((float)input + info->offset) * info->scale); in print8byte()
/Linux-v4.19/drivers/video/backlight/
Dpwm_bl.c37 unsigned int scale; member
100 do_div(duty_cycle, pb->scale); in compute_duty_cycle()
178 static u64 cie1931(unsigned int lightness, unsigned int scale) in cie1931() argument
183 if (lightness <= (8 * scale)) { in cie1931()
186 retval = int_pow((lightness + (16 * scale)) / 116, 3); in cie1931()
187 retval = DIV_ROUND_CLOSEST_ULL(retval, (scale * scale)); in cie1931()
556 if (data->levels[i] > pb->scale) in pwm_backlight_probe()
557 pb->scale = data->levels[i]; in pwm_backlight_probe()
579 pb->lth_brightness = data->lth_brightness * (pb->period / pb->scale); in pwm_backlight_probe()

12345678910>>...13