Searched refs:ratio (Results 1 - 25 of 41) sorted by relevance

12

/drivers/cpufreq/
H A Dmperf.c30 * Only IA32_APERF/IA32_MPERF ratio is architecturally defined and
37 unsigned long ratio; local
43 ratio = calc_aperfmperf_ratio(&per_cpu(acfreq_old_perf, cpu), &perf);
46 retval = (policy->cpuinfo.max_freq * ratio) >> APERFMPERF_SHIFT;
H A Dspeedstep-lib.c37 unsigned int ratio; /* Frequency Multiplier (x10) */ member in struct:__anon419
101 (msr_decode_mult[j].ratio * msr_decode_fsb[i].value * 100));
103 return msr_decode_mult[j].ratio * msr_decode_fsb[i].value * 100;
H A Dlonghaul.c213 /* Disable bus ratio bit */
242 * Sets a new clock ratio.
428 unsigned int ratio; local
484 ratio = mults[j];
485 if (ratio == -1)
487 if (ratio > maxmult || ratio < minmult)
489 longhaul_table[k].frequency = calc_speed(ratio);
/drivers/media/dvb/frontends/
H A Dz0194a.h16 u32 srate, u32 ratio)
36 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
37 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
38 stv0299_writereg(fe, 0x21, (ratio) & 0xf0);
15 sharp_z0194a_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
H A Dbsbe1.h51 static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) argument
65 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
66 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
67 stv0299_writereg(fe, 0x21, (ratio ) & 0xf0);
H A Dbsru6.h70 static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
97 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
98 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
99 stv0299_writereg(fe, 0x21, ratio & 0xf0);
H A Dves1x93.c177 u32 ratio; local
196 ratio = tmp / FIN;
199 ratio = (ratio << 8) + tmp / FIN;
202 ratio = (ratio << 8) + tmp / FIN;
206 if (ratio < MUL/3) FNR = 0;
207 if (ratio < (MUL*11)/50) FNR = 1;
208 if (ratio < MUL/6) FNR = 2;
209 if (ratio < MU
[all...]
H A Dtda8083.c133 u32 ratio; local
149 ratio = tmp / srate;
152 ratio = (ratio << 8) + tmp / srate;
155 ratio = (ratio << 8) + tmp / srate;
157 dprintk("tda8083: ratio == %08x\n", (unsigned int) ratio);
160 tda8083_writereg (state, 0x02, (ratio >> 16) & 0xff);
161 tda8083_writereg (state, 0x03, (ratio >>
[all...]
H A Dcx24110.c244 u32 ratio; local
290 ratio=(tmp/BDRI);
293 ratio=(ratio<<8)+(tmp/BDRI);
296 ratio=(ratio<<8)+(tmp/BDRI);
299 ratio=(ratio<<1)+(tmp/BDRI);
303 dprintk("ratio= %08x\n", ratio);
[all...]
H A Dstv0299.h92 int (*set_symbol_rate)(struct dvb_frontend *fe, u32 srate, u32 ratio);
H A Dves1820.c119 u32 ratio; local
164 ratio = (symbolrate << 4) / fin;
166 ratio = (ratio << 8) + tmp / fin;
168 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, fin);
170 BDR = ratio;
H A Dcx24123.c455 u32 tmp, sample_rate, ratio, sample_gain; local
495 ratio = tmp / sample_rate;
498 ratio = (ratio << 6) + (tmp / sample_rate);
501 ratio = (ratio << 6) + (tmp / sample_rate);
504 ratio = (ratio << 5) + (tmp / sample_rate);
509 cx24123_writereg(state, 0x08, (ratio >> 16) & 0x3f);
510 cx24123_writereg(state, 0x09, (ratio >>
[all...]
H A Dtda10021.c155 u32 tmp, ratio; local
175 ratio = (symbolrate << 4) / FIN;
177 ratio = (ratio << 8) + tmp / FIN;
179 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, FIN);
181 BDR = ratio;
H A Dstv0299.c228 u32 ratio; local
237 ratio = big << 4;
239 return state->config->set_symbol_rate(fe, srate, ratio);
/drivers/media/video/omap3isp/
H A Dispresizer.c65 * Constants for ratio calculation
316 * @ratio: Structure for ratio parameters.
321 const struct resizer_ratio *ratio)
329 rgval |= ((ratio->horz - 1) << ISPRSZ_CNT_HRSZ_SHIFT)
331 rgval |= ((ratio->vert - 1) << ISPRSZ_CNT_VRSZ_SHIFT)
336 if (ratio->horz > MID_RESIZE_VALUE)
342 if (ratio->vert > MID_RESIZE_VALUE)
697 * @ratio : return calculated ratios
701 * has a fixed number of phases that depend on the resizing ratio
320 resizer_set_ratio(struct isp_res_device *res, const struct resizer_ratio *ratio) argument
794 resizer_calc_ratios(struct isp_res_device *res, struct v4l2_rect *input, struct v4l2_mbus_framefmt *output, struct resizer_ratio *ratio) argument
1203 struct resizer_ratio ratio; local
1264 struct resizer_ratio ratio; local
1337 struct resizer_ratio ratio; local
[all...]
H A Dispresizer.h113 struct resizer_ratio ratio; member in struct:isp_res_device
/drivers/media/dvb/mantis/
H A Dmantis_vp1033.c119 u32 srate, u32 ratio)
146 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
147 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
148 stv0299_writereg(fe, 0x21, ratio & 0xf0);
118 lgtdqcs001f_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
/drivers/ide/
H A Dpdc202xx_new.c308 long pll_input, pll_output, ratio; local
363 * Calculate the ratio of F, R and NO
366 ratio = pll_output / (pll_input / 1000);
367 if (ratio < 8600L) { /* 8.6x */
370 } else if (ratio < 12900L) { /* 12.9x */
373 } else if (ratio < 16100L) { /* 16.1x */
376 } else if (ratio < 64000L) { /* 64x */
379 /* Invalid ratio */
380 printk(KERN_ERR "%s %s: Bad ratio %ld, giving up!\n",
381 name, pci_name(dev), ratio);
[all...]
/drivers/ata/
H A Dpata_pdc2027x.c522 long ratio = pout_required / pll_clock_khz; local
543 * Calculate the ratio of F, R and OD
546 if (ratio < 8600L) { /* 8.6x */
549 } else if (ratio < 12900L) { /* 12.9x */
552 } else if (ratio < 16100L) { /* 16.1x */
555 } else if (ratio < 64000L) { /* 64x */
558 /* Invalid ratio */
559 printk(KERN_ERR DRV_NAME ": Invalid ratio %ld, give up!\n", ratio);
563 F = (ratio * (
[all...]
/drivers/video/
H A Dasiliantfb.c118 unsigned ratio; local
123 ratio = 1000000 / pixclock;
125 Ftarget = 1000000 * ratio + (1000000 * remainder) / pixclock;
132 ratio = Ftarget / Fref;
138 unsigned m = n * ratio + (n * remainder) / Fref;
228 unsigned long Ftarget, ratio, remainder; local
230 ratio = 1000000 / var->pixclock;
232 Ftarget = 1000000 * ratio + (1000000 * remainder) / var->pixclock;
434 {0xcc, 200 }, /* MCLK ratio M */
435 {0xcd, 18 }, /* MCLK ratio
[all...]
/drivers/staging/iio/light/
H A Dtsl2583.c109 unsigned int ratio; member in struct:taos_lux
186 * using gain index. Limit checks are done next, then the ratio of a multiple
188 * declared above is then scanned to find the first ratio value that is just
189 * above the ratio we just calculated. The ch0 and ch1 multiplier constants in
198 u32 ratio; local
268 /* calculate ratio */
269 ratio = (ch1 << 15) / ch0;
272 p->ratio != 0 && p->ratio < ratio;
[all...]
/drivers/isdn/i4l/
H A Disdn_bsdcomp.c129 unsigned int ratio; /* recent compression ratio */ member in struct:bsd_db
130 unsigned int checkpoint; /* when to next check the ratio */
182 db->ratio = 0;
189 * Compute the compression ratio using fixed-point arithmetic
193 * watch only the local compression ratio.
197 * must compute the same ratio.
205 /* age the ratio by limiting the size of the counts */
216 /* Reset the dictionary only if the ratio is worse,
230 if (new_ratio < db->ratio || new_rati
[all...]
/drivers/media/dvb/b2c2/
H A Dflexcop-fe-tuner.c187 u32 srate, u32 ratio)
208 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
209 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
210 stv0299_writereg(fe, 0x21, ratio & 0xf0);
186 samsung_tbmu24112_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
/drivers/media/dvb/dvb-usb/
H A Dopera1.c188 u32 ratio)
192 stv0299_writereg(fe, REG_1F_SYMBOLRATE_BYTE0, (ratio >> 16) & 0xff);
193 stv0299_writereg(fe, REG_20_SYMBOLRATE_BYTE1, (ratio >> 8) & 0xff);
194 stv0299_writereg(fe, REG_21_SYMBOLRATE_BYTE2, (ratio) & 0xf0);
187 opera1_stv0299_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
/drivers/net/ppp/
H A Dbsd_comp.c94 * The compression ratio is checked at the first end of a packet
150 unsigned int ratio; /* recent compression ratio */ member in struct:bsd_db
151 unsigned int checkpoint; /* when to next check the ratio */
229 db->ratio = 0;
236 * Compute the compression ratio using fixed-point arithmetic
240 * watch only the local compression ratio.
244 * must compute the same ratio.
253 /* age the ratio by limiting the size of the counts */
264 /* Reset the dictionary only if the ratio i
[all...]

Completed in 453 milliseconds

12