Lines Matching refs:internal
558 struct stb0899_internal *internal = &state->internal; in stb0899_set_mclk() local
566 internal->master_clk = stb0899_get_mclk(state); in stb0899_set_mclk()
568 dprintk(state->verbose, FE_DEBUG, 1, "MasterCLOCK=%d", internal->master_clk); in stb0899_set_mclk()
630 struct stb0899_internal *internal = &state->internal; in stb0899_init_calc() local
640 internal->t_agc1 = 0; in stb0899_init_calc()
641 internal->t_agc2 = 0; in stb0899_init_calc()
642 internal->master_clk = master_clk; in stb0899_init_calc()
643 internal->mclk = master_clk / 65536L; in stb0899_init_calc()
644 internal->rolloff = stb0899_get_alpha(state); in stb0899_init_calc()
648 internal->agc_gain = 8154; in stb0899_init_calc()
650 STB0899_SETFIELD_VAL(IF_GAIN_INIT, reg, internal->agc_gain); in stb0899_init_calc()
654 internal->rrc_alpha = STB0899_GETFIELD(RRC_ALPHA, reg); in stb0899_init_calc()
656 internal->center_freq = 0; in stb0899_init_calc()
657 internal->av_frame_coarse = 10; in stb0899_init_calc()
658 internal->av_frame_fine = 20; in stb0899_init_calc()
659 internal->step_size = 2; in stb0899_init_calc()
951 struct stb0899_internal *internal = &state->internal; in stb0899_read_signal_strength() local
959 if (internal->lock) { in stb0899_read_signal_strength()
974 if (internal->lock) { in stb0899_read_signal_strength()
995 struct stb0899_internal *internal = &state->internal; in stb0899_read_snr() local
1006 if (internal->lock) { in stb0899_read_snr()
1019 if (internal->lock) { in stb0899_read_snr()
1052 struct stb0899_internal *internal = &state->internal; in stb0899_read_status() local
1060 if (internal->lock) { in stb0899_read_status()
1078 if (internal->lock) { in stb0899_read_status()
1123 struct stb0899_internal *internal = &state->internal; in stb0899_read_ber() local
1132 if (internal->lock) { in stb0899_read_ber()
1137 if (STB0899_GETFIELD(VSTATUS_PRFVIT, internal->v_status)) { in stb0899_read_ber()
1141 *ber /= (-1 + (1 << (2 * STB0899_GETFIELD(NOE, internal->err_ctrl)))); in stb0899_read_ber()
1147 if (internal->lock) { in stb0899_read_ber()
1153 *ber /= (-1 + (1 << (4 + 2 * STB0899_GETFIELD(NOE, internal->err_ctrl)))); in stb0899_read_ber()
1195 struct stb0899_internal *internal = &state->internal; in stb0899_set_tone() local
1205 div = (internal->master_clk / 100) / 5632; in stb0899_set_tone()
1396 struct stb0899_internal *internal = &state->internal; in stb0899_set_iterations() local
1402 iter_scale = 17 * (internal->master_clk / 1000); in stb0899_set_iterations()
1404 iter_scale /= (internal->srate / 1000000); in stb0899_set_iterations()
1419 struct stb0899_internal *internal = &state->internal; in stb0899_search() local
1438 if (internal->srate > 15000000) in stb0899_search()
1440 else if (internal->srate > 5000000) in stb0899_search()
1456 internal->freq = i_params->freq; in stb0899_search()
1457 internal->srate = i_params->srate; in stb0899_search()
1464 internal->srch_range = SearchRange + 1500000 + (i_params->srate / 5); in stb0899_search()
1465 internal->derot_percent = 30; in stb0899_search()
1474 state->config->tuner_get_bandwidth(fe, &internal->tuner_bw); in stb0899_search()
1485 internal->lock = 1; in stb0899_search()
1497 internal->lock = 0; in stb0899_search()
1503 internal->freq = i_params->freq; in stb0899_search()
1504 internal->srate = i_params->srate; in stb0899_search()
1505 internal->srch_range = SearchRange; in stb0899_search()
1513 state->config->tuner_get_bandwidth(fe, &internal->tuner_bw); in stb0899_search()
1529 internal->lock = 1; in stb0899_search()
1539 internal->lock = 0; in stb0899_search()
1557 struct stb0899_internal *internal = &state->internal; in stb0899_get_frontend() local
1560 p->symbol_rate = internal->srate; in stb0899_get_frontend()
1561 p->frequency = internal->freq; in stb0899_get_frontend()
1626 state->internal.inversion = config->inversion; in stb0899_attach()