Searched refs:scale (Results 1 - 25 of 325) sorted by relevance

1234567891011>>

/linux-master/drivers/gpu/ipu-v3/
H A Dipu-ic-csc.c25 .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
[all...]
/linux-master/drivers/media/test-drivers/vidtv/
H A Dvidtv_demod.c133 c->strength.stat[0].scale = FE_SCALE_DECIBEL;
137 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
142 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
145 c->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
148 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
151 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
154 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
157 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
166 u32 scale; local
169 scale
[all...]
/linux-master/arch/arm64/include/asm/
H A Dtlbflush.h145 #define __TLBI_VADDR_RANGE(baddr, asid, scale, num, ttl) \
152 __ta |= (unsigned long)(scale) << 44; \
159 #define __TLBI_RANGE_PAGES(num, scale) \
160 ((unsigned long)((num) + 1) << (5 * (scale) + 1))
170 #define __TLBI_RANGE_NUM(pages, scale) \
173 __TLBI_RANGE_PAGES(31, (scale))); \
174 (__pages >> (5 * (scale) + 1)) - 1; \
378 * 2. The minimum range granularity is decided by 'scale', so multiple range
379 * TLBI operations may be required. Start from scale = 3, flush the largest
380 * possible number of pages ((num+1)*2^(5*scale
[all...]
/linux-master/drivers/iio/adc/
H A Dsc27xx_adc.c112 int (*get_ratio)(int channel, int scale);
126 * should use the small-scale graph, and if more than 1.2v, we should use the
127 * big-scale graph.
220 static int sc2720_adc_get_ratio(int channel, int scale) argument
224 switch (scale) {
237 switch (scale) {
252 switch (scale) {
265 switch (scale) {
281 static int sc2721_adc_get_ratio(int channel, int scale) argument
288 return scale
308 sc2730_adc_get_ratio(int channel, int scale) argument
382 sc2731_adc_get_ratio(int channel, int scale) argument
484 sc27xx_adc_read(struct sc27xx_adc_data *data, int channel, int scale, int *val) argument
584 sc27xx_adc_volt_ratio(struct sc27xx_adc_data *data, int channel, int scale, struct u32_fract *fract) argument
616 sc27xx_adc_convert_volt(struct sc27xx_adc_data *data, int channel, int scale, int raw_adc) argument
646 sc27xx_adc_read_processed(struct sc27xx_adc_data *data, int channel, int scale, int *val) argument
664 int scale = data->channel_scale[chan->channel]; local
[all...]
H A Dti-ads8688.c84 unsigned int scale; member in struct:ads8688_ranges
92 .scale = 76295,
97 .scale = 38148,
102 .scale = 19074,
107 .scale = 38148,
112 .scale = 19074,
124 ads8688_range_def[0].scale * st->vref_mv,
125 ads8688_range_def[1].scale * st->vref_mv,
126 ads8688_range_def[2].scale * st->vref_mv);
263 scale_mv *= ads8688_range_def[st->range[chan->channel]].scale;
295 unsigned int scale = 0; local
[all...]
/linux-master/include/clocksource/
H A Dhyperv_timer.h45 u64 scale, offset; local
74 scale = READ_ONCE(tsc_pg->tsc_scale);
86 *time = mul_u64_u64_shr(*cur_tsc, scale, 64) + offset;
/linux-master/drivers/staging/media/atomisp/pci/isp/kernels/ob/ob_1.0/
H A Dia_css_ob.host.c55 unsigned int scale = 16 - ob_bit_depth; local
60 to->blacklevel_gr = from->level_gr >> scale;
61 to->blacklevel_r = from->level_r >> scale;
62 to->blacklevel_b = from->level_b >> scale;
63 to->blacklevel_gb = from->level_gb >> scale;
/linux-master/drivers/iio/imu/bmi323/
H A Dbmi323.h200 #define BMI323_INT_MICRO_TO_RAW(val, val2, scale) ((val) * (scale) + \
201 ((val2) * (scale)) / MEGA)
203 #define BMI323_RAW_TO_MICRO(raw, scale) ((((raw) % (scale)) * MEGA) / scale)
/linux-master/include/linux/iio/afe/
H A Drescale.h34 int scale, int scale2, int schan_off,
/linux-master/drivers/iio/light/
H A Disl29018.c71 unsigned int scale; member in struct:isl29018_scale
87 struct isl29018_scale scale; member in struct:isl29018_chip
119 if (chip->scale.scale == isl29018_scales[int_time][i].scale &&
120 chip->scale.uscale == isl29018_scales[int_time][i].uscale) {
121 chip->scale = isl29018_scales[new_int_time][i];
130 static int isl29018_set_scale(struct isl29018_chip *chip, int scale, int uscale) argument
137 if (scale == isl29018_scales[chip->int_time][i].scale
[all...]
H A Dzopt2201.c84 unsigned int scale; /* micro lux per count */ member in struct:__anon205
95 unsigned int scale; /* micro W/m2 per count */ member in struct:__anon206
117 unsigned int scale, uscale; /* scale factor as integer + micro */ member in struct:__anon208
146 unsigned int scale, uscale; /* scale factor as integer + micro */ member in struct:__anon209
280 *val = zopt2201_gain_als[data->gain].scale;
283 *val = zopt2201_gain_uvb[data->gain].scale;
373 if (val == zopt2201_scale_als[i].scale &&
403 if (val == zopt2201_scale_uvb[i].scale
[all...]
/linux-master/drivers/media/i2c/
H A Dtw9910.c234 const struct tw9910_scale_ctrl *scale; member in struct:tw9910_priv
353 const struct tw9910_scale_ctrl *scale)
358 (scale->vscale & 0x0F00) >> 4 |
359 (scale->hscale & 0x0F00) >> 8);
364 scale->hscale & 0x00FF);
369 scale->vscale & 0x00FF);
431 const struct tw9910_scale_ctrl *scale; local
437 scale = tw9910_ntsc_scales;
440 scale = tw9910_pal_scales;
447 tmp = abs(width - scale[
352 tw9910_set_scale(struct i2c_client *client, const struct tw9910_scale_ctrl *scale) argument
806 const struct tw9910_scale_ctrl *scale; local
[all...]
/linux-master/drivers/hwmon/
H A Dscpi-hwmon.c19 unsigned int scale; member in struct:sensor_data
59 if (scpi_scale[sensor->info.class] != sensor->scale) {
61 do_div(*value, sensor->scale);
138 const u32 *scale; local
173 scale = of_device_get_match_data(&pdev->dev);
174 if (!scale) {
226 sensor->scale = scale[sensor->info.class];
H A Dscmi-hwmon.c40 int scale = sensor->scale; local
47 scale += 3;
51 scale += 6;
57 if (scale == 0)
60 if (abs(scale) > 19)
63 f = __pow10(abs(scale));
64 if (scale > 0)
/linux-master/arch/arm64/kernel/
H A Dtopology.c156 u64 core_cnt, const_cnt, scale; local
172 * scale = ------- * --------------------
178 scale = core_cnt - prev_core_cnt;
179 scale *= this_cpu_read(arch_max_freq_scale);
180 scale = div64_u64(scale >> SCHED_CAPACITY_SHIFT,
183 scale = min_t(unsigned long, scale, SCHED_CAPACITY_SCALE);
184 this_cpu_write(arch_freq_scale, (unsigned long)scale);
/linux-master/sound/pci/ctxfi/
H A Dctamixer.h62 int (*set_scale)(struct amixer *amixer, unsigned int scale);
69 unsigned int scale, struct sum *sum);
/linux-master/drivers/leds/
H A Dleds-lp8788.c31 enum lp8788_isink_scale scale; member in struct:lp8788_led_config
37 .scale = LP8788_ISINK_SCALE_100mA,
50 cfg->scale = pdata->scale;
57 /* scale configuration */
60 val = cfg->scale << (cfg->num + LP8788_ISINK_SCALE_OFFSET);
/linux-master/drivers/gpu/drm/sprd/
H A Dmegacores_pll.c219 const u32 scale = 100; local
226 t_ui = 1000 * scale / (pll->freq / 1000);
236 range[L] = 50 * scale;
243 range[L] = 38 * scale;
244 range[H] = 95 * scale;
247 range[L] = 40 * scale + 4 * t_ui;
248 range[H] = 85 * scale + 6 * t_ui;
254 range[L] = 300 * scale;
258 range[L] = 145 * scale + 10 * t_ui;
265 range[L] = 60 * scale;
[all...]
/linux-master/tools/perf/tests/
H A Devent_update.c37 TEST_ASSERT_VAL("wrong scale", ev->scale.scale == 0.123);
101 evsel->scale = 0.123;
103 TEST_ASSERT_VAL("failed to synthesize attr update scale",
/linux-master/arch/x86/include/asm/
H A Dresctrl.h128 unsigned int scale = boot_cpu_data.x86_cache_occ_scale; local
131 val /= scale;
132 return val * scale;
/linux-master/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dipp.h54 uint16_t scale; member in struct:ipp_prescale_params
/linux-master/tools/testing/selftests/zram/
H A Dzram01.sh55 echo "zram compression ratio: $(echo "scale=2; $v / 100 " | bc):1: OK"
/linux-master/arch/arm/mach-omap2/
H A Dvoltage.c63 * voltdm_scale() - API to scale voltage of a particular voltage domain.
81 if (!voltdm->scale) {
82 pr_err("%s: No voltage scale API registered for vdd_%s\n",
107 ret = voltdm->scale(voltdm, volt);
262 voltdm->scale = omap_vc_bypass_scale;
267 voltdm->scale = omap_vp_forceupdate_scale;
/linux-master/drivers/media/common/siano/
H A Dsmsdvb-main.c136 c->strength.stat[0].scale = FE_SCALE_DECIBEL;
137 c->cnr.stat[0].scale = FE_SCALE_DECIBEL;
150 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE;
151 c->post_bit_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE;
152 c->block_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE;
153 c->block_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE;
279 c->block_error.stat[0].scale = FE_SCALE_COUNTER;
280 c->block_count.stat[0].scale = FE_SCALE_COUNTER;
285 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER;
286 c->post_bit_count.stat[0].scale
[all...]
/linux-master/drivers/clk/
H A Dclk-xgene.c207 * @reg: register containing the fractional scale multiplier (scaler)
241 u64 ret, scale; local
258 scale = (val & fd->mask) >> fd->shift;
260 scale = fd->denom - scale;
262 scale++;
266 ret *= scale;
277 u64 ret, scale; local
284 scale = DIV_ROUND_UP_ULL(ret, *parent_rate);
286 ret = (u64)*parent_rate * scale;
297 u64 scale, ret; local
[all...]

Completed in 964 milliseconds

1234567891011>>