Lines Matching refs:ter_state

87 	struct stv0367ter_state *ter_state;  member
952 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_init() local
956 ter_state->pBER = 0; in stv0367ter_init()
971 ter_state->first_lock = 0; in stv0367ter_init()
972 ter_state->unlock_counter = 2; in stv0367ter_init()
981 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_algo() local
993 ter_state->frequency = p->frequency; in stv0367ter_algo()
994 ter_state->force = FE_TER_FORCENONE in stv0367ter_algo()
996 ter_state->if_iq_mode = state->config->if_iq_mode; in stv0367ter_algo()
1026 if (ter_state->if_iq_mode == FE_TER_IQ_TUNER) in stv0367ter_algo()
1028 ter_state->sense); in stv0367ter_algo()
1031 ter_state->sense); in stv0367ter_algo()
1036 if (ter_state->if_iq_mode == FE_TER_IQ_TUNER) in stv0367ter_algo()
1046 if ((ter_state->if_iq_mode != FE_TER_NORMAL_IF_TUNER) && in stv0367ter_algo()
1047 (ter_state->pBW != ter_state->bw)) { in stv0367ter_algo()
1061 if (!stv0367_iir_filt_init(state, ter_state->bw, in stv0367ter_algo()
1065 ter_state->pBW = ter_state->bw; in stv0367ter_algo()
1070 if (ter_state->hierarchy == FE_TER_HIER_LOW_PRIO) in stv0367ter_algo()
1077 ((((ter_state->bw * 64 * (1 << 15) * 100) in stv0367ter_algo()
1088 temp = (int)(((1 << 17) * ter_state->bw * 1000) / (7 * (InternalFreq))); in stv0367ter_algo()
1101 ter_state->echo_pos = 0; in stv0367ter_algo()
1102 ter_state->ucblocks = 0; /* liplianin */ in stv0367ter_algo()
1103 ter_state->pBER = 0; /* liplianin */ in stv0367ter_algo()
1104 stv0367_writebits(state, F367TER_LONG_ECHO, ter_state->echo_pos); in stv0367ter_algo()
1109 ter_state->state = FE_TER_LOCKOK; in stv0367ter_algo()
1111 ter_state->mode = stv0367_readbits(state, F367TER_SYR_MODE); in stv0367ter_algo()
1112 ter_state->guard = stv0367_readbits(state, F367TER_SYR_GUARD); in stv0367ter_algo()
1114 ter_state->first_lock = 1; /* we know sense now :) */ in stv0367ter_algo()
1116 ter_state->agc_val = in stv0367ter_algo()
1133 if (ter_state->mode == FE_TER_MODE_2K) in stv0367ter_algo()
1135 else if (ter_state->mode == FE_TER_MODE_4K) in stv0367ter_algo()
1137 else if (ter_state->mode == FE_TER_MODE_8K) in stv0367ter_algo()
1147 if (ter_state->bw == 6) in stv0367ter_algo()
1149 else if (ter_state->bw == 7) in stv0367ter_algo()
1152 ter_state->frequency += offset; in stv0367ter_algo()
1208 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_set_frontend() local
1229 ter_state->mode = FE_TER_MODE_2K; in stv0367ter_set_frontend()
1235 ter_state->mode = FE_TER_MODE_8K; in stv0367ter_set_frontend()
1245 ter_state->guard = p->guard_interval; in stv0367ter_set_frontend()
1248 ter_state->guard = GUARD_INTERVAL_1_32; in stv0367ter_set_frontend()
1254 ter_state->bw = FE_TER_CHAN_BW_6M; in stv0367ter_set_frontend()
1257 ter_state->bw = FE_TER_CHAN_BW_7M; in stv0367ter_set_frontend()
1261 ter_state->bw = FE_TER_CHAN_BW_8M; in stv0367ter_set_frontend()
1264 ter_state->hierarchy = FE_TER_HIER_NONE; in stv0367ter_set_frontend()
1273 if (ter_state->first_lock) in stv0367ter_set_frontend()
1278 ter_state->state = FE_TER_NOLOCK; in stv0367ter_set_frontend()
1281 while (((index) < num_trials) && (ter_state->state != FE_TER_LOCKOK)) { in stv0367ter_set_frontend()
1282 if (!ter_state->first_lock) { in stv0367ter_set_frontend()
1284 ter_state->sense = SenseTrials[index]; in stv0367ter_set_frontend()
1289 if ((ter_state->state == FE_TER_LOCKOK) && in stv0367ter_set_frontend()
1306 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_read_ucblocks() local
1317 ter_state->ucblocks = errs; in stv0367ter_read_ucblocks()
1320 (*ucblocks) = ter_state->ucblocks; in stv0367ter_read_ucblocks()
1329 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_get_frontend() local
1369 if (ter_state->hierarchy == FE_TER_HIER_LOW_PRIO) in stv0367ter_get_frontend()
1451 struct stv0367ter_state *ter_state = state->ter_state;
1456 ter_state->unlock_counter += 1;
1458 ter_state->unlock_counter = 0;
1460 if (ter_state->unlock_counter > 2) {
1497 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ter_read_ber() local
1512 tber = ter_state->pBER; in stv0367ter_read_ber()
1570 ter_state->pBER = tber; in stv0367ter_read_ber()
1579 struct stv0367ter_state *ter_state = state->ter_state;
1639 ter_state->pPER = Per;
1659 kfree(state->ter_state); in stv0367_release()
1698 struct stv0367ter_state *ter_state = NULL; in stv0367ter_attach() local
1704 ter_state = kzalloc(sizeof(struct stv0367ter_state), GFP_KERNEL); in stv0367ter_attach()
1705 if (ter_state == NULL) in stv0367ter_attach()
1711 state->ter_state = ter_state; in stv0367ter_attach()
1731 kfree(ter_state); in stv0367ter_attach()
3153 struct stv0367ter_state *ter_state = state->ter_state; in stv0367ddb_init() local
3225 ter_state->pBER = 0; in stv0367ddb_init()
3226 ter_state->first_lock = 0; in stv0367ddb_init()
3227 ter_state->unlock_counter = 2; in stv0367ddb_init()
3273 struct stv0367ter_state *ter_state = NULL; in stv0367ddb_attach() local
3280 ter_state = kzalloc(sizeof(struct stv0367ter_state), GFP_KERNEL); in stv0367ddb_attach()
3281 if (ter_state == NULL) in stv0367ddb_attach()
3290 state->ter_state = ter_state; in stv0367ddb_attach()
3321 kfree(ter_state); in stv0367ddb_attach()