Home
last modified time | relevance | path

Searched refs:mse (Results 1 – 6 of 6) sorted by relevance

/linux-4.19.296/drivers/media/dvb-frontends/
Dor51211.c276 static u32 calculate_snr(u32 mse, u32 c) in calculate_snr() argument
278 if (mse == 0) /* No signal */ in calculate_snr()
281 mse = 2*intlog10(mse); in calculate_snr()
282 if (mse > c) { in calculate_snr()
288 return 10*(c - mse); in calculate_snr()
Dor51132.c454 static u32 calculate_snr(u32 mse, u32 c) in calculate_snr() argument
456 if (mse == 0) /* No signal */ in calculate_snr()
459 mse = 2*intlog10(mse); in calculate_snr()
460 if (mse > c) { in calculate_snr()
466 return 10*(c - mse); in calculate_snr()
Dlgdt330x.c485 static u32 calculate_snr(u32 mse, u32 c) in calculate_snr() argument
487 if (mse == 0) /* No signal */ in calculate_snr()
490 mse = intlog10(mse); in calculate_snr()
491 if (mse > c) { in calculate_snr()
499 return 10 * (c - mse); in calculate_snr()
Dlgdt3305.c978 static u32 calculate_snr(u32 mse, u32 c) in calculate_snr() argument
980 if (mse == 0) /* no signal */ in calculate_snr()
983 mse = intlog10(mse); in calculate_snr()
984 if (mse > c) { in calculate_snr()
990 return 10*(c - mse); in calculate_snr()
Dau8522_dig.c227 static int au8522_mse2snr_lookup(struct mse2snr_tab *tab, int sz, int mse, in au8522_mse2snr_lookup() argument
234 if (mse < tab[i].val) { in au8522_mse2snr_lookup()
Dlgdt3306a.c1529 u32 mse; /* Mean-Square Error */ in lgdt3306a_calculate_snr_x100() local
1533 mse = (read_reg(state, 0x00ec) << 8) | in lgdt3306a_calculate_snr_x100()
1538 if (mse == 0) /* no signal */ in lgdt3306a_calculate_snr_x100()
1541 snr_x100 = log10_x1000((pwr * 10000) / mse) - 3000; in lgdt3306a_calculate_snr_x100()
1542 dbg_info("mse=%u, pwr=%u, snr_x100=%d\n", mse, pwr, snr_x100); in lgdt3306a_calculate_snr_x100()