Searched refs:scale (Results 151 - 175 of 326) sorted by relevance

1234567891011>>

/linux-master/drivers/media/dvb-frontends/drx39xyj/
H A Ddrxj.c1108 static const u8 scale = 15; local
1111 log2lut[n] = (1<<scale) * 200 * log2( 1.0 + ( (1.0/(1<<INDEXWIDTH)) * n ))
1162 if ((x & (((u32) (-1)) << (scale + 1))) == 0) {
1163 for (k = scale; k > 0; k--) {
1164 if (x & (((u32) 1) << scale))
1169 for (k = scale; k < 31; k++) {
1170 if ((x & (((u32) (-1)) << (scale + 1))) == 0)
1176 Now x has binary point between bit[scale] and bit[scale-1]
1180 y = k * ((((u32) 1) << scale) * 20
[all...]
/linux-master/drivers/gpu/drm/tidss/
H A Dtidss_dispc.c1176 /* Copy c8 4 MSB to 4 LSB for full scale c12 */
2049 "%s: Lite plane %u can't scale %ux%u!=%ux%u\n",
2104 struct dispc_scaling_params scale; local
2106 dispc_vid_calc_scaling(dispc, state, &scale, lite);
2116 (scale.in_w - 1) | ((scale.in_h - 1) << 16));
2121 pixinc(scale.xinc, cpp * 2));
2124 pixinc(scale.xinc, cpp));
2127 pixinc(1 + (scale.yinc * fb_width -
2128 scale
[all...]
/linux-master/arch/sparc/kernel/
H A Dvisemul.c480 unsigned long rs1, rs2, gsr, scale, rd_val; local
483 scale = (gsr >> 3) & (opf == FPACK16_OPF ? 0xf : 0x1f);
493 int scaled = src << scale;
516 s64 scaled = src << scale;
539 s64 scaled = src << scale;
/linux-master/drivers/gpu/drm/nouveau/dispnv04/
H A Ddfp.c338 else /* gpu needs to scale */
381 uint32_t diff, scale; local
386 * horizontal needs to be scaled at vertical scale factor
389 scale = (1 << 12) * adjusted_mode->vdisplay / output_mode->vdisplay;
391 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_XSCALE_VALUE);
402 * vertical needs to be scaled at horizontal scale factor
405 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay;
407 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_YSCALE_VALUE);
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_legacy_crtc.c62 u32 scale, inc, crtc_more_cntl; local
136 scale = ((xres + inc) * RADEON_HORZ_STRETCH_RATIO_MAX)
138 fp_horz_stretch |= (((scale) & RADEON_HORZ_STRETCH_RATIO_MASK) |
148 scale = ((yres + inc) * RADEON_VERT_STRETCH_RATIO_MAX)
150 fp_vert_stretch |= (((scale) & RADEON_VERT_STRETCH_RATIO_MASK) |
/linux-master/drivers/iio/gyro/
H A Dfxas21002c_core.c556 int scale; local
564 scale = fxas21002c_range_fs_from_value(data, fs_bits);
565 if (scale < 0) {
566 ret = scale;
570 *val = scale;
/linux-master/drivers/media/dvb-frontends/
H A Ddib8000.c1014 c->strength.stat[0].scale = FE_SCALE_DECIBEL;
1017 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
1018 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
1019 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
1020 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
1021 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
4147 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
4148 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
4149 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
4150 c->block_error.stat[0].scale
[all...]
H A Dts2020.c144 c->strength.stat[0].scale = FE_SCALE_DECIBEL;
441 c->strength.stat[0].scale = FE_SCALE_DECIBEL;
464 if (c->strength.stat[0].scale == FE_SCALE_NOT_AVAILABLE) {
/linux-master/drivers/pci/controller/
H A Dpcie-rockchip-host.c254 u32 status, scale, power; local
260 * Set RC's captured slot power limit and scale if
269 scale = 3; /* 0.001x */
273 if (!scale) {
277 scale--;
283 (scale << PCIE_RC_CONFIG_DCR_CPLS_SHIFT);
/linux-master/drivers/iio/temperature/
H A Dmlx90635.c547 static s64 mlx90635_calc_ta4(s64 TAdut, s64 scale) argument
549 return (div64_s64(TAdut, scale) + 27315) *
550 (div64_s64(TAdut, scale) + 27315) *
551 (div64_s64(TAdut, scale) + 27315) *
552 (div64_s64(TAdut, scale) + 27315);
/linux-master/tools/testing/selftests/net/forwarding/
H A Dlib.sh1143 speed=$(echo "scale=1; $speed / 1024" | bc)
1426 weights_ratio=$(echo "scale=2; $weight_rp12 / $weight_rp13" \
1429 weights_ratio=$(echo "scale=2; $weight_rp13 / $weight_rp12" \
1441 packets_ratio=$(echo "scale=2; $packets_rp12 / $packets_rp13" \
1444 packets_ratio=$(echo "scale=2; $packets_rp13 / $packets_rp12" \
/linux-master/drivers/acpi/
H A Dsbs.c104 int scale = 1; local
106 scale *= 10;
107 return scale;
/linux-master/drivers/iio/light/
H A Dopt3001.c153 const struct opt3001_scale *scale = &opt3001_scales[i]; local
161 (scale->val * 1000 + scale->val2 / 1000)) {
492 dev_err(opt->dev, "can't find scale for %d.%06u\n", val, val2);
635 /* Enable automatic full-scale setting mode */
/linux-master/drivers/video/backlight/
H A Dbacklight.c313 if (WARN_ON(bd->props.scale > BACKLIGHT_SCALE_NON_LINEAR))
316 return sprintf(buf, "%s\n", backlight_scale_types[bd->props.scale]);
318 static DEVICE_ATTR_RO(scale);
/linux-master/sound/soc/atmel/
H A Datmel-pdmic.c221 /* Mic Gain = dgain * 2^(-scale) */
224 unsigned int scale; member in struct:mic_gain
295 (mic_gain_table[i].scale == scale_val))
323 mic_gain_table[val].scale << PDMIC_DSPR0_SCALE_SHIFT);
/linux-master/drivers/iio/adc/
H A Dsun4i-gpadc-iio.c417 int val, scale, offset; local
422 sun4i_gpadc_temp_scale(info->indio_dev, &scale);
425 *temp = (val + offset) * scale;
/linux-master/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-hw.c354 const struct v4l2_area *scale,
368 mxc_isi_channel_set_scaling(pipe, in_encoding, in_size, scale,
370 mxc_isi_channel_set_crop(pipe, scale, crop);
351 mxc_isi_channel_config(struct mxc_isi_pipe *pipe, enum mxc_isi_input_id input, const struct v4l2_area *in_size, const struct v4l2_area *scale, const struct v4l2_rect *crop, enum mxc_isi_encoding in_encoding, enum mxc_isi_encoding out_encoding) argument
/linux-master/drivers/macintosh/
H A Dwindfarm_pm81.c20 * scaling factors (scale/offsets) expressed as 4.12 fixed point values
21 * signed offset, unsigned scale)
41 * linear-factors : offset = 0xff38 scale = 0x0ccd
42 * offset = 0x0208 scale = 0x07ae
53 * linear-factors : offset = 0xff38 scale = 0x0ccd
54 * offset = 0x0000 scale = 0x0000
65 * linear-factors : offset = 0x0000 scale = 0x1000
66 * offset = 0x0091 scale = 0x0bae
69 * has an additional pair of scaling factor. This is used to scale the
77 * linear-factors : offset = 0xfb50 scale
251 s32 scale; member in struct:wf_smu_cpu_fans_state
[all...]
/linux-master/drivers/base/
H A Darch_topology.c135 unsigned long scale; local
143 * want to update the scale factor with information from CPUFREQ.
144 * Instead the scale factor will be updated from arch_scale_freq_tick.
149 scale = (cur_freq << SCHED_CAPACITY_SHIFT) / max_freq;
152 per_cpu(arch_freq_scale, i) = scale;
/linux-master/drivers/powercap/
H A Dintel_rapl_common.c96 #define ENERGY_UNIT_SCALE 1000 /* scale from driver unit to powercap unit */
616 u64 scale = 1; local
623 scale = ENERGY_UNIT_SCALE;
634 return div64_u64(value, units) * scale;
638 return div64_u64(value, scale);
1681 * users must then scale back: count * 1/(1e9*2^32) to get Joules
1685 sdelta = delta * data->scale[event->hw.flags];
1932 RAPL_EVENT_ATTR_STR(energy-cores.scale, rapl_scale_cores, "2.3283064365386962890625e-10");
1933 RAPL_EVENT_ATTR_STR(energy-pkg.scale, rapl_scale_pkg, "2.3283064365386962890625e-10");
1934 RAPL_EVENT_ATTR_STR(energy-ram.scale, rapl_scale_ra
[all...]
/linux-master/drivers/usb/gadget/function/
H A Du_audio.c982 DECLARE_TLV_DB_MINMAX(scale, 0, 0);
984 if (size < sizeof(scale))
988 scale[2] = (prm->volume_min * 100) / 256;
989 scale[3] = (prm->volume_max * 100) / 256;
990 if (copy_to_user(_tlv, scale, sizeof(scale)))
/linux-master/drivers/gpu/drm/sti/
H A Dsti_hqvdp.c659 * @scale: scaling/zoom factor
667 static void sti_hqvdp_update_hvsrc(enum sti_hvsrc_orient orient, int scale, argument
674 if (scale < SCALE_MAX_FOR_LEG_LUT_F) {
679 } else if (scale < SCALE_MAX_FOR_LEG_LUT_E) {
684 } else if (scale < SCALE_MAX_FOR_LEG_LUT_D) {
689 } else if (scale < SCALE_MAX_FOR_LEG_LUT_C) {
694 } else if (scale == SCALE_MAX_FOR_LEG_LUT_C) {
732 * True if the HW can scale.
/linux-master/drivers/gpu/drm/vc4/
H A Dvc4_plane.c524 u32 scale, recip; local
526 scale = (1 << 16) * src / dst;
529 * as (1<<32)/scale, ~0 is close enough.
531 recip = ~0 / scale;
534 VC4_SET_FIELD(scale, SCALER_TPZ0_SCALE) |
542 u32 scale = (1 << 16) * src / dst; local
546 VC4_SET_FIELD(scale, SCALER_PPF_SCALE) |
/linux-master/drivers/infiniband/hw/mlx5/
H A Dmlx5_ib.h90 * page_offset_quantized * (page_size/scale) = page_offset
95 unsigned int page_offset_bits, u64 pgoff_bitmask, unsigned int scale,
99 scale, page_offset_quantized) \
105 GENMASK(31, order_base_2(scale)), scale, \
110 scale, page_offset_quantized) \
115 __mlx5_bit_sz(typ, page_offset_fld), 0, scale, \
/linux-master/drivers/iio/imu/
H A Dadis16480.c529 const struct iio_chan_spec *chan, int scale)
534 if (scale < -0x8000 || scale >= 0x8000)
537 return adis_write_reg_16(&st->adis, reg, scale);
541 const struct iio_chan_spec *chan, int *scale)
552 *scale = sign_extend32(val16, 15);
687 * max scale is 1310 mbar
528 adis16480_set_calibscale(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int scale) argument
540 adis16480_get_calibscale(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int *scale) argument

Completed in 343 milliseconds

1234567891011>>