Lines Matching refs:t
295 u64 t; in tda10048_set_phy2() local
304 t = if_hz; in tda10048_set_phy2()
305 t *= 10; in tda10048_set_phy2()
306 t *= 32768; in tda10048_set_phy2()
307 do_div(t, sample_freq_hz); in tda10048_set_phy2()
308 t += 5; in tda10048_set_phy2()
309 do_div(t, 10); in tda10048_set_phy2()
312 t = sample_freq_hz - if_hz; in tda10048_set_phy2()
313 t *= 10; in tda10048_set_phy2()
314 t *= 32768; in tda10048_set_phy2()
315 do_div(t, sample_freq_hz); in tda10048_set_phy2()
316 t += 5; in tda10048_set_phy2()
317 do_div(t, 10); in tda10048_set_phy2()
318 t = ~t + 1; in tda10048_set_phy2()
321 tda10048_writereg(state, TDA10048_FREQ_PHY2_LSB, (u8)t); in tda10048_set_phy2()
322 tda10048_writereg(state, TDA10048_FREQ_PHY2_MSB, (u8)(t >> 8)); in tda10048_set_phy2()
331 u64 t, z; in tda10048_set_wref() local
339 t = bw * 10; in tda10048_set_wref()
342 t *= (2048 * 1024); in tda10048_set_wref()
343 t *= 1024; in tda10048_set_wref()
345 do_div(t, z); in tda10048_set_wref()
346 t += 5; in tda10048_set_wref()
347 do_div(t, 10); in tda10048_set_wref()
349 tda10048_writereg(state, TDA10048_TIME_WREF_LSB, (u8)t); in tda10048_set_wref()
350 tda10048_writereg(state, TDA10048_TIME_WREF_MID1, (u8)(t >> 8)); in tda10048_set_wref()
351 tda10048_writereg(state, TDA10048_TIME_WREF_MID2, (u8)(t >> 16)); in tda10048_set_wref()
352 tda10048_writereg(state, TDA10048_TIME_WREF_MSB, (u8)(t >> 24)); in tda10048_set_wref()
361 u64 t; in tda10048_set_invwref() local
369 t = sample_freq_hz; in tda10048_set_invwref()
370 t *= 7; in tda10048_set_invwref()
371 t *= 32; in tda10048_set_invwref()
372 t *= 10; in tda10048_set_invwref()
373 do_div(t, bw); in tda10048_set_invwref()
374 t += 5; in tda10048_set_invwref()
375 do_div(t, 10); in tda10048_set_invwref()
377 tda10048_writereg(state, TDA10048_TIME_INVWREF_LSB, (u8)t); in tda10048_set_invwref()
378 tda10048_writereg(state, TDA10048_TIME_INVWREF_MSB, (u8)(t >> 8)); in tda10048_set_invwref()