| /linux/drivers/gpu/ipu-v3/ |
| H A 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/drivers/media/test-drivers/vidtv/ |
| H A 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 …]
|
| /linux/drivers/media/platform/verisilicon/ |
| H A D | hantro_jpeg.c | 173 static unsigned char jpeg_scale_qp(const unsigned char qp, int scale) in jpeg_scale_qp() argument 177 temp = DIV_ROUND_CLOSEST((unsigned int)qp * scale, 100); in jpeg_scale_qp() 189 const unsigned char *tab, int scale) in jpeg_scale_quant_table() argument 197 file_q_tab[i] = jpeg_scale_qp(tab[v4l2_jpeg_zigzag_scan_index[i]], scale); in jpeg_scale_quant_table() 198 reordered_q_tab[i] = jpeg_scale_qp(tab[hw_reorder[i]], scale); in jpeg_scale_quant_table() 204 int scale; in jpeg_set_quality() local 210 scale = 5000 / ctx->quality; in jpeg_set_quality() 212 scale = 200 - 2 * ctx->quality; in jpeg_set_quality() 221 (const unsigned char *)v4l2_jpeg_ref_table_luma_qt, scale); in jpeg_set_quality() 224 (const unsigned char *)v4l2_jpeg_ref_table_chroma_qt, scale); in jpeg_set_quality()
|
| /linux/drivers/media/i2c/ |
| H A D | tw9910.c | 229 const struct tw9910_scale_ctrl *scale; member 348 const struct tw9910_scale_ctrl *scale) in tw9910_set_scale() argument 353 (scale->vscale & 0x0F00) >> 4 | in tw9910_set_scale() 354 (scale->hscale & 0x0F00) >> 8); in tw9910_set_scale() 359 scale->hscale & 0x00FF); in tw9910_set_scale() 364 scale->vscale & 0x00FF); in tw9910_set_scale() 426 const struct tw9910_scale_ctrl *scale; in tw9910_select_norm() local 432 scale = tw9910_ntsc_scales; in tw9910_select_norm() 435 scale = tw9910_pal_scales; in tw9910_select_norm() 442 tmp = abs(width - scale[i].width) + in tw9910_select_norm() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-iio-adc-mt6360 | 6 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/drivers/iio/adc/ |
| H A 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() 262 scale_mv *= ads8688_range_def[st->range[chan->channel]].scale; in ads8688_read_raw() [all …]
|
| /linux/arch/arm64/kernel/ |
| H A D | topology.c | 121 u64 core_cnt, const_cnt, scale; in amu_scale_freq_tick() local 147 scale = core_cnt - prev_core_cnt; in amu_scale_freq_tick() 148 scale *= this_cpu_read(arch_max_freq_scale); in amu_scale_freq_tick() 149 scale = div64_u64(scale >> SCHED_CAPACITY_SHIFT, in amu_scale_freq_tick() 152 scale = min_t(unsigned long, scale, SCHED_CAPACITY_SCALE); in amu_scale_freq_tick() 153 this_cpu_write(arch_freq_scale, (unsigned long)scale); in amu_scale_freq_tick() 190 u64 scale; in arch_freq_get_on_cpu() local 247 scale = arch_scale_freq_capacity(cpu); in arch_freq_get_on_cpu() 248 freq = scale * arch_scale_freq_ref(cpu); in arch_freq_get_on_cpu()
|
| /linux/drivers/gpu/drm/sprd/ |
| H A D | megacores_pll.c | 219 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/arch/arm64/include/asm/ |
| H A D | tlbflush.h | 144 #define __TLBI_VADDR_RANGE(baddr, asid, scale, num, ttl) \ argument 151 __ta |= FIELD_PREP(TLBIR_SCALE_MASK, scale); \ 158 #define __TLBI_RANGE_PAGES(num, scale) \ argument 159 ((unsigned long)((num) + 1) << (5 * (scale) + 1)) 169 #define __TLBI_RANGE_NUM(pages, scale) \ argument 172 __TLBI_RANGE_PAGES(31, (scale))); \ 173 (__pages >> (5 * (scale) + 1)) - 1; \ 436 int scale = 3; \ 453 num = __TLBI_RANGE_NUM(__flush_pages, scale); \ 456 scale, num, tlb_level); \ [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A 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/drivers/media/common/siano/ |
| H A 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() 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/Documentation/admin-guide/acpi/ |
| H A D | cppc_sysfs.rst | 14 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/accel/ethosu/ |
| H A D | ethosu_gem.c | 142 struct buffer scale[2]; member 237 bool ifm, bool ifm2, bool weight, bool scale) in calc_sizes() argument 285 if (scale) { in calc_sizes() 287 op, st->scale[0].region, st->scale[0].base, in calc_sizes() 288 st->scale[0].base + st->scale[0].length - 1); in calc_sizes() 289 if (st->scale[0].region < 0 || st->scale[0].base == U64_MAX || in calc_sizes() 290 st->scale[0].length == U32_MAX) in calc_sizes() 292 info->region_size[st->scale[0].region] = in calc_sizes() 293 max(info->region_size[st->scale[0].region], in calc_sizes() 294 st->scale[0].base + st->scale[0].length); in calc_sizes() [all …]
|
| /linux/Documentation/driver-api/media/drivers/ |
| H A 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/drivers/hwmon/ |
| H A 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() 138 const u32 *scale; in scpi_hwmon_probe() local 173 scale = of_device_get_match_data(&pdev->dev); in scpi_hwmon_probe() 174 if (!scale) { in scpi_hwmon_probe() 226 sensor->scale = scale[sensor->info.class]; in scpi_hwmon_probe()
|
| /linux/drivers/clk/ |
| H A 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_determine_rate() local 288 scale = DIV_ROUND_UP_ULL(ret, req->best_parent_rate); in xgene_clk_pmd_determine_rate() 290 ret = (u64)req->best_parent_rate * scale; in xgene_clk_pmd_determine_rate() 303 u64 scale, ret; in xgene_clk_pmd_set_rate() local 313 scale = DIV_ROUND_UP_ULL(ret, (u64)parent_rate); in xgene_clk_pmd_set_rate() [all …]
|
| /linux/drivers/media/dvb-frontends/cxd2880/ |
| H A 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/drivers/iio/ |
| H A D | industrialio-gts-helper.c | 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() 41 return div64_u64(full, scale); in iio_gts_get_gain() 60 static int gain_get_scale_fraction(const u64 max, u64 scale, int known, in gain_get_scale_fraction() argument 65 tot_gain = iio_gts_get_gain(max, scale); in gain_get_scale_fraction() 1056 u64 *scale) in iio_gts_get_scale_linear() argument 1069 *scale = tmp; in iio_gts_get_scale_linear() 1127 u64 scale; in iio_gts_find_new_gain_sel_by_old_gain_time() local 1141 &scale); in iio_gts_find_new_gain_sel_by_old_gain_time() 1145 ret = gain_get_scale_fraction(gts->max_scale, scale, itime_new->mul, in iio_gts_find_new_gain_sel_by_old_gain_time() [all …]
|
| /linux/drivers/iio/light/ |
| H A D | zopt2201.c | 84 unsigned int scale; /* micro lux per count */ member 95 unsigned int scale; /* micro W/m2 per count */ member 117 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() 372 if (val == zopt2201_scale_als[i].scale && in zopt2201_write_scale_als() 385 if (val == zopt2201_scale_uvb[i].scale && in zopt2201_write_scale_uvb() 441 zopt2201_scale_als[i].scale, in zopt2201_show_als_scale_avail() 457 zopt2201_scale_uvb[i].scale, in zopt2201_show_uvb_scale_avail()
|
| /linux/drivers/leds/ |
| H A 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/drivers/video/backlight/ |
| H A D | pwm_bl.c | 29 unsigned int scale; member 86 do_div(duty_cycle, pb->scale); in compute_duty_cycle() 539 if (data->levels[i] > pb->scale) in pwm_backlight_probe() 540 pb->scale = data->levels[i]; in pwm_backlight_probe() 543 props.scale = BACKLIGHT_SCALE_LINEAR; in pwm_backlight_probe() 545 props.scale = BACKLIGHT_SCALE_NON_LINEAR; in pwm_backlight_probe() 567 if (data->levels[i] > pb->scale) in pwm_backlight_probe() 568 pb->scale = data->levels[i]; in pwm_backlight_probe() 573 props.scale = BACKLIGHT_SCALE_NON_LINEAR; in pwm_backlight_probe() 579 pb->scale = data->max_brightness; in pwm_backlight_probe() [all …]
|
| /linux/drivers/iio/dac/ |
| H A D | mcp4728.c | 299 static void mcp4728_get_scale_avail(enum mcp4728_scale scale, in mcp4728_get_scale_avail() argument 303 *val = data->scales_avail[scale * 2]; in mcp4728_get_scale_avail() 304 *val2 = data->scales_avail[scale * 2 + 1]; in mcp4728_get_scale_avail() 340 int scale = mcp4728_find_matching_scale(data, val, val2); in mcp4728_set_scale() local 342 if (scale < 0) in mcp4728_set_scale() 343 return scale; in mcp4728_set_scale() 345 switch (scale) { in mcp4728_set_scale() 403 static void mcp4728_init_scale_avail(enum mcp4728_scale scale, int vref_mv, in mcp4728_init_scale_avail() argument 413 data->scales_avail[scale * 2] = value_int; in mcp4728_init_scale_avail() 414 data->scales_avail[scale * 2 + 1] = value_micro; in mcp4728_init_scale_avail()
|