/Linux-v5.4/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 …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/drivers/staging/media/hantro/ |
D | hantro_jpeg.c | 230 const unsigned char *tab, int scale) in jpeg_scale_quant_table() argument 236 temp = DIV_ROUND_CLOSEST((unsigned int)tab[i] * scale, 100); in jpeg_scale_quant_table() 247 int scale; in jpeg_set_quality() local 254 scale = 5000 / quality; in jpeg_set_quality() 256 scale = 200 - 2 * quality; in jpeg_set_quality() 259 luma_q_table, scale); in jpeg_set_quality() 261 chroma_q_table, scale); in jpeg_set_quality()
|
/Linux-v5.4/drivers/iio/adc/ |
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 …]
|
D | sc27xx_adc.c | 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 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() 284 int scale, int raw_adc) in sc27xx_adc_convert_volt() argument 308 sc27xx_adc_volt_ratio(data, channel, scale, &numerator, &denominator); in sc27xx_adc_convert_volt() 314 int channel, int scale, int *val) in sc27xx_adc_read_processed() argument [all …]
|
/Linux-v5.4/drivers/iio/light/ |
D | isl29018.c | 71 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 …]
|
D | zopt2201.c | 82 unsigned int scale; /* micro lux per count */ member 93 unsigned int scale; /* micro W/m2 per count */ member 115 unsigned int scale, uscale; /* scale factor as integer + micro */ member 144 unsigned int scale, uscale; /* scale factor as integer + micro */ member 278 *val = zopt2201_gain_als[data->gain].scale; in zopt2201_read_raw() 281 *val = zopt2201_gain_uvb[data->gain].scale; in zopt2201_read_raw() 371 if (val == zopt2201_scale_als[i].scale && in zopt2201_write_scale_als() 401 if (val == zopt2201_scale_uvb[i].scale && in zopt2201_write_scale_uvb() 457 zopt2201_scale_als[i].scale, in zopt2201_show_als_scale_avail() 473 zopt2201_scale_uvb[i].scale, in zopt2201_show_uvb_scale_avail()
|
/Linux-v5.4/drivers/media/platform/coda/ |
D | coda-jpeg.c | 205 static void coda_scale_quant_table(u8 *q_tab, int scale) in coda_scale_quant_table() argument 211 temp = DIV_ROUND_CLOSEST((unsigned int)q_tab[i] * scale, 100); in coda_scale_quant_table() 222 unsigned int scale; in coda_set_jpeg_compression_quality() local 237 scale = 5000 / quality; in coda_set_jpeg_compression_quality() 239 scale = 200 - 2 * quality; in coda_set_jpeg_compression_quality() 243 coda_scale_quant_table(ctx->params.jpeg_qmat_tab[0], scale); in coda_set_jpeg_compression_quality() 247 coda_scale_quant_table(ctx->params.jpeg_qmat_tab[1], scale); in coda_set_jpeg_compression_quality()
|
/Linux-v5.4/drivers/media/dvb-frontends/ |
D | lgdt330x.c | 290 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init() 292 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init() 294 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init() 680 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status() 681 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status() 682 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status() 694 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in lgdt3302_read_status() 697 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status() 711 p->block_error.stat[0].scale = FE_SCALE_COUNTER; in lgdt3302_read_status() 712 p->block_count.stat[0].scale = FE_SCALE_COUNTER; in lgdt3302_read_status() [all …]
|
D | mn88473.c | 324 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88473_read_status() 327 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status() 349 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status() 383 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status() 405 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status() 407 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status() 424 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in mn88473_read_status() 426 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in mn88473_read_status() 429 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status() 430 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status() [all …]
|
D | mb86a20s.c | 1415 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR() 1459 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR() 1503 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR() 1555 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mb86a20s_stats_not_ready() 1560 c->cnr.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() 1561 c->pre_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() 1562 c->pre_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() 1563 c->post_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() 1564 c->post_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() 1565 c->block_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() [all …]
|
D | mn88443x.c | 277 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 …]
|
D | rtl2830.c | 121 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init() 123 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init() 125 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init() 127 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init() 423 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in rtl2830_read_status() 426 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_read_status() 465 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2830_read_status() 468 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_read_status() 483 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in rtl2830_read_status() 485 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in rtl2830_read_status() [all …]
|
/Linux-v5.4/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).
|
/Linux-v5.4/drivers/hwmon/ |
D | scmi-hwmon.c | 33 s8 scale = sensor->scale; in scmi_hwmon_scale() local 40 scale += 3; in scmi_hwmon_scale() 44 scale += 6; in scmi_hwmon_scale() 50 if (scale == 0) in scmi_hwmon_scale() 53 if (abs(scale) > 19) in scmi_hwmon_scale() 56 f = __pow10(abs(scale)); in scmi_hwmon_scale() 57 if (scale > 0) in scmi_hwmon_scale()
|
D | scpi-hwmon.c | 19 unsigned int scale; member 59 if (scpi_scale[sensor->info.class] != sensor->scale) { in scpi_scale_reading() 61 do_div(*value, sensor->scale); in scpi_scale_reading() 129 const u32 *scale; in scpi_hwmon_probe() local 170 scale = of_id->data; in scpi_hwmon_probe() 219 sensor->scale = scale[sensor->info.class]; in scpi_hwmon_probe()
|
/Linux-v5.4/drivers/media/common/siano/ |
D | smsdvb-main.c | 136 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() 251 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices() 252 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices() 257 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices() 258 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices() [all …]
|
/Linux-v5.4/drivers/video/backlight/ |
D | pwm_bl.c | 31 unsigned int scale; member 104 do_div(duty_cycle, pb->scale); in compute_duty_cycle() 168 static u64 cie1931(unsigned int lightness, unsigned int scale) in cie1931() argument 173 if (lightness <= (8 * scale)) { in cie1931() 176 retval = int_pow((lightness + (16 * scale)) / 116, 3); in cie1931() 177 retval = DIV_ROUND_CLOSEST_ULL(retval, (scale * scale)); in cie1931() 573 if (data->levels[i] > pb->scale) in pwm_backlight_probe() 574 pb->scale = data->levels[i]; in pwm_backlight_probe() 580 props.scale = BACKLIGHT_SCALE_LINEAR; in pwm_backlight_probe() 582 props.scale = BACKLIGHT_SCALE_NON_LINEAR; in pwm_backlight_probe() [all …]
|
/Linux-v5.4/Documentation/media/v4l-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)
|
/Linux-v5.4/drivers/leds/ |
D | leds-lp8788.c | 31 enum lp8788_isink_scale scale; member 37 .scale = LP8788_ISINK_SCALE_100mA, 50 cfg->scale = pdata->scale; in lp8788_led_init_device() 60 val = cfg->scale << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device()
|
/Linux-v5.4/drivers/clk/ |
D | clk-xgene.c | 242 u64 ret, scale; in xgene_clk_pmd_recalc_rate() local 259 scale = (val & fd->mask) >> fd->shift; in xgene_clk_pmd_recalc_rate() 261 scale = fd->denom - scale; in xgene_clk_pmd_recalc_rate() 263 scale++; in xgene_clk_pmd_recalc_rate() 267 ret *= scale; in xgene_clk_pmd_recalc_rate() 278 u64 ret, scale; in xgene_clk_pmd_round_rate() local 285 scale = DIV_ROUND_UP_ULL(ret, *parent_rate); in xgene_clk_pmd_round_rate() 287 ret = (u64)*parent_rate * scale; in xgene_clk_pmd_round_rate() 298 u64 scale, ret; in xgene_clk_pmd_set_rate() local 308 scale = DIV_ROUND_UP_ULL(ret, (u64)parent_rate); in xgene_clk_pmd_set_rate() [all …]
|
/Linux-v5.4/drivers/gpu/drm/sun4i/ |
D | sun8i_ui_scaler.c | 108 unsigned int scale, int_part, float_part; in sun8i_ui_scaler_coef_index() local 110 scale = step >> (SUN8I_UI_SCALER_SCALE_FRAC - 3); in sun8i_ui_scaler_coef_index() 111 int_part = scale >> 3; in sun8i_ui_scaler_coef_index() 112 float_part = scale & 0x7; in sun8i_ui_scaler_coef_index()
|
/Linux-v5.4/drivers/media/dvb-frontends/cxd2880/ |
D | cxd2880_top.c | 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() 1146 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_get_stats() [all …]
|
/Linux-v5.4/include/clocksource/ |
D | hyperv_timer.h | 40 u64 scale, offset; in hv_read_tsc_page_tsc() local 69 scale = READ_ONCE(tsc_pg->tsc_scale); in hv_read_tsc_page_tsc() 81 return mul_u64_u64_shr(*cur_tsc, scale, 64) + offset; in hv_read_tsc_page_tsc()
|
/Linux-v5.4/tools/perf/util/ |
D | pmu.c | 104 int perf_pmu__convert_scale(const char *scale, char **end, double *sval) in perf_pmu__convert_scale() argument 132 *sval = strtod(scale, end); in perf_pmu__convert_scale() 145 char scale[128]; in perf_pmu__parse_scale() local 158 sret = read(fd, scale, sizeof(scale)-1); in perf_pmu__parse_scale() 162 if (scale[sret - 1] == '\n') in perf_pmu__parse_scale() 163 scale[sret - 1] = '\0'; in perf_pmu__parse_scale() 165 scale[sret] = '\0'; in perf_pmu__parse_scale() 167 ret = perf_pmu__convert_scale(scale, NULL, &alias->scale); in perf_pmu__parse_scale() 268 old->scale = newalias->scale; in perf_pmu_update_alias() 324 alias->scale = 1.0; in __perf_pmu__new_alias() [all …]
|