Lines Matching refs:Rest
347 u32 FBDiv, Rest, FREF, VCOF_kHz;
377 Rest = (VCOF_kHz / state->current_tune_table_index->presc) - FBDiv * FREF;
384 Rest = 2 * freq - FBDiv * FREF;
388 if (Rest < LPF)
389 Rest = 0;
390 else if (Rest < 2 * LPF)
391 Rest = 2 * LPF;
392 else if (Rest > (FREF - LPF)) {
393 Rest = 0;
395 } else if (Rest > (FREF - 2 * LPF))
396 Rest = FREF - 2 * LPF;
397 Rest = (Rest * 6528) / (FREF / 10);
400 if (Rest > 0) {
408 dib0070_write_reg(state, 0x13, (u16) Rest);
423 dprintk("FBDIV: %d, Rest: %d", FBDiv, Rest);
424 dprintk("Num: %hd, Den: %hd, SD: %hd", (u16) Rest, Den, (state->lo4 >> 12) & 0x1);