Lines Matching refs:Rest
372 u32 FBDiv, Rest, FREF, VCOF_kHz; in dib0070_tune_digital() local
402 Rest = (VCOF_kHz / state->current_tune_table_index->presc) - FBDiv * FREF; in dib0070_tune_digital()
409 Rest = 2 * freq - FBDiv * FREF; in dib0070_tune_digital()
413 if (Rest < LPF) in dib0070_tune_digital()
414 Rest = 0; in dib0070_tune_digital()
415 else if (Rest < 2 * LPF) in dib0070_tune_digital()
416 Rest = 2 * LPF; in dib0070_tune_digital()
417 else if (Rest > (FREF - LPF)) { in dib0070_tune_digital()
418 Rest = 0; in dib0070_tune_digital()
420 } else if (Rest > (FREF - 2 * LPF)) in dib0070_tune_digital()
421 Rest = FREF - 2 * LPF; in dib0070_tune_digital()
422 Rest = (Rest * 6528) / (FREF / 10); in dib0070_tune_digital()
425 if (Rest > 0) { in dib0070_tune_digital()
433 dib0070_write_reg(state, 0x13, (u16) Rest); in dib0070_tune_digital()
448 dprintk("FBDIV: %d, Rest: %d\n", FBDiv, Rest); in dib0070_tune_digital()
449 dprintk("Num: %u, Den: %u, SD: %d\n", (u16)Rest, Den, in dib0070_tune_digital()