Lines Matching defs:ter_state

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