Lines Matching refs:ratio
165 u32 ratio; in ves1x93_set_symbolrate() local
184 ratio = tmp / FIN; in ves1x93_set_symbolrate()
187 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate()
190 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate()
194 if (ratio < MUL/3) FNR = 0; in ves1x93_set_symbolrate()
195 if (ratio < (MUL*11)/50) FNR = 1; in ves1x93_set_symbolrate()
196 if (ratio < MUL/6) FNR = 2; in ves1x93_set_symbolrate()
197 if (ratio < MUL/9) FNR = 3; in ves1x93_set_symbolrate()
198 if (ratio < MUL/12) FNR = 4; in ves1x93_set_symbolrate()
199 if (ratio < (MUL*11)/200) FNR = 5; in ves1x93_set_symbolrate()
200 if (ratio < MUL/24) FNR = 6; in ves1x93_set_symbolrate()
201 if (ratio < (MUL*27)/1000) FNR = 7; in ves1x93_set_symbolrate()
202 if (ratio < MUL/48) FNR = 8; in ves1x93_set_symbolrate()
203 if (ratio < (MUL*137)/10000) FNR = 9; in ves1x93_set_symbolrate()
215 BDR = (( (ratio << (FNR >> 1)) >> 4) + 1) >> 1; in ves1x93_set_symbolrate()
219 dprintk("ratio= %08x\n", (unsigned int) ratio); in ves1x93_set_symbolrate()