Lines Matching refs:cab_state
85 struct stv0367cab_state *cab_state; member
1678 kfree(state->cab_state); in stv0367_release()
2145 (state->cab_state->qamfec_status_reg ? in stv0367cab_qamfec_lock()
2146 state->cab_state->qamfec_status_reg : in stv0367cab_qamfec_lock()
2212 state->cab_state->state = stv0367cab_fsm_signaltype( in stv0367cab_read_status()
2220 if (state->cab_state->state > FE_CAB_NOSIGNAL) in stv0367cab_read_status()
2223 if (state->cab_state->state > FE_CAB_NOCARRIER) in stv0367cab_read_status()
2226 if (state->cab_state->state >= FE_CAB_DEMODOK) in stv0367cab_read_status()
2229 if (state->cab_state->state >= FE_CAB_DATAOK) in stv0367cab_read_status()
2273 struct stv0367cab_state *cab_state = state->cab_state; in stv0367cab_init() local
2315 cab_state->mclk = stv0367cab_get_mclk(fe, state->config->xtal); in stv0367cab_init()
2316 cab_state->adc_clk = stv0367cab_get_adc_freq(fe, state->config->xtal); in stv0367cab_init()
2324 struct stv0367cab_state *cab_state = state->cab_state; in stv0367cab_algo() local
2383 CRLTimeOut = (25 * CRLSymbols * (cab_state->search_range / 1000)) / in stv0367cab_algo()
2413 stv0367cab_set_derot_freq(state, cab_state->adc_clk, in stv0367cab_algo()
2414 (1000 * (s32)ifkhz + cab_state->derot_offset)); in stv0367cab_algo()
2483 tmp = stv0367cab_get_derot_freq(state, cab_state->adc_clk); in stv0367cab_algo()
2499 cab_state->spect_inv = stv0367_readbits(state, in stv0367cab_algo()
2504 if (ifkhz > cab_state->adc_clk / 1000) { in stv0367cab_algo()
2505 cab_state->freq_khz = in stv0367cab_algo()
2507 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_algo()
2508 - cab_state->adc_clk / 1000 + ifkhz; in stv0367cab_algo()
2510 cab_state->freq_khz = in stv0367cab_algo()
2512 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_algo()
2516 cab_state->freq_khz = in stv0367cab_algo()
2519 cab_state->adc_clk) - in stv0367cab_algo()
2520 cab_state->adc_clk / 4000; in stv0367cab_algo()
2523 cab_state->symbol_rate = stv0367cab_GetSymbolRate(state, in stv0367cab_algo()
2524 cab_state->mclk); in stv0367cab_algo()
2525 cab_state->locked = 1; in stv0367cab_algo()
2540 struct stv0367cab_state *cab_state = state->cab_state; in stv0367cab_set_frontend() local
2546 cab_state->derot_offset = 0; in stv0367cab_set_frontend()
2586 cab_state->adc_clk, in stv0367cab_set_frontend()
2587 cab_state->mclk, in stv0367cab_set_frontend()
2591 cab_state->state = stv0367cab_algo(state, p); in stv0367cab_set_frontend()
2599 struct stv0367cab_state *cab_state = state->cab_state; in stv0367cab_get_frontend() local
2607 p->symbol_rate = stv0367cab_GetSymbolRate(state, cab_state->mclk); in stv0367cab_get_frontend()
2636 (stv0367cab_get_derot_freq(state, cab_state->adc_clk) - in stv0367cab_get_frontend()
2637 cab_state->adc_clk / 4000); in stv0367cab_get_frontend()
2641 if (ifkhz > cab_state->adc_clk / 1000) in stv0367cab_get_frontend()
2643 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_get_frontend()
2644 - cab_state->adc_clk / 1000); in stv0367cab_get_frontend()
2647 - stv0367cab_get_derot_freq(state, cab_state->adc_clk)); in stv0367cab_get_frontend()
2883 struct stv0367cab_state *cab_state = NULL; in stv0367cab_attach() local
2889 cab_state = kzalloc(sizeof(struct stv0367cab_state), GFP_KERNEL); in stv0367cab_attach()
2890 if (cab_state == NULL) in stv0367cab_attach()
2896 cab_state->search_range = 280000; in stv0367cab_attach()
2897 cab_state->qamfec_status_reg = F367CAB_QAMFEC_LOCK; in stv0367cab_attach()
2898 state->cab_state = cab_state; in stv0367cab_attach()
2918 kfree(cab_state); in stv0367cab_attach()
2985 state->cab_state->mclk = stv0367cab_get_mclk(&state->fe, in stv0367ddb_setup_cab()
2987 state->cab_state->adc_clk = stv0367cab_get_adc_freq(&state->fe, in stv0367ddb_setup_cab()
3292 struct stv0367cab_state *cab_state = NULL; in stv0367ddb_attach() local
3301 cab_state = kzalloc(sizeof(struct stv0367cab_state), GFP_KERNEL); in stv0367ddb_attach()
3302 if (cab_state == NULL) in stv0367ddb_attach()
3309 cab_state->search_range = 280000; in stv0367ddb_attach()
3310 cab_state->qamfec_status_reg = F367CAB_DESCR_SYNCSTATE; in stv0367ddb_attach()
3311 state->cab_state = cab_state; in stv0367ddb_attach()
3338 kfree(cab_state); in stv0367ddb_attach()