Searched refs:scale (Results 1 - 200 of 507) sorted by relevance

123

/linux-4.1.27/arch/blackfin/include/asm/
H A Ddelay.h33 static inline unsigned long __to_delay(unsigned long scale) __to_delay() argument
36 return (((scale * HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6; __to_delay()
/linux-4.1.27/include/uapi/linux/netfilter_bridge/
H A Debt_limit.h15 __u32 avg; /* Average secs between packets * scale */
/linux-4.1.27/arch/m68k/fpsp040/
H A DMakefile8 smovecr.o srem_mod.o scale.o \
H A Dscale.S2 | scale.sa 3.3 7/30/91
15 | Output: The function returns scale(X,Y) to fp0.
/linux-4.1.27/drivers/media/i2c/soc_camera/
H A Dtw9910.c233 const struct tw9910_scale_ctrl *scale; member in struct:tw9910_priv
351 const struct tw9910_scale_ctrl *scale) tw9910_set_scale()
356 (scale->vscale & 0x0F00) >> 4 | tw9910_set_scale()
357 (scale->hscale & 0x0F00) >> 8); tw9910_set_scale()
362 scale->hscale & 0x00FF); tw9910_set_scale()
367 scale->vscale & 0x00FF); tw9910_set_scale()
429 const struct tw9910_scale_ctrl *scale; tw9910_select_norm() local
435 scale = tw9910_ntsc_scales; tw9910_select_norm()
438 scale = tw9910_pal_scales; tw9910_select_norm()
445 tmp = abs(width - scale[i].width) + tw9910_select_norm()
446 abs(height - scale[i].height); tw9910_select_norm()
449 ret = scale + i; tw9910_select_norm()
481 if (!priv->scale) { tw9910_s_stream()
487 priv->scale->name, tw9910_s_stream()
488 priv->scale->width, tw9910_s_stream()
489 priv->scale->height); tw9910_s_stream()
578 priv->scale = tw9910_select_norm(priv->norm, *width, *height); tw9910_set_frame()
579 if (!priv->scale) tw9910_set_frame()
627 * set scale tw9910_set_frame()
629 ret = tw9910_set_scale(client, priv->scale); tw9910_set_frame()
640 *width = priv->scale->width; tw9910_set_frame()
641 *height = priv->scale->height; tw9910_set_frame()
648 priv->scale = NULL; tw9910_set_frame()
700 if (!priv->scale) { tw9910_g_fmt()
701 priv->scale = tw9910_select_norm(priv->norm, 640, 480); tw9910_g_fmt()
702 if (!priv->scale) tw9910_g_fmt()
706 mf->width = priv->scale->width; tw9910_g_fmt()
707 mf->height = priv->scale->height; tw9910_g_fmt()
745 const struct tw9910_scale_ctrl *scale; tw9910_try_fmt() local
760 scale = tw9910_select_norm(priv->norm, mf->width, mf->height); tw9910_try_fmt()
761 if (!scale) tw9910_try_fmt()
764 mf->width = scale->width; tw9910_try_fmt()
765 mf->height = scale->height; tw9910_try_fmt()
350 tw9910_set_scale(struct i2c_client *client, const struct tw9910_scale_ctrl *scale) tw9910_set_scale() argument
/linux-4.1.27/drivers/staging/iio/accel/
H A Dadis16201.h16 #define ADIS16201_XACCL_SCALE 0x14 /* x-axis acceleration scale factor */
17 #define ADIS16201_YACCL_SCALE 0x16 /* y-axis acceleration scale factor */
20 #define ADIS16201_XINCL_SCALE 0x1C /* x-axis inclination scale factor */
21 #define ADIS16201_YINCL_SCALE 0x1E /* y-axis inclination scale factor */
H A Dadis16204.h16 #define ADIS16204_XACCL_SCALE 0x14 /* X-axis scale factor calibration register */
17 #define ADIS16204_YACCL_SCALE 0x16 /* Y-axis scale factor calibration register */
H A Dsca3000.h197 * @scale: scale * 10^-6
209 unsigned int scale; member in struct:sca3000_chip_info
H A Dsca3000_core.c45 .scale = 7357,
54 .scale = 9810,
62 .scale = 19620,
72 .scale = 61313,
492 *val2 = st->info->scale; sca3000_read_raw()
H A Dsca3000_ring.c211 return sprintf(buf, "0.%06d\n", 4*st->info->scale); sca3000_show_buffer_scale()
/linux-4.1.27/include/uapi/linux/netfilter/
H A Dxt_limit.h14 __u32 avg; /* Average secs between packets * scale */
H A Dxt_hashlimit.h29 __u32 avg; /* Average secs between packets * scale */
53 __u32 avg; /* Average secs between packets * scale */
H A Dxt_osf.h93 OSFOPT_WSO, /* Window scale option */
/linux-4.1.27/arch/mips/kernel/
H A Di8253.c34 if (num_possible_cpus() > 1) /* PIT does not scale! */ init_pit_clocksource()
/linux-4.1.27/include/linux/iio/
H A Dconsumer.h120 * scale will need to be applied if standard units required.
131 * scale will need to be applied if standard units required.
148 * the function will query the raw value and the channels scale and offset and
159 * scale will need to be applied if standard units required.
174 * iio_read_channel_scale() - read the scale value for a channel
191 * @scale: Scale factor to apply during the conversion
201 * The scale factor allows to increase the precession of the returned value. For
202 * a scale factor of 1 the function will return the result in the normal IIO
204 * nanovolts instead pass 1000000 as the scale factor.
207 int *processed, unsigned int scale);
/linux-4.1.27/drivers/leds/
H A Dleds-lp8788.c37 enum lp8788_isink_scale scale; member in struct:lp8788_led_config
43 .scale = LP8788_ISINK_SCALE_100mA,
56 cfg->scale = pdata->scale; lp8788_led_init_device()
63 /* scale configuration */ lp8788_led_init_device()
66 val = cfg->scale << (cfg->num + LP8788_ISINK_SCALE_OFFSET); lp8788_led_init_device()
/linux-4.1.27/drivers/media/tuners/
H A Dqt1010_priv.h35 07 2b set frequency: 32 MHz scale, n*32 MHz
38 0a 08 set frequency: 4 MHz scale, n*4 MHz
54 1a d0 set frequency: 125 kHz scale, n*125 kHz
H A Dmxl301rf.c88 rssi->stat[0].scale = FE_SCALE_NOT_AVAILABLE; mxl301rf_get_rf_strength()
112 rssi->stat[0].scale = FE_SCALE_DECIBEL; mxl301rf_get_rf_strength()
H A Dqt1010.c138 /* 07 - set frequency: 32 MHz scale */ qt1010_set_params()
145 /* 0a - set frequency: 4 MHz scale (max 28 MHz) */ qt1010_set_params()
159 /* 1a - set frequency: 125 kHz scale (max 3875 kHz)*/ qt1010_set_params()
H A Dmt20xx.c74 f1=f1/1000; //scale to kHz to avoid 32bit overflows mt2032_spurcheck()
146 lo2num=((desired_lo2/1000)%(fref/1000))* 3780/(fref/1000); //scale to fit in 32bit arith mt2032_compute_freq()
/linux-4.1.27/tools/iio/
H A Diio_utils.h27 * @scale: scale factor to be applied for conversion to si units
38 float scale; member in struct:iio_channel_info
H A Dgeneric_buffer.c81 printf("%05f ", ((float)val + info->offset)*info->scale); print2byte()
86 printf("%05f ", ((float)val + info->offset)*info->scale); print2byte()
116 channels[k].scale); process_scan()
129 if (channels[k].scale == 1.0f && process_scan()
135 channels[k].scale); process_scan()
H A Diio_utils.c348 current->scale = 1.0; build_channel_array()
378 /* Find the scale */ build_channel_array()
379 ret = iioutils_get_param_float(&current->scale, build_channel_array()
380 "scale", build_channel_array()
/linux-4.1.27/arch/x86/kernel/
H A Di8253.c32 * - On SMP PIT does not scale due to i8253_lock init_pit_clocksource()
H A Dapb_timer.c369 int i, scale; apbt_quick_calibrate() local
411 scale = (int)div_u64((t2 - t1), loop >> shift); apbt_quick_calibrate()
412 khz = (scale * (apbt_freq / 1000)) >> shift; apbt_quick_calibrate()
/linux-4.1.27/include/sound/
H A Dtlv.h35 #define SNDRV_CTL_TLVT_DB_SCALE 1 /* dB scale */
38 #define SNDRV_CTL_TLVT_DB_MINMAX 4 /* dB scale with min/max */
39 #define SNDRV_CTL_TLVT_DB_MINMAX_MUTE 5 /* dB scale with min/max with mute */
61 /* dB scale specified with min/max values instead of step */
/linux-4.1.27/tools/perf/util/
H A Dpmu.c97 char scale[128]; perf_pmu__parse_scale() local
102 snprintf(path, PATH_MAX, "%s/%s.scale", dir, name); perf_pmu__parse_scale()
111 sret = read(fd, scale, sizeof(scale)-1); perf_pmu__parse_scale()
115 scale[sret] = '\0'; perf_pmu__parse_scale()
123 * scale string is converted correctly. perf_pmu__parse_scale()
128 alias->scale = strtod(scale, NULL); perf_pmu__parse_scale()
217 alias->scale = 1.0; perf_pmu__new_alias()
229 * load unit name and scale if available perf_pmu__new_alias()
248 if (len > 6 && !strcmp(name + len - 6, ".scale")) pmu_alias_info_file()
720 * define unit, scale and snapshot, fail check_info_data()
724 (info->scale && alias->scale) || check_info_data()
731 if (alias->scale) check_info_data()
732 info->scale = alias->scale; check_info_data()
754 * Mark unit and scale as not set perf_pmu__check_alias()
758 info->scale = 0.0; perf_pmu__check_alias()
781 * if no unit or scale foundin aliases, then
788 if (info->scale == 0.0)
789 info->scale = 1.0;
H A Dpmu.h31 double scale; member in struct:perf_pmu_info
43 double scale; member in struct:perf_pmu_alias
H A Devsel.h74 double scale; member in struct:perf_evsel
117 bool scale, s8 *pscaled);
247 int cpu, int thread, bool scale);
/linux-4.1.27/drivers/media/platform/coda/
H A Dcoda-jpeg.c193 * u8 qtab[64], scale [50,190]
195 static void coda_scale_quant_table(u8 *q_tab, int scale) coda_scale_quant_table() argument
201 temp = DIV_ROUND_CLOSEST((unsigned int)q_tab[i] * scale, 100); coda_scale_quant_table()
212 unsigned int scale; coda_set_jpeg_compression_quality() local
227 scale = 5000 / quality; coda_set_jpeg_compression_quality()
229 scale = 200 - 2 * quality; coda_set_jpeg_compression_quality()
233 coda_scale_quant_table(ctx->params.jpeg_qmat_tab[0], scale); coda_set_jpeg_compression_quality()
237 coda_scale_quant_table(ctx->params.jpeg_qmat_tab[1], scale); coda_set_jpeg_compression_quality()
/linux-4.1.27/drivers/media/platform/soc_camera/
H A Dsoc_scale_crop.h26 unsigned int shift, unsigned int scale) soc_camera_shift_scale()
28 return DIV_ROUND_CLOSEST(size << shift, scale); soc_camera_shift_scale()
25 soc_camera_shift_scale(unsigned int size, unsigned int shift, unsigned int scale) soc_camera_shift_scale() argument
H A Dsh_mobile_ceu_camera.c648 static unsigned int size_dst(unsigned int src, unsigned int scale) size_dst() argument
650 unsigned int mant_pre = scale >> 12; size_dst()
651 if (!src || !scale) size_dst()
654 mant_pre * 4096 / scale + 1; size_dst()
659 u16 scale; calc_scale() local
664 scale = (src * 4096 / *dst) & ~7; calc_scale()
666 while (scale > 4096 && size_dst(src, scale) < *dst) calc_scale()
667 scale -= 8; calc_scale()
669 *dst = size_dst(src, scale); calc_scale()
671 return scale; calc_scale()
1196 #define scale_down(size, scale) soc_camera_shift_scale(size, 12, scale)
1200 * CEU can scale and crop, but we don't want to waste bandwidth and kill the
1421 dev_geo(dev, "5-9: client scale return %d\n", ret); sh_mobile_ceu_set_fmt()
1437 /* 10. Use CEU scaling to scale to the requested user window. */ sh_mobile_ceu_set_fmt()
1439 /* We cannot scale up */ sh_mobile_ceu_set_fmt()
1543 /* We can scale precisely, need a bigger image from camera */ sh_mobile_ceu_try_fmt()
1562 /* We will scale exactly */ sh_mobile_ceu_try_fmt()
H A Dsoc_scale_crop.c302 * @host_can_scale - host can scale this pixel format
386 * TODO: CEU cannot scale images larger than VGA to smaller than SubQCIF soc_camera_calc_client_output()
/linux-4.1.27/drivers/cpufreq/
H A Dimx6q-cpufreq.c68 /* scaling up? scale voltage before frequency */ imx6q_set_target()
73 dev_err(cpu_dev, "failed to scale vddpu up: %d\n", ret); imx6q_set_target()
79 dev_err(cpu_dev, "failed to scale vddsoc up: %d\n", ret); imx6q_set_target()
85 "failed to scale vddarm up: %d\n", ret); imx6q_set_target()
114 /* scaling down? scale voltage after frequency */ imx6q_set_target()
119 "failed to scale vddarm down: %d\n", ret); imx6q_set_target()
124 dev_warn(cpu_dev, "failed to scale vddsoc down: %d\n", ret); imx6q_set_target()
130 dev_warn(cpu_dev, "failed to scale vddpu down: %d\n", ret); imx6q_set_target()
H A Domap-cpufreq.c81 /* scaling up? scale voltage before frequency */ omap_target()
85 dev_warn(mpu_dev, "%s: unable to scale voltage up.\n", omap_target()
93 /* scaling down? scale voltage after frequency */ omap_target()
97 dev_warn(mpu_dev, "%s: unable to scale voltage down.\n", omap_target()
H A Dcpufreq-dt.c84 /* scaling up? scale voltage before frequency */ set_target()
88 dev_err(cpu_dev, "failed to scale voltage up: %d\n", set_target()
102 /* scaling down? scale voltage after frequency */ set_target()
106 dev_err(cpu_dev, "failed to scale voltage down: %d\n", set_target()
H A Dlonghaul.h310 * Which scale to use depends on the VRM type in use.
/linux-4.1.27/drivers/media/common/siano/
H A Dsmsdvb-main.c147 c->strength.stat[0].scale = FE_SCALE_DECIBEL; smsdvb_stats_not_ready()
148 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; smsdvb_stats_not_ready()
161 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; smsdvb_stats_not_ready()
162 c->post_bit_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; smsdvb_stats_not_ready()
163 c->block_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; smsdvb_stats_not_ready()
164 c->block_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; smsdvb_stats_not_ready()
262 c->block_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_per_slices()
263 c->block_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_per_slices()
268 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_per_slices()
269 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_per_slices()
317 c->block_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_dvb_stats()
318 c->block_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_dvb_stats()
323 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_dvb_stats()
324 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_dvb_stats()
352 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; smsdvb_update_isdbt_stats()
387 c->block_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
388 c->block_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
391 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
392 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
407 c->block_error.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
408 c->block_count.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
417 c->post_bit_error.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
418 c->post_bit_count.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
471 c->block_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
472 c->block_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
475 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
476 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
495 c->block_error.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
496 c->block_count.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
505 c->post_bit_error.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
506 c->post_bit_count.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
820 /* Preferred scale for SNR with legacy API: 0.1 dB */ smsdvb_read_snr()
/linux-4.1.27/drivers/spi/
H A Dspi-fsl-dspi.c154 int scale_needed, scale, minscale = INT_MAX; hz_to_spi_baud() local
163 scale = brs[i] * pbr_tbl[j]; hz_to_spi_baud()
164 if (scale >= scale_needed) { hz_to_spi_baud()
165 if (scale < minscale) { hz_to_spi_baud()
166 minscale = scale; hz_to_spi_baud()
186 int scale_needed, scale, minscale = INT_MAX; ns_delay_scale() local
197 scale = pscale_tbl[i] * (2 << j); ns_delay_scale()
198 if (scale >= scale_needed) { ns_delay_scale()
199 if (scale < minscale) { ns_delay_scale()
200 minscale = scale; ns_delay_scale()
209 pr_warn("Cannot find correct scale values for %dns delay at clkrate %ld, using max prescaler value", ns_delay_scale()
428 /* Set PCS to SCK delay scale values */ dspi_setup()
431 /* Set After SCK delay scale values */ dspi_setup()
H A Dspi-pxa2xx.c696 unsigned long scale; quark_x1000_get_clk_div() local
712 scale = fls_long(q1 - 1); quark_x1000_get_clk_div()
713 if (scale > 9) { quark_x1000_get_clk_div()
714 q1 >>= scale - 9; quark_x1000_get_clk_div()
715 mul >>= scale - 9; quark_x1000_get_clk_div()
723 scale = __ffs(q1); quark_x1000_get_clk_div()
724 q1 >>= scale; quark_x1000_get_clk_div() local
725 mul >>= scale; quark_x1000_get_clk_div() local
/linux-4.1.27/arch/mips/alchemy/common/
H A Dclock.c368 int scale, int maxdiv, unsigned long *rv) alchemy_calc_div()
376 if (scale == 2) { /* only div-by-multiple-of-2 possible */ alchemy_calc_div()
381 div2 = (div1 / scale) - 1; /* value to write to register */ alchemy_calc_div()
388 div1 = ((div2 + 1) * scale); alchemy_calc_div()
395 int scale, int maxdiv) alchemy_clk_fgcs_detr()
429 tdv = alchemy_calc_div(rate, pr, scale, maxdiv, NULL); alchemy_clk_fgcs_detr()
450 for (j = (maxdiv == 4) ? 1 : scale; j <= maxdiv; j += scale) { alchemy_clk_fgcs_detr()
456 tdv = alchemy_calc_div(rate, pr, scale, maxdiv, NULL); alchemy_clk_fgcs_detr()
655 /* fg0-2 and fg4-6 share a "scale"-bit. With this bit cleared, the
670 v = alchemy_rdsys(c->reg) & (1 << 30); /* test "scale" bit */ alchemy_clk_fgv2_setr()
693 if ((v & (1 << 30)) == 0) /* test scale bit */ alchemy_clk_fgv2_recalc()
706 int scale, maxdiv; alchemy_clk_fgv2_detr() local
709 scale = 1; alchemy_clk_fgv2_detr()
712 scale = 2; alchemy_clk_fgv2_detr()
717 best_parent_clk, scale, maxdiv); alchemy_clk_fgv2_detr()
927 int scale = c->dt[2] == 3 ? 1 : 2; /* au1300 check */ alchemy_clk_csrc_detr() local
930 best_parent_clk, scale, 4); alchemy_clk_csrc_detr()
367 alchemy_calc_div(unsigned long rate, unsigned long prate, int scale, int maxdiv, unsigned long *rv) alchemy_calc_div() argument
392 alchemy_clk_fgcs_detr(struct clk_hw *hw, unsigned long rate, unsigned long *best_parent_rate, struct clk_hw **best_parent_clk, int scale, int maxdiv) alchemy_clk_fgcs_detr() argument
/linux-4.1.27/include/linux/mfd/
H A Dlp8788.h233 * @full_scale : full scale current setting
255 * @scale : current scale
261 enum lp8788_isink_scale scale; member in struct:lp8788_led_platform_data
269 * @scale : current scale
276 enum lp8788_isink_scale scale; member in struct:lp8788_vib_platform_data
/linux-4.1.27/drivers/media/platform/exynos-gsc/
H A Dgsc-regs.h118 /* G-Scaler pre scale ratio */
124 /* G-Scaler main scale horizontal ratio */
128 /* G-Scaler main scale vertical ratio */
/linux-4.1.27/include/linux/input/
H A Dadxl34x.h23 * form with a scale factor of 15.6 mg/LSB (i.e. 0x7F = +2 g)
50 * The data format is unsigned. The scale factor is 62.5 mg/LSB
61 * to qualify as a tap event. The scale factor is 625 us/LSB. A zero
71 * window tap_window for a possible second tap event. The scale
82 * tap can begin. The scale factor is 1.25 ms/LSB. A zero value will
127 * The data format is unsigned. The scale factor is
137 * detection. The data format is unsigned. The scale
148 * inactivity_threshold for inactivity to be declared. The scale factor
167 * occurring. The scale factor is 62.5 mg/LSB. A zero value may
180 * scale factor is 5 ms/LSB. A zero value may result in
203 * with RANGE to maintain a 4 mg/LSB scale factor. When this
205 * maximum g-Range and scale factor.
/linux-4.1.27/include/linux/netfilter/
H A Dnf_conntrack_tcp.h12 u_int8_t td_scale; /* window scale factor */
/linux-4.1.27/include/linux/platform_data/
H A Dad5449.h33 * outputs to midscale (true) or to zero scale(false).
H A Dvideo-nuc900fb.h67 unsigned int scale; member in struct:nuc900fb_display
/linux-4.1.27/sound/oss/
H A Dsound_timer.c38 unsigned long scale; tmr2ticks() local
41 scale = (60 * 1000000) / (curr_tempo * curr_timebase); /* usecs per MIDI tick */ tmr2ticks()
42 return (tmp + (scale / 2)) / scale; tmr2ticks()
H A Dsys_timer.c41 unsigned long scale; tmr2ticks() local
46 scale = (60 * 1000000) / (curr_tempo * curr_timebase); /* usecs per MIDI tick */ tmr2ticks()
47 return (tmp + scale / 2) / scale; tmr2ticks()
/linux-4.1.27/include/asm-generic/
H A Dgetorder.h32 * is on a logarithmic scale, where:
/linux-4.1.27/include/uapi/linux/dvb/
H A Dfrontend.h470 * @FE_SCALE_DECIBEL: The scale is measured in 0.0001 dB steps, typically
472 * @FE_SCALE_RELATIVE: The scale is a relative percentual measure,
474 * @FE_SCALE_COUNTER: The scale counts the occurrence of an event, like
488 * @scale: Filled with enum fecap_scale_params - the scale
499 * dtv_status:scale should use the value FE_SCALE_NOT_AVAILABLE when
506 * u.st.stat.scale[0] = FE_SCALE_DECIBELS;
508 * u.st.stat.scale[1] = FE_SCALE_NOT_AVAILABLE (if not available);
510 * u.st.stat.scale[2] = FE_SCALE_DECIBELS;
512 * u.st.stat.scale[3] = FE_SCALE_DECIBELS;
516 __u8 scale; /* enum fecap_scale_params type */ member in struct:dtv_stats
/linux-4.1.27/drivers/hwmon/
H A Dmax197.c47 * @scale: Need to scale.
55 bool scale; member in struct:max197_data
196 if (data->scale) { max197_show_input()
286 data->scale = true; max197_probe()
289 data->scale = false; max197_probe()
H A Dadm1025.c94 #define IN_FROM_REG(reg, scale) (((reg) * (scale) + 96) / 192)
95 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \
96 (val) * 192 >= (scale) * 255 ? 255 : \
97 ((val) * 192 + (scale) / 2) / (scale))
H A Ds3c-hwmon.c158 * Read a value from the ADC and scale it before returning it to the s3c_hwmon_remove_raw()
159 * caller. The scale factor is gained from the channel configuration s3c_hwmon_remove_raw()
H A Dlm87.c122 #define IN_FROM_REG(reg, scale) (((reg) * (scale) + 96) / 192)
123 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \
124 (val) * 192 >= (scale) * 255 ? 255 : \
125 ((val) * 192 + (scale) / 2) / (scale))
H A Dnct6683.c479 int scale = 16; in_from_reg() local
483 scale <<= 1; in_from_reg()
484 return reg * scale; in_from_reg()
489 int scale = 16; in_to_reg() local
493 scale <<= 1; in_to_reg()
495 return clamp_val(DIV_ROUND_CLOSEST(val, scale), 0, 127); in_to_reg()
H A Dnct7904.c235 volt *= 2; /* 0.002V scale */ show_voltage()
237 volt *= 6; /* 0.006V scale */ show_voltage()
/linux-4.1.27/drivers/gpu/drm/i2c/
H A Dch7006_drv.c233 if (~mode->valid_scales & 1<<priv->scale || ch7006_encoder_get_modes()
255 priv->scale_property = drm_property_create_range(dev, 0, "scale", 0, 2); ch7006_encoder_create_resources()
274 priv->scale); ch7006_encoder_create_resources()
349 priv->scale = val; ch7006_encoder_set_property()
460 priv->scale = 1; ch7006_encoder_init()
483 priv->scale = ch7006_scale; ch7006_encoder_init()
485 ch7006_err(client, "Invalid scale setting \"%d\".\n", ch7006_encoder_init()
541 module_param_named(scale, ch7006_scale, int, 0600);
542 MODULE_PARM_DESC(scale, "Default scale.\n"
H A Dch7006_mode.c106 subc, scale, scale_mask, norm_mask, e_hd, e_vd) { \
129 .dispmode = bitfs(CH7006_DISPMODE_SCALING_RATIO, scale) | \
136 subc, scale, scale_mask, norm_mask) \
137 __MODE(f, hd, vd, ht, vt, hsynp, vsynp, subc, scale, \
336 uint64_t scale, aspect; ch7006_setup_properties() local
346 scale = norm->vtotal*fixed1; ch7006_setup_properties()
347 do_div(scale, mode->vtotal); ch7006_setup_properties()
352 hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale) ch7006_setup_properties()
358 vpos = max(0, norm->vdisplay - round_fixed(mode->vdisplay*scale) ch7006_setup_properties()
H A Dch7006_priv.h96 int scale; member in struct:ch7006_priv
/linux-4.1.27/drivers/media/dvb-frontends/
H A Drtl2830.c131 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_init()
133 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_init()
135 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_init()
137 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_init()
432 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) rtl2830_read_snr()
462 if (c->strength.stat[0].scale == FE_SCALE_RELATIVE) rtl2830_read_signal_strength()
533 c->strength.stat[0].scale = FE_SCALE_RELATIVE; rtl2830_stat_work()
536 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_stat_work()
575 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; rtl2830_stat_work()
578 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_stat_work()
593 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; rtl2830_stat_work()
595 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; rtl2830_stat_work()
598 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_stat_work()
599 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_stat_work()
H A Dmb86a20s.c1426 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; mb86a20s_get_main_CNR()
1470 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_blk_error_layer_CNR()
1514 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; mb86a20s_get_blk_error_layer_CNR()
1566 c->strength.stat[0].scale = FE_SCALE_RELATIVE; mb86a20s_stats_not_ready()
1571 c->cnr.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1572 c->pre_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1573 c->pre_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1574 c->post_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1575 c->post_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1576 c->block_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1577 c->block_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1618 c->pre_bit_error.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1620 c->pre_bit_count.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1627 c->pre_bit_error.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1628 c->pre_bit_count.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1633 if (c->block_error.stat[1 + layer].scale != FE_SCALE_NOT_AVAILABLE) mb86a20s_get_stats()
1640 c->post_bit_error.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1642 c->post_bit_count.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1649 c->post_bit_error.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1650 c->post_bit_count.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1655 if (c->block_error.stat[1 + layer].scale != FE_SCALE_NOT_AVAILABLE) mb86a20s_get_stats()
1663 c->block_error.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1665 c->block_count.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1672 c->block_error.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1673 c->block_count.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1679 if (c->block_error.stat[1 + layer].scale != FE_SCALE_NOT_AVAILABLE) mb86a20s_get_stats()
1708 c->pre_bit_error.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1710 c->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1713 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1714 c->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1729 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1731 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1734 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1735 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1746 c->block_error.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1748 c->block_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1751 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1752 c->block_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
H A Daf9033.c460 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; af9033_init()
462 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; af9033_init()
464 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; af9033_init()
466 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; af9033_init()
468 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; af9033_init()
470 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; af9033_init()
877 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) { af9033_read_snr()
891 /* scale value to 0x0000-0xffff */ af9033_read_snr()
926 /* read signal strength of 0-100 scale */ af9033_read_signal_strength()
931 /* scale value to 0x0000-0xffff */ af9033_read_signal_strength()
961 /* scale value to 0x0000-0xffff */ af9033_read_signal_strength()
1084 c->strength.stat[0].scale = FE_SCALE_DECIBEL; af9033_stat_work()
1088 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; af9033_stat_work()
1159 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; af9033_stat_work()
1163 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; af9033_stat_work()
1192 c->block_count.stat[0].scale = FE_SCALE_COUNTER; af9033_stat_work()
1196 c->block_error.stat[0].scale = FE_SCALE_COUNTER; af9033_stat_work()
1200 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; af9033_stat_work()
1204 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; af9033_stat_work()
H A Dtc90522.c259 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; tc90522s_get_frontend()
285 stats->stat[0].scale = FE_SCALE_DECIBEL; tc90522s_get_frontend()
295 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; tc90522s_get_frontend()
298 stats->stat[i].scale = FE_SCALE_COUNTER; tc90522s_get_frontend()
308 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; tc90522s_get_frontend()
311 stats->stat[i].scale = FE_SCALE_COUNTER; tc90522s_get_frontend()
418 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; tc90522t_get_frontend()
446 stats->stat[0].scale = FE_SCALE_DECIBEL; tc90522t_get_frontend()
456 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; tc90522t_get_frontend()
459 stats->stat[i].scale = FE_SCALE_COUNTER; tc90522t_get_frontend()
469 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; tc90522t_get_frontend()
472 stats->stat[i].scale = FE_SCALE_COUNTER; tc90522t_get_frontend()
H A Drtl2832.c392 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2832_init()
394 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2832_init()
396 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2832_init()
398 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2832_init()
720 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) rtl2832_read_snr()
761 c->strength.stat[0].scale = FE_SCALE_RELATIVE; rtl2832_stat_work()
764 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2832_stat_work()
803 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; rtl2832_stat_work()
806 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2832_stat_work()
821 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; rtl2832_stat_work()
823 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; rtl2832_stat_work()
826 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2832_stat_work()
827 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2832_stat_work()
H A Ddib7000p.c1670 c->strength.stat[0].scale = FE_SCALE_DECIBEL; dib7000p_reset_stats()
1673 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib7000p_reset_stats()
1674 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib7000p_reset_stats()
1675 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib7000p_reset_stats()
1676 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib7000p_reset_stats()
1677 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib7000p_reset_stats()
1905 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib7000p_get_stats()
1906 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib7000p_get_stats()
1907 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib7000p_get_stats()
1908 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib7000p_get_stats()
1909 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib7000p_get_stats()
1924 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; dib7000p_get_stats()
1932 c->block_error.stat[0].scale = FE_SCALE_COUNTER; dib7000p_get_stats()
1942 c->block_count.stat[0].scale = FE_SCALE_COUNTER; dib7000p_get_stats()
1957 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; dib7000p_get_stats()
1960 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; dib7000p_get_stats()
1968 c->block_error.stat[0].scale = FE_SCALE_COUNTER; dib7000p_get_stats()
1975 c->block_count.stat[0].scale = FE_SCALE_COUNTER; dib7000p_get_stats()
H A Ddrxk_hard.c6403 p->strength.stat[0].scale = FE_SCALE_RELATIVE; drxk_set_parameters()
6404 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_set_parameters()
6405 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_set_parameters()
6406 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_set_parameters()
6407 p->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_set_parameters()
6408 p->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_set_parameters()
6409 p->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_set_parameters()
6410 p->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_set_parameters()
6507 * Convert to 0..65535 scale. get_strength()
6553 c->strength.stat[0].scale = FE_SCALE_RELATIVE; drxk_get_stats()
6559 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; drxk_get_stats()
6561 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_get_stats()
6565 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_get_stats()
6566 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_get_stats()
6567 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_get_stats()
6568 c->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_get_stats()
6569 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_get_stats()
6570 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_get_stats()
6622 c->block_error.stat[0].scale = FE_SCALE_COUNTER; drxk_get_stats()
6624 c->block_count.stat[0].scale = FE_SCALE_COUNTER; drxk_get_stats()
6627 c->pre_bit_error.stat[0].scale = FE_SCALE_COUNTER; drxk_get_stats()
6629 c->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; drxk_get_stats()
6632 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; drxk_get_stats()
6634 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; drxk_get_stats()
6855 p->strength.stat[0].scale = FE_SCALE_RELATIVE; drxk_attach()
6856 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_attach()
6857 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_attach()
6858 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_attach()
6859 p->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_attach()
6860 p->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_attach()
6861 p->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_attach()
6862 p->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drxk_attach()
H A Ddibx000_common.h254 * Value gives the PWM value in device-dependent scale.
H A Ddib8000.c1010 c->strength.stat[0].scale = FE_SCALE_DECIBEL; dib8000_reset_stats()
1013 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib8000_reset_stats()
1014 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib8000_reset_stats()
1015 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib8000_reset_stats()
1016 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib8000_reset_stats()
1017 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib8000_reset_stats()
4118 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib8000_get_stats()
4119 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib8000_get_stats()
4120 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib8000_get_stats()
4121 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib8000_get_stats()
4122 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; dib8000_get_stats()
4145 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; dib8000_get_stats()
4152 c->block_error.stat[0].scale = FE_SCALE_COUNTER; dib8000_get_stats()
4162 c->block_count.stat[0].scale = FE_SCALE_COUNTER; dib8000_get_stats()
4177 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; dib8000_get_stats()
4180 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; dib8000_get_stats()
4207 c->post_bit_error.stat[1 + i].scale = FE_SCALE_COUNTER; dib8000_get_stats()
4210 c->post_bit_count.stat[1 + i].scale = FE_SCALE_COUNTER; dib8000_get_stats()
4217 c->block_error.stat[1 + i].scale = FE_SCALE_COUNTER; dib8000_get_stats()
4225 c->block_count.stat[0].scale = FE_SCALE_COUNTER; dib8000_get_stats()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Djr3_pci.h141 * coordinate transformation, or new sensor full scale is set by the
291 * measurements can be placed here. The JR3 DSP will then scale
304 /* Default_FS contains the full scale that is used if the user does */
305 /* not set a full scale. */
317 /* Min_full_scale is the recommend minimum full scale. */
321 * software allows the user to set the sensor full scale to an
323 * the full scale is set too low, the data will saturate
324 * prematurely, and dynamic range will be lost. If the full scale is
327 * maximum full scale is the maximum value at which no resolution is
328 * lost, and the minimum full scale is the value at which the data
334 * full scale selection will be a compromise between dynamic range
336 * of resolution which means that the recommend maximum full scale
339 * WARNING: Be sure that the full scale is no less than 0.4% of the
340 * recommended minimum full scale. Full scales below this value will
354 /* Max_full_scale is the recommended maximum full scale. See */
375 * axes used to calculate the vectors are changed. The full scale of
376 * V1 and V2 will always be equal to the largest full scale of the
447 * a coordinate transformation or a full scale change. Peak data is
462 * approximately 80% of the ADC's full scale, which is 26214, while
463 * sat_value defaults to the ADC's full scale:
607 * units used in the sensor full scale. The meanings of particular
H A Ddac02.c95 * (that is, 0 = +full scale, maxdata = -full scale). dac02_ao_insn_write()
H A Dserial2002.c77 * MIN/MAX 12:10 - the units multiplier for the scale
78 * 13 - the sign of the scale
/linux-4.1.27/drivers/macintosh/
H A Dwindfarm_pm81.c21 * scaling factors (scale/offsets) expressed as 4.12 fixed point values
22 * signed offset, unsigned scale)
42 * linear-factors : offset = 0xff38 scale = 0x0ccd
43 * offset = 0x0208 scale = 0x07ae
54 * linear-factors : offset = 0xff38 scale = 0x0ccd
55 * offset = 0x0000 scale = 0x0000
66 * linear-factors : offset = 0x0000 scale = 0x1000
67 * offset = 0x0091 scale = 0x0bae
70 * has an additional pair of scaling factor. This is used to scale the
78 * linear-factors : offset = 0xfb50 scale = 0x1000
251 s32 scale; member in struct:wf_smu_cpu_fans_state
428 wf_smu_cpu_fans->scale = WF_SMU_CPU_FANS_SIBLING_SCALE; wf_smu_create_cpu_fans()
516 systarget = ((((s64)systarget) * (s64)st->scale) >> 12) wf_smu_cpu_fans_tick()
H A Dwindfarm_smu_sensors.c102 /* Ok, we have to scale & adjust, taking units into account */ smu_cputemp_get()
124 /* Ok, we have to scale & adjust, taking units into account */ smu_cpuamp_get()
145 /* Ok, we have to scale & adjust, taking units into account */ smu_cpuvolt_get()
166 /* Ok, we have to scale & adjust, taking units into account */ smu_slotspow_get()
/linux-4.1.27/drivers/tty/serial/
H A Dar933x_uart.c185 * baudrate = (clk / (scale + 1)) * (step * (1 / 2^17))
188 unsigned int scale, ar933x_uart_get_baud()
194 div = (2 << 16) * (scale + 1); ar933x_uart_get_baud()
205 unsigned int *scale, ar933x_uart_get_scale_step()
211 *scale = 0; ar933x_uart_get_scale_step()
229 *scale = tscale; ar933x_uart_get_scale_step()
243 unsigned int baud, scale, step; ar933x_uart_set_termios() local
266 ar933x_uart_get_scale_step(port->uartclk, baud, &scale, &step); ar933x_uart_set_termios()
288 scale << AR933X_UART_CLOCK_SCALE_S | step); ar933x_uart_set_termios()
187 ar933x_uart_get_baud(unsigned int clk, unsigned int scale, unsigned int step) ar933x_uart_get_baud() argument
203 ar933x_uart_get_scale_step(unsigned int clk, unsigned int baud, unsigned int *scale, unsigned int *step) ar933x_uart_get_scale_step() argument
/linux-4.1.27/drivers/power/
H A Dds2760_battery.c125 int ret, i, start, count, scale[5]; ds2760_battery_read_status() local
196 scale[0] = di->full_active_uAh; ds2760_battery_read_status()
198 scale[i] = scale[i - 1] + di->raw[DS2760_ACTIVE_FULL + 1 + i]; ds2760_battery_read_status()
200 di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10); ds2760_battery_read_status()
204 scale[4] = di->raw[DS2760_ACTIVE_EMPTY + 4]; ds2760_battery_read_status()
206 scale[i] = scale[i + 1] + di->raw[DS2760_ACTIVE_EMPTY + i]; ds2760_battery_read_status()
208 di->empty_uAh = battery_interpolate(scale, di->temp_C / 10); ds2760_battery_read_status()
/linux-4.1.27/drivers/media/pci/solo6x10/
H A Dsolo6x10-enc.c58 /* Set scale 1, 9 dimension */ solo_capture_config()
66 /* Set scale 2, 10 dimension */ solo_capture_config()
74 /* Set scale 3, 11 dimension */ solo_capture_config()
82 /* Set scale 4, 12 dimension */ solo_capture_config()
90 /* Set scale 5, 13 dimension */ solo_capture_config()
H A Dsolo6x10-v4l2.c71 int sx, int sy, int ex, int ey, int scale) solo_win_setup()
81 SOLO_VI_WIN_SCALE(scale)); solo_win_setup()
70 solo_win_setup(struct solo_dev *solo_dev, u8 ch, int sx, int sy, int ex, int ey, int scale) solo_win_setup() argument
/linux-4.1.27/include/uapi/drm/
H A Dexynos_drm.h171 * @scale: flag of scale supporting.
176 * @scale_min: scale min resolution.
177 * @scale_max: scale max resolution.
188 __u32 scale; member in struct:drm_exynos_ipp_prop_list
/linux-4.1.27/arch/powerpc/kernel/
H A Dvecemu.c154 static int ctsxs(unsigned int x, int scale, unsigned int *vscrp) ctsxs() argument
162 exp = exp - 127 + scale; ctsxs()
167 if (x + (scale << 23) != 0xcf000000) ctsxs()
176 static unsigned int ctuxs(unsigned int x, int scale, unsigned int *vscrp) ctuxs() argument
185 exp = exp - 127 + scale; ctuxs()
H A Dtime.c924 u64 scale; time_init() local
946 * Compute scale factor for sched_clock. time_init()
952 * giving us the scale factor and shift count to use in time_init()
956 scale = res.result_low; time_init()
958 scale = (scale >> 1) | (res.result_high << 63); time_init()
961 tb_to_ns_scale = scale; time_init()
/linux-4.1.27/arch/arm/mach-omap2/
H A Dvoltage.h60 * @scale: function used to scale the voltage of the voltagedomain
86 int (*scale) (struct voltagedomain *voltdm, member in struct:voltagedomain
H A Dvoltage.c66 * voltdm_scale() - API to scale voltage of a particular voltage domain.
84 if (!voltdm->scale) { voltdm_scale()
85 pr_err("%s: No voltage scale API registered for vdd_%s\n", voltdm_scale()
104 ret = voltdm->scale(voltdm, volt); voltdm_scale()
259 voltdm->scale = omap_vc_bypass_scale; omap_voltage_late_init()
264 voltdm->scale = omap_vp_forceupdate_scale; omap_voltage_late_init()
H A Dvc.c112 /* Voltage scale and accessory APIs */ omap_vc_pre_scale()
122 pr_err("%s: Insufficient pmic info to scale the vdd_%s\n", omap_vc_pre_scale()
128 pr_err("%s: PMIC function to convert voltage in uV to vsel not registered. Hence unable to scale voltage for vdd_%s\n", omap_vc_pre_scale()
316 * idle. And we can also scale voltages to zero for off-idle. omap3_vc_init_pmic_signaling()
382 * scale to 600mV.
449 /* scale for div 256 = 64 * 4 */ omap4_calc_volt_ramp()
455 /* scale for div 512 = 256 * 2 */ omap4_calc_volt_ramp()
461 /* scale for div 2048 = 512 * 4 */ omap4_calc_volt_ramp()
/linux-4.1.27/sound/isa/gus/
H A Dgus_volume.c197 int scale = 0;
200 scale++;
209 while (scale--)
/linux-4.1.27/drivers/video/backlight/
H A Dpwm_bl.c36 unsigned int scale; member in struct:pwm_bl_data
89 return (duty_cycle * (pb->period - lth) / pb->scale) + lth; compute_duty_cycle()
230 if (data->levels[i] > pb->scale) pwm_backlight_probe()
231 pb->scale = data->levels[i]; pwm_backlight_probe()
235 pb->scale = data->max_brightness; pwm_backlight_probe()
305 pb->lth_brightness = data->lth_brightness * (pb->period / pb->scale); pwm_backlight_probe()
/linux-4.1.27/sound/pci/ctxfi/
H A Dctamixer.h66 int (*set_scale)(struct amixer *amixer, unsigned int scale);
73 unsigned int scale, struct sum *sum);
H A Dctamixer.c180 unsigned int scale, struct sum *sum) amixer_setup()
183 amixer_set_y(amixer, scale); amixer_setup()
179 amixer_setup(struct amixer *amixer, struct rsc *input, unsigned int scale, struct sum *sum) amixer_setup() argument
/linux-4.1.27/kernel/sched/
H A Dproc.c150 * When making the ILB scale, we should try to pull this in as well.
410 * The calculation is approximated on a 128 point scale.
415 * based on 128 point scale.
472 int i, scale; __update_cpu_load() local
478 for (i = 1, scale = 2; i < CPU_LOAD_IDX_MAX; i++, scale += scale) { __update_cpu_load()
481 /* scale is effectively 1 << i now, and >> i divides by scale */ __update_cpu_load()
492 new_load += scale - 1; __update_cpu_load()
494 this_rq->cpu_load[i] = (old_load * (scale - 1) + new_load) >> i; __update_cpu_load()
/linux-4.1.27/drivers/pcmcia/
H A Dcistpl.c665 u_char scale; parse_device() local
710 scale = *p & 7; parse_device()
711 if (scale == 7) parse_device()
713 device->dev[i].size = ((*p >> 3) + 1) * (512 << (scale*2)); parse_device()
912 u_int scale; parse_power() local
924 scale = POWER_SCALE(*p); parse_power()
930 (*p & 0x7f) * scale / 100; parse_power()
948 u_char scale; parse_timing() local
952 scale = *p; parse_timing()
953 if ((scale & 3) != 3) { parse_timing()
957 timing->waitscale = exponent[scale & 3]; parse_timing()
960 scale >>= 2; parse_timing()
961 if ((scale & 7) != 7) { parse_timing()
965 timing->rdyscale = exponent[scale & 7]; parse_timing()
968 scale >>= 3; parse_timing()
969 if (scale != 7) { parse_timing()
973 timing->rsvscale = exponent[scale]; parse_timing()
/linux-4.1.27/arch/powerpc/perf/
H A Dmpc7450-pmu.c64 * Events using threshold and possible threshold scale:
65 * code scale? name
78 * Return use of threshold and threshold scale bits:
135 * 30: Threshold scale value requested
/linux-4.1.27/arch/arm/mach-s3c24xx/
H A Dcpufreq-utils.c47 refresh = DIV_ROUND_UP(refresh, (1000 * 1000)); /* apply scale */ s3c2410_cpufreq_setrefresh()
/linux-4.1.27/net/ipv4/
H A Dtcp_htcp.c185 u32 scale = (HZ << 3) / (10 * minRTT); htcp_alpha_update() local
188 scale = min(max(scale, 1U << 2), 10U << 3); htcp_alpha_update()
189 factor = (factor << 3) / scale; htcp_alpha_update()
H A Dtcp_cubic.c61 /* Note parameters that are used for precomputing scale factors are read-only */
69 MODULE_PARM_DESC(bic_scale, "scale (scaled by 1024) value for bic function (bic_scale/1024)");
314 u32 scale = beta_scale; bictcp_update() local
316 delta = (cwnd * scale) >> 3; bictcp_update()
/linux-4.1.27/drivers/iio/
H A Dinkern.c508 int raw, int *processed, unsigned int scale) iio_convert_raw_to_processed_unlocked()
532 *processed += div_s64(raw64 * (s64)scale_val2 * scale, iio_convert_raw_to_processed_unlocked()
540 *processed += div_s64(raw64 * (s64)scale_val2 * scale, iio_convert_raw_to_processed_unlocked()
544 *processed = div_s64(raw64 * (s64)scale_val * scale, iio_convert_raw_to_processed_unlocked()
548 *processed = (raw64 * (s64)scale_val * scale) >> scale_val2; iio_convert_raw_to_processed_unlocked()
558 int *processed, unsigned int scale) iio_convert_raw_to_processed()
569 scale); iio_convert_raw_to_processed()
507 iio_convert_raw_to_processed_unlocked(struct iio_channel *chan, int raw, int *processed, unsigned int scale) iio_convert_raw_to_processed_unlocked() argument
557 iio_convert_raw_to_processed(struct iio_channel *chan, int raw, int *processed, unsigned int scale) iio_convert_raw_to_processed() argument
/linux-4.1.27/drivers/gpu/ipu-v3/
H A Dipu-ic.c179 u8 scale:2; /* scale coefficients * 2^(scale-1) */ member in struct:ic_csc_params
195 .scale = 1,
205 .scale = 2,
220 .scale = 2,
257 param = ((a[0] & 0x1fe0) >> 5) | (params->scale << 8) | init_csc()
/linux-4.1.27/drivers/clocksource/
H A Dcadence_ttc_timer.c289 /* scale down: adjust divider in post-change notification */ ttc_rate_change_clocksource_cb()
293 /* scale up: adjust divider now - before frequency change */ ttc_rate_change_clocksource_cb()
299 /* scale up: pre-change notification did the adjustment */ ttc_rate_change_clocksource_cb()
303 /* scale down: adjust divider now - after frequency change */ ttc_rate_change_clocksource_cb()
309 /* we have to undo the adjustment in case we scale up */ ttc_rate_change_clocksource_cb()
360 * with no interrupt and it rolls over at 0xFFFF. Pre-scale ttc_setup_clocksource()
H A Dcs5535-clockevt.c51 #define MFGPT_SCALE 4 /* divisor = 2^(scale) */
165 /* Set the clock scale and enable the event mode for CMP2 */ cs5535_mfgpt_init()
/linux-4.1.27/drivers/iio/imu/
H A Dadis16480.c390 const struct iio_chan_spec *chan, int scale) adis16480_set_calibscale()
395 if (scale < -0x8000 || scale >= 0x8000) adis16480_set_calibscale()
398 return adis_write_reg_16(&st->adis, reg, scale); adis16480_set_calibscale()
402 const struct iio_chan_spec *chan, int *scale) adis16480_get_calibscale()
413 *scale = sign_extend32(val16, 15); adis16480_get_calibscale()
684 * storing the value in rad/degree and the scale in degree
686 * storing the scale directly in rad.
389 adis16480_set_calibscale(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int scale) adis16480_set_calibscale() argument
401 adis16480_get_calibscale(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int *scale) adis16480_get_calibscale() argument
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-alsa-mixer.c39 * Note the cx18-av-core volume scale is funny, due to the alignment of the
40 * scale with another chip's range:
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-alsa-mixer.c39 * Note the cx25840-core volume scale is funny, due to the alignment of the
40 * scale with another chip's range:
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
H A Ddfp.c336 else /* gpu needs to scale */ nv04_dfp_mode_set()
379 uint32_t diff, scale; nv04_dfp_mode_set() local
384 * horizontal needs to be scaled at vertical scale factor nv04_dfp_mode_set()
387 scale = (1 << 12) * adjusted_mode->vdisplay / output_mode->vdisplay; nv04_dfp_mode_set()
389 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_XSCALE_VALUE); nv04_dfp_mode_set()
400 * vertical needs to be scaled at horizontal scale factor nv04_dfp_mode_set()
403 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; nv04_dfp_mode_set()
405 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_YSCALE_VALUE); nv04_dfp_mode_set()
/linux-4.1.27/drivers/mfd/
H A Dwm8350-core.c188 int wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale, int vref) wm8350_read_auxadc() argument
195 && (scale != 0 || vref != 0)) wm8350_read_auxadc()
204 if (scale || vref) { wm8350_read_auxadc()
205 reg = scale << 13; wm8350_read_auxadc()
H A Dlm3533-ctrlbank.c72 * Full-scale current.
/linux-4.1.27/arch/arm/lib/
H A Ddelay.c98 /* cpufreq may scale loops_per_jiffy, so keep a private copy */ register_current_timer_delay()
/linux-4.1.27/lib/
H A Dsort.c50 /* pre-scale counters for performance */ sort()
/linux-4.1.27/drivers/iio/common/hid-sensors/
H A Dhid-sensor-attributes.c32 int scale_val0; /* scale, whole number */
33 int scale_val1; /* scale, fraction in micros */
267 * This fuction applies the unit exponent to the scale.
/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dregs-gsc.h157 /* G-Scaler pre scale ratio */
166 /* G-Scaler main scale horizontal ratio */
171 /* G-Scaler main scale vertical ratio */
H A Dexynos_drm_rotator.c32 * M2M operation : supports crop/scale/rotation/csc so on.
483 prop_list->scale = 0; rotator_init_prop_list()
582 DRM_DEBUG_KMS("not support scale feature\n"); rotator_ippdrv_check_property()
593 DRM_DEBUG_KMS("not support scale feature\n"); rotator_ippdrv_check_property()
H A Dexynos_drm_fimc.c37 * M2M operation : supports crop/scale/rotation/csc so on.
104 * @up_h: horizontal scale up.
105 * @up_v: vertical scale up.
1280 prop_list->scale = 1; fimc_init_prop_list()
1373 /* check for scale */ for_each_ipp_ops()
1374 if ((i == EXYNOS_DRM_OPS_DST) && (pp->scale)) { for_each_ipp_ops()
1380 DRM_ERROR("out of scale size.\n"); for_each_ipp_ops()
1388 DRM_ERROR("out of scale size.\n"); for_each_ipp_ops()
H A Dexynos_drm_gsc.c34 * M2M operation : supports crop/scale/rotation/csc so on.
1349 prop_list->scale = 1; gsc_init_prop_list()
1442 /* check for scale */ for_each_ipp_ops()
1443 if ((i == EXYNOS_DRM_OPS_DST) && (pp->scale)) { for_each_ipp_ops()
1449 DRM_ERROR("out of scale size.\n"); for_each_ipp_ops()
1457 DRM_ERROR("out of scale size.\n"); for_each_ipp_ops()
/linux-4.1.27/include/linux/iio/common/
H A Dst_sensors.h174 * @fs: Full scale register and full scale list available.
276 int st_sensors_set_fullscale_by_gain(struct iio_dev *indio_dev, int scale);
/linux-4.1.27/drivers/video/fbdev/kyro/
H A DSTG4000OverlayDevice.c376 ulFxScale = (ulDest << 11) / ulSrc; /* fixed point scale factor */ SetOverlayViewPort()
486 * src/dwdest for the scale factor, then we move onto src-1 SetOverlayViewPort()
514 * use unclipped value to work out scale factror this is the SetOverlayViewPort()
515 * scale factor we want we shall now work out the horizonal SetOverlayViewPort()
554 mode is 420. Then set the vertical scale register. SetOverlayViewPort()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dar9003_paprd.c74 unsigned int power, scale, delta; ar9003_get_training_power_2g() local
76 scale = ar9003_get_paprd_scale_factor(ah, chan); ar9003_get_training_power_2g()
88 if (delta > scale) ar9003_get_training_power_2g()
102 unsigned int power, scale, delta; ar9003_get_training_power_5g() local
104 scale = ar9003_get_paprd_scale_factor(ah, chan); ar9003_get_training_power_5g()
113 power += scale; ar9003_get_training_power_5g()
115 if (delta > scale) ar9003_get_training_power_5g()
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dperf_event_intel_rapl.c158 pr_warn("invalid domain %d, failed to scale data\n", cfg); rapl_scale()
162 * scale delta to smallest unit (1/2^32) rapl_scale()
163 * users must then scale back: count * 1/(1e9*2^32) to get Joules rapl_scale()
437 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");
H A Dperf_event_intel_cqm.c1139 EVENT_ATTR_STR(llc_occupancy.scale, intel_cqm_llc_scale, NULL);
1314 char *str, scale[20]; intel_cqm_init() local
1340 pr_err("Multiple LLC scale values, disabling\n"); for_each_online_cpu()
1356 snprintf(scale, sizeof(scale), "%u", cqm_l3_scale);
1357 str = kstrdup(scale, GFP_KERNEL);
H A 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"),
/linux-4.1.27/arch/m68k/math-emu/
H A Dfp_arith.c658 int scale, oldround; fp_fscale() local
685 scale = fp_conv_ext2long(src); fp_fscale()
689 scale += dest->exp; fp_fscale()
691 if (scale >= 0x7fff) { fp_fscale()
693 } else if (scale <= 0) { fp_fscale()
695 fp_denormalize(dest, -scale); fp_fscale()
697 dest->exp = scale; fp_fscale()
/linux-4.1.27/drivers/media/common/saa7146/
H A Dsaa7146_hlp.c42 /* hps_coeff used for CXY and CXUV; scale 1/1 -> scale 1/64 */
65 /* calculate horizontal scale registers */ calculate_h_scale_registers()
74 /* vertical scale & gain */ calculate_h_scale_registers()
127 /* calculate and set horizontal fine scale (xsci) */ calculate_h_scale_registers()
135 /* set start phase for horizontal fine scale (xp) to 0 */ calculate_h_scale_registers()
211 /* calculate vertical scale registers */ calculate_v_scale_registers()
219 /* vertical scale & gain */ calculate_v_scale_registers()
535 /* set vertical scale */ saa7146_set_window()
540 /* set horizontal scale */ saa7146_set_window()
/linux-4.1.27/kernel/time/
H A Dclocksource.c651 * @scale: Scale factor multiplied against freq to get clocksource hz
652 * @freq: clocksource frequency (cycles per second) divided by scale
660 void __clocksource_update_freq_scale(struct clocksource *cs, u32 scale, u32 freq) __clocksource_update_freq_scale() argument
680 do_div(sec, scale); __clocksource_update_freq_scale()
687 NSEC_PER_SEC / scale, sec * scale); __clocksource_update_freq_scale()
719 * @scale: Scale factor multiplied against freq to get clocksource hz
720 * @freq: clocksource frequency (cycles per second) divided by scale
727 int __clocksource_register_scale(struct clocksource *cs, u32 scale, u32 freq) __clocksource_register_scale() argument
731 __clocksource_update_freq_scale(cs, scale, freq); __clocksource_register_scale()
/linux-4.1.27/drivers/iio/magnetometer/
H A Dak8975.c143 * Precalculate scale factor (in Gauss units) for each axis and
146 * This scale factor is axis-dependent, and is derived from 3 calibration
168 * Since 1uT = 0.01 gauss, our final scale factor becomes:
173 * Since ASA doesn't change, we cache the resultant scale factor into the
176 * Given we use IIO_VAL_INT_PLUS_MICRO bit when displaying the scale, we
177 * multiply the stored scale value by 1e6.
/linux-4.1.27/drivers/staging/iio/light/
H A Disl29028.c305 "lux scale %d is invalid [125, 2000]\n", val); isl29028_write_raw()
311 "Setting lux scale fail with error %d\n", ret); isl29028_write_raw()
452 "setting als scale failed, err = %d\n", ret); isl29028_chip_init()
H A Dtsl2583.c185 * Time scale factor array values are adjusted based on the integration time.
186 * The raw values are multiplied by a scale factor, and device gain is obtained
191 * the array are then used along with the time scale factor array values, to
297 /* adjust for active time scale */ taos_get_lux()
304 /* Adjust for active gain scale. taos_get_lux()
429 chip->als_saturation = als_count * 922; /* 90% of full scale */ taos_chip_on()
H A Dtsl2x7x_core.c324 * Time scale factor array values are adjusted based on the integration time.
325 * The raw values are multiplied by a scale factor, and device gain is obtained
330 * then used along with the time scale factor array values, to calculate the
435 /* adjust for active time scale */ tsl2x7x_get_lux()
442 /* adjust for active gain scale tsl2x7x_get_lux()
695 chip->als_saturation = als_count * 922; /* 90% of full scale */ tsl2x7x_chip_on()
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_rect.c101 int scale = 0; drm_calc_scale() local
109 scale = src / dst; drm_calc_scale()
111 return scale; drm_calc_scale()
/linux-4.1.27/tools/perf/
H A Dbuiltin-stat.c125 static bool scale = true; variable
298 if (scale) create_perf_stat_counter()
449 perf_counts_values__scale(count, scale, NULL); read_cb()
456 if (scale) { read_cb()
487 perf_counts_values__scale(aggr, scale, &counter->counts->scaled); read_counter_aggr()
1060 double sc = evsel->scale; abs_printout()
1278 uval = val * counter->scale; evlist__for_each()
1332 uval = avg * counter->scale; print_counter_aggr()
1388 uval = val * counter->scale; print_counter()
1733 OPT_BOOLEAN('c', "scale", &scale, "scale/normalize counters"), cmd_stat()
/linux-4.1.27/drivers/misc/lis3lv02d/
H A Dlis3lv02d.c79 /* Sensitivity values for -2G +2G scale */
209 position[i] = (position[i] * lis3->scale) / LIS3_ACCURACY; lis3lv02d_get_xyz()
712 max_val = (lis3->mdps_max_val * lis3->scale) / LIS3_ACCURACY; lis3lv02d_joystick_enable()
720 fuzz = (fuzz * lis3->scale) / LIS3_ACCURACY; lis3lv02d_joystick_enable()
721 flat = (flat * lis3->scale) / LIS3_ACCURACY; lis3lv02d_joystick_enable()
1133 lis3->scale = LIS3_SENSITIVITY_12B; lis3lv02d_init_device()
1144 lis3->scale = LIS3_SENSITIVITY_8B; lis3lv02d_init_device()
1155 lis3->scale = LIS3_SENSITIVITY_8B; lis3lv02d_init_device()
1165 lis3->scale = LIS3DLH_SENSITIVITY_2G; lis3lv02d_init_device()
H A Dlis3lv02d.h292 int scale; /* member in struct:lis3lv02d
/linux-4.1.27/arch/tile/include/asm/
H A Dhugetlb.h125 /* Sizes to scale up page size for PTEs with HV_PTE_SUPER bit. */
/linux-4.1.27/drivers/video/fbdev/nvidia/
H A Dnv_type.h60 u32 scale; member in struct:_riva_hw_state
/linux-4.1.27/arch/mips/math-emu/
H A Ddp_sqrt.c156 /* py[n0]=py[n0]+scalx; ...scale back y */ ieee754dp_sqrt()
/linux-4.1.27/arch/mn10300/kernel/
H A Dcevt-mn10300.c20 #error "This doesn't scale well! Need per-core local timers."
H A Dtime.c57 /* scale the 64-bit TSC value to a nanosecond value via a 96-bit sched_clock()
/linux-4.1.27/arch/parisc/include/asm/
H A Dfutex.h136 * address. This should scale to a couple of CPUs. futex_atomic_cmpxchg_inatomic()
H A Dgrfioctl.h45 #define S9000_ID_A1924A 0x26D1488C /* GRX gray-scale */
/linux-4.1.27/arch/arm/plat-orion/
H A Dtime.c203 * Set scale and timer for sched_clock. orion_time_init()
/linux-4.1.27/mm/
H A Dvmpressure.c114 unsigned long scale = scanned + reclaimed; vmpressure_calc_level() local
124 pressure = scale - (reclaimed * scale / scanned); vmpressure_calc_level()
125 pressure = pressure * 100 / scale; vmpressure_calc_level()
/linux-4.1.27/include/linux/iio/gyro/
H A Ditg3200.h29 /* DLPF full scale range */
/linux-4.1.27/include/linux/
H A Djiffies.h198 * instructions to appear in the execution path. In short, we "scale"
200 * underflow), do the desired operation and then "scale" the result back
211 * So, we scale as follows:
225 * that means using a different scale for each range of HZ values (as
H A Dled-lm3530.h85 * @max_current: full scale LED current
H A Dclocksource.h201 __clocksource_register_scale(struct clocksource *cs, u32 scale, u32 freq);
203 __clocksource_update_freq_scale(struct clocksource *cs, u32 scale, u32 freq);
H A Df2fs_fs.h198 __le32 i_atime_nsec; /* access time in nano scale */
199 __le32 i_ctime_nsec; /* change time in nano scale */
200 __le32 i_mtime_nsec; /* modification time in nano scale */
/linux-4.1.27/include/linux/mfd/wm8350/
H A Dcomparator.h172 int wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale,
/linux-4.1.27/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_iio.h69 * @fsr: Full scale range.
71 * @accl_fs: accel full scale range.
H A Dinv_mpu_core.c31 * this is the gyro scale translated from dynamic range plus/minus
37 * this is the accel scale translated from dynamic range plus/minus
481 /* we should only update scale when the chip is disabled, i.e., inv_mpu6050_write_raw()
/linux-4.1.27/drivers/misc/
H A Dds1682.c74 * resolution, scale them up to milliseconds */ ds1682_show()
102 * resolution, scale input down to quarter-seconds */ ds1682_store()
/linux-4.1.27/drivers/staging/fbtft/
H A Dfb_upd161704.c117 /*GS = 0: 260-k color (64 gray scale), GS = 1: 8 color (2 gray scale) */ init_display()
H A Dfb_bd663474.c94 /* Gray scale settings */ init_display()
H A Dfb_ssd1331.c121 The gray scale is defined in incremental way, with reference
H A Dfb_ssd1351.c118 The gray scale is defined in incremental way, with reference
/linux-4.1.27/drivers/sbus/char/
H A Denvctrl.c108 * through a data table and a scale.
115 #define ENVCTRL_TRANSLATE_SCALE 4 /* table[data]/scale */
148 unsigned int scale; member in struct:pcf8584_tblprop
328 int scale, char *tbl, char *bufdata) envctrl_i2c_data_translate()
346 /* Decode this way: data = table[data]/scale */ envctrl_i2c_data_translate()
347 sprintf(bufdata,"%d ", (tbl[data] * 10) / (scale)); envctrl_i2c_data_translate()
390 pchild->tblprop_array[i].scale, envctrl_read_cpu_info()
421 pchild->tblprop_array[i].scale, envctrl_read_noncpu_info()
327 envctrl_i2c_data_translate(unsigned char data, int translate_type, int scale, char *tbl, char *bufdata) envctrl_i2c_data_translate() argument
/linux-4.1.27/drivers/gpu/drm/i915/
H A Dintel_panel.c296 /* Aspects match, Let hw scale both directions */ i9xx_scale_aspect()
403 * scale - scale values from one range to another
410 static uint32_t scale(uint32_t source_val, scale() function
436 return scale(user_level, 0, user_max, scale_user_to_hw()
448 hw_level = scale(user_level, 0, user_max, 0, panel->backlight.max); clamp_user_to_hw()
460 return scale(hw_level, panel->backlight.min, panel->backlight.max, scale_hw_to_user()
1150 return scale(min, 0, 255, 0, panel->backlight.max); get_backlight_min_vbt()
/linux-4.1.27/drivers/gpu/drm/sti/
H A Dsti_hqvdp.c431 * @scale: scaling/zoom factor
439 static void sti_hqvdp_update_hvsrc(enum sti_hvsrc_orient orient, int scale, sti_hqvdp_update_hvsrc() argument
446 if (scale < SCALE_MAX_FOR_LEG_LUT_F) { sti_hqvdp_update_hvsrc()
451 } else if (scale < SCALE_MAX_FOR_LEG_LUT_E) { sti_hqvdp_update_hvsrc()
456 } else if (scale < SCALE_MAX_FOR_LEG_LUT_D) { sti_hqvdp_update_hvsrc()
461 } else if (scale < SCALE_MAX_FOR_LEG_LUT_C) { sti_hqvdp_update_hvsrc()
466 } else if (scale == SCALE_MAX_FOR_LEG_LUT_C) { sti_hqvdp_update_hvsrc()
499 * True if the HW can scale.
/linux-4.1.27/arch/powerpc/oprofile/cell/
H A Dspu_profiler.c57 * To avoid floating point math, we use the scale math set_spu_profiling_frequency()
59 * a scale factor of SCALE_SHIFT, which provides 4 decimal places set_spu_profiling_frequency()
/linux-4.1.27/arch/arm/kernel/
H A Dtopology.c29 * cpu capacity scale management
86 * This is later used to scale the cpu_capacity field such that an
/linux-4.1.27/arch/m68k/ifpsp060/src/
H A Dpfpsp.S4974 andi.l &0x3,%d1 # extract scale value
4976 lsl.l %d1,%d0 # shift index by scale
5069 rol.w &0x7,%d1 # rotate scale value into place
5070 andi.l &0x3,%d1 # extract scale value
5072 lsl.l %d1,%d0 # shift index by scale
5386 # addsub_scaler2(): scale inputs to fadd/fsub such that no #
5399 # d0 = scale amount #
5403 # equal to 0x3fff and scale the SRC exponent by the value that the #
5405 # do the opposite. Return this scale factor in d0. #
5431 # dst exp is > src exp; scale dst to exp = 0x3fff
5434 mov.l %d0,-(%sp) # save scale factor
5452 add.w 0x2(%sp),%d0 # scale src exponent by scale factor
5468 # src exp is >= dst exp; scale src to exp = 0x3fff
5471 mov.l %d0,-(%sp) # save scale factor
5488 add.w 0x2(%sp),%d0 # scale dst exponent by scale factor
5508 # scale_to_zero_src(): scale the exponent of extended precision #
5519 # d0 = scale value #
5546 sub.l %d1,%d0 # scale = BIAS + (-exp)
5561 # scale_sqrt(): scale the input operand exponent so a subsequent #
5572 # d0 = scale value #
5577 # to 0x3ffe and return a scale factor of "(exp-0x3ffe)/2". If the #
5579 # return a scale factor of "(exp-0x3fff)/2". #
5599 sub.l %d1,%d0 # scale = BIAS + (-exp)
5600 asr.l &0x1,%d0 # divide scale factor by 2
5607 sub.l %d1,%d0 # scale = BIAS + (-exp)
5608 asr.l &0x1,%d0 # divide scale factor by 2
5621 asr.l &0x1,%d0 # divide scale factor by 2
5628 asr.l &0x1,%d0 # divide scale factor by 2
5635 # scale_to_zero_dst(): scale the exponent of extended precision #
5646 # d0 = scale value #
5673 sub.l %d1,%d0 # scale = BIAS + (-exp)
6796 # _denorm() - denormalize according to scale factor #
6801 # d0 = scale factor #
6812 # according to the scale factor passed in d0. Then, round the #
7959 # scale_to_zero_src() - scale src exponent to zero #
7960 # scale_to_zero_dst() - scale dst exponent to zero #
7978 # For norms/denorms, scale the exponents such that a multiply #
7982 # and return the EXOP if exceptions are enabled. Else, scale the #
8027 bsr.l scale_to_zero_src # scale src exponent
8028 mov.l %d0,-(%sp) # save scale factor 1
8030 bsr.l scale_to_zero_dst # scale dst exponent
8049 # - scale the result exponent using the scale factor. if both operands were
8073 sub.l %d0,%d1 # add scale factor
8142 sub.l %d0,%d1 # add scale factor
8263 sub.l %d0,%d1 # add scale factor
8456 # scale_to_zero_src() - scale src exponent to zero #
8474 # sgl/dbl, must scale exponent and perform an "fmove". Check to see #
8572 bsr.l scale_to_zero_src # calculate scale factor
8600 sub.l %d0,%d1 # add scale factor
8615 bsr.l scale_to_zero_src # calculate scale factor
8660 sub.l %d0,%d1 # subtract scale factor
8715 sub.l %d0,%d1 # add scale factor
8776 # scale_to_zero_src() - scale src exponent to zero #
8777 # scale_to_zero_dst() - scale dst exponent to zero #
8795 # For norms/denorms, scale the exponents such that a divide #
8799 # and return the EXOP if exceptions are enabled. Else, scale the #
8849 bsr.l scale_to_zero_src # scale src exponent
8850 mov.l %d0,-(%sp) # save scale factor 1
8852 bsr.l scale_to_zero_dst # scale dst exponent
8887 sub.l %d0,%d1 # add scale factor
8900 mov.l (%sp)+,%d0 # restore scale factor
8904 mov.l %d0,-(%sp) # save scale factor
8922 sub.l (%sp),%d0 # add scale factor
8955 sub.l %d0,%d1 # add scale factor
9031 sub.l %d0,%d1 # add scale factoer
9231 # scale_to_zero_src() - scale sgl/dbl source exponent #
9251 # scale the result exponent and return result. FPSR gets set based on #
9352 bsr.l scale_to_zero_src # calculate scale factor
9380 sub.l %d0,%d1 # add scale factor
9395 bsr.l scale_to_zero_src # calculate scale factor
9441 sub.l %d0,%d1 # subtract scale factor
9495 sub.l %d0,%d1 # add scale factor
9850 # scale_to_zero_src() - make exponent. = 0; get scale factor #
9869 # scale the operand such that the exponent is zero. Perform an "fabs" #
9970 bsr.l scale_to_zero_src # calculate scale factor
9998 sub.l %d0,%d1 # add scale factor
10013 bsr.l scale_to_zero_src # calculate scale factor
10056 sub.l %d0,%d1 # subtract scale factor
10110 sub.l %d0,%d1 # add scale factor
10361 # scale_to_zero_src() - scale src exponent to zero #
10362 # scale_to_zero_dst() - scale dst exponent to zero #
10380 # For norms/denorms, scale the exponents such that a multiply #
10384 # and return the EXOP if exceptions are enabled. Else, scale the #
10409 bsr.l scale_to_zero_src # scale exponent
10410 mov.l %d0,-(%sp) # save scale factor 1
10412 bsr.l scale_to_zero_dst # scale dst exponent
10444 sub.l %d0,%d1 # add scale factor
10490 sub.l %d0,%d1 # add scale factor
10568 sub.l %d0,%d1 # add scale factor
10702 # scale_to_zero_src() - scale src exponent to zero #
10703 # scale_to_zero_dst() - scale dst exponent to zero #
10721 # For norms/denorms, scale the exponents such that a divide #
10725 # and return the EXOP if exceptions are enabled. Else, scale the #
10753 bsr.l scale_to_zero_src # calculate scale factor 1
10754 mov.l %d0,-(%sp) # save scale factor 1
10756 bsr.l scale_to_zero_dst # calculate scale factor 2
10791 sub.l %d0,%d1 # add scale factor
10815 sub.l %d0,%d1 # add scale factor
10844 sub.l %d0,%d1 # add scale factor
10901 sub.l %d0,%d1 # add scale factor
11039 # addsub_scaler2() - scale the operands so they won't take exc #
11092 bsr.l addsub_scaler2 # scale exponents
11118 sub.l %d0,%d2 # add scale factor
11254 sub.l %d0,%d1 # add scale factor
11425 # one operand is a ZERO and the other is a DENORM or NORM. scale
11432 bsr.l scale_to_zero_src # scale the operand
11442 bsr.l scale_to_zero_dst # scale the operand
11492 # addsub_scaler2() - scale the operands so they won't take exc #
11545 bsr.l addsub_scaler2 # scale exponents
11571 sub.l %d0,%d2 # add scale factor
11707 sub.l %d0,%d1 # add scale factor
11878 # scale the DENORM or NORM and jump to the regular fsub routine.
11884 bsr.l scale_to_zero_src # scale the operand
11894 bsr.l scale_to_zero_dst # scale the operand
11938 # scale_sqrt() - scale the source operand #
11955 # For norms/denorms, scale the exponents such that a sqrt #
11959 # and return the EXOP if exceptions are enabled. Else, scale the #
12013 bsr.l scale_sqrt # calculate scale factor
12032 bsr.l scale_sqrt # calculate scale factor
12061 sub.l %d0,%d1 # add scale factor
12077 bsr.l scale_sqrt # calculate scale factor
12138 sub.l %d0,%d1 # subtract scale factor
12192 sub.l %d0,%d1 # add scale factor
13891 bne.b sc_mul # if neg (LAMBDA = 1), scale by mul
H A 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 #
11551 # and return the EXOP if exceptions are enabled. Else, scale the #
11596 bsr.l scale_to_zero_src # scale src exponent
11597 mov.l %d0,-(%sp) # save scale factor 1
11599 bsr.l scale_to_zero_dst # scale dst exponent
11618 # - scale the result exponent using the scale factor. if both operands were
11642 sub.l %d0,%d1 # add scale factor
11711 sub.l %d0,%d1 # add scale factor
11832 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 #
12141 bsr.l scale_to_zero_src # calculate scale factor
12169 sub.l %d0,%d1 # add scale factor
12184 bsr.l scale_to_zero_src # calculate scale factor
12229 sub.l %d0,%d1 # subtract scale factor
12284 sub.l %d0,%d1 # add scale factor
12345 # scale_to_zero_src() - scale src exponent to zero #
12346 # scale_to_zero_dst() - scale dst exponent to zero #
12364 # For norms/denorms, scale the exponents such that a divide #
12368 # and return the EXOP if exceptions are enabled. Else, scale the #
12418 bsr.l scale_to_zero_src # scale src exponent
12419 mov.l %d0,-(%sp) # save scale factor 1
12421 bsr.l scale_to_zero_dst # scale dst exponent
12456 sub.l %d0,%d1 # add scale factor
12469 mov.l (%sp)+,%d0 # restore scale factor
12473 mov.l %d0,-(%sp) # save scale factor
12491 sub.l (%sp),%d0 # add scale factor
12524 sub.l %d0,%d1 # add scale factor
12600 sub.l %d0,%d1 # add scale factoer
12800 # scale_to_zero_src() - scale sgl/dbl source exponent #
12820 # scale the result exponent and return result. FPSR gets set based on #
12921 bsr.l scale_to_zero_src # calculate scale factor
12949 sub.l %d0,%d1 # add scale factor
12964 bsr.l scale_to_zero_src # calculate scale factor
13010 sub.l %d0,%d1 # subtract scale factor
13064 sub.l %d0,%d1 # add scale factor
13419 # scale_to_zero_src() - make exponent. = 0; get scale factor #
13438 # scale the operand such that the exponent is zero. Perform an "fabs" #
13539 bsr.l scale_to_zero_src # calculate scale factor
13567 sub.l %d0,%d1 # add scale factor
13582 bsr.l scale_to_zero_src # calculate scale factor
13625 sub.l %d0,%d1 # subtract scale factor
13679 sub.l %d0,%d1 # add scale factor
13930 # scale_to_zero_src() - scale src exponent to zero #
13931 # scale_to_zero_dst() - scale dst exponent to zero #
13949 # For norms/denorms, scale the exponents such that a multiply #
13953 # and return the EXOP if exceptions are enabled. Else, scale the #
13978 bsr.l scale_to_zero_src # scale exponent
13979 mov.l %d0,-(%sp) # save scale factor 1
13981 bsr.l scale_to_zero_dst # scale dst exponent
14013 sub.l %d0,%d1 # add scale factor
14059 sub.l %d0,%d1 # add scale factor
14137 sub.l %d0,%d1 # add scale factor
14271 # scale_to_zero_src() - scale src exponent to zero #
14272 # scale_to_zero_dst() - scale dst exponent to zero #
14290 # For norms/denorms, scale the exponents such that a divide #
14294 # and return the EXOP if exceptions are enabled. Else, scale the #
14322 bsr.l scale_to_zero_src # calculate scale factor 1
14323 mov.l %d0,-(%sp) # save scale factor 1
14325 bsr.l scale_to_zero_dst # calculate scale factor 2
14360 sub.l %d0,%d1 # add scale factor
14384 sub.l %d0,%d1 # add scale factor
14413 sub.l %d0,%d1 # add scale factor
14470 sub.l %d0,%d1 # add scale factor
14608 # addsub_scaler2() - scale the operands so they won't take exc #
14661 bsr.l addsub_scaler2 # scale exponents
14687 sub.l %d0,%d2 # add scale factor
14823 sub.l %d0,%d1 # add scale factor
14994 # one operand is a ZERO and the other is a DENORM or NORM. scale
15001 bsr.l scale_to_zero_src # scale the operand
15011 bsr.l scale_to_zero_dst # scale the operand
15061 # addsub_scaler2() - scale the operands so they won't take exc #
15114 bsr.l addsub_scaler2 # scale exponents
15140 sub.l %d0,%d2 # add scale factor
15276 sub.l %d0,%d1 # add scale factor
15447 # scale the DENORM or NORM and jump to the regular fsub routine.
15453 bsr.l scale_to_zero_src # scale the operand
15463 bsr.l scale_to_zero_dst # scale the operand
15507 # scale_sqrt() - scale the source operand #
15524 # For norms/denorms, scale the exponents such that a sqrt #
15528 # and return the EXOP if exceptions are enabled. Else, scale the #
15582 bsr.l scale_sqrt # calculate scale factor
15601 bsr.l scale_sqrt # calculate scale factor
15630 sub.l %d0,%d1 # add scale factor
15646 bsr.l scale_sqrt # calculate scale factor
15707 sub.l %d0,%d1 # subtract scale factor
15761 sub.l %d0,%d1 # add scale factor
15840 # addsub_scaler2(): scale inputs to fadd/fsub such that no #
15853 # d0 = scale amount #
15857 # equal to 0x3fff and scale the SRC exponent by the value that the #
15859 # do the opposite. Return this scale factor in d0. #
15885 # dst exp is > src exp; scale dst to exp = 0x3fff
15888 mov.l %d0,-(%sp) # save scale factor
15906 add.w 0x2(%sp),%d0 # scale src exponent by scale factor
15922 # src exp is >= dst exp; scale src to exp = 0x3fff
15925 mov.l %d0,-(%sp) # save scale factor
15942 add.w 0x2(%sp),%d0 # scale dst exponent by scale factor
15962 # scale_to_zero_src(): scale the exponent of extended precision #
15973 # d0 = scale value #
16000 sub.l %d1,%d0 # scale = BIAS + (-exp)
16015 # scale_sqrt(): scale the input operand exponent so a subsequent #
16026 # d0 = scale value #
16031 # to 0x3ffe and return a scale factor of "(exp-0x3ffe)/2". If the #
16033 # return a scale factor of "(exp-0x3fff)/2". #
16053 sub.l %d1,%d0 # scale = BIAS + (-exp)
16054 asr.l &0x1,%d0 # divide scale factor by 2
16061 sub.l %d1,%d0 # scale = BIAS + (-exp)
16062 asr.l &0x1,%d0 # divide scale factor by 2
16075 asr.l &0x1,%d0 # divide scale factor by 2
16082 asr.l &0x1,%d0 # divide scale factor by 2
16089 # scale_to_zero_dst(): scale the exponent of extended precision #
16100 # d0 = scale value #
16127 sub.l %d1,%d0 # scale = BIAS + (-exp)
18925 andi.l &0x3,%d1 # extract scale value
18927 lsl.l %d1,%d0 # shift index by scale
19020 rol.w &0x7,%d1 # rotate scale value into place
19021 andi.l &0x3,%d1 # extract scale value
19023 lsl.l %d1,%d0 # shift index by scale
22674 # _denorm() - denormalize according to scale factor #
22679 # d0 = scale factor #
22690 # according to the scale factor passed in d0. Then, round the #
23931 bne.b sc_mul # if neg (LAMBDA = 1), scale by mul
/linux-4.1.27/arch/sparc/kernel/
H A Dvisemul.c479 unsigned long rs1, rs2, gsr, scale, rd_val; pformat() local
482 scale = (gsr >> 3) & (opf == FPACK16_OPF ? 0xf : 0x1f); pformat()
492 int scaled = src << scale; pformat()
515 s64 scaled = src << scale; pformat()
538 s64 scaled = src << scale; pformat()
/linux-4.1.27/drivers/input/touchscreen/
H A Dwacom_w8001.c160 /* scale to pen maximum */ parse_multi_touch()
268 /* scale to pen maximum */ report_single_touch()
443 /* if pen is supported scale to pen maximum */ w8001_setup()
/linux-4.1.27/drivers/iio/common/st_sensors/
H A Dst_sensors_core.c328 dev_info(&indio_dev->dev, "Full-scale not possible\n"); st_sensors_init_sensor()
381 int st_sensors_set_fullscale_by_gain(struct iio_dev *indio_dev, int scale) st_sensors_set_fullscale_by_gain() argument
387 if ((sdata->sensor_settings->fs.fs_avl[i].gain == scale) && st_sensors_set_fullscale_by_gain()
/linux-4.1.27/drivers/media/usb/s2255/
H A Ds2255drv.c19 * -full or half size Grey scale: all 4 channels at once
147 u32 scale; /* output video scale */ member in struct:s2255_mode
873 mode.scale = SCALE_4CIFSI; vidioc_s_fmt_vid_cap()
875 mode.scale = SCALE_4CIFS; vidioc_s_fmt_vid_cap()
877 mode.scale = SCALE_2CIFS; vidioc_s_fmt_vid_cap()
880 mode.scale = SCALE_1CIFS; vidioc_s_fmt_vid_cap()
907 else if (mode.scale != vc->mode.scale) vidioc_s_fmt_vid_cap()
943 switch (mode->scale) { get_transfer_size()
961 switch (mode->scale) { get_transfer_size()
999 dev_info(dev, "format: %d\nscale %d\n", mode->format, mode->scale); s2255_print_cfg()
/linux-4.1.27/drivers/acpi/
H A Dsbs.c126 int scale = 1; battery_scale() local
128 scale *= 10; battery_scale()
129 return scale; battery_scale()
/linux-4.1.27/drivers/iio/accel/
H A Dbma180.c120 int scale; member in struct:bma180_data
268 "failed to set scale\n"); bma180_set_scale()
271 data->scale = val; bma180_set_scale()
491 *val2 = data->scale; bma180_read_raw()
H A Dmma9551_core.c774 * mma9551_read_accel_scale() - read accelerometer scale
775 * @val: Pointer to the accelerometer scale (int value)
776 * @val2: Pointer to the accelerometer scale (micro value)
778 * Read accelerometer scale.
H A Dmma8452.c117 * So scale factor is given by:
/linux-4.1.27/drivers/media/platform/
H A Dvia-camera.h69 #define VCR_AVS_HEN 0x00000800 /* Horizontal scale enable */
/linux-4.1.27/drivers/media/platform/vsp1/
H A Dvsp1_rwpf.c115 /* The RWPF performs format conversion but can't scale, only the vsp1_rwpf_set_format()
H A Dvsp1_sru.c273 * otherwise don't scale. sru_try_format()
/linux-4.1.27/drivers/net/irda/
H A Dvia-ircc.h502 static void Sdelay(__u16 scale) Sdelay() argument
507 for (j = 0; j < scale; j++) { Sdelay()
515 static void Tdelay(__u16 scale) Tdelay() argument
520 for (j = 0; j < scale; j++) { Tdelay()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
H A Dlibcfs_lock.c53 * cpu-partition lock is designed for large-scale SMP system, so we need to
/linux-4.1.27/drivers/input/misc/
H A Dmma8450.c150 * Full scale selection - Active, +/- 2G mma8450_open()
H A Dpm8xxx-vibrator.c92 * scale the level to fit into these ranges. pm8xxx_work_handler()
/linux-4.1.27/drivers/input/mouse/
H A Dpsmouse.h75 void (*set_scale)(struct psmouse *psmouse, enum psmouse_scale scale);
H A Dfocaltech.c391 enum psmouse_scale scale) focaltech_set_scale()
431 * rate/resolution/scale changes are not supported yet, and focaltech_init()
390 focaltech_set_scale(struct psmouse *psmouse, enum psmouse_scale scale) focaltech_set_scale() argument
/linux-4.1.27/arch/mips/cavium-octeon/
H A Dcsrc-octeon.c182 * We scale the wait by the clock ratio, and then wait for the
/linux-4.1.27/include/net/
H A Dinet_frag.h130 /* The default percpu_counter batch size is not big enough to scale to
/linux-4.1.27/include/uapi/linux/
H A Dultrasound.h45 * _GUS_RAMPRATE - Sets the speed for volume ramping (P1=scale, P2=rate)
/linux-4.1.27/arch/mips/loongson/common/cs5536/
H A Dcs5536_mfgpt.c207 if (num_possible_cpus() > 1) /* MFGPT does not scale! */ init_mfgpt_clocksource()
/linux-4.1.27/include/drm/
H A Ddrm_plane_helper.h32 * of the min/max scale parameters of the update checker function.
/linux-4.1.27/drivers/media/usb/gspca/
H A Dmars.c282 /* data[9]= 0x56; * reg 8, 24MHz, 2:1 scale down */ sd_start()
284 data[9] = 0x52; /* reg 8, 24MHz, no scale down */ sd_start()
H A Dvicam.c125 req_data[1] |= 0x01; /* low nibble x-scale */ vicam_read_frame()
127 req_data[1] |= 0x10; /* high nibble y-scale */ vicam_read_frame()
H A Dmr97310a.c526 data[9] |= 0x04; /* reg 8, 2:1 scale down from 320 */ start_cif_cam()
536 data[9] |= 0x04; /* reg 8, 2:1 scale down from 352 */ start_cif_cam()
623 data[9] |= 0x0c; /* reg 8, 4:1 scale down */ start_vga_cam()
626 data[9] |= 0x04; /* reg 8, 2:1 scale down */ start_vga_cam()
643 data[9] |= 0x04; /* reg 8, 2:1 scale down */ start_vga_cam()
830 so scale 0 - 4095 to 300 - 4095 */ setexposure()
H A Dsonixb.c41 00 scale 1, 01 scale 1/2, 10, scale 1/4
346 /* DAC scale */
635 * same level as at 16, so skip 32-47 (of the 0-63 scale). setgain()
810 but anything below 500 causes vsync issues, so scale setexposure()
839 but anything below 300 causes vsync issues, so scale setexposure()
/linux-4.1.27/arch/blackfin/lib/
H A Dudivsi3.S80 /* IF condition is true we can scale our inputs and use the divide primitives,
86 /* If condition is true we can scale our inputs and use the divide primitives,
/linux-4.1.27/drivers/message/fusion/
H A Dmptfc.c1185 int scale; mptfc_probe() local
1275 scale = ioc->req_sz/ioc->SGE_size; mptfc_probe()
1277 numSGE = (scale - 1) * mptfc_probe()
1278 (ioc->facts.MaxChainDepth-1) + scale + mptfc_probe()
1281 numSGE = 1 + (scale - 1) * mptfc_probe()
1282 (ioc->facts.MaxChainDepth-1) + scale + mptfc_probe()
H A Dmptspi.c1366 int scale; mptspi_probe() local
1475 scale = ioc->req_sz/ioc->SGE_size; mptspi_probe()
1477 numSGE = (scale - 1) * mptspi_probe()
1478 (ioc->facts.MaxChainDepth-1) + scale + mptspi_probe()
1481 numSGE = 1 + (scale - 1) * mptspi_probe()
1482 (ioc->facts.MaxChainDepth-1) + scale + mptspi_probe()
/linux-4.1.27/drivers/media/dvb-frontends/drx39xyj/
H A Ddrxj.c1107 static const u8 scale = 15; log1_times100() local
1110 log2lut[n] = (1<<scale) * 200 * log2( 1.0 + ( (1.0/(1<<INDEXWIDTH)) * n )) log1_times100()
1161 if ((x & (((u32) (-1)) << (scale + 1))) == 0) { log1_times100()
1162 for (k = scale; k > 0; k--) { log1_times100()
1163 if (x & (((u32) 1) << scale)) log1_times100()
1168 for (k = scale; k < 31; k++) { log1_times100()
1169 if ((x & (((u32) (-1)) << (scale + 1))) == 0) log1_times100()
1175 Now x has binary point between bit[scale] and bit[scale-1] log1_times100()
1179 y = k * ((((u32) 1) << scale) * 200); log1_times100()
1182 x &= ((((u32) 1) << scale) - 1); log1_times100()
1184 i = (u8) (x >> (scale - index_width)); log1_times100()
1186 d = x & ((((u32) 1) << (scale - index_width)) - 1); log1_times100()
1189 ((d * (log2lut[i + 1] - log2lut[i])) >> (scale - index_width)); log1_times100()
1191 y /= 108853; /* (log2(10) << scale) */ log1_times100()
9479 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_get_qam_sig_quality()
9608 p->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; ctrl_get_qam_sig_quality()
9609 p->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; ctrl_get_qam_sig_quality()
9610 p->pre_bit_error.stat[0].scale = FE_SCALE_COUNTER; ctrl_get_qam_sig_quality()
9611 p->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; ctrl_get_qam_sig_quality()
9612 p->block_error.stat[0].scale = FE_SCALE_COUNTER; ctrl_get_qam_sig_quality()
9613 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; ctrl_get_qam_sig_quality()
9639 p->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_get_qam_sig_quality()
9640 p->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_get_qam_sig_quality()
9641 p->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_get_qam_sig_quality()
9642 p->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_get_qam_sig_quality()
9643 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_get_qam_sig_quality()
9644 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_get_qam_sig_quality()
10675 p->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10677 p->strength.stat[0].scale = FE_SCALE_RELATIVE; ctrl_sig_quality()
10691 p->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10692 p->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10693 p->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10694 p->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10695 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10696 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10697 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10702 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10704 p->block_error.stat[0].scale = FE_SCALE_COUNTER; ctrl_sig_quality()
10706 p->block_count.stat[0].scale = FE_SCALE_COUNTER; ctrl_sig_quality()
10714 p->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10716 p->pre_bit_error.stat[0].scale = FE_SCALE_COUNTER; ctrl_sig_quality()
10718 p->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; ctrl_sig_quality()
10725 p->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10727 p->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; ctrl_sig_quality()
10729 p->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; ctrl_sig_quality()
10735 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; ctrl_sig_quality()
10738 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; ctrl_sig_quality()
12001 if (p->pre_bit_error.stat[0].scale == FE_SCALE_NOT_AVAILABLE) { drx39xxj_read_ber()
12023 if (p->strength.stat[0].scale == FE_SCALE_NOT_AVAILABLE) { drx39xxj_read_signal_strength()
12037 if (p->cnr.stat[0].scale == FE_SCALE_NOT_AVAILABLE) { drx39xxj_read_snr()
12052 if (p->block_error.stat[0].scale == FE_SCALE_NOT_AVAILABLE) { drx39xxj_read_ucblocks()
12159 p->strength.stat[0].scale = FE_SCALE_RELATIVE; drx39xxj_set_frontend()
12340 p->strength.stat[0].scale = FE_SCALE_RELATIVE; drx39xxj_attach()
12341 p->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drx39xxj_attach()
12342 p->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drx39xxj_attach()
12343 p->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drx39xxj_attach()
12344 p->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drx39xxj_attach()
12345 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drx39xxj_attach()
12346 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drx39xxj_attach()
12347 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; drx39xxj_attach()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Drs.c849 * Simple function to compare two rate scale table types
911 IWL_DEBUG_RATE_LIMIT(priv, "get frame ack response, update rate scale window\n"); rs_tx_status()
984 /* Figure out if rate scale algorithm is in active or search table */ rs_tx_status()
1005 * and continue to perform rate scale to find the rate table rs_tx_status()
1016 * first index into rate scale table. rs_tx_status()
2245 IWL_DEBUG_RATE(priv, "rate scale calculate new rate for skb\n"); rs_rate_scale_perform()
2267 * Select rate-scale / modulation-mode table to work with in rs_rate_scale_perform()
2286 IWL_DEBUG_RATE(priv, "Rate scale index %d for type %d\n", index, rs_rate_scale_perform()
2514 * don't set scale_action, don't want to scale up if rs_rate_scale_perform()
2515 * the rate scale doesn't otherwise think that is a rs_rate_scale_perform()
2554 IWL_DEBUG_RATE(priv, "choose rate scale index %d action %d low %d " rs_rate_scale_perform()
2728 IWL_DEBUG_RATE_LIMIT(priv, "rate scale calculate new rate for skb\n"); rs_get_rate()
2795 IWL_DEBUG_RATE(priv, "create station rate scale window\n"); rs_alloc_sta()
2828 IWL_DEBUG_RATE(priv, "LQ: *** rate scale station global init for station %d ***\n", iwl_rs_rate_init()
3054 /* rate scale requires free function to be implemented */ rs_free()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
H A D4965-rs.c792 * Simple function to compare two rate scale table types
823 D_RATE("get frame ack response, update rate scale win\n"); il4965_rs_tx_status()
897 /* Figure out if rate scale algorithm is in active or search table */ il4965_rs_tx_status()
919 * and continue to perform rate scale to find the rate table il4965_rs_tx_status()
930 * first idx into rate scale table. il4965_rs_tx_status()
1770 D_RATE("rate scale calculate new rate for skb\n"); il4965_rs_rate_scale_perform()
1791 * Select rate-scale / modulation-mode table to work with in il4965_rs_rate_scale_perform()
1810 D_RATE("Rate scale idx %d for type %d\n", idx, tbl->lq_type); il4965_rs_rate_scale_perform()
2040 D_RATE("choose rate scale idx %d action %d low %d " "high %d type %d\n", il4965_rs_rate_scale_perform()
2210 D_RATE("rate scale calculate new rate for skb\n"); il4965_rs_get_rate()
2281 D_RATE("create station rate scale win\n"); il4965_rs_alloc_sta()
2318 D_RATE("LQ:" "*** rate scale station global init for station %d ***\n", il4965_rs_rate_init()
2503 /* rate scale requires free function to be implemented */
H A D3945-rs.c143 * il3945_rate_scale_flush_wins - flush out the rate scale wins
400 /* rate scale requires free function to be implemented */
523 /* We updated the rate scale win -- if its been more than il3945_rs_tx_status()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_legacy_crtc.c58 u32 scale, inc, crtc_more_cntl; radeon_legacy_rmx_mode_set() local
132 scale = ((xres + inc) * RADEON_HORZ_STRETCH_RATIO_MAX) radeon_legacy_rmx_mode_set()
134 fp_horz_stretch |= (((scale) & RADEON_HORZ_STRETCH_RATIO_MASK) | radeon_legacy_rmx_mode_set()
144 scale = ((yres + inc) * RADEON_VERT_STRETCH_RATIO_MAX) radeon_legacy_rmx_mode_set()
146 fp_vert_stretch |= (((scale) & RADEON_VERT_STRETCH_RATIO_MASK) | radeon_legacy_rmx_mode_set()
/linux-4.1.27/drivers/powercap/
H A Dintel_rapl.c76 #define ENERGY_UNIT_SCALE 1000 /* scale from driver unit to powercap unit */
667 u64 scale = 1; rapl_unit_xlate() local
678 scale = ENERGY_UNIT_SCALE; rapl_unit_xlate()
693 return div64_u64(value, units) * scale; rapl_unit_xlate()
697 return div64_u64(value, scale); rapl_unit_xlate()
/linux-4.1.27/sound/soc/codecs/
H A Dalc5632.c143 /* -34.5db min scale, 1.5db steps, no mute */
145 /* -46.5db min scale, 1.5db steps, no mute */
147 /* -16.5db min scale, 1.5db steps, no mute */
154 /* 0db min scale, 6 db steps, no mute */
161 /* 31 steps (5 bit), -46.5db scale */
/linux-4.1.27/net/sched/
H A Dsch_pie.c47 bool bytemode; /* to scale drop early prob based on pkt size */
342 * We scale alpha and beta differently depending on whether we are in calculate_probability()
/linux-4.1.27/drivers/iio/gyro/
H A Dadis16260.c31 #define ADIS16260_GYRO_SCALE 0x16 /* Calibration, scale adjustment */
/linux-4.1.27/drivers/iio/humidity/
H A Ddht11.c111 /* scale down with timeres and check validity */ dht11_decode()
/linux-4.1.27/drivers/iio/light/
H A Dtcs3414.c80 /* scale factors: 1/gain */
/linux-4.1.27/drivers/mtd/chips/
H A Dcfi_util.c29 int osf = cfi->interleave * cfi->device_type; /* scale factor */ cfi_qry_present()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Dprofile.c94 * We want to scale the number of MTTs with the size of the mlx4_make_profile()
/linux-4.1.27/drivers/media/platform/s5p-jpeg/
H A Djpeg-core.h186 * @scale_factor: scale factor for JPEG decoding

Completed in 6513 milliseconds

123