Searched defs:scale (Results 1 - 25 of 41) sorted by relevance

12

/drivers/staging/tidspbridge/dynload/
H A Dreloc.c147 #define SCALE_BITS 4 /* there are 4 bits in the scale field */
178 unsigned int scale = 0; local
294 scale = RFV_SCALE(reloc_info);
307 val <<= scale; local
422 /* scale factor determined by 3 LSBs of field */
423 scale = c60_scale[val & SCALE_MASK];
426 val >>= SCALE_BITS; /* ignore the scale field hereafter */
427 val <<= scale; local
429 if (((1 << scale) - 1) & val)
440 val >>= scale; local
[all...]
/drivers/gpu/drm/i2c/
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; local
346 scale = norm->vtotal*fixed1;
347 do_div(scale, mode->vtotal);
352 hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale)
358 vpos = max(0, norm->vdisplay - round_fixed(mode->vdisplay*scale)
H A Dch7006_priv.h96 int scale; member in struct:ch7006_priv
/drivers/mfd/
H A Dwm8350-core.c340 int wm8350_read_auxadc(struct wm8350 *wm8350, int channel, int scale, int vref) argument
347 && (scale != 0 || vref != 0))
356 if (scale || vref) {
357 reg = scale << 13;
/drivers/gpu/drm/nouveau/
H A Dnv04_dfp.c336 else /* gpu needs to scale */
379 uint32_t diff, scale; local
384 * horizontal needs to be scaled at vertical scale factor
387 scale = (1 << 12) * adjusted_mode->vdisplay / output_mode->vdisplay;
389 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_XSCALE_VALUE);
400 * vertical needs to be scaled at horizontal scale factor
403 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay;
405 XLATE(scale, divide_by_2, NV_PRAMDAC_FP_DEBUG_1_YSCALE_VALUE);
/drivers/power/
H A Dds2760_battery.c124 int ret, i, start, count, scale[5]; local
195 scale[0] = di->full_active_uAh;
197 scale[i] = scale[i - 1] + di->raw[DS2760_ACTIVE_FULL + 1 + i];
199 di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10);
203 scale[4] = di->raw[DS2760_ACTIVE_EMPTY + 4];
205 scale[i] = scale[i + 1] + di->raw[DS2760_ACTIVE_EMPTY + i];
207 di->empty_uAh = battery_interpolate(scale, di->temp_C / 10);
/drivers/staging/iio/Documentation/
H A Diio_utils.h59 * @scale: scale factor to be applied for conversion to si units
70 float scale; member in struct:iio_channel_info
356 current->scale = 1.0;
386 /* Find the scale */
387 ret = iioutils_get_param_float(&current->scale,
388 "scale",
/drivers/gpu/drm/radeon/
H A Dradeon_legacy_crtc.c58 u32 scale, inc, crtc_more_cntl; local
132 scale = ((xres + inc) * RADEON_HORZ_STRETCH_RATIO_MAX)
134 fp_horz_stretch |= (((scale) & RADEON_HORZ_STRETCH_RATIO_MASK) |
144 scale = ((yres + inc) * RADEON_VERT_STRETCH_RATIO_MAX)
146 fp_vert_stretch |= (((scale) & RADEON_VERT_STRETCH_RATIO_MASK) |
/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
250 s32 scale; member in struct:wf_smu_cpu_fans_state
[all...]
/drivers/staging/iio/accel/
H A Dsca3000.h188 * @scale: scale * 10^-6
200 unsigned int scale; member in struct:sca3000_chip_info
/drivers/tty/serial/
H A Dar933x_uart.c172 unsigned int baud, scale; local
195 scale = (port->uartclk / (16 * baud)) - 1;
213 scale << AR933X_UART_CLOCK_SCALE_S | 8192);
/drivers/acpi/
H A Dsbs.c138 int scale = 1; local
140 scale *= 10;
141 return scale;
/drivers/char/tpm/
H A Dtpm.c542 unsigned int scale = 1; local
564 scale = 1000;
568 chip->vendor.timeout_a = usecs_to_jiffies(timeout * scale);
571 chip->vendor.timeout_b = usecs_to_jiffies(timeout * scale);
574 chip->vendor.timeout_c = usecs_to_jiffies(timeout * scale);
577 chip->vendor.timeout_d = usecs_to_jiffies(timeout * scale);
606 * We also scale the TPM_MEDIUM and -_LONG values by 1000.
/drivers/message/fusion/
H A Dmptfc.c1188 int scale; local
1278 scale = ioc->req_sz/ioc->SGE_size;
1280 numSGE = (scale - 1) *
1281 (ioc->facts.MaxChainDepth-1) + scale +
1284 numSGE = 1 + (scale - 1) *
1285 (ioc->facts.MaxChainDepth-1) + scale +
H A Dmptspi.c1369 int scale; local
1473 scale = ioc->req_sz/ioc->SGE_size;
1475 numSGE = (scale - 1) *
1476 (ioc->facts.MaxChainDepth-1) + scale +
1479 numSGE = 1 + (scale - 1) *
1480 (ioc->facts.MaxChainDepth-1) + scale +
/drivers/net/wireless/ath/ath9k/
H A Dar9003_paprd.c74 unsigned int power, scale, delta; local
76 scale = ar9003_get_paprd_scale_factor(ah, chan);
81 if (delta > scale)
94 unsigned int power, scale, delta; local
96 scale = ar9003_get_paprd_scale_factor(ah, chan);
105 power += scale;
107 if (delta > scale)
/drivers/pcmcia/
H A Dcistpl.c662 u_char scale; local
707 scale = *p & 7;
708 if (scale == 7)
710 device->dev[i].size = ((*p >> 3) + 1) * (512 << (scale*2));
909 u_int scale; local
921 scale = POWER_SCALE(*p);
927 (*p & 0x7f) * scale / 100;
945 u_char scale; local
949 scale = *p;
950 if ((scale
[all...]
/drivers/sbus/char/
H A Denvctrl.c109 * through a data table and a scale.
116 #define ENVCTRL_TRANSLATE_SCALE 4 /* table[data]/scale */
149 unsigned int scale; member in struct:pcf8584_tblprop
329 int scale, char *tbl, char *bufdata)
347 /* Decode this way: data = table[data]/scale */
348 sprintf(bufdata,"%d ", (tbl[data] * 10) / (scale));
391 pchild->tblprop_array[i].scale,
422 pchild->tblprop_array[i].scale,
328 envctrl_i2c_data_translate(unsigned char data, int translate_type, int scale, char *tbl, char *bufdata) argument
/drivers/staging/media/solo6x10/
H A Dv4l2.c86 int sx, int sy, int ex, int ey, int scale)
96 SOLO_VI_WIN_SCALE(scale));
85 solo_win_setup(struct solo_dev *solo_dev, u8 ch, int sx, int sy, int ex, int ey, int scale) argument
/drivers/video/nvidia/
H A Dnv_type.h60 u32 scale; member in struct:_riva_hw_state
/drivers/media/video/et61x251/
H A Det61x251_core.c1054 static int et61x251_set_scale(struct et61x251_device* cam, u8 scale) argument
1062 if (scale == 1)
1064 else if (scale == 2)
1070 PDBGG("Scaling factor: %u", scale);
1782 u8 scale; local
1833 scale = b ? (u8)((a / b) < 4 ? 1 : 2) : 1;
1835 scale = 1;
1852 err += et61x251_set_scale(cam, scale);
1862 s->pix_format.width = rect->width/scale;
1863 s->pix_format.height = rect->height/scale;
1983 u8 scale; local
[all...]
/drivers/media/video/gspca/
H A Dsn9c20x.c2066 u8 fmt, scale = 0; local
2082 scale = 0xc0;
2086 scale = 0x80;
2090 scale = 0x90;
2094 scale = 0xa0;
2104 reg_w1(gspca_dev, 0x1189, scale);
/drivers/media/video/
H A Drj54n1cb0c.c162 unsigned short scale; member in struct:rj54n1
1090 /* Supported scales 1:1 >= scale > 1:16 */
H A Dsh_mobile_ceu_camera.c633 static unsigned int size_dst(unsigned int src, unsigned int scale) argument
635 unsigned int mant_pre = scale >> 12;
636 if (!src || !scale)
639 mant_pre * 4096 / scale + 1;
644 u16 scale; local
649 scale = (src * 4096 / *dst) & ~7;
651 while (scale > 4096 && size_dst(src, scale) < *dst)
652 scale -= 8;
654 *dst = size_dst(src, scale);
1203 scale_down(unsigned int size, unsigned int scale) argument
[all...]
/drivers/media/video/sn9c102/
H A Dsn9c102_core.c1580 static int sn9c102_set_scale(struct sn9c102_device* cam, u8 scale) argument
1585 if (scale == 1)
1587 else if (scale == 2) {
1590 } else if (scale == 4)
1597 PDBGG("Scaling factor: %u", scale);
2365 u8 scale; local
2416 scale = b ? (u8)((a / b) < 4 ? 1 : ((a / b) < 16 ? 2 : 4)) : 1;
2418 scale = 1;
2435 err += sn9c102_set_scale(cam, scale);
2445 s->pix_format.width = rect->width/scale;
2588 u8 scale; local
[all...]

Completed in 1298 milliseconds

12