/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vidtv/ |
D | vidtv_demod.c | 133 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 …]
|
/kernel/linux/linux-5.10/drivers/staging/media/hantro/ |
D | hantro_jpeg.c | 254 static unsigned char jpeg_scale_qp(const unsigned char qp, int scale) in jpeg_scale_qp() argument 258 temp = DIV_ROUND_CLOSEST((unsigned int)qp * scale, 100); in jpeg_scale_qp() 270 const unsigned char *tab, int scale) in jpeg_scale_quant_table() argument 275 file_q_tab[i] = jpeg_scale_qp(tab[zigzag[i]], scale); in jpeg_scale_quant_table() 276 reordered_q_tab[i] = jpeg_scale_qp(tab[hw_reorder[i]], scale); in jpeg_scale_quant_table() 282 int scale; in jpeg_set_quality() local 289 scale = 5000 / quality; in jpeg_set_quality() 291 scale = 200 - 2 * quality; in jpeg_set_quality() 295 luma_q_table, scale); in jpeg_set_quality() 298 chroma_q_table, scale); in jpeg_set_quality()
|
/kernel/linux/linux-4.19/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-4.19/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 …]
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | tlbflush.h | 136 #define __TLBI_VADDR_RANGE(addr, asid, scale, num, ttl) \ argument 142 __ta |= (unsigned long)(scale) << 44; \ 149 #define __TLBI_RANGE_PAGES(num, scale) \ argument 150 ((unsigned long)((num) + 1) << (5 * (scale) + 1)) 158 #define __TLBI_RANGE_NUM(pages, scale) \ argument 159 ((((pages) >> (5 * (scale) + 1)) & TLBI_RANGE_MASK) - 1) 287 int scale = 0; in __flush_tlb_range() local 344 num = __TLBI_RANGE_NUM(pages, scale); in __flush_tlb_range() 346 addr = __TLBI_VADDR_RANGE(start, asid, scale, in __flush_tlb_range() 355 start += __TLBI_RANGE_PAGES(num, scale) << PAGE_SHIFT; in __flush_tlb_range() [all …]
|
/kernel/linux/linux-4.19/drivers/iio/adc/ |
D | ti-ads8688.c | 87 unsigned int scale; member 95 .scale = 76295, 100 .scale = 38148, 105 .scale = 19074, 110 .scale = 38148, 115 .scale = 19074, 127 ads8688_range_def[0].scale * st->vref_mv, in ads8688_show_scales() 128 ads8688_range_def[1].scale * st->vref_mv, in ads8688_show_scales() 129 ads8688_range_def[2].scale * st->vref_mv); in ads8688_show_scales() 266 scale_mv *= ads8688_range_def[st->range[chan->channel]].scale; in ads8688_read_raw() [all …]
|
D | sc27xx_adc.c | 100 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-4.19/drivers/iio/light/ |
D | isl29018.c | 79 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 …]
|
/kernel/linux/linux-4.19/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()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | topology.c | 274 u64 core_cnt, const_cnt, scale; in topology_scale_freq_tick() local 300 scale = core_cnt - prev_core_cnt; in topology_scale_freq_tick() 301 scale *= this_cpu_read(arch_max_freq_scale); in topology_scale_freq_tick() 302 scale = div64_u64(scale >> SCHED_CAPACITY_SHIFT, in topology_scale_freq_tick() 305 scale = min_t(unsigned long, scale, SCHED_CAPACITY_SCALE); in topology_scale_freq_tick() 306 this_cpu_write(freq_scale, (unsigned long)scale); in topology_scale_freq_tick()
|
/kernel/linux/linux-4.19/drivers/media/dvb-frontends/ |
D | lgdt330x.c | 300 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 …]
|
D | mn88473.c | 333 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 …]
|
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 …]
|
/kernel/linux/linux-5.10/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 | 1407 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR() 1451 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR() 1495 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR() 1547 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mb86a20s_stats_not_ready() 1552 c->cnr.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() 1553 c->pre_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() 1554 c->pre_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() 1555 c->post_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() 1556 c->post_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() 1557 c->block_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready() [all …]
|
/kernel/linux/linux-5.10/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).
|
/kernel/linux/linux-4.19/Documentation/acpi/ |
D | cppc_sysfs.txt | 6 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).
|
/kernel/linux/linux-4.19/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 …]
|
/kernel/linux/linux-5.10/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 …]
|