Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 192 of 192) sorted by relevance

/linux-4.1.27/drivers/media/i2c/soc_camera/
Dtw9910.c233 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 …]
Drj54n1cb0c.c163 unsigned short scale; member
/linux-4.1.27/drivers/media/platform/coda/
Dcoda-jpeg.c195 static void coda_scale_quant_table(u8 *q_tab, int scale) in coda_scale_quant_table() argument
201 temp = DIV_ROUND_CLOSEST((unsigned int)q_tab[i] * scale, 100); in coda_scale_quant_table()
212 unsigned int scale; in coda_set_jpeg_compression_quality() local
227 scale = 5000 / quality; in coda_set_jpeg_compression_quality()
229 scale = 200 - 2 * quality; in coda_set_jpeg_compression_quality()
233 coda_scale_quant_table(ctx->params.jpeg_qmat_tab[0], scale); in coda_set_jpeg_compression_quality()
237 coda_scale_quant_table(ctx->params.jpeg_qmat_tab[1], scale); in coda_set_jpeg_compression_quality()
/linux-4.1.27/drivers/media/dvb-frontends/
Dmb86a20s.c1426 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR()
1470 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR()
1514 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR()
1566 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mb86a20s_stats_not_ready()
1571 c->cnr.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1572 c->pre_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1573 c->pre_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1574 c->post_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1575 c->post_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
1576 c->block_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_stats_not_ready()
[all …]
Drtl2830.c131 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()
432 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in rtl2830_read_snr()
462 if (c->strength.stat[0].scale == FE_SCALE_RELATIVE) in rtl2830_read_signal_strength()
533 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in rtl2830_stat_work()
536 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_stat_work()
575 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2830_stat_work()
578 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_stat_work()
[all …]
Dtc90522.c259 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tc90522s_get_frontend()
285 stats->stat[0].scale = FE_SCALE_DECIBEL; in tc90522s_get_frontend()
295 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; in tc90522s_get_frontend()
298 stats->stat[i].scale = FE_SCALE_COUNTER; in tc90522s_get_frontend()
308 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; in tc90522s_get_frontend()
311 stats->stat[i].scale = FE_SCALE_COUNTER; in tc90522s_get_frontend()
418 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tc90522t_get_frontend()
446 stats->stat[0].scale = FE_SCALE_DECIBEL; in tc90522t_get_frontend()
456 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; in tc90522t_get_frontend()
459 stats->stat[i].scale = FE_SCALE_COUNTER; in tc90522t_get_frontend()
[all …]
Daf9033.c460 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
462 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
464 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
466 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
468 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
470 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
877 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) { in af9033_read_snr()
1084 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in af9033_stat_work()
1088 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_stat_work()
1159 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in af9033_stat_work()
[all …]
Drtl2832.c392 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init()
394 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init()
396 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init()
398 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init()
720 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in rtl2832_read_snr()
761 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in rtl2832_stat_work()
764 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_stat_work()
803 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2832_stat_work()
806 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_stat_work()
821 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in rtl2832_stat_work()
[all …]
Ddib7000p.c1670 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in dib7000p_reset_stats()
1673 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1674 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1675 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1676 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1677 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1905 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_get_stats()
1906 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_get_stats()
1907 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_get_stats()
1908 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_get_stats()
[all …]
Ddrxk_hard.c6403 p->strength.stat[0].scale = FE_SCALE_RELATIVE; in drxk_set_parameters()
6404 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in drxk_set_parameters()
6405 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in drxk_set_parameters()
6406 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in drxk_set_parameters()
6407 p->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in drxk_set_parameters()
6408 p->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in drxk_set_parameters()
6409 p->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in drxk_set_parameters()
6410 p->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in drxk_set_parameters()
6553 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in drxk_get_stats()
6559 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in drxk_get_stats()
[all …]
Ddib8000.c1010 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in dib8000_reset_stats()
1013 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1014 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1015 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1016 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1017 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
4118 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4119 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4120 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4121 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
[all …]
Dsi2168.c132 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in si2168_read_status()
136 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2168_read_status()
/linux-4.1.27/drivers/media/common/siano/
Dsmsdvb-main.c147 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 …]
/linux-4.1.27/Documentation/video4linux/
Dsh_mobile_ceu_camera.txt53 (3) to (3') - sensor scale
56 (5) to (5') - reverse sensor scale applied to CEU cropped width or height
57 (2) to (5) - reverse sensor scale applied to CEU cropped left or top
58 (6) to (6') - CEU scale - user window
105 10. Use CEU scaling to scale to the requested user window:
131 4. Sensor scaled to 3 : 3'. Sensor's scale is (2' - 2) / (3' - 3). Calculate
134 5. Calculate and apply host scale = (6' - 6) / (4' - 4)
Dvivid.txt29 - Supports crop/compose/scale in any combination for both input and output
194 bit 2: Enable scaling support. Scaling can scale the incoming
217 bit 2: Enable scaling support. Scaling can scale the incoming
242 controls that select crop, compose and scale behavior are also
970 (4096 * 4) x (2160 x 4), but it can only scale up or down by a factor of 4 or
/linux-4.1.27/drivers/leds/
Dleds-lp8788.c37 enum lp8788_isink_scale scale; member
43 .scale = LP8788_ISINK_SCALE_100mA,
56 cfg->scale = pdata->scale; in lp8788_led_init_device()
66 val = cfg->scale << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device()
/linux-4.1.27/tools/perf/util/
Dpmu.c97 char scale[128]; in perf_pmu__parse_scale() local
111 sret = read(fd, scale, sizeof(scale)-1); in perf_pmu__parse_scale()
115 scale[sret] = '\0'; in perf_pmu__parse_scale()
128 alias->scale = strtod(scale, NULL); in perf_pmu__parse_scale()
217 alias->scale = 1.0; in perf_pmu__new_alias()
724 (info->scale && alias->scale) || in check_info_data()
731 if (alias->scale) in check_info_data()
732 info->scale = alias->scale; in check_info_data()
758 info->scale = 0.0; in perf_pmu__check_alias()
788 if (info->scale == 0.0) in perf_pmu__check_alias()
[all …]
Dpmu.h31 double scale; member
43 double scale; member
Devsel.h74 double scale; member
117 bool scale, s8 *pscaled);
247 int cpu, int thread, bool scale);
Devsel.c207 evsel->scale = 1.0; in perf_evsel__init()
938 bool scale, s8 *pscaled) in perf_counts_values__scale() argument
942 if (scale) { in perf_counts_values__scale()
974 int cpu, int thread, bool scale) in __perf_evsel__read_on_cpu() argument
977 size_t nv = scale ? 3 : 1; in __perf_evsel__read_on_cpu()
989 perf_counts_values__scale(&count, scale, NULL); in __perf_evsel__read_on_cpu()
Dparse-events.c670 evsel->scale = info.scale; in parse_events_add_pmu()
/linux-4.1.27/kernel/sched/
Dproc.c472 int i, scale; in __update_cpu_load() local
478 for (i = 1, scale = 2; i < CPU_LOAD_IDX_MAX; i++, scale += scale) { in __update_cpu_load()
492 new_load += scale - 1; in __update_cpu_load()
494 this_rq->cpu_load[i] = (old_load * (scale - 1) + new_load) >> i; in __update_cpu_load()
Dfair.c5018 int scale = cfs_rq->nr_running >= sched_nr_latency; in check_preempt_wakeup() local
5033 if (sched_feat(NEXT_BUDDY) && scale && !(wake_flags & WF_FORK)) { in check_preempt_wakeup()
5092 if (sched_feat(LAST_BUDDY) && scale && entity_is_task(se)) in check_preempt_wakeup()
/linux-4.1.27/sound/oss/
Dsys_timer.c41 unsigned long scale; in tmr2ticks() local
46 scale = (60 * 1000000) / (curr_tempo * curr_timebase); /* usecs per MIDI tick */ in tmr2ticks()
47 return (tmp + scale / 2) / scale; in tmr2ticks()
Dsound_timer.c38 unsigned long scale; in tmr2ticks() local
41 scale = (60 * 1000000) / (curr_tempo * curr_timebase); /* usecs per MIDI tick */ in tmr2ticks()
42 return (tmp + (scale / 2)) / scale; in tmr2ticks()
/linux-4.1.27/arch/arm/mach-omap2/
Dvoltage.c84 if (!voltdm->scale) { in voltdm_scale()
104 ret = voltdm->scale(voltdm, volt); in voltdm_scale()
259 voltdm->scale = omap_vc_bypass_scale; in omap_voltage_late_init()
264 voltdm->scale = omap_vp_forceupdate_scale; in omap_voltage_late_init()
Dvoltage.h86 int (*scale) (struct voltagedomain *voltdm, member
/linux-4.1.27/arch/blackfin/include/asm/
Ddelay.h33 static inline unsigned long __to_delay(unsigned long scale) in __to_delay() argument
36 return (((scale * HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6; in __to_delay()
/linux-4.1.27/tools/iio/
Dgeneric_buffer.c81 printf("%05f ", ((float)val + info->offset)*info->scale); in print2byte()
86 printf("%05f ", ((float)val + info->offset)*info->scale); in print2byte()
116 channels[k].scale); in process_scan()
129 if (channels[k].scale == 1.0f && in process_scan()
135 channels[k].scale); in process_scan()
Diio_utils.h38 float scale; member
Diio_utils.c348 current->scale = 1.0; in build_channel_array()
379 ret = iioutils_get_param_float(&current->scale, in build_channel_array()
/linux-4.1.27/drivers/power/
Dds2760_battery.c125 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()
/linux-4.1.27/arch/mips/alchemy/common/
Dclock.c368 int scale, int maxdiv, unsigned long *rv) in alchemy_calc_div() argument
376 if (scale == 2) { /* only div-by-multiple-of-2 possible */ in alchemy_calc_div()
381 div2 = (div1 / scale) - 1; /* value to write to register */ in alchemy_calc_div()
388 div1 = ((div2 + 1) * scale); in alchemy_calc_div()
395 int scale, int maxdiv) in alchemy_clk_fgcs_detr() argument
429 tdv = alchemy_calc_div(rate, pr, scale, maxdiv, NULL); in alchemy_clk_fgcs_detr()
450 for (j = (maxdiv == 4) ? 1 : scale; j <= maxdiv; j += scale) { in alchemy_clk_fgcs_detr()
456 tdv = alchemy_calc_div(rate, pr, scale, maxdiv, NULL); in alchemy_clk_fgcs_detr()
706 int scale, maxdiv; in alchemy_clk_fgv2_detr() local
709 scale = 1; in alchemy_clk_fgv2_detr()
[all …]
/linux-4.1.27/drivers/spi/
Dspi-fsl-dspi.c154 int scale_needed, scale, minscale = INT_MAX; in hz_to_spi_baud() local
163 scale = brs[i] * pbr_tbl[j]; in hz_to_spi_baud()
164 if (scale >= scale_needed) { in hz_to_spi_baud()
165 if (scale < minscale) { in hz_to_spi_baud()
166 minscale = scale; in hz_to_spi_baud()
186 int scale_needed, scale, minscale = INT_MAX; in ns_delay_scale() local
197 scale = pscale_tbl[i] * (2 << j); in ns_delay_scale()
198 if (scale >= scale_needed) { in ns_delay_scale()
199 if (scale < minscale) { in ns_delay_scale()
200 minscale = scale; in ns_delay_scale()
Dspi-pxa2xx.c696 unsigned long scale; in quark_x1000_get_clk_div() local
712 scale = fls_long(q1 - 1); in quark_x1000_get_clk_div()
713 if (scale > 9) { in quark_x1000_get_clk_div()
714 q1 >>= scale - 9; in quark_x1000_get_clk_div()
715 mul >>= scale - 9; in quark_x1000_get_clk_div()
723 scale = __ffs(q1); in quark_x1000_get_clk_div()
724 q1 >>= scale; in quark_x1000_get_clk_div()
725 mul >>= scale; in quark_x1000_get_clk_div()
/linux-4.1.27/mm/
Dvmpressure.c114 unsigned long scale = scanned + reclaimed; in vmpressure_calc_level() local
124 pressure = scale - (reclaimed * scale / scanned); in vmpressure_calc_level()
125 pressure = pressure * 100 / scale; in vmpressure_calc_level()
Dpage_alloc.c6068 int scale, in alloc_large_system_hash() argument
6089 if (scale > PAGE_SHIFT) in alloc_large_system_hash()
6090 numentries >>= (scale - PAGE_SHIFT); in alloc_large_system_hash()
6092 numentries <<= (PAGE_SHIFT - scale); in alloc_large_system_hash()
/linux-4.1.27/arch/powerpc/kernel/
Dvecemu.c154 static int ctsxs(unsigned int x, int scale, unsigned int *vscrp) in ctsxs() argument
162 exp = exp - 127 + scale; in ctsxs()
167 if (x + (scale << 23) != 0xcf000000) in ctsxs()
176 static unsigned int ctuxs(unsigned int x, int scale, unsigned int *vscrp) in ctuxs() argument
185 exp = exp - 127 + scale; in ctuxs()
Dtime.c924 u64 scale; in time_init() local
956 scale = res.result_low; in time_init()
958 scale = (scale >> 1) | (res.result_high << 63); in time_init()
961 tb_to_ns_scale = scale; in time_init()
/linux-4.1.27/drivers/media/platform/soc_camera/
Dsoc_scale_crop.h26 unsigned int shift, unsigned int scale) in soc_camera_shift_scale() argument
28 return DIV_ROUND_CLOSEST(size << shift, scale); in soc_camera_shift_scale()
Dsh_mobile_ceu_camera.c648 static unsigned int size_dst(unsigned int src, unsigned int scale) in size_dst() argument
650 unsigned int mant_pre = scale >> 12; in size_dst()
651 if (!src || !scale) in size_dst()
654 mant_pre * 4096 / scale + 1; in size_dst()
659 u16 scale; in calc_scale() local
664 scale = (src * 4096 / *dst) & ~7; in calc_scale()
666 while (scale > 4096 && size_dst(src, scale) < *dst) in calc_scale()
667 scale -= 8; in calc_scale()
669 *dst = size_dst(src, scale); in calc_scale()
671 return scale; in calc_scale()
[all …]
/linux-4.1.27/drivers/video/backlight/
Dpwm_bl.c36 unsigned int scale; member
89 return (duty_cycle * (pb->period - lth) / pb->scale) + lth; in compute_duty_cycle()
230 if (data->levels[i] > pb->scale) in pwm_backlight_probe()
231 pb->scale = data->levels[i]; in pwm_backlight_probe()
235 pb->scale = data->max_brightness; in pwm_backlight_probe()
305 pb->lth_brightness = data->lth_brightness * (pb->period / pb->scale); in pwm_backlight_probe()
/linux-4.1.27/drivers/gpu/drm/i2c/
Dch7006_mode.c106 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()
Dch7006_drv.c233 if (~mode->valid_scales & 1<<priv->scale || in ch7006_encoder_get_modes()
274 priv->scale); in ch7006_encoder_create_resources()
349 priv->scale = val; in ch7006_encoder_set_property()
460 priv->scale = 1; in ch7006_encoder_init()
483 priv->scale = ch7006_scale; in ch7006_encoder_init()
541 module_param_named(scale, ch7006_scale, int, 0600);
542 MODULE_PARM_DESC(scale, "Default scale.\n"
Dch7006_priv.h96 int scale; member
/linux-4.1.27/sound/isa/gus/
Dgus_volume.c197 int scale = 0;
200 scale++;
209 while (scale--)
/linux-4.1.27/arch/m68k/math-emu/
Dfp_arith.c658 int scale, oldround; in fp_fscale() local
685 scale = fp_conv_ext2long(src); in fp_fscale()
689 scale += dest->exp; in fp_fscale()
691 if (scale >= 0x7fff) { in fp_fscale()
693 } else if (scale <= 0) { in fp_fscale()
695 fp_denormalize(dest, -scale); in fp_fscale()
697 dest->exp = scale; in fp_fscale()
Dfp_decode.h157 move.w %d2,%d1 | scale factor
/linux-4.1.27/sound/pci/ctxfi/
Dctamixer.h66 int (*set_scale)(struct amixer *amixer, unsigned int scale);
73 unsigned int scale, struct sum *sum);
Dctamixer.c180 unsigned int scale, struct sum *sum) in amixer_setup() argument
183 amixer_set_y(amixer, scale); in amixer_setup()
/linux-4.1.27/drivers/tty/serial/
Dar933x_uart.c188 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()
/linux-4.1.27/drivers/pcmcia/
Dcistpl.c665 u_char scale; in parse_device() local
710 scale = *p & 7; in parse_device()
711 if (scale == 7) in parse_device()
713 device->dev[i].size = ((*p >> 3) + 1) * (512 << (scale*2)); in parse_device()
912 u_int scale; in parse_power() local
924 scale = POWER_SCALE(*p); in parse_power()
930 (*p & 0x7f) * scale / 100; in parse_power()
948 u_char scale; in parse_timing() local
952 scale = *p; in parse_timing()
953 if ((scale & 3) != 3) { in parse_timing()
[all …]
/linux-4.1.27/drivers/hwmon/
Dmax197.c55 bool scale; member
196 if (data->scale) { in max197_show_input()
286 data->scale = true; in max197_probe()
289 data->scale = false; in max197_probe()
Dadm1025.c94 #define IN_FROM_REG(reg, scale) (((reg) * (scale) + 96) / 192) argument
95 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \ argument
96 (val) * 192 >= (scale) * 255 ? 255 : \
97 ((val) * 192 + (scale) / 2) / (scale))
Dlm87.c122 #define IN_FROM_REG(reg, scale) (((reg) * (scale) + 96) / 192) argument
123 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \ argument
124 (val) * 192 >= (scale) * 255 ? 255 : \
125 ((val) * 192 + (scale) / 2) / (scale))
Dnct6683.c479 int scale = 16; in in_from_reg() local
483 scale <<= 1; in in_from_reg()
484 return reg * scale; in in_from_reg()
489 int scale = 16; in in_to_reg() local
493 scale <<= 1; in in_to_reg()
495 return clamp_val(DIV_ROUND_CLOSEST(val, scale), 0, 127); in in_to_reg()
/linux-4.1.27/drivers/iio/
Dinkern.c508 int raw, int *processed, unsigned int scale) in iio_convert_raw_to_processed_unlocked() argument
532 *processed += div_s64(raw64 * (s64)scale_val2 * scale, in iio_convert_raw_to_processed_unlocked()
540 *processed += div_s64(raw64 * (s64)scale_val2 * scale, in iio_convert_raw_to_processed_unlocked()
544 *processed = div_s64(raw64 * (s64)scale_val * scale, in iio_convert_raw_to_processed_unlocked()
548 *processed = (raw64 * (s64)scale_val * scale) >> scale_val2; in iio_convert_raw_to_processed_unlocked()
558 int *processed, unsigned int scale) in iio_convert_raw_to_processed() argument
569 scale); in iio_convert_raw_to_processed()
/linux-4.1.27/net/ipv4/
Dtcp_htcp.c185 u32 scale = (HZ << 3) / (10 * minRTT); in htcp_alpha_update() local
188 scale = min(max(scale, 1U << 2), 10U << 3); in htcp_alpha_update()
189 factor = (factor << 3) / scale; in htcp_alpha_update()
Dtcp_cubic.c314 u32 scale = beta_scale; in bictcp_update() local
316 delta = (cwnd * scale) >> 3; in bictcp_update()
/linux-4.1.27/arch/x86/kernel/
Dapb_timer.c369 int i, scale; in apbt_quick_calibrate() local
411 scale = (int)div_u64((t2 - t1), loop >> shift); in apbt_quick_calibrate()
412 khz = (scale * (apbt_freq / 1000)) >> shift; in apbt_quick_calibrate()
/linux-4.1.27/kernel/time/
Dclocksource.c660 void __clocksource_update_freq_scale(struct clocksource *cs, u32 scale, u32 freq) in __clocksource_update_freq_scale() argument
680 do_div(sec, scale); in __clocksource_update_freq_scale()
687 NSEC_PER_SEC / scale, sec * scale); in __clocksource_update_freq_scale()
727 int __clocksource_register_scale(struct clocksource *cs, u32 scale, u32 freq) in __clocksource_register_scale() argument
731 __clocksource_update_freq_scale(cs, scale, freq); in __clocksource_register_scale()
Dtimeconst.bc1 scale=0
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-bus-event_source-devices-events36 and '.scale') in the 'events' directory describes a single
73 (once multiplied by <event>.scale) represents.
79 What: /sys/bus/event_source/devices/<pmu>/events/<event>.scale
Dsysfs-bus-iio82 application of scale and offset are millivolts.
93 of scale and offset are millivolts.
105 application of scale and offset are milliamps.
112 application of scale and offset are nanofarads.
123 of scale and offset are nanofarads.
139 less measurements. Units after application of scale and offset
157 after application of scale and offset are m/s^2.
167 Units after application of scale and offset are radians per
178 and scale to degrees.
188 then scale to Gauss.
[all …]
/linux-4.1.27/include/linux/
Dclocksource.h201 __clocksource_register_scale(struct clocksource *cs, u32 scale, u32 freq);
203 __clocksource_update_freq_scale(struct clocksource *cs, u32 scale, u32 freq);
Dbootmem.h346 int scale,
/linux-4.1.27/drivers/mfd/
Dwm8350-core.c188 int wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale, int vref) in wm8350_read_auxadc() argument
195 && (scale != 0 || vref != 0)) in wm8350_read_auxadc()
204 if (scale || vref) { in wm8350_read_auxadc()
205 reg = scale << 13; in wm8350_read_auxadc()
/linux-4.1.27/include/linux/mfd/
Dlp8788.h261 enum lp8788_isink_scale scale; member
276 enum lp8788_isink_scale scale; member
/linux-4.1.27/Documentation/hwmon/
Dabituguru-datasheet200 Volt sensors use a linear scale, a reading 0 corresponds with 0 volt and a
206 Temp sensors also use a linear scale, a reading of 0 corresponds with 0 degree
237 Temp sensor: warning threshold (scale as bank 0x21)
238 Volt sensor: min threshold (scale as bank 0x21)
241 Temp sensor: shutdown threshold (scale as bank 0x21)
242 Volt sensor: max threshold (scale as bank 0x21)
267 Low threshold temp (scale as bank 0x21)
270 High threshold temp (scale as bank 0x21)
299 min threshold (scale as bank 0x26)
Dtmp10317 wafer chip-scale package (WCSP). The TMP103 is capable of reading
Dadm102662 dedicated inputs. There are several inputs scaled to 0-3V full-scale range
64 a 0-2.5V full-scale range. A 2.5V or 1.82V reference voltage is provided
Dmax19742 4 RNG Full-scale voltage magnitude at the input
Dads101545 - pga is the programmable gain amplifier (values are full scale)
Dadt746263 The ADT7462 will scale the pwm between the lower and higher pwm speed when
Dadt747062 The ADT7470 will scale the pwm between the lower and higher pwm speed when
Dina20922 calibration multiplier to scale the displayed current and power values.
Dk10temp67 arbitrary scale measured in degrees. It does _not_ represent an actual
Dadt7475101 The ADT747x will scale the PWM linearly between the lower and higher PWM
Df71882fg104 Since both modes work in a 0-100% (mapped to 0-255) scale, there isn't a
Dsysfs-interface137 do scale, because of internal resistors built into a chip.
/linux-4.1.27/drivers/gpu/drm/
Ddrm_rect.c101 int scale = 0; in drm_calc_scale() local
109 scale = src / dst; in drm_calc_scale()
111 return scale; in drm_calc_scale()
/linux-4.1.27/include/linux/platform_data/
Dvideo-nuc900fb.h67 unsigned int scale; member
/linux-4.1.27/drivers/gpu/ipu-v3/
Dipu-ic.c179 u8 scale:2; /* scale coefficients * 2^(scale-1) */ member
195 .scale = 1,
205 .scale = 2,
220 .scale = 2,
257 param = ((a[0] & 0x1fe0) >> 5) | (params->scale << 8) | in init_csc()
/linux-4.1.27/drivers/iio/imu/
Dadis16480.c390 const struct iio_chan_spec *chan, int scale) in adis16480_set_calibscale() argument
395 if (scale < -0x8000 || scale >= 0x8000) in adis16480_set_calibscale()
398 return adis_write_reg_16(&st->adis, reg, scale); in adis16480_set_calibscale()
402 const struct iio_chan_spec *chan, int *scale) in adis16480_get_calibscale() argument
413 *scale = sign_extend32(val16, 15); in adis16480_get_calibscale()
/linux-4.1.27/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.c1107 static const u8 scale = 15; in log1_times100() local
1161 if ((x & (((u32) (-1)) << (scale + 1))) == 0) { in log1_times100()
1162 for (k = scale; k > 0; k--) { in log1_times100()
1163 if (x & (((u32) 1) << scale)) in log1_times100()
1168 for (k = scale; k < 31; k++) { in log1_times100()
1169 if ((x & (((u32) (-1)) << (scale + 1))) == 0) in log1_times100()
1179 y = k * ((((u32) 1) << scale) * 200); in log1_times100()
1182 x &= ((((u32) 1) << scale) - 1); in log1_times100()
1184 i = (u8) (x >> (scale - index_width)); in log1_times100()
1186 d = x & ((((u32) 1) << (scale - index_width)) - 1); in log1_times100()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/spi/
Dspi_oc_tiny.txt8 - baud-width: width, in bits, of the programmable divider used to scale
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dar9003_paprd.c74 unsigned int power, scale, delta; in ar9003_get_training_power_2g() local
76 scale = ar9003_get_paprd_scale_factor(ah, chan); in ar9003_get_training_power_2g()
88 if (delta > scale) in ar9003_get_training_power_2g()
102 unsigned int power, scale, delta; in ar9003_get_training_power_5g() local
104 scale = ar9003_get_paprd_scale_factor(ah, chan); in ar9003_get_training_power_5g()
113 power += scale; in ar9003_get_training_power_5g()
115 if (delta > scale) in ar9003_get_training_power_5g()
/linux-4.1.27/fs/logfs/
DKconfig9 Flash filesystem aimed to scale efficiently to large devices.
/linux-4.1.27/drivers/sbus/char/
Denvctrl.c148 unsigned int scale; member
328 int scale, char *tbl, char *bufdata) in envctrl_i2c_data_translate() argument
347 sprintf(bufdata,"%d ", (tbl[data] * 10) / (scale)); in envctrl_i2c_data_translate()
390 pchild->tblprop_array[i].scale, in envctrl_read_cpu_info()
421 pchild->tblprop_array[i].scale, in envctrl_read_noncpu_info()
/linux-4.1.27/arch/sparc/kernel/
Dvisemul.c479 unsigned long rs1, rs2, gsr, scale, rd_val; in pformat() local
482 scale = (gsr >> 3) & (opf == FPACK16_OPF ? 0xf : 0x1f); in pformat()
492 int scaled = src << scale; in pformat()
515 s64 scaled = src << scale; in pformat()
538 s64 scaled = src << scale; in pformat()
/linux-4.1.27/include/linux/iio/
Dconsumer.h207 int *processed, unsigned int scale);
/linux-4.1.27/tools/perf/
Dbuiltin-stat.c125 static bool scale = true; variable
298 if (scale) in create_perf_stat_counter()
449 perf_counts_values__scale(count, scale, NULL); in read_cb()
456 if (scale) { in read_cb()
487 perf_counts_values__scale(aggr, scale, &counter->counts->scaled); in read_counter_aggr()
1060 double sc = evsel->scale; in abs_printout()
1278 uval = val * counter->scale; in print_aggr()
1332 uval = avg * counter->scale; in print_counter_aggr()
1388 uval = val * counter->scale; in print_counter()
1733 OPT_BOOLEAN('c', "scale", &scale, "scale/normalize counters"), in cmd_stat()
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_intel_rapl.c437 RAPL_EVENT_ATTR_STR(energy-cores.scale, rapl_cores_scale, "2.3283064365386962890625e-10");
438 RAPL_EVENT_ATTR_STR(energy-pkg.scale, rapl_pkg_scale, "2.3283064365386962890625e-10");
439 RAPL_EVENT_ATTR_STR(energy-ram.scale, rapl_ram_scale, "2.3283064365386962890625e-10");
440 RAPL_EVENT_ATTR_STR(energy-gpu.scale, rapl_gpu_scale, "2.3283064365386962890625e-10");
Dperf_event_intel_cqm.c1139 EVENT_ATTR_STR(llc_occupancy.scale, intel_cqm_llc_scale, NULL);
1314 char *str, scale[20]; in intel_cqm_init() local
1356 snprintf(scale, sizeof(scale), "%u", cqm_l3_scale); in intel_cqm_init()
1357 str = kstrdup(scale, GFP_KERNEL); in intel_cqm_init()
Dperf_event_intel_uncore_snb.c160 INTEL_UNCORE_EVENT_DESC(data_reads.scale, "6.103515625e-5"),
164 INTEL_UNCORE_EVENT_DESC(data_writes.scale, "6.103515625e-5"),
Dperf_event_intel_uncore_snbep.c452 INTEL_UNCORE_EVENT_DESC(cas_count_read.scale, "6.103515625e-5"),
455 INTEL_UNCORE_EVENT_DESC(cas_count_write.scale, "6.103515625e-5"),
2054 INTEL_UNCORE_EVENT_DESC(cas_count_read.scale, "6.103515625e-5"),
2057 INTEL_UNCORE_EVENT_DESC(cas_count_write.scale, "6.103515625e-5"),
/linux-4.1.27/include/linux/mfd/wm8350/
Dcomparator.h172 int wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale,
/linux-4.1.27/arch/m68k/fpsp040/
DMakefile8 smovecr.o srem_mod.o scale.o \
Dscale.S2 | scale.sa 3.3 7/30/91
15 | Output: The function returns scale(X,Y) to fp0.
Dgen_except.S245 | Only scosh, setox, ssinh, stwotox, and scale can set overflow in
248 | Stwotox, setox, and scale can set underflow in this manner.
/linux-4.1.27/drivers/misc/lis3lv02d/
Dlis3lv02d.c209 position[i] = (position[i] * lis3->scale) / LIS3_ACCURACY; in lis3lv02d_get_xyz()
712 max_val = (lis3->mdps_max_val * lis3->scale) / LIS3_ACCURACY; in lis3lv02d_joystick_enable()
720 fuzz = (fuzz * lis3->scale) / LIS3_ACCURACY; in lis3lv02d_joystick_enable()
721 flat = (flat * lis3->scale) / LIS3_ACCURACY; in lis3lv02d_joystick_enable()
1133 lis3->scale = LIS3_SENSITIVITY_12B; in lis3lv02d_init_device()
1144 lis3->scale = LIS3_SENSITIVITY_8B; in lis3lv02d_init_device()
1155 lis3->scale = LIS3_SENSITIVITY_8B; in lis3lv02d_init_device()
1165 lis3->scale = LIS3DLH_SENSITIVITY_2G; in lis3lv02d_init_device()
Dlis3lv02d.h292 int scale; /* member
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_hqvdp.c439 static void sti_hqvdp_update_hvsrc(enum sti_hvsrc_orient orient, int scale, in sti_hqvdp_update_hvsrc() argument
446 if (scale < SCALE_MAX_FOR_LEG_LUT_F) { in sti_hqvdp_update_hvsrc()
451 } else if (scale < SCALE_MAX_FOR_LEG_LUT_E) { in sti_hqvdp_update_hvsrc()
456 } else if (scale < SCALE_MAX_FOR_LEG_LUT_D) { in sti_hqvdp_update_hvsrc()
461 } else if (scale < SCALE_MAX_FOR_LEG_LUT_C) { in sti_hqvdp_update_hvsrc()
466 } else if (scale == SCALE_MAX_FOR_LEG_LUT_C) { in sti_hqvdp_update_hvsrc()
/linux-4.1.27/Documentation/
Dlogo.txt8 scale down to smaller sizes and are better for letterheads or whatever
Dkasan.txt150 (e.g. 16TB to cover 128TB on x86_64) and uses direct mapping with a scale and
Drbtree.txt14 hash function where rbtrees scale gracefully storing arbitrary keys).
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
Ddfp.c379 uint32_t diff, scale; in nv04_dfp_mode_set() local
387 scale = (1 << 12) * adjusted_mode->vdisplay / output_mode->vdisplay; in nv04_dfp_mode_set()
389 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_XSCALE_VALUE); in nv04_dfp_mode_set()
403 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; in nv04_dfp_mode_set()
405 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_YSCALE_VALUE); in nv04_dfp_mode_set()
/linux-4.1.27/drivers/media/tuners/
Dmxl301rf.c88 rssi->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl301rf_get_rf_strength()
112 rssi->stat[0].scale = FE_SCALE_DECIBEL; in mxl301rf_get_rf_strength()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_legacy_crtc.c58 u32 scale, inc, crtc_more_cntl; in radeon_legacy_rmx_mode_set() local
132 scale = ((xres + inc) * RADEON_HORZ_STRETCH_RATIO_MAX) in radeon_legacy_rmx_mode_set()
134 fp_horz_stretch |= (((scale) & RADEON_HORZ_STRETCH_RATIO_MASK) | in radeon_legacy_rmx_mode_set()
144 scale = ((yres + inc) * RADEON_VERT_STRETCH_RATIO_MAX) in radeon_legacy_rmx_mode_set()
146 fp_vert_stretch |= (((scale) & RADEON_VERT_STRETCH_RATIO_MASK) | in radeon_legacy_rmx_mode_set()
/linux-4.1.27/drivers/staging/iio/accel/
Dsca3000.h209 unsigned int scale; member
Dsca3000_core.c45 .scale = 7357,
54 .scale = 9810,
62 .scale = 19620,
72 .scale = 61313,
492 *val2 = st->info->scale; in sca3000_read_raw()
Dsca3000_ring.c211 return sprintf(buf, "0.%06d\n", 4*st->info->scale); in sca3000_show_buffer_scale()
/linux-4.1.27/drivers/macintosh/
Dwindfarm_pm81.c251 s32 scale; member
428 wf_smu_cpu_fans->scale = WF_SMU_CPU_FANS_SIBLING_SCALE; in wf_smu_create_cpu_fans()
516 systarget = ((((s64)systarget) * (s64)st->scale) >> 12) in wf_smu_cpu_fans_tick()
/linux-4.1.27/drivers/net/irda/
Dvia-ircc.h502 static void Sdelay(__u16 scale) in Sdelay() argument
507 for (j = 0; j < scale; j++) { in Sdelay()
515 static void Tdelay(__u16 scale) in Tdelay() argument
520 for (j = 0; j < scale; j++) { in Tdelay()
/linux-4.1.27/Documentation/devicetree/bindings/hwmon/
Dads1015.txt18 - pga is the programmable gain amplifier (values are full scale)
/linux-4.1.27/arch/m68k/ifpsp060/src/
Dfpsp.S9573 # fp0 = scale(X,Y) #
10166 # Entry point for scale w/ extended denorm. The function does
10269 # - t_ovfl_sc() is provided for scale() which only sets #
11528 # scale_to_zero_src() - scale src exponent to zero #
11529 # scale_to_zero_dst() - scale dst exponent to zero #
11547 # For norms/denorms, scale the exponents such that a multiply #
11642 sub.l %d0,%d1 # add scale factor
12025 # scale_to_zero_src() - scale src exponent to zero #
12043 # sgl/dbl, must scale exponent and perform an "fmove". Check to see #
12284 sub.l %d0,%d1 # add scale factor
[all …]
Disp.S1358 andi.l &0x3,%d2 # extract scale value
1360 lsl.l %d2,%d1 # shift index by scale
Dpfpsp.S4974 andi.l &0x3,%d1 # extract scale value
4976 lsl.l %d1,%d0 # shift index by scale
/linux-4.1.27/drivers/acpi/
Dsbs.c126 int scale = 1; in battery_scale() local
128 scale *= 10; in battery_scale()
129 return scale; in battery_scale()
/linux-4.1.27/drivers/message/fusion/
Dmptfc.c1185 int scale; in mptfc_probe() local
1275 scale = ioc->req_sz/ioc->SGE_size; in mptfc_probe()
1277 numSGE = (scale - 1) * in mptfc_probe()
1278 (ioc->facts.MaxChainDepth-1) + scale + in mptfc_probe()
1281 numSGE = 1 + (scale - 1) * in mptfc_probe()
1282 (ioc->facts.MaxChainDepth-1) + scale + in mptfc_probe()
Dmptspi.c1366 int scale; in mptspi_probe() local
1475 scale = ioc->req_sz/ioc->SGE_size; in mptspi_probe()
1477 numSGE = (scale - 1) * in mptspi_probe()
1478 (ioc->facts.MaxChainDepth-1) + scale + in mptspi_probe()
1481 numSGE = 1 + (scale - 1) * in mptspi_probe()
1482 (ioc->facts.MaxChainDepth-1) + scale + in mptspi_probe()
Dmptbase.c4310 int scale, num_sge, numSGE; in initChainBuffers() local
4346 scale = ioc->req_sz / ioc->SGE_size; in initChainBuffers()
4348 num_sge = scale + (ioc->req_sz - 60) / ioc->SGE_size; in initChainBuffers()
4350 num_sge = 1 + scale + (ioc->req_sz - 64) / ioc->SGE_size; in initChainBuffers()
4353 numSGE = (scale - 1) * (ioc->facts.MaxChainDepth-1) + scale + in initChainBuffers()
4356 numSGE = 1 + (scale - 1) * (ioc->facts.MaxChainDepth-1) + in initChainBuffers()
4357 scale + (ioc->req_sz - 64) / ioc->SGE_size; in initChainBuffers()
4373 num_sge += (scale - 1); in initChainBuffers()
Dmptsas.c5139 int scale; in mptsas_probe() local
5234 scale = ioc->req_sz/ioc->SGE_size; in mptsas_probe()
5236 numSGE = (scale - 1) * in mptsas_probe()
5237 (ioc->facts.MaxChainDepth-1) + scale + in mptsas_probe()
5240 numSGE = 1 + (scale - 1) * in mptsas_probe()
5241 (ioc->facts.MaxChainDepth-1) + scale + in mptsas_probe()
/linux-4.1.27/drivers/media/usb/s2255/
Ds2255drv.c147 u32 scale; /* output video scale */ member
873 mode.scale = SCALE_4CIFSI; in vidioc_s_fmt_vid_cap()
875 mode.scale = SCALE_4CIFS; in vidioc_s_fmt_vid_cap()
877 mode.scale = SCALE_2CIFS; in vidioc_s_fmt_vid_cap()
880 mode.scale = SCALE_1CIFS; in vidioc_s_fmt_vid_cap()
907 else if (mode.scale != vc->mode.scale) in vidioc_s_fmt_vid_cap()
943 switch (mode->scale) { in get_transfer_size()
961 switch (mode->scale) { in get_transfer_size()
999 dev_info(dev, "format: %d\nscale %d\n", mode->format, mode->scale); in s2255_print_cfg()
/linux-4.1.27/drivers/iio/accel/
Dbma180.c120 int scale; member
271 data->scale = val; in bma180_set_scale()
491 *val2 = data->scale; in bma180_read_raw()
Dkxcjk-1013.c194 u16 scale; member
663 if (KXCJK1013_scale_table[i].scale == val) { in kxcjk1013_set_scale()
726 *val2 = KXCJK1013_scale_table[data->range].scale; in kxcjk1013_read_raw()
Dbmc150-accel.c149 int scale; member
583 if (data->chip_info->scale_table[i].scale == val) { in bmc150_accel_set_scale()
694 *val2 = si->scale; in bmc150_accel_read_raw()
/linux-4.1.27/tools/perf/Documentation/
Dperf-stat.txt62 --scale::
63 scale/normalize counter values
/linux-4.1.27/include/uapi/drm/
Dexynos_drm.h188 __u32 scale; member
/linux-4.1.27/drivers/video/fbdev/nvidia/
Dnv_type.h60 u32 scale; member
Dnvidia.c423 state->scale = NV_RD32(par->PRAMDAC, 0x00000848) & 0xfff000ff; in nvidia_calc_regs()
429 state->scale |= (1 << 8); in nvidia_calc_regs()
Dnv_hw.c1599 NV_WR32(par->PRAMDAC, 0x0848, state->scale); in NVLoadStateExt()
1652 state->scale = NV_RD32(par->PRAMDAC, 0x0848); in NVUnloadStateExt()
/linux-4.1.27/include/linux/iio/common/
Dst_sensors.h276 int st_sensors_set_fullscale_by_gain(struct iio_dev *indio_dev, int scale);
/linux-4.1.27/drivers/media/usb/gspca/
Dsn9c20x.c1991 u8 fmt, scale = 0; in sd_start() local
2007 scale = 0xc0; in sd_start()
2011 scale = 0x80; in sd_start()
2015 scale = 0x90; in sd_start()
2019 scale = 0xa0; in sd_start()
2029 reg_w1(gspca_dev, 0x1189, scale); in sd_start()
/linux-4.1.27/drivers/input/
DKconfig116 screen resolution you are using to correctly scale the data. If
126 screen resolution you are using to correctly scale the data. If
/linux-4.1.27/arch/x86/math-emu/
Dfpu_trig.c1489 long scale; in fscale() local
1516 scale = signnegative(st1_ptr) ? -tmp.sigl : tmp.sigl; in fscale()
1517 scale += exponent16(st0_ptr); in fscale()
1519 setexponent16(st0_ptr, scale); in fscale()
/linux-4.1.27/drivers/input/mouse/
Dpsmouse.h75 void (*set_scale)(struct psmouse *psmouse, enum psmouse_scale scale);
Dfocaltech.c391 enum psmouse_scale scale) in focaltech_set_scale() argument
Dpsmouse-base.c461 static void psmouse_set_scale(struct psmouse *psmouse, enum psmouse_scale scale) in psmouse_set_scale() argument
464 scale == PSMOUSE_SCALE21 ? PSMOUSE_CMD_SETSCALE21 : in psmouse_set_scale()
/linux-4.1.27/arch/x86/crypto/
Dcrct10dif-pcl-asm_64.S74 # adjust the 16-bit initial_crc value, scale it to 32 bits
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_panel.c410 static uint32_t scale(uint32_t source_val, in scale() function
436 return scale(user_level, 0, user_max, in scale_user_to_hw()
448 hw_level = scale(user_level, 0, user_max, 0, panel->backlight.max); in clamp_user_to_hw()
460 return scale(hw_level, panel->backlight.min, panel->backlight.max, in scale_hw_to_user()
1150 return scale(min, 0, 255, 0, panel->backlight.max); in get_backlight_min_vbt()
/linux-4.1.27/drivers/iio/common/st_sensors/
Dst_sensors_core.c381 int st_sensors_set_fullscale_by_gain(struct iio_dev *indio_dev, int scale) in st_sensors_set_fullscale_by_gain() argument
387 if ((sdata->sensor_settings->fs.fs_avl[i].gain == scale) && in st_sensors_set_fullscale_by_gain()
/linux-4.1.27/drivers/powercap/
Dintel_rapl.c667 u64 scale = 1; in rapl_unit_xlate() local
678 scale = ENERGY_UNIT_SCALE; in rapl_unit_xlate()
693 return div64_u64(value, units) * scale; in rapl_unit_xlate()
697 return div64_u64(value, scale); in rapl_unit_xlate()
/linux-4.1.27/drivers/staging/lustre/
DREADME.txt10 can scale to thousands of clients, petabytes of storage and
/linux-4.1.27/drivers/iio/gyro/
Dbmg160.c130 int scale; member
447 if (bmg160_scale_table[i].scale == val) { in bmg160_set_scale()
561 *val2 = bmg160_scale_table[i].scale; in bmg160_read_raw()
/linux-4.1.27/Documentation/networking/mac80211_hwsim/
DREADME30 point and a station) or large scale tests (multiple access points with
/linux-4.1.27/include/uapi/linux/dvb/
Dfrontend.h516 __u8 scale; /* enum fecap_scale_params type */ member
/linux-4.1.27/sound/usb/
Dmixer.c540 DECLARE_TLV_DB_MINMAX(scale, 0, 0); in snd_usb_mixer_vol_tlv()
542 if (size < sizeof(scale)) in snd_usb_mixer_vol_tlv()
544 scale[2] = cval->dBmin; in snd_usb_mixer_vol_tlv()
545 scale[3] = cval->dBmax; in snd_usb_mixer_vol_tlv()
546 if (copy_to_user(_tlv, scale, sizeof(scale))) in snd_usb_mixer_vol_tlv()
Dmixer_quirks.c1838 static const DECLARE_TLV_DB_RANGE(scale, in snd_dragonfly_quirk_db_scale()
1852 kctl->tlv.p = scale; in snd_dragonfly_quirk_db_scale()
/linux-4.1.27/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c71 int sx, int sy, int ex, int ey, int scale) in solo_win_setup() argument
81 SOLO_VI_WIN_SCALE(scale)); in solo_win_setup()
/linux-4.1.27/Documentation/filesystems/
Dxfs-self-describing-metadata.txt10 adequate for supporting PB scale filesystems with billions of inodes, however it
25 few days to perform such forensic analysis, so for at this scale root cause
28 However, if we scale the filesystem up to 1PB, we now have 10x as much metadata
32 concern for supporting PB scale filesystems is minimising the time and effort
Docfs2.txt92 dir_resv_level= (*) By default, directory reservations will scale with file
Dubifs.txt72 would scale logarithmically as well. UBI2 would support the same API as UBI,
Dbtrfs.txt12 are becoming common in today's data centers. Filesystems need to scale
Dxfs-delayed-logging-design.txt610 commits must scale to many concurrent commits. The current transaction commit
/linux-4.1.27/arch/arm/mach-w90x900/
Ddev.c446 .scale = 0x04000400,
/linux-4.1.27/Documentation/input/
Damijoy.txt151 give a full scale (FF) reading with about 500kohms in one
Datarikbd.txt96 for each multiple of the scale factor.
283 This command sets the scale factor for the ABSOLUTE MOUSE POSITIONING mode.
578 0x8C mouse scale
Devent-codes.txt205 consecutive events is reliable on a reasonable time scale (hours).
/linux-4.1.27/Documentation/misc-devices/
Dlis3lv02d38 mode, joystick and sysfs position entry have the same scale. There can be
/linux-4.1.27/drivers/video/fbdev/riva/
Driva_hw.h502 U032 scale; member
Dfbdev.c793 newmode.ext.scale = NV_RD32(par->riva.PRAMDAC, 0x00000848) & in riva_load_video_mode()
797 newmode.ext.scale |= (1 << 8); in riva_load_video_mode()
817 newmode.ext.scale |= (1 << 8); in riva_load_video_mode()
Driva_hw.c1715 NV_WR32(chip->PRAMDAC, 0x00000848 , state->scale); in LoadStateExt()
1774 state->scale = NV_RD32(chip->PRAMDAC, 0x00000848); in UnloadStateExt()
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_nx.c1319 int scale, shift_amount, startword; in qla82xx_pci_mem_write_2M() local
1342 scale = 2; in qla82xx_pci_mem_write_2M()
1347 (i << shift_amount), &word[i * scale], 8)) in qla82xx_pci_mem_write_2M()
1384 temp = word[i * scale] & 0xffffffff; in qla82xx_pci_mem_write_2M()
1386 temp = (word[i * scale] >> 32) & 0xffffffff; in qla82xx_pci_mem_write_2M()
1388 temp = word[i*scale + 1] & 0xffffffff; in qla82xx_pci_mem_write_2M()
1391 temp = (word[i*scale + 1] >> 32) & 0xffffffff; in qla82xx_pci_mem_write_2M()
/linux-4.1.27/drivers/scsi/qla4xxx/
Dql4_nx.c1459 int scale, shift_amount, startword; in qla4_82xx_pci_mem_write_2M() local
1482 scale = 2; in qla4_82xx_pci_mem_write_2M()
1487 (i << shift_amount), &word[i * scale], 8)) in qla4_82xx_pci_mem_write_2M()
1525 temp = word[i * scale] & 0xffffffff; in qla4_82xx_pci_mem_write_2M()
1527 temp = (word[i * scale] >> 32) & 0xffffffff; in qla4_82xx_pci_mem_write_2M()
1529 temp = word[i*scale + 1] & 0xffffffff; in qla4_82xx_pci_mem_write_2M()
1532 temp = (word[i*scale + 1] >> 32) & 0xffffffff; in qla4_82xx_pci_mem_write_2M()
/linux-4.1.27/drivers/md/
Dmd.h655 extern int strict_strtoul_scaled(const char *cp, unsigned long *res, int scale);
Dmd.c3249 int strict_strtoul_scaled(const char *cp, unsigned long *res, int scale) in strict_strtoul_scaled() argument
3256 else if (decimals < scale) { in strict_strtoul_scaled()
3271 while (decimals < scale) { in strict_strtoul_scaled()
7086 int scale; in status_resync() local
7107 scale = 10; in status_resync()
7109 while ( max_sectors/2 > (1ULL<<(scale+32))) in status_resync()
7110 scale++; in status_resync()
7112 res = (resync>>scale)*1000; in status_resync()
7113 sector_div(res, (u32)((max_sectors>>scale)+1)); in status_resync()
/linux-4.1.27/drivers/net/wireless/b43/
Dphy_lp.c2508 u16 old_comm15, scale; in lpphy_b2063_tune() local
2586 scale = 1; in lpphy_b2063_tune()
2589 scale = 0; in lpphy_b2063_tune()
2593 b43_radio_maskset(dev, B2063_PLL_JTAG_PLL_CP2, 0xFFBF, scale << 6); in lpphy_b2063_tune()
2596 tmp6 *= (tmp5 * 8) * (scale + 1); in lpphy_b2063_tune()
2601 b43_radio_maskset(dev, B2063_PLL_JTAG_PLL_CP3, 0xFFDF, scale << 5); in lpphy_b2063_tune()
Dphy_n.c1666 static void b43_nphy_scale_offset_rssi(struct b43_wldev *dev, u16 scale, in b43_nphy_scale_offset_rssi() argument
1676 tmp = ((scale & 0x3F) << 8) | (offset & 0x3F); in b43_nphy_scale_offset_rssi()
4941 u16 scale, entry; in b43_nphy_update_tx_cal_ladder() local
4949 scale = (ladder_lo[i].percent * tmp) / 100; in b43_nphy_update_tx_cal_ladder()
4950 entry = ((scale & 0xFF) << 8) | ladder_lo[i].g_env; in b43_nphy_update_tx_cal_ladder()
4953 scale = (ladder_iq[i].percent * tmp) / 100; in b43_nphy_update_tx_cal_ladder()
4954 entry = ((scale & 0xFF) << 8) | ladder_iq[i].g_env; in b43_nphy_update_tx_cal_ladder()
/linux-4.1.27/Documentation/locking/
Dlglock.txt131 * lg_global_lock/unlock is *very* expensive and does not scale
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c1349 prop_list->scale = 1; in gsc_init_prop_list()
1443 if ((i == EXYNOS_DRM_OPS_DST) && (pp->scale)) { in gsc_ippdrv_check_property()
Dexynos_drm_rotator.c483 prop_list->scale = 0; in rotator_init_prop_list()
Dexynos_drm_fimc.c1280 prop_list->scale = 1; in fimc_init_prop_list()
1374 if ((i == EXYNOS_DRM_OPS_DST) && (pp->scale)) { in fimc_ippdrv_check_property()
/linux-4.1.27/Documentation/arm/
Dvlocks.txt92 * Like other similar mechanisms, vlocks will not scale well to a large
/linux-4.1.27/Documentation/power/regulator/
Dconsumer.txt71 voltage to match system operating points. e.g. CPUfreq drivers can scale
/linux-4.1.27/drivers/staging/unisys/Documentation/
Doverview.txt7 splitting large-scale Intel x86 servers into multiple isolated
/linux-4.1.27/drivers/video/fbdev/
Dnuc900fb.c144 fbi->regs.lcd_va_scale = display->scale; in nuc900fb_check_var()
/linux-4.1.27/Documentation/isdn/
DREADME.x2512 have not been tested in a large scale. Therefore, you might encounter
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dich8lan.c1014 u16 speed, duplex, scale = 0; in e1000_platform_pm_pch_lpt() local
1052 scale++; in e1000_platform_pm_pch_lpt()
1055 if (scale > E1000_LTRV_SCALE_MAX) { in e1000_platform_pm_pch_lpt()
1056 e_dbg("Invalid LTR latency scale %d\n", scale); in e1000_platform_pm_pch_lpt()
1059 lat_enc = (u16)((scale << PCI_LTR_SCALE_SHIFT) | value); in e1000_platform_pm_pch_lpt()
/linux-4.1.27/Documentation/arm/Samsung-S3C24XX/
DOverview.txt148 Any large scale modifications, or new drivers should be discussed
/linux-4.1.27/Documentation/thermal/
Dintel_powerclamp.txt97 on large scale systems (Westmere system with 80 processors).
Dsysfs-api.txt131 This is on a percentage scale. The sum of all these weights
/linux-4.1.27/Documentation/x86/
Dintel_mpx.txt148 But, it isn't practical at a larger scale since a given app has no
/linux-4.1.27/arch/x86/include/asm/
Dkvm_host.h795 void (*set_tsc_khz)(struct kvm_vcpu *vcpu, u32 user_tsc_khz, bool scale);
/linux-4.1.27/Documentation/vm/
Dhugetlbpage.txt77 be specified in bytes with optional scale suffix [kKmMgG]. The default huge
/linux-4.1.27/arch/x86/kvm/
Demulate.c1164 int index_reg, base_reg, scale; in decode_modrm() local
1257 scale = sib >> 6; in decode_modrm()
1270 modrm_ea += reg_read(ctxt, index_reg) << scale; in decode_modrm()
Dsvm.c995 static void svm_set_tsc_khz(struct kvm_vcpu *vcpu, u32 user_tsc_khz, bool scale) in svm_set_tsc_khz() argument
1002 if (!scale) { in svm_set_tsc_khz()
Dvmx.c2280 static void vmx_set_tsc_khz(struct kvm_vcpu *vcpu, u32 user_tsc_khz, bool scale) in vmx_set_tsc_khz() argument
2282 if (!scale) in vmx_set_tsc_khz()
/linux-4.1.27/Documentation/virtual/kvm/
Dmmu.txt17 - scaling: need to scale to large memory and large vcpu guests
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dtg3.c6072 u32 scale; in tg3_setup_phy() local
6076 scale = 65; in tg3_setup_phy()
6078 scale = 6; in tg3_setup_phy()
6080 scale = 12; in tg3_setup_phy()
6083 val |= (scale << GRC_MISC_CFG_PRESCALAR_SHIFT); in tg3_setup_phy()
/linux-4.1.27/Documentation/laptops/
Dthinkpad-acpi.txt1271 scale of 0-255. 0 means fan stopped, 255 means highest normal
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_n.c21575 wlc_phy_scale_offset_rssi_nphy(struct brcms_phy *pi, u16 scale, s8 offset, in wlc_phy_scale_offset_rssi_nphy() argument
21585 valuetostuff = ((scale & 0x3f) << 8) | (offset & 0x3f); in wlc_phy_scale_offset_rssi_nphy()