• Home
  • Raw
  • Download

Lines Matching +full:5 +full:c

4  * Copyright (C) 2009 DiBcom (http://www.dibcom.fr/)
282 …(769 << 5) | 0x0a, (745 << 5) | 0x03, (595 << 5) | 0x0d, (769 << 5) | 0x0a, (920 << 5) | 0x09, (78…
283 (920 << 5) | 0x09
287 …(692 << 5) | 0x0b, (683 << 5) | 0x01, (519 << 5) | 0x09, (692 << 5) | 0x0b, 0 | 0x1f, 0 | 0x1f, 0 …
291 …(832 << 5) | 0x10, (912 << 5) | 0x05, (900 << 5) | 0x12, (832 << 5) | 0x10, (-931 << 5) | 0x0f, (9…
292 (-931 << 5) | 0x0f
296 …(622 << 5) | 0x0c, (941 << 5) | 0x04, (796 << 5) | 0x10, (622 << 5) | 0x0c, (982 << 5) | 0x0c, (51…
297 (982 << 5) | 0x0c
301 …(699 << 5) | 0x14, (607 << 5) | 0x04, (944 << 5) | 0x13, (699 << 5) | 0x14, (-720 << 5) | 0x0d, (6…
302 (-720 << 5) | 0x0d
306 …(664 << 5) | 0x0c, (925 << 5) | 0x03, (937 << 5) | 0x10, (664 << 5) | 0x0c, (-610 << 5) | 0x0a, (6…
307 (-610 << 5) | 0x0a
311 …(-955 << 5) | 0x0e, (687 << 5) | 0x04, (818 << 5) | 0x10, (-955 << 5) | 0x0e, (-922 << 5) | 0x0d, …
312 (-922 << 5) | 0x0d
316 …(638 << 5) | 0x0d, (683 << 5) | 0x02, (638 << 5) | 0x0d, (638 << 5) | 0x0d, (-655 << 5) | 0x0a, (5…
317 (-655 << 5) | 0x0a
321 …(-707 << 5) | 0x14, (910 << 5) | 0x06, (889 << 5) | 0x16, (-707 << 5) | 0x14, (-958 << 5) | 0x13, …
322 (-958 << 5) | 0x13
326 …(-723 << 5) | 0x13, (910 << 5) | 0x05, (777 << 5) | 0x14, (-723 << 5) | 0x13, (-568 << 5) | 0x0f, …
327 (-568 << 5) | 0x0f
331 …(-940 << 5) | 0x15, (607 << 5) | 0x05, (915 << 5) | 0x16, (-940 << 5) | 0x15, (-848 << 5) | 0x13, …
332 (-848 << 5) | 0x13
336 …(612 << 5) | 0x12, (910 << 5) | 0x04, (864 << 5) | 0x14, (612 << 5) | 0x12, (-869 << 5) | 0x13, (6…
337 (-869 << 5) | 0x13
341 …(-835 << 5) | 0x12, (684 << 5) | 0x05, (735 << 5) | 0x14, (-835 << 5) | 0x12, (-598 << 5) | 0x10, …
342 (-598 << 5) | 0x10
346 …(673 << 5) | 0x0f, (683 << 5) | 0x03, (808 << 5) | 0x12, (673 << 5) | 0x0f, (585 << 5) | 0x0f, (51…
347 (585 << 5) | 0x0f
351 …(863 << 5) | 0x17, (930 << 5) | 0x07, (878 << 5) | 0x19, (863 << 5) | 0x17, (0 << 5) | 0x14, (521 …
352 (0 << 5) | 0x14
356 …(-924 << 5) | 0x17, (910 << 5) | 0x06, (774 << 5) | 0x17, (-924 << 5) | 0x17, (-877 << 5) | 0x15, …
357 (-877 << 5) | 0x15
361 …(-921 << 5) | 0x19, (607 << 5) | 0x06, (881 << 5) | 0x19, (-921 << 5) | 0x19, (-921 << 5) | 0x14, …
362 (-921 << 5) | 0x14
366 …(514 << 5) | 0x14, (910 << 5) | 0x05, (861 << 5) | 0x17, (514 << 5) | 0x14, (690 << 5) | 0x14, (68…
367 (690 << 5) | 0x14
375 …249, 226, 164, 82, 5, 981, 970, 988, 1018, 20, 31, 26, 8, 1012, 1000, 1018, 1012, 8, 15, 14, 9, 3,…
379 396, 305, 105, -51, -77, -12, 41, 31, -11, -30, -11, 14, 15, -2, -13, -7, 5, 8, 1, -6, -7, -3, 0, 1
441 outreg = (1 << 10) | (5 << 6); in dib8000_set_output_mode()
459 smo_mode |= (1 << 5); in dib8000_set_output_mode()
599 reg_908 = (1 << 6) | (1 << 5) | (1 << 4) | (1 << 3) | (1 << 1); in dib8000_set_adc_state()
706 (pll->bypclk_div << 5) | (pll->enable_refdiv << 4) | in dib8000_reset_pll()
927 5, 215,
954 (3 << 5) | /* P_ctrl_pre_freq_step=3 */
1001 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_reset_stats() local
1004 memset(&c->strength, 0, sizeof(c->strength)); in dib8000_reset_stats()
1005 memset(&c->cnr, 0, sizeof(c->cnr)); in dib8000_reset_stats()
1006 memset(&c->post_bit_error, 0, sizeof(c->post_bit_error)); in dib8000_reset_stats()
1007 memset(&c->post_bit_count, 0, sizeof(c->post_bit_count)); in dib8000_reset_stats()
1008 memset(&c->block_error, 0, sizeof(c->block_error)); in dib8000_reset_stats()
1010 c->strength.len = 1; in dib8000_reset_stats()
1011 c->cnr.len = 1; in dib8000_reset_stats()
1012 c->block_error.len = 1; in dib8000_reset_stats()
1013 c->block_count.len = 1; in dib8000_reset_stats()
1014 c->post_bit_error.len = 1; in dib8000_reset_stats()
1015 c->post_bit_count.len = 1; in dib8000_reset_stats()
1017 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in dib8000_reset_stats()
1018 c->strength.stat[0].uvalue = 0; in dib8000_reset_stats()
1020 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1021 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1022 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1023 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1024 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1137 dib8000_write_word(state, 285, (dib8000_read_word(state, 285) & ~0x60) | (3 << 5)); in dib8000_reset()
1199 dib8000_write_word(state, 102, (agc->alpha_mant << 5) | agc->alpha_exp); in dib8000_set_agc_config()
1359 /* drive host bus 5,6 */ in dib8096p_host_bus_drive()
1488 dib8096p_cfg_DibTx(state, 8, 5, 0, 0, 0, 0); in dib8096p_setDibTxMux()
1492 dib8096p_cfg_DibTx(state, 5, 5, 0, 0, 0, 0); in dib8096p_setDibTxMux()
1496 dib8096p_cfg_DibTx(state, 20, 5, 10, 0, 0, 0); in dib8096p_setDibTxMux()
1517 reg_1288 |= (1 << 5); in dib8096p_setHostBusMux()
1539 dib8096p_cfg_DibRx(state, 8, 5, 0, 0, 0, 8, 0); in dib8096p_set_diversity_in()
1555 dib8096p_cfg_DibRx(state, 5, 5, 0, 0, 0, 0, 0); in dib8096p_set_diversity_in()
1621 outreg |= (5 << 6); in dib8096p_set_output_mode()
1645 smo_mode |= (1 << 5); in dib8096p_set_output_mode()
1994 static const u8 permu_seg[] = { 6, 5, 7, 4, 8, 3, 9, 2, 10, 1, 11, 0, 12 };
1999 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_layer() local
2001 switch (c->layer[layer_index].modulation) { in dib8000_set_layer()
2017 switch (c->layer[layer_index].fec) { in dib8000_set_layer()
2028 cr = 5; in dib8000_set_layer()
2036 time_intlv = fls(c->layer[layer_index].interleaving); in dib8000_set_layer()
2037 if (time_intlv > 3 && !(time_intlv == 4 && c->isdbt_sb_mode == 1)) in dib8000_set_layer()
2040 …dib8000_write_word(state, 2 + layer_index, (constellation << 10) | ((c->layer[layer_index].segment… in dib8000_set_layer()
2041 if (c->layer[layer_index].segment_count > 0) { in dib8000_set_layer()
2045 if (c->layer[layer_index].modulation == QAM_16 || c->layer[layer_index].modulation == QAM_64) in dib8000_set_layer()
2046 max_constellation = c->layer[layer_index].modulation; in dib8000_set_layer()
2049 if (c->layer[layer_index].modulation == QAM_64) in dib8000_set_layer()
2050 max_constellation = c->layer[layer_index].modulation; in dib8000_set_layer()
2151 dib8000_write_word(state, 187, (4 << 12) | (8 << 5) | 0x2); in dib8000_set_13seg_channel()
2158 dib8000_write_word(state, 338, (1 << 12) | (1 << 10) | (0 << 9) | (3 << 5) | 1); in dib8000_set_13seg_channel()
2193 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_small_fine_tune() local
2198 …ext_enable=ISDB-Tsb, P_small_narrow_band=ISDB-Tsb, P_small_last_seg=13, P_small_offset_num_car=5 */ in dib8000_small_fine_tune()
2199 dib8000_write_word(state, 351, (c->isdbt_sb_mode << 9) | (c->isdbt_sb_mode << 8) | (13 << 4) | 5); in dib8000_small_fine_tune()
2201 if (c->isdbt_sb_mode) { in dib8000_small_fine_tune()
2203 switch (c->transmission_mode) { in dib8000_small_fine_tune()
2205 if (c->isdbt_partial_reception == 0) { /* 1-seg */ in dib8000_small_fine_tune()
2206 if (c->layer[0].modulation == DQPSK) /* DQPSK */ in dib8000_small_fine_tune()
2211 if (c->layer[0].modulation == DQPSK) { /* DQPSK on central segment */ in dib8000_small_fine_tune()
2212 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */ in dib8000_small_fine_tune()
2217 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */ in dib8000_small_fine_tune()
2225 if (c->isdbt_partial_reception == 0) { /* 1-seg */ in dib8000_small_fine_tune()
2226 if (c->layer[0].modulation == DQPSK) /* DQPSK */ in dib8000_small_fine_tune()
2231 if (c->layer[0].modulation == DQPSK) { /* DQPSK on central segment */ in dib8000_small_fine_tune()
2232 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */ in dib8000_small_fine_tune()
2237 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */ in dib8000_small_fine_tune()
2247 if (c->isdbt_partial_reception == 0) { /* 1-seg */ in dib8000_small_fine_tune()
2248 if (c->layer[0].modulation == DQPSK) /* DQPSK */ in dib8000_small_fine_tune()
2253 if (c->layer[0].modulation == DQPSK) { /* DQPSK on central segment */ in dib8000_small_fine_tune()
2254 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */ in dib8000_small_fine_tune()
2259 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */ in dib8000_small_fine_tune()
2277 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_sb_channel() local
2281 if (c->transmission_mode == TRANSMISSION_MODE_2K || c->transmission_mode == TRANSMISSION_MODE_4K) { in dib8000_set_sb_channel()
2289 if (c->isdbt_partial_reception == 1) /* 3-segments */ in dib8000_set_sb_channel()
2298 …dib8000_write_word(state, 187, (4 << 12) | (0 << 11) | (63 << 5) | (0x3 << 3) | ((~c->isdbt_partia… in dib8000_set_sb_channel()
2304 if (c->isdbt_partial_reception == 0) { in dib8000_set_sb_channel()
2311 …1,P_ctrl_pre_freq_mode_sat=1, P_ctrl_pre_freq_inh=0, P_ctrl_pre_freq_step = 5, P_pre_freq_win_len=… in dib8000_set_sb_channel()
2312 dib8000_write_word(state, 338, (1 << 12) | (1 << 10) | (0 << 9) | (5 << 5) | 4); in dib8000_set_sb_channel()
2317 dib8000_write_word(state, 338, (1 << 12) | (1 << 10) | (0 << 9) | (4 << 5) | 4); in dib8000_set_sb_channel()
2324 if (c->isdbt_partial_reception == 0 && c->transmission_mode == TRANSMISSION_MODE_2K) in dib8000_set_sb_channel()
2340 if (c->isdbt_partial_reception == 0) in dib8000_set_sb_channel()
2352 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_isdbt_common_channel() local
2355 c->isdbt_partial_reception = 1; in dib8000_set_isdbt_common_channel()
2365 dib8000_write_word(state, 1, (tmp&0xfffc) | (c->guard_interval & 0x3)); in dib8000_set_isdbt_common_channel()
2367 …ate, 274, (dib8000_read_word(state, 274) & 0xffcf) | ((c->isdbt_partial_reception & 1) << 5) | ((c in dib8000_set_isdbt_common_channel()
2370 if (c->isdbt_partial_reception) { in dib8000_set_isdbt_common_channel()
2371 state->seg_diff_mask = (c->layer[0].modulation == DQPSK) << permu_seg[0]; in dib8000_set_isdbt_common_channel()
2373 nbseg_diff += (c->layer[i].modulation == DQPSK) * c->layer[i].segment_count; in dib8000_set_isdbt_common_channel()
2378 nbseg_diff += (c->layer[i].modulation == DQPSK) * c->layer[i].segment_count; in dib8000_set_isdbt_common_channel()
2391 state->layer_b_nb_seg = c->layer[1].segment_count; in dib8000_set_isdbt_common_channel()
2392 state->layer_c_nb_seg = c->layer[2].segment_count; in dib8000_set_isdbt_common_channel()
2407 if (c->isdbt_partial_reception) /* 3-segments */ in dib8000_set_isdbt_common_channel()
2413 if (c->isdbt_sb_mode) { in dib8000_set_isdbt_common_channel()
2415 if (c->isdbt_sb_subchannel < 14) in dib8000_set_isdbt_common_channel()
2416 init_prbs = dib8000_get_init_prbs(state, c->isdbt_sb_subchannel); in dib8000_set_isdbt_common_channel()
2456 tmcc_pow += (((c->layer[i].modulation == DQPSK) * 4 + 1) * c->layer[i].segment_count) ; in dib8000_set_isdbt_common_channel()
2458 /* Quantif of "P_tmcc_dec_thres_?k" is (0, 5+mode, 9); */ in dib8000_set_isdbt_common_channel()
2498 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_autosearch_start() local
2544 c->transmission_mode = TRANSMISSION_MODE_8K; in dib8000_autosearch_start()
2545 c->guard_interval = GUARD_INTERVAL_1_8; in dib8000_autosearch_start()
2546 c->inversion = 0; in dib8000_autosearch_start()
2547 c->layer[0].modulation = QAM_64; in dib8000_autosearch_start()
2548 c->layer[0].fec = FEC_2_3; in dib8000_autosearch_start()
2549 c->layer[0].interleaving = 0; in dib8000_autosearch_start()
2550 c->layer[0].segment_count = 13; in dib8000_autosearch_start()
2553 c->transmission_mode = state->found_nfft; in dib8000_autosearch_start()
2582 c->inversion = 0; in dib8000_autosearch_start()
2583 c->layer[0].modulation = QAM_64; in dib8000_autosearch_start()
2584 c->layer[0].fec = FEC_2_3; in dib8000_autosearch_start()
2585 c->layer[0].interleaving = 0; in dib8000_autosearch_start()
2586 c->layer[0].segment_count = 13; in dib8000_autosearch_start()
2587 if (!c->isdbt_sb_mode) in dib8000_autosearch_start()
2588 c->layer[0].segment_count = 13; in dib8000_autosearch_start()
2591 if (c->isdbt_sb_mode) { in dib8000_autosearch_start()
2595 if (c->guard_interval == GUARD_INTERVAL_AUTO) { in dib8000_autosearch_start()
2596 if (c->transmission_mode == TRANSMISSION_MODE_AUTO) { in dib8000_autosearch_start()
2597 c->transmission_mode = TRANSMISSION_MODE_8K; in dib8000_autosearch_start()
2598 c->guard_interval = GUARD_INTERVAL_1_8; in dib8000_autosearch_start()
2602 c->guard_interval = GUARD_INTERVAL_1_8; in dib8000_autosearch_start()
2606 if (c->transmission_mode == TRANSMISSION_MODE_AUTO) { in dib8000_autosearch_start()
2607 c->transmission_mode = TRANSMISSION_MODE_8K; in dib8000_autosearch_start()
2709 dprintk("setting a DDS frequency offset of %c%dkHz\n", invert ? '-' : ' ', dds / unit_khz_dds_val); in dib8000_set_dds()
2721 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_frequency_offset() local
2729 current_rf = c->frequency; in dib8000_set_frequency_offset()
2731 total_dds_offset_khz = (int)current_rf - (int)c->frequency / 1000; in dib8000_set_frequency_offset()
2733 if (c->isdbt_sb_mode) { in dib8000_set_frequency_offset()
2734 state->subchannel = c->isdbt_sb_subchannel; in dib8000_set_frequency_offset()
2737 dib8000_write_word(state, 26, c->inversion ^ i); in dib8000_set_frequency_offset()
2740 if ((c->inversion ^ i) == 0) in dib8000_set_frequency_offset()
2743 if ((c->inversion ^ i) == 0) in dib8000_set_frequency_offset()
2748 …ency = %dHz & current_rf = %dHz) total_dds_offset_hz = %d\n", c->frequency - current_rf, c->freque… in dib8000_set_frequency_offset()
2758 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_get_symbol_duration() local
2761 switch (c->transmission_mode) { in dib8000_get_symbol_duration()
2775 return (LUT_isdbt_symbol_duration[i] / (c->bandwidth_hz / 1000)) + 1; in dib8000_get_symbol_duration()
2780 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_isdbt_loop_params() local
2785 if (c->isdbt_sb_mode) { in dib8000_set_isdbt_loop_params()
2786 if (c->isdbt_partial_reception == 0) { in dib8000_set_isdbt_loop_params()
2788 …reg_37 = (3 << 5) | (0 << 4) | (10 - state->mode); /* P_ctrl_pha_off_max=3 P_ctrl_sfreq_inh =0 … in dib8000_set_isdbt_loop_params()
2791 …reg_37 = (3 << 5) | (0 << 4) | (9 - state->mode); /* P_ctrl_pha_off_max=3 P_ctrl_sfreq_inh =0 P… in dib8000_set_isdbt_loop_params()
2795 …reg_37 = (3 << 5) | (0 << 4) | (8 - state->mode); /* P_ctrl_pha_off_max=3 P_ctrl_sfreq_inh =0 P… in dib8000_set_isdbt_loop_params()
2799 if (c->isdbt_sb_mode) { in dib8000_set_isdbt_loop_params()
2800 if (c->isdbt_partial_reception == 0) { /* Sound Broadcasting mode 1 seg */ in dib8000_set_isdbt_loop_params()
2802 reg_37 = (12-state->mode) | ((5 + state->mode) << 5); in dib8000_set_isdbt_loop_params()
2805 reg_37 = (11-state->mode) | ((5 + state->mode) << 5); in dib8000_set_isdbt_loop_params()
2809 reg_37 = ((5+state->mode) << 5) | (10 - state->mode); in dib8000_set_isdbt_loop_params()
2826 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_sync_wait() local
2830 switch (c->transmission_mode) { in dib8000_set_sync_wait()
2844 …sync_wait = (sync_wait * (1 << (c->guard_interval)) * 3) / 2 + 48; /* add 50% SFN margin + compens… in dib8000_set_sync_wait()
2846 …sync_wait = (sync_wait * (1 << (c->guard_interval)) * 3) / 2 + state->cfg.diversity_delay; /* add … in dib8000_set_sync_wait()
2916 * @c: struct dvb_frontend_properties
2929 static int is_manual_mode(struct dtv_frontend_properties *c) in is_manual_mode() argument
2934 if (c->delivery_system != SYS_ISDBT) in is_manual_mode()
2940 if (c->transmission_mode == TRANSMISSION_MODE_AUTO) { in is_manual_mode()
2948 if (c->guard_interval == GUARD_INTERVAL_AUTO) { in is_manual_mode()
2957 if (!c->isdbt_layer_enabled) { in is_manual_mode()
2967 if (!(c->isdbt_layer_enabled & 1 << i)) in is_manual_mode()
2970 if ((c->layer[i].segment_count > 13) || in is_manual_mode()
2971 (c->layer[i].segment_count == 0)) { in is_manual_mode()
2972 c->isdbt_layer_enabled &= ~(1 << i); in is_manual_mode()
2976 n_segs += c->layer[i].segment_count; in is_manual_mode()
2978 if ((c->layer[i].modulation == QAM_AUTO) || in is_manual_mode()
2979 (c->layer[i].fec == FEC_AUTO)) { in is_manual_mode()
2980 dprintk("layer %c has either modulation or FEC auto\n", in is_manual_mode()
3002 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_tune() local
3030 state->channel_parameters_set = is_manual_mode(c); in dib8000_tune()
3041 dib8000_set_bandwidth(fe, c->bandwidth_hz / 1000); in dib8000_tune()
3184 …*timeout = dib8000_get_timeout(state, (20 * ((dib8000_read_word(state, 188)>>5)&0x1f)), SYMBOL_DEP… in dib8000_tune()
3227 if (c->isdbt_sb_mode in dib8000_tune()
3228 && c->isdbt_sb_subchannel < 14 in dib8000_tune()
3242 if (c->layer[i].interleaving >= deeper_interleaver) { in dib8000_tune()
3243 dprintk("layer%i: time interleaver = %d\n", i, c->layer[i].interleaving); in dib8000_tune()
3244 if (c->layer[i].segment_count > 0) { /* valid layer */ in dib8000_tune()
3245 deeper_interleaver = c->layer[0].interleaving; in dib8000_tune()
3273 dprintk("ISDB-T layer locks: Layer A %s, Layer B %s, Layer C %s\n", in dib8000_tune()
3274 c->layer[0].segment_count ? (locks >> 7) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled", in dib8000_tune()
3275 c->layer[1].segment_count ? (locks >> 6) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled", in dib8000_tune()
3276 c->layer[2].segment_count ? (locks >> 5) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled"); in dib8000_tune()
3277 if (c->isdbt_sb_mode in dib8000_tune()
3278 && c->isdbt_sb_subchannel < 14 in dib8000_tune()
3286 if (c->isdbt_sb_mode in dib8000_tune()
3287 && c->isdbt_sb_subchannel < 14 in dib8000_tune()
3292 if (locks & (0x7 << 5)) { in dib8000_tune()
3293 dprintk("Not all ISDB-T layers locked in %d ms: Layer A %s, Layer B %s, Layer C %s\n", in dib8000_tune()
3295 c->layer[0].segment_count ? (locks >> 7) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled", in dib8000_tune()
3296 c->layer[1].segment_count ? (locks >> 6) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled", in dib8000_tune()
3297 c->layer[2].segment_count ? (locks >> 5) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled"); in dib8000_tune()
3393 struct dtv_frontend_properties *c) in dib8000_get_frontend() argument
3400 c->bandwidth_hz = 6000000; in dib8000_get_frontend()
3417 state->fe[index_frontend]->ops.get_frontend(state->fe[index_frontend], c); in dib8000_get_frontend()
3437 c->isdbt_sb_mode = dib8000_read_word(state, 508) & 0x1; in dib8000_get_frontend()
3443 c->inversion = (val & 0x40) >> 6; in dib8000_get_frontend()
3446 c->transmission_mode = TRANSMISSION_MODE_2K; in dib8000_get_frontend()
3450 c->transmission_mode = TRANSMISSION_MODE_4K; in dib8000_get_frontend()
3455 c->transmission_mode = TRANSMISSION_MODE_8K; in dib8000_get_frontend()
3462 c->guard_interval = GUARD_INTERVAL_1_32; in dib8000_get_frontend()
3466 c->guard_interval = GUARD_INTERVAL_1_16; in dib8000_get_frontend()
3471 c->guard_interval = GUARD_INTERVAL_1_8; in dib8000_get_frontend()
3475 c->guard_interval = GUARD_INTERVAL_1_4; in dib8000_get_frontend()
3480 c->isdbt_partial_reception = val & 1; in dib8000_get_frontend()
3481 dprintk("dib8000_get_frontend: partial_reception = %d\n", c->isdbt_partial_reception); in dib8000_get_frontend()
3487 c->layer[i].segment_count = val; in dib8000_get_frontend()
3496 i, c->layer[i].segment_count); in dib8000_get_frontend()
3502 c->layer[i].interleaving = val; in dib8000_get_frontend()
3505 i, c->layer[i].interleaving); in dib8000_get_frontend()
3510 c->layer[i].fec = FEC_1_2; in dib8000_get_frontend()
3515 c->layer[i].fec = FEC_2_3; in dib8000_get_frontend()
3520 c->layer[i].fec = FEC_3_4; in dib8000_get_frontend()
3524 case 5: in dib8000_get_frontend()
3525 c->layer[i].fec = FEC_5_6; in dib8000_get_frontend()
3527 dprintk("dib8000_get_frontend: Layer %d Code Rate = 5/6\n", i); in dib8000_get_frontend()
3530 c->layer[i].fec = FEC_7_8; in dib8000_get_frontend()
3539 c->layer[i].modulation = DQPSK; in dib8000_get_frontend()
3544 c->layer[i].modulation = QPSK; in dib8000_get_frontend()
3549 c->layer[i].modulation = QAM_16; in dib8000_get_frontend()
3555 c->layer[i].modulation = QAM_64; in dib8000_get_frontend()
3564 state->fe[index_frontend]->dtv_property_cache.isdbt_sb_mode = c->isdbt_sb_mode; in dib8000_get_frontend()
3565 state->fe[index_frontend]->dtv_property_cache.inversion = c->inversion; in dib8000_get_frontend()
3566 state->fe[index_frontend]->dtv_property_cache.transmission_mode = c->transmission_mode; in dib8000_get_frontend()
3567 state->fe[index_frontend]->dtv_property_cache.guard_interval = c->guard_interval; in dib8000_get_frontend()
3568 …state->fe[index_frontend]->dtv_property_cache.isdbt_partial_reception = c->isdbt_partial_reception; in dib8000_get_frontend()
3570 state->fe[index_frontend]->dtv_property_cache.layer[i].segment_count = c->layer[i].segment_count; in dib8000_get_frontend()
3571 state->fe[index_frontend]->dtv_property_cache.layer[i].interleaving = c->layer[i].interleaving; in dib8000_get_frontend()
3572 state->fe[index_frontend]->dtv_property_cache.layer[i].fec = c->layer[i].fec; in dib8000_get_frontend()
3573 state->fe[index_frontend]->dtv_property_cache.layer[i].modulation = c->layer[i].modulation; in dib8000_get_frontend()
3582 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_frontend() local
3587 if (c->frequency == 0) { in dib8000_set_frontend()
3592 if (c->bandwidth_hz == 0) { in dib8000_set_frontend()
3594 c->bandwidth_hz = 6000000; in dib8000_set_frontend()
3682 …dib8000_get_frontend(state->fe[index_frontend], c); /* we read the channel parameters from the fro… in dib8000_set_frontend()
3767 if ((((lock >> 12) & 1) || ((lock_slave >> 12) & 1)) && ((lock >> 5) & 7)) /* FEC MPEG */ in dib8000_read_status()
3779 lock = dib8000_read_word(state, 556); /* Viterbi Layer C */ in dib8000_read_status()
3989 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_get_time_us() local
4004 switch (c->guard_interval) { in dib8000_get_time_us()
4020 switch (c->transmission_mode) { in dib8000_get_time_us()
4035 nsegs = c->layer[i].segment_count; in dib8000_get_time_us()
4039 switch (c->layer[i].modulation) { in dib8000_get_time_us()
4053 switch (c->layer[i].fec) { in dib8000_get_time_us()
4067 rate_num = 5; in dib8000_get_time_us()
4077 interleaving = c->layer[i].interleaving; in dib8000_get_time_us()
4103 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_get_stats() local
4117 c->strength.stat[0].svalue = db; in dib8000_get_stats()
4121 c->cnr.len = 1; in dib8000_get_stats()
4122 c->block_count.len = 1; in dib8000_get_stats()
4123 c->block_error.len = 1; in dib8000_get_stats()
4124 c->post_bit_error.len = 1; in dib8000_get_stats()
4125 c->post_bit_count.len = 1; in dib8000_get_stats()
4126 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4127 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4128 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4129 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4130 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4152 c->cnr.stat[0].svalue = snr; in dib8000_get_stats()
4153 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in dib8000_get_stats()
4160 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4161 c->block_error.stat[0].uvalue = val + state->init_ucb; in dib8000_get_stats()
4170 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4171 c->block_count.stat[0].uvalue += blocks; in dib8000_get_stats()
4185 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4186 c->post_bit_error.stat[0].uvalue += val; in dib8000_get_stats()
4188 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4189 c->post_bit_count.stat[0].uvalue += 100000000; in dib8000_get_stats()
4195 c->block_error.len = 4; in dib8000_get_stats()
4196 c->post_bit_error.len = 4; in dib8000_get_stats()
4197 c->post_bit_count.len = 4; in dib8000_get_stats()
4200 unsigned nsegs = c->layer[i].segment_count; in dib8000_get_stats()
4211 dprintk("Next layer %c stats will be available in %u us\n", in dib8000_get_stats()
4215 c->post_bit_error.stat[1 + i].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4216 c->post_bit_error.stat[1 + i].uvalue += val; in dib8000_get_stats()
4218 c->post_bit_count.stat[1 + i].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4219 c->post_bit_count.stat[1 + i].uvalue += 100000000; in dib8000_get_stats()
4225 c->block_error.stat[1 + i].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4226 c->block_error.stat[1 + i].uvalue += val; in dib8000_get_stats()
4233 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4234 c->block_count.stat[0].uvalue += blocks; in dib8000_get_stats()
4471 …dib8000_write_word(state, 285, (dib8000_read_word(state, 285) & ~0x60) | (3 << 5)); /* ber_rs_len … in dib8000_init()