/drivers/cpufreq/ |
H A D | mperf.c | 30 * 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 D | speedstep-lib.c | 37 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 D | longhaul.c | 213 /* 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 D | z0194a.h | 16 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 D | bsbe1.h | 51 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 D | bsru6.h | 70 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 D | ves1x93.c | 177 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 D | tda8083.c | 133 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 D | cx24110.c | 244 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 D | stv0299.h | 92 int (*set_symbol_rate)(struct dvb_frontend *fe, u32 srate, u32 ratio);
|
H A D | ves1820.c | 119 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 D | cx24123.c | 455 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 D | tda10021.c | 155 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 D | stv0299.c | 228 u32 ratio; local 237 ratio = big << 4; 239 return state->config->set_symbol_rate(fe, srate, ratio);
|
/drivers/media/video/omap3isp/ |
H A D | ispresizer.c | 65 * 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 D | ispresizer.h | 113 struct resizer_ratio ratio; member in struct:isp_res_device
|
/drivers/media/dvb/mantis/ |
H A D | mantis_vp1033.c | 119 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 D | pdc202xx_new.c | 308 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 D | pata_pdc2027x.c | 522 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 D | asiliantfb.c | 118 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 D | tsl2583.c | 109 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 D | isdn_bsdcomp.c | 129 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 D | flexcop-fe-tuner.c | 187 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 D | opera1.c | 188 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 D | bsd_comp.c | 94 * 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...] |