Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 27) sorted by relevance

12

/drivers/media/dvb/frontends/
Dves1x93.c176 u32 ratio; in ves1x93_set_symbolrate() local
195 ratio = tmp / FIN; in ves1x93_set_symbolrate()
198 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate()
201 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate()
205 if (ratio < MUL/3) FNR = 0; in ves1x93_set_symbolrate()
206 if (ratio < (MUL*11)/50) FNR = 1; in ves1x93_set_symbolrate()
207 if (ratio < MUL/6) FNR = 2; in ves1x93_set_symbolrate()
208 if (ratio < MUL/9) FNR = 3; in ves1x93_set_symbolrate()
209 if (ratio < MUL/12) FNR = 4; in ves1x93_set_symbolrate()
210 if (ratio < (MUL*11)/200) FNR = 5; in ves1x93_set_symbolrate()
[all …]
Dz0194a.h16 u32 srate, u32 ratio) in sharp_z0194a_set_symbol_rate() argument
36 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in sharp_z0194a_set_symbol_rate()
37 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in sharp_z0194a_set_symbol_rate()
38 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in sharp_z0194a_set_symbol_rate()
Dtda8083.c133 u32 ratio; in tda8083_set_symbolrate() local
149 ratio = tmp / srate; in tda8083_set_symbolrate()
152 ratio = (ratio << 8) + tmp / srate; in tda8083_set_symbolrate()
155 ratio = (ratio << 8) + tmp / srate; in tda8083_set_symbolrate()
157 dprintk("tda8083: ratio == %08x\n", (unsigned int) ratio); in tda8083_set_symbolrate()
160 tda8083_writereg (state, 0x02, (ratio >> 16) & 0xff); in tda8083_set_symbolrate()
161 tda8083_writereg (state, 0x03, (ratio >> 8) & 0xff); in tda8083_set_symbolrate()
162 tda8083_writereg (state, 0x04, (ratio ) & 0xff); in tda8083_set_symbolrate()
Dcx24110.c244 u32 ratio; in cx24110_set_symbolrate() local
290 ratio=(tmp/BDRI); in cx24110_set_symbolrate()
293 ratio=(ratio<<8)+(tmp/BDRI); in cx24110_set_symbolrate()
296 ratio=(ratio<<8)+(tmp/BDRI); in cx24110_set_symbolrate()
299 ratio=(ratio<<1)+(tmp/BDRI); in cx24110_set_symbolrate()
303 dprintk("ratio= %08x\n", ratio); in cx24110_set_symbolrate()
305 cx24110_writereg(state, 0x1, (ratio>>16)&0xff); in cx24110_set_symbolrate()
306 cx24110_writereg(state, 0x2, (ratio>>8)&0xff); in cx24110_set_symbolrate()
307 cx24110_writereg(state, 0x3, (ratio)&0xff); in cx24110_set_symbolrate()
Dbsbe1.h51 static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) in alps_bsbe1_set_symbol_rate() argument
65 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in alps_bsbe1_set_symbol_rate()
66 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in alps_bsbe1_set_symbol_rate()
67 stv0299_writereg(fe, 0x21, (ratio ) & 0xf0); in alps_bsbe1_set_symbol_rate()
Dbsru6.h70 static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in alps_bsru6_set_symbol_rate() argument
97 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in alps_bsru6_set_symbol_rate()
98 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in alps_bsru6_set_symbol_rate()
99 stv0299_writereg(fe, 0x21, ratio & 0xf0); in alps_bsru6_set_symbol_rate()
Dcx24123.c455 u32 tmp, sample_rate, ratio, sample_gain; in cx24123_set_symbolrate() local
495 ratio = tmp / sample_rate; in cx24123_set_symbolrate()
498 ratio = (ratio << 6) + (tmp / sample_rate); in cx24123_set_symbolrate()
501 ratio = (ratio << 6) + (tmp / sample_rate); in cx24123_set_symbolrate()
504 ratio = (ratio << 5) + (tmp / sample_rate); in cx24123_set_symbolrate()
509 cx24123_writereg(state, 0x08, (ratio >> 16) & 0x3f); in cx24123_set_symbolrate()
510 cx24123_writereg(state, 0x09, (ratio >> 8) & 0xff); in cx24123_set_symbolrate()
511 cx24123_writereg(state, 0x0a, ratio & 0xff); in cx24123_set_symbolrate()
519 srate, ratio, sample_rate, sample_gain); in cx24123_set_symbolrate()
Dtda10021.c155 u32 tmp, ratio; in tda10021_set_symbolrate() local
175 ratio = (symbolrate << 4) / FIN; in tda10021_set_symbolrate()
177 ratio = (ratio << 8) + tmp / FIN; in tda10021_set_symbolrate()
179 ratio = (ratio << 8) + (tmp + FIN/2) / FIN; in tda10021_set_symbolrate()
181 BDR = ratio; in tda10021_set_symbolrate()
Dves1820.c119 u32 ratio; in ves1820_set_symbolrate() local
164 ratio = (symbolrate << 4) / fin; in ves1820_set_symbolrate()
166 ratio = (ratio << 8) + tmp / fin; in ves1820_set_symbolrate()
168 ratio = (ratio << 8) + (tmp + fin / 2) / fin; in ves1820_set_symbolrate()
170 BDR = ratio; in ves1820_set_symbolrate()
Dstv0299.h92 int (*set_symbol_rate)(struct dvb_frontend *fe, u32 srate, u32 ratio);
Dstv0299.c227 u32 ratio; in stv0299_set_symbolrate() local
236 ratio = big << 4; in stv0299_set_symbolrate()
238 return state->config->set_symbol_rate(fe, srate, ratio); in stv0299_set_symbolrate()
/drivers/ide/
Dpdc202xx_new.c333 long pll_input, pll_output, ratio; in init_chipset_pdcnew() local
391 ratio = pll_output / (pll_input / 1000); in init_chipset_pdcnew()
392 if (ratio < 8600L) { /* 8.6x */ in init_chipset_pdcnew()
395 } else if (ratio < 12900L) { /* 12.9x */ in init_chipset_pdcnew()
398 } else if (ratio < 16100L) { /* 16.1x */ in init_chipset_pdcnew()
401 } else if (ratio < 64000L) { /* 64x */ in init_chipset_pdcnew()
406 name, pci_name(dev), ratio); in init_chipset_pdcnew()
410 f = (ratio * (r + 2)) / 1000 - 2; in init_chipset_pdcnew()
412 DBG("F[%d] R[%d] ratio*1000[%ld]\n", f, r, ratio); in init_chipset_pdcnew()
/drivers/ata/
Dpata_pdc2027x.c519 long ratio = pout_required / pll_clock_khz; in pdc_adjust_pll() local
543 if (ratio < 8600L) { /* 8.6x */ in pdc_adjust_pll()
546 } else if (ratio < 12900L) { /* 12.9x */ in pdc_adjust_pll()
549 } else if (ratio < 16100L) { /* 16.1x */ in pdc_adjust_pll()
552 } else if (ratio < 64000L) { /* 64x */ in pdc_adjust_pll()
556 printk(KERN_ERR DRV_NAME ": Invalid ratio %ld, give up!\n", ratio); in pdc_adjust_pll()
560 F = (ratio * (R+2)) / 1000 - 2; in pdc_adjust_pll()
568 PDPRINTK("F[%d] R[%d] ratio*1000[%ld]\n", F, R, ratio); in pdc_adjust_pll()
/drivers/video/
Dasiliantfb.c119 unsigned ratio; in asiliant_calc_dclk2() local
124 ratio = 1000000 / pixclock; in asiliant_calc_dclk2()
126 Ftarget = 1000000 * ratio + (1000000 * remainder) / pixclock; in asiliant_calc_dclk2()
133 ratio = Ftarget / Fref; in asiliant_calc_dclk2()
139 unsigned m = n * ratio + (n * remainder) / Fref; in asiliant_calc_dclk2()
229 unsigned long Ftarget, ratio, remainder; in asiliantfb_check_var() local
231 ratio = 1000000 / var->pixclock; in asiliantfb_check_var()
233 Ftarget = 1000000 * ratio + (1000000 * remainder) / var->pixclock; in asiliantfb_check_var()
Dfbmon.c497 int xres, yres = 0, refresh, ratio, i; in get_std_timing() local
503 ratio = (block[1] & 0xc0) >> 6; in get_std_timing()
504 switch (ratio) { in get_std_timing()
/drivers/media/dvb/dvb-usb/
Dopera1.c179 u32 ratio) in opera1_stv0299_set_symbol_rate() argument
183 stv0299_writereg(fe, REG_1F_SYMBOLRATE_BYTE0, (ratio >> 16) & 0xff); in opera1_stv0299_set_symbol_rate()
184 stv0299_writereg(fe, REG_20_SYMBOLRATE_BYTE1, (ratio >> 8) & 0xff); in opera1_stv0299_set_symbol_rate()
185 stv0299_writereg(fe, REG_21_SYMBOLRATE_BYTE2, (ratio) & 0xf0); in opera1_stv0299_set_symbol_rate()
/drivers/media/dvb/b2c2/
Dflexcop-fe-tuner.c160 static int samsung_tbmu24112_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) in samsung_tbmu24112_set_symbol_rate() argument
174 stv0299_writereg (fe, 0x1f, (ratio >> 16) & 0xff); in samsung_tbmu24112_set_symbol_rate()
175 stv0299_writereg (fe, 0x20, (ratio >> 8) & 0xff); in samsung_tbmu24112_set_symbol_rate()
176 stv0299_writereg (fe, 0x21, (ratio ) & 0xf0); in samsung_tbmu24112_set_symbol_rate()
/drivers/media/dvb/ttpci/
Dbudget-av.c473 static int philips_su1278_ty_ci_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in philips_su1278_ty_ci_set_symbol_rate() argument
495 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in philips_su1278_ty_ci_set_symbol_rate()
496 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in philips_su1278_ty_ci_set_symbol_rate()
497 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in philips_su1278_ty_ci_set_symbol_rate()
844 u32 srate, u32 ratio) in philips_sd1878_ci_set_symbol_rate() argument
870 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in philips_sd1878_ci_set_symbol_rate()
871 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in philips_sd1878_ci_set_symbol_rate()
872 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in philips_sd1878_ci_set_symbol_rate()
Dbudget-ci.c666 static int philips_su1278_tt_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in philips_su1278_tt_set_symbol_rate() argument
691 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in philips_su1278_tt_set_symbol_rate()
692 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in philips_su1278_tt_set_symbol_rate()
693 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in philips_su1278_tt_set_symbol_rate()
/drivers/isdn/i4l/
Disdn_bsdcomp.c130 unsigned int ratio; /* recent compression ratio */ member
183 db->ratio = 0; in bsd_clear()
231 if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) in bsd_check()
236 db->ratio = new_ratio; in bsd_check()
/drivers/net/
Dbsd_comp.c150 unsigned int ratio; /* recent compression ratio */ member
229 db->ratio = 0; in bsd_clear()
278 if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) in bsd_check()
283 db->ratio = new_ratio; in bsd_check()
/drivers/staging/go7007/
Dgo7007-fw.c1298 int ratio = arate / go->sensor_framerate; in avsync_to_package() local
1299 int adjratio = ratio * 215 / 100; in avsync_to_package()
1312 0xbff6, f1 < f2 ? ratio : ratio + 1, in avsync_to_package()
1313 0xbff7, f1 > f2 ? ratio : ratio + 1, in avsync_to_package()
Dgo7007.txt298 enum go7007_aspect_ratio The aspect ratio to be encoded in the
/drivers/media/dvb/ttusb-budget/
Ddvb-ttusb-budget.c1247 static int alps_stv0299_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in alps_stv0299_set_symbol_rate() argument
1274 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in alps_stv0299_set_symbol_rate()
1275 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in alps_stv0299_set_symbol_rate()
1276 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in alps_stv0299_set_symbol_rate()
/drivers/staging/rt2870/common/
Dmlme.c2508 CHAR Rssi, ratio; in StaQuickResponeForRateUpExec() local
2641 ratio = 5; in StaQuickResponeForRateUpExec()
2643 ratio = 4; in StaQuickResponeForRateUpExec()
2653 OneSecTxNoRetryOKRationCount = (TxSuccess * ratio); in StaQuickResponeForRateUpExec()

12