Lines Matching refs:stat

1574 static int dib7000p_get_stats(struct dvb_frontend *fe, enum fe_status stat);
1576 static int dib7000p_read_status(struct dvb_frontend *fe, enum fe_status *stat) in dib7000p_read_status() argument
1581 *stat = 0; in dib7000p_read_status()
1584 *stat |= FE_HAS_SIGNAL; in dib7000p_read_status()
1586 *stat |= FE_HAS_CARRIER; in dib7000p_read_status()
1588 *stat |= FE_HAS_VITERBI; in dib7000p_read_status()
1590 *stat |= FE_HAS_SYNC; in dib7000p_read_status()
1592 *stat |= FE_HAS_LOCK; in dib7000p_read_status()
1594 dib7000p_get_stats(fe, *stat); in dib7000p_read_status()
1683 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in dib7000p_reset_stats()
1684 c->strength.stat[0].uvalue = 0; in dib7000p_reset_stats()
1686 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1687 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1688 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1689 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1690 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1896 static int dib7000p_get_stats(struct dvb_frontend *demod, enum fe_status stat) in dib7000p_get_stats() argument
1912 c->strength.stat[0].svalue = db; in dib7000p_get_stats()
1915 if (!(stat & FE_HAS_LOCK)) { in dib7000p_get_stats()
1921 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_get_stats()
1922 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_get_stats()
1923 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_get_stats()
1924 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_get_stats()
1925 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_get_stats()
1939 c->cnr.stat[0].svalue = snr; in dib7000p_get_stats()
1940 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in dib7000p_get_stats()
1948 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in dib7000p_get_stats()
1949 c->block_error.stat[0].uvalue = ucb; in dib7000p_get_stats()
1958 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in dib7000p_get_stats()
1959 c->block_count.stat[0].uvalue += blocks; in dib7000p_get_stats()
1973 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in dib7000p_get_stats()
1974 c->post_bit_error.stat[0].uvalue += val; in dib7000p_get_stats()
1976 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in dib7000p_get_stats()
1977 c->post_bit_count.stat[0].uvalue += 100000000; in dib7000p_get_stats()
1984 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in dib7000p_get_stats()
1985 c->block_error.stat[0].uvalue += val; in dib7000p_get_stats()
1991 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in dib7000p_get_stats()
1992 c->block_count.stat[0].uvalue += blocks; in dib7000p_get_stats()