Lines Matching refs:cab_state
85 struct stv0367cab_state *cab_state; member
1660 kfree(state->cab_state); in stv0367_release()
2127 (state->cab_state->qamfec_status_reg ? in stv0367cab_qamfec_lock()
2128 state->cab_state->qamfec_status_reg : in stv0367cab_qamfec_lock()
2194 state->cab_state->state = stv0367cab_fsm_signaltype( in stv0367cab_read_status()
2202 if (state->cab_state->state > FE_CAB_NOSIGNAL) in stv0367cab_read_status()
2205 if (state->cab_state->state > FE_CAB_NOCARRIER) in stv0367cab_read_status()
2208 if (state->cab_state->state >= FE_CAB_DEMODOK) in stv0367cab_read_status()
2211 if (state->cab_state->state >= FE_CAB_DATAOK) in stv0367cab_read_status()
2255 struct stv0367cab_state *cab_state = state->cab_state; in stv0367cab_init() local
2297 cab_state->mclk = stv0367cab_get_mclk(fe, state->config->xtal); in stv0367cab_init()
2298 cab_state->adc_clk = stv0367cab_get_adc_freq(fe, state->config->xtal); in stv0367cab_init()
2306 struct stv0367cab_state *cab_state = state->cab_state; in stv0367cab_algo() local
2365 CRLTimeOut = (25 * CRLSymbols * (cab_state->search_range / 1000)) / in stv0367cab_algo()
2395 stv0367cab_set_derot_freq(state, cab_state->adc_clk, in stv0367cab_algo()
2396 (1000 * (s32)ifkhz + cab_state->derot_offset)); in stv0367cab_algo()
2465 tmp = stv0367cab_get_derot_freq(state, cab_state->adc_clk); in stv0367cab_algo()
2481 cab_state->spect_inv = stv0367_readbits(state, in stv0367cab_algo()
2486 if (ifkhz > cab_state->adc_clk / 1000) { in stv0367cab_algo()
2487 cab_state->freq_khz = in stv0367cab_algo()
2489 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_algo()
2490 - cab_state->adc_clk / 1000 + ifkhz; in stv0367cab_algo()
2492 cab_state->freq_khz = in stv0367cab_algo()
2494 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_algo()
2498 cab_state->freq_khz = in stv0367cab_algo()
2501 cab_state->adc_clk) - in stv0367cab_algo()
2502 cab_state->adc_clk / 4000; in stv0367cab_algo()
2505 cab_state->symbol_rate = stv0367cab_GetSymbolRate(state, in stv0367cab_algo()
2506 cab_state->mclk); in stv0367cab_algo()
2507 cab_state->locked = 1; in stv0367cab_algo()
2522 struct stv0367cab_state *cab_state = state->cab_state; in stv0367cab_set_frontend() local
2528 cab_state->derot_offset = 0; in stv0367cab_set_frontend()
2568 cab_state->adc_clk, in stv0367cab_set_frontend()
2569 cab_state->mclk, in stv0367cab_set_frontend()
2573 cab_state->state = stv0367cab_algo(state, p); in stv0367cab_set_frontend()
2581 struct stv0367cab_state *cab_state = state->cab_state; in stv0367cab_get_frontend() local
2589 p->symbol_rate = stv0367cab_GetSymbolRate(state, cab_state->mclk); in stv0367cab_get_frontend()
2618 (stv0367cab_get_derot_freq(state, cab_state->adc_clk) - in stv0367cab_get_frontend()
2619 cab_state->adc_clk / 4000); in stv0367cab_get_frontend()
2623 if (ifkhz > cab_state->adc_clk / 1000) in stv0367cab_get_frontend()
2625 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_get_frontend()
2626 - cab_state->adc_clk / 1000); in stv0367cab_get_frontend()
2629 - stv0367cab_get_derot_freq(state, cab_state->adc_clk)); in stv0367cab_get_frontend()
2865 struct stv0367cab_state *cab_state = NULL; in stv0367cab_attach() local
2871 cab_state = kzalloc(sizeof(struct stv0367cab_state), GFP_KERNEL); in stv0367cab_attach()
2872 if (cab_state == NULL) in stv0367cab_attach()
2878 cab_state->search_range = 280000; in stv0367cab_attach()
2879 cab_state->qamfec_status_reg = F367CAB_QAMFEC_LOCK; in stv0367cab_attach()
2880 state->cab_state = cab_state; in stv0367cab_attach()
2900 kfree(cab_state); in stv0367cab_attach()
2967 state->cab_state->mclk = stv0367cab_get_mclk(&state->fe, in stv0367ddb_setup_cab()
2969 state->cab_state->adc_clk = stv0367cab_get_adc_freq(&state->fe, in stv0367ddb_setup_cab()
3274 struct stv0367cab_state *cab_state = NULL; in stv0367ddb_attach() local
3283 cab_state = kzalloc(sizeof(struct stv0367cab_state), GFP_KERNEL); in stv0367ddb_attach()
3284 if (cab_state == NULL) in stv0367ddb_attach()
3291 cab_state->search_range = 280000; in stv0367ddb_attach()
3292 cab_state->qamfec_status_reg = F367CAB_DESCR_SYNCSTATE; in stv0367ddb_attach()
3293 state->cab_state = cab_state; in stv0367ddb_attach()
3320 kfree(cab_state); in stv0367ddb_attach()