/drivers/media/i2c/soc_camera/ |
D | tw9910.c | 233 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 …]
|
/drivers/iio/adc/ |
D | ti-ads8688.c | 83 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() 255 scale_mv *= ads8688_range_def[st->range[chan->channel]].scale; in ads8688_read_raw() [all …]
|
/drivers/staging/iio/light/ |
D | isl29018.c | 89 unsigned int scale; member 105 struct isl29018_scale scale; member 135 if (chip->scale.scale == isl29018_scales[int_time][i].scale && in isl29018_set_integration_time() 136 chip->scale.uscale == isl29018_scales[int_time][i].uscale) { in isl29018_set_integration_time() 137 chip->scale = isl29018_scales[new_int_time][i]; in isl29018_set_integration_time() 146 static int isl29018_set_scale(struct isl29018_chip *chip, int scale, int uscale) in isl29018_set_scale() argument 152 if (scale == isl29018_scales[chip->int_time][i].scale && in isl29018_set_scale() 168 chip->scale = new_scale; in isl29018_set_scale() 217 data_x_range = lux_data * chip->scale.scale + in isl29018_read_lux() 218 lux_data * chip->scale.uscale / 1000000; in isl29018_read_lux() [all …]
|
/drivers/media/platform/coda/ |
D | coda-jpeg.c | 209 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()
|
/drivers/media/dvb-frontends/ |
D | mb86a20s.c | 1423 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 …]
|
D | rtl2830.c | 131 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 …]
|
D | cxd2820r_c.c | 202 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()
|
D | cx24120.c | 334 if (c->cnr.stat[0].scale != FE_SCALE_DECIBEL) in cx24120_read_snr() 347 if (c->post_bit_error.stat[0].scale != FE_SCALE_COUNTER) { in cx24120_read_ber() 439 if (c->strength.stat[0].scale != FE_SCALE_RELATIVE) in cx24120_read_signal_strength() 645 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cx24120_get_stats() 648 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cx24120_get_stats() 660 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cx24120_get_stats() 663 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cx24120_get_stats() 668 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cx24120_get_stats() 669 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cx24120_get_stats() 670 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cx24120_get_stats() [all …]
|
D | tda10071.c | 421 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in tda10071_read_status() 424 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_read_status() 434 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in tda10071_read_status() 437 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_read_status() 490 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in tda10071_read_status() 493 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in tda10071_read_status() 498 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in tda10071_read_status() 500 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_read_status() 503 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_read_status() 504 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_read_status() [all …]
|
D | cxd2820r_t.c | 307 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_t() 311 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t() 331 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_t() 335 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t() 372 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in cxd2820r_read_status_t() 376 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t()
|
D | cxd2820r_t2.c | 332 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in cxd2820r_read_status_t2() 336 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t2() 358 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_t2() 362 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t2() 384 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in cxd2820r_read_status_t2() 388 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t2()
|
D | tc90522.c | 261 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tc90522s_get_frontend() 287 stats->stat[0].scale = FE_SCALE_DECIBEL; in tc90522s_get_frontend() 297 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; in tc90522s_get_frontend() 300 stats->stat[i].scale = FE_SCALE_COUNTER; in tc90522s_get_frontend() 310 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; in tc90522s_get_frontend() 313 stats->stat[i].scale = FE_SCALE_COUNTER; in tc90522s_get_frontend() 419 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tc90522t_get_frontend() 447 stats->stat[0].scale = FE_SCALE_DECIBEL; in tc90522t_get_frontend() 457 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; in tc90522t_get_frontend() 460 stats->stat[i].scale = FE_SCALE_COUNTER; in tc90522t_get_frontend() [all …]
|
D | af9033.c | 459 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init() 461 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init() 463 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init() 465 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init() 467 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init() 469 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init() 873 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in af9033_read_status() 877 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_read_status() 951 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in af9033_read_status() 955 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_read_status() [all …]
|
D | rtl2832.c | 367 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init() 369 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init() 371 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init() 373 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init() 692 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in rtl2832_read_status() 695 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_read_status() 734 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2832_read_status() 737 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_read_status() 752 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in rtl2832_read_status() 754 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in rtl2832_read_status() [all …]
|
/drivers/media/common/siano/ |
D | smsdvb-main.c | 147 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 …]
|
/drivers/clk/ |
D | clk-xgene.c | 259 u64 ret, scale; in xgene_clk_pmd_recalc_rate() local 276 scale = (val & fd->mask) >> fd->shift; in xgene_clk_pmd_recalc_rate() 278 scale = fd->denom - scale; in xgene_clk_pmd_recalc_rate() 280 scale++; in xgene_clk_pmd_recalc_rate() 284 ret *= scale; in xgene_clk_pmd_recalc_rate() 295 u64 ret, scale; in xgene_clk_pmd_round_rate() local 302 scale = DIV_ROUND_UP_ULL(ret, *parent_rate); in xgene_clk_pmd_round_rate() 304 ret = (u64)*parent_rate * scale; in xgene_clk_pmd_round_rate() 315 u64 scale, ret; in xgene_clk_pmd_set_rate() local 325 scale = DIV_ROUND_UP_ULL(ret, (u64)parent_rate); in xgene_clk_pmd_set_rate() [all …]
|
D | clk-fractional-divider.c | 56 unsigned long scale; in clk_fd_round_rate() local 68 scale = fls_long(*parent_rate / rate - 1); in clk_fd_round_rate() 69 if (scale > fd->nwidth) in clk_fd_round_rate() 70 rate <<= scale - fd->nwidth; in clk_fd_round_rate()
|
/drivers/leds/ |
D | leds-lp8788.c | 35 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()
|
/drivers/power/supply/ |
D | ds2760_battery.c | 125 int ret, i, start, count, scale[5]; in ds2760_battery_read_status() local 196 scale[0] = di->full_active_uAh; in ds2760_battery_read_status() 198 scale[i] = scale[i - 1] + di->raw[DS2760_ACTIVE_FULL + 1 + i]; in ds2760_battery_read_status() 200 di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status() 204 scale[4] = di->raw[DS2760_ACTIVE_EMPTY + 4]; in ds2760_battery_read_status() 206 scale[i] = scale[i + 1] + di->raw[DS2760_ACTIVE_EMPTY + i]; in ds2760_battery_read_status() 208 di->empty_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status()
|
/drivers/spi/ |
D | spi-fsl-dspi.c | 189 int scale_needed, scale, minscale = INT_MAX; in hz_to_spi_baud() local 198 scale = brs[i] * pbr_tbl[j]; in hz_to_spi_baud() 199 if (scale >= scale_needed) { in hz_to_spi_baud() 200 if (scale < minscale) { in hz_to_spi_baud() 201 minscale = scale; in hz_to_spi_baud() 221 int scale_needed, scale, minscale = INT_MAX; in ns_delay_scale() local 232 scale = pscale_tbl[i] * (2 << j); in ns_delay_scale() 233 if (scale >= scale_needed) { in ns_delay_scale() 234 if (scale < minscale) { in ns_delay_scale() 235 minscale = scale; in ns_delay_scale()
|
/drivers/gpu/drm/i2c/ |
D | ch7006_mode.c | 106 subc, scale, scale_mask, norm_mask, e_hd, e_vd) { \ argument 129 .dispmode = bitfs(CH7006_DISPMODE_SCALING_RATIO, scale) | \ 136 subc, scale, scale_mask, norm_mask) \ argument 137 __MODE(f, hd, vd, ht, vt, hsynp, vsynp, subc, scale, \ 336 uint64_t scale, aspect; in ch7006_setup_properties() local 346 scale = norm->vtotal*fixed1; in ch7006_setup_properties() 347 do_div(scale, mode->vtotal); in ch7006_setup_properties() 352 hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale) in ch7006_setup_properties() 358 vpos = max(0, norm->vdisplay - round_fixed(mode->vdisplay*scale) in ch7006_setup_properties()
|
D | ch7006_drv.c | 233 if (~mode->valid_scales & 1<<priv->scale || in ch7006_encoder_get_modes() 276 priv->scale); in ch7006_encoder_create_resources() 351 priv->scale = val; in ch7006_encoder_set_property() 457 priv->scale = 1; in ch7006_encoder_init() 480 priv->scale = ch7006_scale; in ch7006_encoder_init() 538 module_param_named(scale, ch7006_scale, int, 0600); 539 MODULE_PARM_DESC(scale, "Default scale.\n"
|
/drivers/video/backlight/ |
D | pwm_bl.c | 36 unsigned int scale; member 90 do_div(duty_cycle, pb->scale); in compute_duty_cycle() 236 if (data->levels[i] > pb->scale) in pwm_backlight_probe() 237 pb->scale = data->levels[i]; in pwm_backlight_probe() 241 pb->scale = data->max_brightness; in pwm_backlight_probe() 330 pb->lth_brightness = data->lth_brightness * (pb->period / pb->scale); in pwm_backlight_probe()
|
/drivers/tty/serial/ |
D | ar933x_uart.c | 188 unsigned int scale, in ar933x_uart_get_baud() argument 194 div = (2 << 16) * (scale + 1); in ar933x_uart_get_baud() 205 unsigned int *scale, in ar933x_uart_get_scale_step() argument 211 *scale = 0; in ar933x_uart_get_scale_step() 229 *scale = tscale; in ar933x_uart_get_scale_step() 243 unsigned int baud, scale, step; in ar933x_uart_set_termios() local 266 ar933x_uart_get_scale_step(port->uartclk, baud, &scale, &step); in ar933x_uart_set_termios() 288 scale << AR933X_UART_CLOCK_SCALE_S | step); in ar933x_uart_set_termios()
|
/drivers/pcmcia/ |
D | cistpl.c | 663 u_char scale; in parse_device() local 708 scale = *p & 7; in parse_device() 709 if (scale == 7) in parse_device() 711 device->dev[i].size = ((*p >> 3) + 1) * (512 << (scale*2)); in parse_device() 910 u_int scale; in parse_power() local 922 scale = POWER_SCALE(*p); in parse_power() 928 (*p & 0x7f) * scale / 100; in parse_power() 946 u_char scale; in parse_timing() local 950 scale = *p; in parse_timing() 951 if ((scale & 3) != 3) { in parse_timing() [all …]
|