Lines Matching refs:ter_state

95 	struct stv0367ter_state *ter_state;  member
1540 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_init() local
1545 ter_state->pBER = 0; in stv0367ter_init()
1580 ter_state->first_lock = 0; in stv0367ter_init()
1581 ter_state->unlock_counter = 2; in stv0367ter_init()
1590 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_algo() local
1600 ter_state->frequency = p->frequency; in stv0367ter_algo()
1601 ter_state->force = FE_TER_FORCENONE in stv0367ter_algo()
1603 ter_state->if_iq_mode = state->config->if_iq_mode; in stv0367ter_algo()
1633 if (ter_state->if_iq_mode == FE_TER_IQ_TUNER) in stv0367ter_algo()
1635 ter_state->sense); in stv0367ter_algo()
1638 ter_state->sense); in stv0367ter_algo()
1643 if (ter_state->if_iq_mode == FE_TER_IQ_TUNER) in stv0367ter_algo()
1653 if ((ter_state->if_iq_mode != FE_TER_NORMAL_IF_TUNER) && in stv0367ter_algo()
1654 (ter_state->pBW != ter_state->bw)) { in stv0367ter_algo()
1668 if (!stv0367_iir_filt_init(state, ter_state->bw, in stv0367ter_algo()
1672 ter_state->pBW = ter_state->bw; in stv0367ter_algo()
1677 if (ter_state->hierarchy == FE_TER_HIER_LOW_PRIO) in stv0367ter_algo()
1684 ((((ter_state->bw * 64 * (1 << 15) * 100) in stv0367ter_algo()
1695 temp = (int)(((1 << 17) * ter_state->bw * 1000) / (7 * (InternalFreq))); in stv0367ter_algo()
1709 ter_state->echo_pos = 0; in stv0367ter_algo()
1710 ter_state->ucblocks = 0; /* liplianin */ in stv0367ter_algo()
1711 ter_state->pBER = 0; /* liplianin */ in stv0367ter_algo()
1712 stv0367_writebits(state, F367TER_LONG_ECHO, ter_state->echo_pos); in stv0367ter_algo()
1717 ter_state->state = FE_TER_LOCKOK; in stv0367ter_algo()
1719 ter_state->mode = stv0367_readbits(state, F367TER_SYR_MODE); in stv0367ter_algo()
1720 ter_state->guard = stv0367_readbits(state, F367TER_SYR_GUARD); in stv0367ter_algo()
1722 ter_state->first_lock = 1; /* we know sense now :) */ in stv0367ter_algo()
1724 ter_state->agc_val = in stv0367ter_algo()
1741 if (ter_state->mode == FE_TER_MODE_2K) in stv0367ter_algo()
1743 else if (ter_state->mode == FE_TER_MODE_4K) in stv0367ter_algo()
1745 else if (ter_state->mode == FE_TER_MODE_8K) in stv0367ter_algo()
1755 if (ter_state->bw == 6) in stv0367ter_algo()
1757 else if (ter_state->bw == 7) in stv0367ter_algo()
1760 ter_state->frequency += offset; in stv0367ter_algo()
1816 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_set_frontend() local
1836 ter_state->mode = FE_TER_MODE_2K; in stv0367ter_set_frontend()
1842 ter_state->mode = FE_TER_MODE_8K; in stv0367ter_set_frontend()
1852 ter_state->guard = p->guard_interval; in stv0367ter_set_frontend()
1855 ter_state->guard = GUARD_INTERVAL_1_32; in stv0367ter_set_frontend()
1861 ter_state->bw = FE_TER_CHAN_BW_6M; in stv0367ter_set_frontend()
1864 ter_state->bw = FE_TER_CHAN_BW_7M; in stv0367ter_set_frontend()
1868 ter_state->bw = FE_TER_CHAN_BW_8M; in stv0367ter_set_frontend()
1871 ter_state->hierarchy = FE_TER_HIER_NONE; in stv0367ter_set_frontend()
1880 if (ter_state->first_lock) in stv0367ter_set_frontend()
1885 ter_state->state = FE_TER_NOLOCK; in stv0367ter_set_frontend()
1888 while (((index) < num_trials) && (ter_state->state != FE_TER_LOCKOK)) { in stv0367ter_set_frontend()
1889 if (!ter_state->first_lock) { in stv0367ter_set_frontend()
1891 ter_state->sense = SenseTrials[index]; in stv0367ter_set_frontend()
1896 if ((ter_state->state == FE_TER_LOCKOK) && in stv0367ter_set_frontend()
1913 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_read_ucblocks() local
1924 ter_state->ucblocks = errs; in stv0367ter_read_ucblocks()
1927 (*ucblocks) = ter_state->ucblocks; in stv0367ter_read_ucblocks()
1936 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_get_frontend() local
1976 if (ter_state->hierarchy == FE_TER_HIER_LOW_PRIO) in stv0367ter_get_frontend()
2052 struct stv0367ter_state *ter_state = state->ter_state;
2057 ter_state->unlock_counter += 1;
2059 ter_state->unlock_counter = 0;
2061 if (ter_state->unlock_counter > 2) {
2096 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_read_ber() local
2111 tber = ter_state->pBER; in stv0367ter_read_ber()
2170 ter_state->pBER = tber; in stv0367ter_read_ber()
2179 struct stv0367ter_state *ter_state = state->ter_state;
2240 ter_state->pPER = Per;
2260 kfree(state->ter_state); in stv0367_release()
2300 struct stv0367ter_state *ter_state = NULL; in stv0367ter_attach() local
2306 ter_state = kzalloc(sizeof(struct stv0367ter_state), GFP_KERNEL); in stv0367ter_attach()
2307 if (ter_state == NULL) in stv0367ter_attach()
2313 state->ter_state = ter_state; in stv0367ter_attach()
2327 kfree(ter_state); in stv0367ter_attach()