Searched refs:cndat (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/media/dvb-frontends/
H A Dtc90522.c212 u32 cndat; tc90522s_get_frontend() local
263 cndat = 0; tc90522s_get_frontend()
266 cndat = val[0] << 8 | val[1]; tc90522s_get_frontend()
267 if (cndat >= 3000) { tc90522s_get_frontend()
271 cndat -= 3000; /* cndat: 4.12 fixed point float */ tc90522s_get_frontend()
275 * (P = sqrt(cndat) / 64) tc90522s_get_frontend()
277 /* p := sqrt(cndat) << 8 = P << 14, 2.14 fixed point float */ tc90522s_get_frontend()
279 p = int_sqrt(cndat << 16); tc90522s_get_frontend()
280 p4 = cndat * cndat; tc90522s_get_frontend()
283 cn -= (50259LL * cndat * p) >> 23; tc90522s_get_frontend()
284 cn += (88977LL * cndat) >> 9; tc90522s_get_frontend()
348 u32 cndat; tc90522t_get_frontend() local
422 cndat = 0; tc90522t_get_frontend()
425 cndat = val[0] << 16 | val[1] << 8 | val[2]; tc90522t_get_frontend()
426 if (cndat != 0) { tc90522t_get_frontend()
432 * (P = 10log10(5505024/cndat)) tc90522t_get_frontend()
435 /* p = 10log10(5505024/cndat) << 24 (8.24 fixed point float)*/ tc90522t_get_frontend()
436 p = intlog10(5505024) - intlog10(cndat); tc90522t_get_frontend()

Completed in 37 milliseconds