Lines Matching refs:ter_state

95 	struct stv0367ter_state *ter_state;  member
1544 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_init() local
1549 ter_state->pBER = 0; in stv0367ter_init()
1589 ter_state->first_lock = 0; in stv0367ter_init()
1590 ter_state->unlock_counter = 2; in stv0367ter_init()
1599 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_algo() local
1609 ter_state->frequency = p->frequency; in stv0367ter_algo()
1610 ter_state->force = FE_TER_FORCENONE in stv0367ter_algo()
1612 ter_state->if_iq_mode = state->config->if_iq_mode; in stv0367ter_algo()
1642 if (ter_state->if_iq_mode == FE_TER_IQ_TUNER) in stv0367ter_algo()
1644 ter_state->sense); in stv0367ter_algo()
1647 ter_state->sense); in stv0367ter_algo()
1652 if (ter_state->if_iq_mode == FE_TER_IQ_TUNER) in stv0367ter_algo()
1662 if ((ter_state->if_iq_mode != FE_TER_NORMAL_IF_TUNER) && in stv0367ter_algo()
1663 (ter_state->pBW != ter_state->bw)) { in stv0367ter_algo()
1677 if (!stv0367_iir_filt_init(state, ter_state->bw, in stv0367ter_algo()
1681 ter_state->pBW = ter_state->bw; in stv0367ter_algo()
1686 if (ter_state->hierarchy == FE_TER_HIER_LOW_PRIO) in stv0367ter_algo()
1693 ((((ter_state->bw * 64 * (1 << 15) * 100) in stv0367ter_algo()
1704 temp = (int)(((1 << 17) * ter_state->bw * 1000) / (7 * (InternalFreq))); in stv0367ter_algo()
1718 ter_state->echo_pos = 0; in stv0367ter_algo()
1719 ter_state->ucblocks = 0; /* liplianin */ in stv0367ter_algo()
1720 ter_state->pBER = 0; /* liplianin */ in stv0367ter_algo()
1721 stv0367_writebits(state, F367TER_LONG_ECHO, ter_state->echo_pos); in stv0367ter_algo()
1726 ter_state->state = FE_TER_LOCKOK; in stv0367ter_algo()
1728 ter_state->mode = stv0367_readbits(state, F367TER_SYR_MODE); in stv0367ter_algo()
1729 ter_state->guard = stv0367_readbits(state, F367TER_SYR_GUARD); in stv0367ter_algo()
1731 ter_state->first_lock = 1; /* we know sense now :) */ in stv0367ter_algo()
1733 ter_state->agc_val = in stv0367ter_algo()
1750 if (ter_state->mode == FE_TER_MODE_2K) in stv0367ter_algo()
1752 else if (ter_state->mode == FE_TER_MODE_4K) in stv0367ter_algo()
1754 else if (ter_state->mode == FE_TER_MODE_8K) in stv0367ter_algo()
1764 if (ter_state->bw == 6) in stv0367ter_algo()
1766 else if (ter_state->bw == 7) in stv0367ter_algo()
1769 ter_state->frequency += offset; in stv0367ter_algo()
1825 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_set_frontend() local
1845 ter_state->mode = FE_TER_MODE_2K; in stv0367ter_set_frontend()
1851 ter_state->mode = FE_TER_MODE_8K; in stv0367ter_set_frontend()
1861 ter_state->guard = p->guard_interval; in stv0367ter_set_frontend()
1864 ter_state->guard = GUARD_INTERVAL_1_32; in stv0367ter_set_frontend()
1870 ter_state->bw = FE_TER_CHAN_BW_6M; in stv0367ter_set_frontend()
1873 ter_state->bw = FE_TER_CHAN_BW_7M; in stv0367ter_set_frontend()
1877 ter_state->bw = FE_TER_CHAN_BW_8M; in stv0367ter_set_frontend()
1880 ter_state->hierarchy = FE_TER_HIER_NONE; in stv0367ter_set_frontend()
1889 if (ter_state->first_lock) in stv0367ter_set_frontend()
1894 ter_state->state = FE_TER_NOLOCK; in stv0367ter_set_frontend()
1897 while (((index) < num_trials) && (ter_state->state != FE_TER_LOCKOK)) { in stv0367ter_set_frontend()
1898 if (!ter_state->first_lock) { in stv0367ter_set_frontend()
1900 ter_state->sense = SenseTrials[index]; in stv0367ter_set_frontend()
1905 if ((ter_state->state == FE_TER_LOCKOK) && in stv0367ter_set_frontend()
1922 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_read_ucblocks() local
1933 ter_state->ucblocks = errs; in stv0367ter_read_ucblocks()
1936 (*ucblocks) = ter_state->ucblocks; in stv0367ter_read_ucblocks()
1945 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_get_frontend() local
1985 if (ter_state->hierarchy == FE_TER_HIER_LOW_PRIO) in stv0367ter_get_frontend()
2061 struct stv0367ter_state *ter_state = state->ter_state;
2066 ter_state->unlock_counter += 1;
2068 ter_state->unlock_counter = 0;
2070 if (ter_state->unlock_counter > 2) {
2106 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_read_ber() local
2121 tber = ter_state->pBER; in stv0367ter_read_ber()
2180 ter_state->pBER = tber; in stv0367ter_read_ber()
2189 struct stv0367ter_state *ter_state = state->ter_state;
2250 ter_state->pPER = Per;
2270 kfree(state->ter_state); in stv0367_release()
2310 struct stv0367ter_state *ter_state = NULL; in stv0367ter_attach() local
2316 ter_state = kzalloc(sizeof(struct stv0367ter_state), GFP_KERNEL); in stv0367ter_attach()
2317 if (ter_state == NULL) in stv0367ter_attach()
2323 state->ter_state = ter_state; in stv0367ter_attach()
2337 kfree(ter_state); in stv0367ter_attach()