Lines Matching +full:5 +full:c

5  * Copyright (C) 2009 DiBcom (http://www.dibcom.fr/)
279 …(769 << 5) | 0x0a, (745 << 5) | 0x03, (595 << 5) | 0x0d, (769 << 5) | 0x0a, (920 << 5) | 0x09, (78…
280 (920 << 5) | 0x09
284 …(692 << 5) | 0x0b, (683 << 5) | 0x01, (519 << 5) | 0x09, (692 << 5) | 0x0b, 0 | 0x1f, 0 | 0x1f, 0 …
288 …(832 << 5) | 0x10, (912 << 5) | 0x05, (900 << 5) | 0x12, (832 << 5) | 0x10, (-931 << 5) | 0x0f, (9…
289 (-931 << 5) | 0x0f
293 …(622 << 5) | 0x0c, (941 << 5) | 0x04, (796 << 5) | 0x10, (622 << 5) | 0x0c, (982 << 5) | 0x0c, (51…
294 (982 << 5) | 0x0c
298 …(699 << 5) | 0x14, (607 << 5) | 0x04, (944 << 5) | 0x13, (699 << 5) | 0x14, (-720 << 5) | 0x0d, (6…
299 (-720 << 5) | 0x0d
303 …(664 << 5) | 0x0c, (925 << 5) | 0x03, (937 << 5) | 0x10, (664 << 5) | 0x0c, (-610 << 5) | 0x0a, (6…
304 (-610 << 5) | 0x0a
308 …(-955 << 5) | 0x0e, (687 << 5) | 0x04, (818 << 5) | 0x10, (-955 << 5) | 0x0e, (-922 << 5) | 0x0d, …
309 (-922 << 5) | 0x0d
313 …(638 << 5) | 0x0d, (683 << 5) | 0x02, (638 << 5) | 0x0d, (638 << 5) | 0x0d, (-655 << 5) | 0x0a, (5…
314 (-655 << 5) | 0x0a
318 …(-707 << 5) | 0x14, (910 << 5) | 0x06, (889 << 5) | 0x16, (-707 << 5) | 0x14, (-958 << 5) | 0x13, …
319 (-958 << 5) | 0x13
323 …(-723 << 5) | 0x13, (910 << 5) | 0x05, (777 << 5) | 0x14, (-723 << 5) | 0x13, (-568 << 5) | 0x0f, …
324 (-568 << 5) | 0x0f
328 …(-940 << 5) | 0x15, (607 << 5) | 0x05, (915 << 5) | 0x16, (-940 << 5) | 0x15, (-848 << 5) | 0x13, …
329 (-848 << 5) | 0x13
333 …(612 << 5) | 0x12, (910 << 5) | 0x04, (864 << 5) | 0x14, (612 << 5) | 0x12, (-869 << 5) | 0x13, (6…
334 (-869 << 5) | 0x13
338 …(-835 << 5) | 0x12, (684 << 5) | 0x05, (735 << 5) | 0x14, (-835 << 5) | 0x12, (-598 << 5) | 0x10, …
339 (-598 << 5) | 0x10
343 …(673 << 5) | 0x0f, (683 << 5) | 0x03, (808 << 5) | 0x12, (673 << 5) | 0x0f, (585 << 5) | 0x0f, (51…
344 (585 << 5) | 0x0f
348 …(863 << 5) | 0x17, (930 << 5) | 0x07, (878 << 5) | 0x19, (863 << 5) | 0x17, (0 << 5) | 0x14, (521 …
349 (0 << 5) | 0x14
353 …(-924 << 5) | 0x17, (910 << 5) | 0x06, (774 << 5) | 0x17, (-924 << 5) | 0x17, (-877 << 5) | 0x15, …
354 (-877 << 5) | 0x15
358 …(-921 << 5) | 0x19, (607 << 5) | 0x06, (881 << 5) | 0x19, (-921 << 5) | 0x19, (-921 << 5) | 0x14, …
359 (-921 << 5) | 0x14
363 …(514 << 5) | 0x14, (910 << 5) | 0x05, (861 << 5) | 0x17, (514 << 5) | 0x14, (690 << 5) | 0x14, (68…
364 (690 << 5) | 0x14
372 …249, 226, 164, 82, 5, 981, 970, 988, 1018, 20, 31, 26, 8, 1012, 1000, 1018, 1012, 8, 15, 14, 9, 3,…
376 396, 305, 105, -51, -77, -12, 41, 31, -11, -30, -11, 14, 15, -2, -13, -7, 5, 8, 1, -6, -7, -3, 0, 1
438 outreg = (1 << 10) | (5 << 6); in dib8000_set_output_mode()
456 smo_mode |= (1 << 5); in dib8000_set_output_mode()
596 reg_908 = (1 << 6) | (1 << 5) | (1 << 4) | (1 << 3) | (1 << 1); in dib8000_set_adc_state()
703 (pll->bypclk_div << 5) | (pll->enable_refdiv << 4) | in dib8000_reset_pll()
924 5, 215,
951 (3 << 5) | /* P_ctrl_pre_freq_step=3 */
998 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_reset_stats() local
1001 memset(&c->strength, 0, sizeof(c->strength)); in dib8000_reset_stats()
1002 memset(&c->cnr, 0, sizeof(c->cnr)); in dib8000_reset_stats()
1003 memset(&c->post_bit_error, 0, sizeof(c->post_bit_error)); in dib8000_reset_stats()
1004 memset(&c->post_bit_count, 0, sizeof(c->post_bit_count)); in dib8000_reset_stats()
1005 memset(&c->block_error, 0, sizeof(c->block_error)); in dib8000_reset_stats()
1007 c->strength.len = 1; in dib8000_reset_stats()
1008 c->cnr.len = 1; in dib8000_reset_stats()
1009 c->block_error.len = 1; in dib8000_reset_stats()
1010 c->block_count.len = 1; in dib8000_reset_stats()
1011 c->post_bit_error.len = 1; in dib8000_reset_stats()
1012 c->post_bit_count.len = 1; in dib8000_reset_stats()
1014 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in dib8000_reset_stats()
1015 c->strength.stat[0].uvalue = 0; in dib8000_reset_stats()
1017 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1018 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1019 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1020 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1021 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_reset_stats()
1134 dib8000_write_word(state, 285, (dib8000_read_word(state, 285) & ~0x60) | (3 << 5)); in dib8000_reset()
1196 dib8000_write_word(state, 102, (agc->alpha_mant << 5) | agc->alpha_exp); in dib8000_set_agc_config()
1356 /* drive host bus 5,6 */ in dib8096p_host_bus_drive()
1485 dib8096p_cfg_DibTx(state, 8, 5, 0, 0, 0, 0); in dib8096p_setDibTxMux()
1489 dib8096p_cfg_DibTx(state, 5, 5, 0, 0, 0, 0); in dib8096p_setDibTxMux()
1493 dib8096p_cfg_DibTx(state, 20, 5, 10, 0, 0, 0); in dib8096p_setDibTxMux()
1514 reg_1288 |= (1 << 5); in dib8096p_setHostBusMux()
1536 dib8096p_cfg_DibRx(state, 8, 5, 0, 0, 0, 8, 0); in dib8096p_set_diversity_in()
1552 dib8096p_cfg_DibRx(state, 5, 5, 0, 0, 0, 0, 0); in dib8096p_set_diversity_in()
1618 outreg |= (5 << 6); in dib8096p_set_output_mode()
1642 smo_mode |= (1 << 5); in dib8096p_set_output_mode()
1991 static const u8 permu_seg[] = { 6, 5, 7, 4, 8, 3, 9, 2, 10, 1, 11, 0, 12 };
1996 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_layer() local
1998 switch (c->layer[layer_index].modulation) { in dib8000_set_layer()
2014 switch (c->layer[layer_index].fec) { in dib8000_set_layer()
2025 cr = 5; in dib8000_set_layer()
2033 time_intlv = fls(c->layer[layer_index].interleaving); in dib8000_set_layer()
2034 if (time_intlv > 3 && !(time_intlv == 4 && c->isdbt_sb_mode == 1)) in dib8000_set_layer()
2037 …dib8000_write_word(state, 2 + layer_index, (constellation << 10) | ((c->layer[layer_index].segment… in dib8000_set_layer()
2038 if (c->layer[layer_index].segment_count > 0) { in dib8000_set_layer()
2042 if (c->layer[layer_index].modulation == QAM_16 || c->layer[layer_index].modulation == QAM_64) in dib8000_set_layer()
2043 max_constellation = c->layer[layer_index].modulation; in dib8000_set_layer()
2046 if (c->layer[layer_index].modulation == QAM_64) in dib8000_set_layer()
2047 max_constellation = c->layer[layer_index].modulation; in dib8000_set_layer()
2171 dib8000_write_word(state, 187, (4 << 12) | (8 << 5) | 0x2); in dib8000_set_13seg_channel()
2178 dib8000_write_word(state, 338, (1 << 12) | (1 << 10) | (0 << 9) | (3 << 5) | 1); in dib8000_set_13seg_channel()
2213 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_small_fine_tune() local
2218 …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()
2219 dib8000_write_word(state, 351, (c->isdbt_sb_mode << 9) | (c->isdbt_sb_mode << 8) | (13 << 4) | 5); in dib8000_small_fine_tune()
2221 if (c->isdbt_sb_mode) { in dib8000_small_fine_tune()
2223 switch (c->transmission_mode) { 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()
2245 if (c->isdbt_partial_reception == 0) { /* 1-seg */ in dib8000_small_fine_tune()
2246 if (c->layer[0].modulation == DQPSK) /* DQPSK */ in dib8000_small_fine_tune()
2251 if (c->layer[0].modulation == DQPSK) { /* DQPSK on central segment */ in dib8000_small_fine_tune()
2252 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */ in dib8000_small_fine_tune()
2257 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */ in dib8000_small_fine_tune()
2267 if (c->isdbt_partial_reception == 0) { /* 1-seg */ in dib8000_small_fine_tune()
2268 if (c->layer[0].modulation == DQPSK) /* DQPSK */ in dib8000_small_fine_tune()
2273 if (c->layer[0].modulation == DQPSK) { /* DQPSK on central segment */ in dib8000_small_fine_tune()
2274 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */ in dib8000_small_fine_tune()
2279 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */ in dib8000_small_fine_tune()
2297 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_sb_channel() local
2301 if (c->transmission_mode == TRANSMISSION_MODE_2K || c->transmission_mode == TRANSMISSION_MODE_4K) { in dib8000_set_sb_channel()
2309 if (c->isdbt_partial_reception == 1) /* 3-segments */ in dib8000_set_sb_channel()
2318 …dib8000_write_word(state, 187, (4 << 12) | (0 << 11) | (63 << 5) | (0x3 << 3) | ((~c->isdbt_partia… in dib8000_set_sb_channel()
2324 if (c->isdbt_partial_reception == 0) { in dib8000_set_sb_channel()
2331 …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()
2332 dib8000_write_word(state, 338, (1 << 12) | (1 << 10) | (0 << 9) | (5 << 5) | 4); in dib8000_set_sb_channel()
2337 dib8000_write_word(state, 338, (1 << 12) | (1 << 10) | (0 << 9) | (4 << 5) | 4); in dib8000_set_sb_channel()
2344 if (c->isdbt_partial_reception == 0 && c->transmission_mode == TRANSMISSION_MODE_2K) in dib8000_set_sb_channel()
2360 if (c->isdbt_partial_reception == 0) in dib8000_set_sb_channel()
2372 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_isdbt_common_channel() local
2375 c->isdbt_partial_reception = 1; in dib8000_set_isdbt_common_channel()
2385 dib8000_write_word(state, 1, (tmp&0xfffc) | (c->guard_interval & 0x3)); in dib8000_set_isdbt_common_channel()
2387 …ate, 274, (dib8000_read_word(state, 274) & 0xffcf) | ((c->isdbt_partial_reception & 1) << 5) | ((c in dib8000_set_isdbt_common_channel()
2390 if (c->isdbt_partial_reception) { in dib8000_set_isdbt_common_channel()
2391 state->seg_diff_mask = (c->layer[0].modulation == DQPSK) << permu_seg[0]; in dib8000_set_isdbt_common_channel()
2393 nbseg_diff += (c->layer[i].modulation == DQPSK) * c->layer[i].segment_count; in dib8000_set_isdbt_common_channel()
2398 nbseg_diff += (c->layer[i].modulation == DQPSK) * c->layer[i].segment_count; in dib8000_set_isdbt_common_channel()
2411 state->layer_b_nb_seg = c->layer[1].segment_count; in dib8000_set_isdbt_common_channel()
2412 state->layer_c_nb_seg = c->layer[2].segment_count; in dib8000_set_isdbt_common_channel()
2427 if (c->isdbt_partial_reception) /* 3-segments */ in dib8000_set_isdbt_common_channel()
2433 if (c->isdbt_sb_mode) { in dib8000_set_isdbt_common_channel()
2436 c->isdbt_sb_subchannel); in dib8000_set_isdbt_common_channel()
2474 tmcc_pow += (((c->layer[i].modulation == DQPSK) * 4 + 1) * c->layer[i].segment_count) ; in dib8000_set_isdbt_common_channel()
2476 /* Quantif of "P_tmcc_dec_thres_?k" is (0, 5+mode, 9); */ in dib8000_set_isdbt_common_channel()
2516 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_autosearch_start() local
2562 c->transmission_mode = TRANSMISSION_MODE_8K; in dib8000_autosearch_start()
2563 c->guard_interval = GUARD_INTERVAL_1_8; in dib8000_autosearch_start()
2564 c->inversion = 0; in dib8000_autosearch_start()
2565 c->layer[0].modulation = QAM_64; in dib8000_autosearch_start()
2566 c->layer[0].fec = FEC_2_3; in dib8000_autosearch_start()
2567 c->layer[0].interleaving = 0; in dib8000_autosearch_start()
2568 c->layer[0].segment_count = 13; in dib8000_autosearch_start()
2571 c->transmission_mode = state->found_nfft; in dib8000_autosearch_start()
2600 c->inversion = 0; in dib8000_autosearch_start()
2601 c->layer[0].modulation = QAM_64; in dib8000_autosearch_start()
2602 c->layer[0].fec = FEC_2_3; in dib8000_autosearch_start()
2603 c->layer[0].interleaving = 0; in dib8000_autosearch_start()
2604 c->layer[0].segment_count = 13; in dib8000_autosearch_start()
2605 if (!c->isdbt_sb_mode) in dib8000_autosearch_start()
2606 c->layer[0].segment_count = 13; in dib8000_autosearch_start()
2609 if (c->isdbt_sb_mode) { in dib8000_autosearch_start()
2613 if (c->guard_interval == GUARD_INTERVAL_AUTO) { in dib8000_autosearch_start()
2614 if (c->transmission_mode == TRANSMISSION_MODE_AUTO) { in dib8000_autosearch_start()
2615 c->transmission_mode = TRANSMISSION_MODE_8K; in dib8000_autosearch_start()
2616 c->guard_interval = GUARD_INTERVAL_1_8; in dib8000_autosearch_start()
2620 c->guard_interval = GUARD_INTERVAL_1_8; in dib8000_autosearch_start()
2624 if (c->transmission_mode == TRANSMISSION_MODE_AUTO) { in dib8000_autosearch_start()
2625 c->transmission_mode = TRANSMISSION_MODE_8K; in dib8000_autosearch_start()
2727 dprintk("setting a DDS frequency offset of %c%dkHz\n", invert ? '-' : ' ', dds / unit_khz_dds_val); in dib8000_set_dds()
2739 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_frequency_offset() local
2747 current_rf = c->frequency; in dib8000_set_frequency_offset()
2749 total_dds_offset_khz = (int)current_rf - (int)c->frequency / 1000; in dib8000_set_frequency_offset()
2751 if (c->isdbt_sb_mode) { in dib8000_set_frequency_offset()
2752 state->subchannel = c->isdbt_sb_subchannel; in dib8000_set_frequency_offset()
2755 dib8000_write_word(state, 26, c->inversion ^ i); in dib8000_set_frequency_offset()
2758 if ((c->inversion ^ i) == 0) in dib8000_set_frequency_offset()
2761 if ((c->inversion ^ i) == 0) in dib8000_set_frequency_offset()
2766 …ency = %dHz & current_rf = %dHz) total_dds_offset_hz = %d\n", c->frequency - current_rf, c->freque… in dib8000_set_frequency_offset()
2776 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_get_symbol_duration() local
2779 switch (c->transmission_mode) { in dib8000_get_symbol_duration()
2793 return (LUT_isdbt_symbol_duration[i] / (c->bandwidth_hz / 1000)) + 1; in dib8000_get_symbol_duration()
2798 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_isdbt_loop_params() local
2803 if (c->isdbt_sb_mode) { in dib8000_set_isdbt_loop_params()
2804 if (c->isdbt_partial_reception == 0) { in dib8000_set_isdbt_loop_params()
2806 …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()
2809 …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()
2813 …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()
2817 if (c->isdbt_sb_mode) { in dib8000_set_isdbt_loop_params()
2818 if (c->isdbt_partial_reception == 0) { /* Sound Broadcasting mode 1 seg */ in dib8000_set_isdbt_loop_params()
2820 reg_37 = (12-state->mode) | ((5 + state->mode) << 5); in dib8000_set_isdbt_loop_params()
2823 reg_37 = (11-state->mode) | ((5 + state->mode) << 5); in dib8000_set_isdbt_loop_params()
2827 reg_37 = ((5+state->mode) << 5) | (10 - state->mode); in dib8000_set_isdbt_loop_params()
2844 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_sync_wait() local
2848 switch (c->transmission_mode) { in dib8000_set_sync_wait()
2862 …sync_wait = (sync_wait * (1 << (c->guard_interval)) * 3) / 2 + 48; /* add 50% SFN margin + compens… in dib8000_set_sync_wait()
2864 …sync_wait = (sync_wait * (1 << (c->guard_interval)) * 3) / 2 + state->cfg.diversity_delay; /* add … in dib8000_set_sync_wait()
2934 * @c: struct dvb_frontend_properties
2947 static int is_manual_mode(struct dtv_frontend_properties *c) in is_manual_mode() argument
2952 if (c->delivery_system != SYS_ISDBT) in is_manual_mode()
2958 if (c->transmission_mode == TRANSMISSION_MODE_AUTO) { in is_manual_mode()
2966 if (c->guard_interval == GUARD_INTERVAL_AUTO) { in is_manual_mode()
2975 if (!c->isdbt_layer_enabled) { in is_manual_mode()
2985 if (!(c->isdbt_layer_enabled & 1 << i)) in is_manual_mode()
2988 if ((c->layer[i].segment_count > 13) || in is_manual_mode()
2989 (c->layer[i].segment_count == 0)) { in is_manual_mode()
2990 c->isdbt_layer_enabled &= ~(1 << i); in is_manual_mode()
2994 n_segs += c->layer[i].segment_count; in is_manual_mode()
2996 if ((c->layer[i].modulation == QAM_AUTO) || in is_manual_mode()
2997 (c->layer[i].fec == FEC_AUTO)) { in is_manual_mode()
2998 dprintk("layer %c has either modulation or FEC auto\n", in is_manual_mode()
3020 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_tune() local
3049 state->channel_parameters_set = is_manual_mode(c); in dib8000_tune()
3060 dib8000_set_bandwidth(fe, c->bandwidth_hz / 1000); in dib8000_tune()
3203 …*timeout = dib8000_get_timeout(state, (20 * ((dib8000_read_word(state, 188)>>5)&0x1f)), SYMBOL_DEP… in dib8000_tune()
3246 if (c->isdbt_sb_mode in dib8000_tune()
3247 && c->isdbt_sb_subchannel < 14 in dib8000_tune()
3261 if (c->layer[i].interleaving >= deeper_interleaver) { in dib8000_tune()
3262 dprintk("layer%i: time interleaver = %d\n", i, c->layer[i].interleaving); in dib8000_tune()
3263 if (c->layer[i].segment_count > 0) { /* valid layer */ in dib8000_tune()
3264 deeper_interleaver = c->layer[0].interleaving; in dib8000_tune()
3292 dprintk("ISDB-T layer locks: Layer A %s, Layer B %s, Layer C %s\n", in dib8000_tune()
3293 c->layer[0].segment_count ? (locks >> 7) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled", in dib8000_tune()
3294 c->layer[1].segment_count ? (locks >> 6) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled", in dib8000_tune()
3295 c->layer[2].segment_count ? (locks >> 5) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled"); in dib8000_tune()
3296 if (c->isdbt_sb_mode in dib8000_tune()
3297 && c->isdbt_sb_subchannel < 14 in dib8000_tune()
3305 if (c->isdbt_sb_mode in dib8000_tune()
3306 && c->isdbt_sb_subchannel < 14 in dib8000_tune()
3311 if (locks & (0x7 << 5)) { in dib8000_tune()
3312 dprintk("Not all ISDB-T layers locked in %d ms: Layer A %s, Layer B %s, Layer C %s\n", in dib8000_tune()
3314 c->layer[0].segment_count ? (locks >> 7) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled", in dib8000_tune()
3315 c->layer[1].segment_count ? (locks >> 6) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled", in dib8000_tune()
3316 c->layer[2].segment_count ? (locks >> 5) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled"); in dib8000_tune()
3414 struct dtv_frontend_properties *c) in dib8000_get_frontend() argument
3421 c->bandwidth_hz = 6000000; in dib8000_get_frontend()
3438 state->fe[index_frontend]->ops.get_frontend(state->fe[index_frontend], c); in dib8000_get_frontend()
3458 c->isdbt_sb_mode = dib8000_read_word(state, 508) & 0x1; in dib8000_get_frontend()
3464 c->inversion = (val & 0x40) >> 6; in dib8000_get_frontend()
3467 c->transmission_mode = TRANSMISSION_MODE_2K; in dib8000_get_frontend()
3471 c->transmission_mode = TRANSMISSION_MODE_4K; in dib8000_get_frontend()
3476 c->transmission_mode = TRANSMISSION_MODE_8K; in dib8000_get_frontend()
3483 c->guard_interval = GUARD_INTERVAL_1_32; in dib8000_get_frontend()
3487 c->guard_interval = GUARD_INTERVAL_1_16; in dib8000_get_frontend()
3492 c->guard_interval = GUARD_INTERVAL_1_8; in dib8000_get_frontend()
3496 c->guard_interval = GUARD_INTERVAL_1_4; in dib8000_get_frontend()
3501 c->isdbt_partial_reception = val & 1; in dib8000_get_frontend()
3502 dprintk("dib8000_get_frontend: partial_reception = %d\n", c->isdbt_partial_reception); in dib8000_get_frontend()
3508 c->layer[i].segment_count = val; in dib8000_get_frontend()
3517 i, c->layer[i].segment_count); in dib8000_get_frontend()
3523 c->layer[i].interleaving = val; in dib8000_get_frontend()
3526 i, c->layer[i].interleaving); in dib8000_get_frontend()
3531 c->layer[i].fec = FEC_1_2; in dib8000_get_frontend()
3536 c->layer[i].fec = FEC_2_3; in dib8000_get_frontend()
3541 c->layer[i].fec = FEC_3_4; in dib8000_get_frontend()
3545 case 5: in dib8000_get_frontend()
3546 c->layer[i].fec = FEC_5_6; in dib8000_get_frontend()
3548 dprintk("dib8000_get_frontend: Layer %d Code Rate = 5/6\n", i); in dib8000_get_frontend()
3551 c->layer[i].fec = FEC_7_8; in dib8000_get_frontend()
3560 c->layer[i].modulation = DQPSK; in dib8000_get_frontend()
3565 c->layer[i].modulation = QPSK; in dib8000_get_frontend()
3570 c->layer[i].modulation = QAM_16; in dib8000_get_frontend()
3576 c->layer[i].modulation = QAM_64; in dib8000_get_frontend()
3585 state->fe[index_frontend]->dtv_property_cache.isdbt_sb_mode = c->isdbt_sb_mode; in dib8000_get_frontend()
3586 state->fe[index_frontend]->dtv_property_cache.inversion = c->inversion; in dib8000_get_frontend()
3587 state->fe[index_frontend]->dtv_property_cache.transmission_mode = c->transmission_mode; in dib8000_get_frontend()
3588 state->fe[index_frontend]->dtv_property_cache.guard_interval = c->guard_interval; in dib8000_get_frontend()
3589 …state->fe[index_frontend]->dtv_property_cache.isdbt_partial_reception = c->isdbt_partial_reception; in dib8000_get_frontend()
3591 state->fe[index_frontend]->dtv_property_cache.layer[i].segment_count = c->layer[i].segment_count; in dib8000_get_frontend()
3592 state->fe[index_frontend]->dtv_property_cache.layer[i].interleaving = c->layer[i].interleaving; in dib8000_get_frontend()
3593 state->fe[index_frontend]->dtv_property_cache.layer[i].fec = c->layer[i].fec; in dib8000_get_frontend()
3594 state->fe[index_frontend]->dtv_property_cache.layer[i].modulation = c->layer[i].modulation; in dib8000_get_frontend()
3603 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_set_frontend() local
3608 if (c->frequency == 0) { in dib8000_set_frontend()
3613 if (c->bandwidth_hz == 0) { in dib8000_set_frontend()
3615 c->bandwidth_hz = 6000000; in dib8000_set_frontend()
3703 …dib8000_get_frontend(state->fe[index_frontend], c); /* we read the channel parameters from the fro… in dib8000_set_frontend()
3788 if ((((lock >> 12) & 1) || ((lock_slave >> 12) & 1)) && ((lock >> 5) & 7)) /* FEC MPEG */ in dib8000_read_status()
3800 lock = dib8000_read_word(state, 556); /* Viterbi Layer C */ in dib8000_read_status()
4010 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_get_time_us() local
4025 switch (c->guard_interval) { in dib8000_get_time_us()
4041 switch (c->transmission_mode) { in dib8000_get_time_us()
4056 nsegs = c->layer[i].segment_count; in dib8000_get_time_us()
4060 switch (c->layer[i].modulation) { in dib8000_get_time_us()
4074 switch (c->layer[i].fec) { in dib8000_get_time_us()
4088 rate_num = 5; in dib8000_get_time_us()
4098 interleaving = c->layer[i].interleaving; in dib8000_get_time_us()
4124 struct dtv_frontend_properties *c = &state->fe[0]->dtv_property_cache; in dib8000_get_stats() local
4138 c->strength.stat[0].svalue = db; in dib8000_get_stats()
4142 c->cnr.len = 1; in dib8000_get_stats()
4143 c->block_count.len = 1; in dib8000_get_stats()
4144 c->block_error.len = 1; in dib8000_get_stats()
4145 c->post_bit_error.len = 1; in dib8000_get_stats()
4146 c->post_bit_count.len = 1; in dib8000_get_stats()
4147 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4148 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4149 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4150 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4151 c->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib8000_get_stats()
4173 c->cnr.stat[0].svalue = snr; in dib8000_get_stats()
4174 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in dib8000_get_stats()
4181 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4182 c->block_error.stat[0].uvalue = val + state->init_ucb; in dib8000_get_stats()
4191 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4192 c->block_count.stat[0].uvalue += blocks; in dib8000_get_stats()
4206 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4207 c->post_bit_error.stat[0].uvalue += val; in dib8000_get_stats()
4209 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4210 c->post_bit_count.stat[0].uvalue += 100000000; in dib8000_get_stats()
4216 c->block_error.len = 4; in dib8000_get_stats()
4217 c->post_bit_error.len = 4; in dib8000_get_stats()
4218 c->post_bit_count.len = 4; in dib8000_get_stats()
4221 unsigned nsegs = c->layer[i].segment_count; in dib8000_get_stats()
4232 dprintk("Next layer %c stats will be available in %u us\n", in dib8000_get_stats()
4236 c->post_bit_error.stat[1 + i].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4237 c->post_bit_error.stat[1 + i].uvalue += val; in dib8000_get_stats()
4239 c->post_bit_count.stat[1 + i].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4240 c->post_bit_count.stat[1 + i].uvalue += 100000000; in dib8000_get_stats()
4246 c->block_error.stat[1 + i].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4247 c->block_error.stat[1 + i].uvalue += val; in dib8000_get_stats()
4254 c->block_count.stat[0].scale = FE_SCALE_COUNTER; in dib8000_get_stats()
4255 c->block_count.stat[0].uvalue += blocks; in dib8000_get_stats()
4494 …dib8000_write_word(state, 285, (dib8000_read_word(state, 285) & ~0x60) | (3 << 5)); /* ber_rs_len … in dib8000_init()