Lines Matching +full:5 +full:db

133 	s16 wbd_target;		/* in dB */
317 #define GAIN_ALPHA 5
372 switch ((identity->version >> 5) & 0x7) { in dib0090_identify()
462 switch ((identity->version >> 5) & 0x7) { in dib0090_fw_identify()
524 | (cfg->clkoutdrive << 5) | (cfg->clkouttobamse << 4) | (0 << 2) | (0)); in dib0090_reset_digital()
527 | (7 << 5) | (cfg->clkouttobamse << 4) | (0 << 2) | (0)); in dib0090_reset_digital()
594 v |= cfg->clkoutdrive << 5; in dib0090_fw_reset_digital()
596 v |= 7 << 5; in dib0090_fw_reset_digital()
680 550, /* max BB gain in 10th of dB */
681 (1<<9) | 8, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> BB_RAMP2 */
683 (4 << 9) | 0, /* BB_RAMP3 = 26dB */
685 (4 << 9) | 208, /* BB_RAMP5 = 29dB */
690 280, /* max RF gain in 10th of dB */
691 18, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
693 (29 << 10) | 364, /* RF_RAMP5, LNA 1 = 8dB */
695 (60 << 10) | 228, /* RF_RAMP7, LNA 2 = 7.7dB */
697 (34 << 10) | 109, /* GAIN_4_1, LNA 3 = 6.8dB */
699 (37 << 10) | 0, /* RF_RAMP3, LNA 4 = 6.2dB */
704 186, /* max RF gain in 10th of dB */
705 40, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
707 (10 << 10) | 345, /* RF_RAMP5, LNA 1 = 10dB */
709 (0 << 10) | 0, /* RF_RAMP7, LNA 2 = 0 dB */
711 (28 << 10) | 200, /* GAIN_4_1, LNA 3 = 6.8dB */ /* 3.61 dB */
713 (20 << 10) | 0, /* RF_RAMP3, LNA 4 = 6.2dB */ /* 4.96 dB */
718 86, /* max RF gain in 10th of dB */
719 40, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
721 (0 << 10) | 0, /* RF_RAMP5, LNA 1 = 8dB */ /* 7.47 dB */
723 (0 << 10) | 0, /* RF_RAMP7, LNA 2 = 0 dB */
725 (28 << 10) | 200, /* GAIN_4_1, LNA 3 = 6.8dB */ /* 3.61 dB */
727 (20 << 10) | 0, /* RF_RAMP3, LNA 4 = 6.2dB */ /* 4.96 dB */
732 345, /* max RF gain in 10th of dB */
733 29, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
735 (35 << 10) | 772, /* RF_RAMP3, LNA 1 = 8dB */
737 (58 << 10) | 496, /* RF_RAMP5, LNA 2 = 9.5dB */
739 (27 << 10) | 200, /* RF_RAMP7, LNA 3 = 10.5dB */
741 (40 << 10) | 0, /* GAIN_4_1, LNA 4 = 7dB */
746 407, /* max RF gain in 10th of dB */
747 13, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
749 (23 << 10) | 0, /* RF_RAMP3, LNA 1 = 14.7dB */
751 (63 << 10) | 400, /* RF_RAMP5, LNA 2 = 8dB */
753 (48 << 10) | 316, /* RF_RAMP7, LNA 3 = 6.8dB */
755 (29 << 10) | 176, /* GAIN_4_1, LNA 4 = 11.5dB */
760 388, /* max RF gain in 10th of dB */
761 26, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
763 (11 << 10) | 0, /* RF_RAMP3, LNA 1 = 14.7dB */
765 (41 << 10) | 809, /* RF_RAMP5, LNA 2 = 8dB */
767 (27 << 10) | 659, /* RF_RAMP7, LNA 3 = 6dB */
769 (14 << 10) | 369, /* GAIN_4_1, LNA 4 = 11.5dB */
775 500, /* max BB gain in 10th of dB */
776 8, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> BB_RAMP2 */
778 (2 << 9) | 0, /* BB_RAMP3 = 21dB */
780 (2 << 9) | 168, /* BB_RAMP5 = 29dB */
787 550, /* max BB gain in 10th of dB */
788 8, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> BB_RAMP2 */
790 (2 << 9) | 0, /* BB_RAMP3 = 26dB */
792 (2 << 9) | 208, /* BB_RAMP5 = 29dB */
798 314, /* max RF gain in 10th of dB */
799 33, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
801 (8 << 10) | 743, /* RF_RAMP3, LNA 1 = 0dB */
803 (15 << 10) | 469, /* RF_RAMP5, LNA 2 = 0dB */
805 (9 << 10) | 234, /* RF_RAMP7, LNA 3 = 0dB */
807 (9 << 10) | 0, /* GAIN_4_1, LNA 4 = 0dB */
812 398, /* max RF gain in 10th of dB */
813 24, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
815 (7 << 10) | 0, /* RF_RAMP3, LNA 1 = 13.2dB */
817 (16 << 10) | 699, /* RF_RAMP5, LNA 2 = 10.5dB */
819 (17 << 10) | 580, /* RF_RAMP7, LNA 3 = 5dB */
821 (7 << 10) | 290, /* GAIN_4_1, LNA 4 = 12.5dB */
826 398, /* max RF gain in 10th of dB */
827 24, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
829 (7 << 10) | 0, /* RF_RAMP3, LNA 1 = 13.2dB */
831 (16 << 10) | 699, /* RF_RAMP5, LNA 2 = 10.5dB */
833 (17 << 10) | 580, /* RF_RAMP7, LNA 3 = 5dB */
835 (7 << 10) | 290, /* GAIN_4_1, LNA 4 = 12.5dB */
842 253, /* max RF gain in 10th of dB */
843 38, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
845 (4 << 10) | 0, /* RF_RAMP3, LNA 1 = 14.1dB */
847 (9 << 10) | 508, /* RF_RAMP5, LNA 2 = 11.2dB */
849 (0 << 10) | 0, /* RF_RAMP7, LNA 3 = 0dB */
851 (0 << 10) | 0, /* GAIN_4_1, LNA 4 = 0dB */
889 /* -64dB is the floor */ in dib0090_wbd_to_db()
909 dprintk("wbd-target: %d dB\n", (u32) state->wbd_target); in dib0090_wbd_target()
971 for (i = 0; i < 7; i++) { /* Go over all amplifiers => 5RF amps + 2 BB amps = 7 amps */ in dib0090_gain_apply()
989 else if (i == 5) /* BB gain 1 reg mapping */ in dib0090_gain_apply()
1006 …dprintk("GA CALC: DB: %3d(rf) + %3d(bb) = %3d gain_reg[0]=%04x gain_reg[1]=%04x gain_reg[2]=%04x g… in dib0090_gain_apply()
1046 dib0090_set_boost(state, cfg[0] > 500); /* we want the boost if the gain is higher that 50dB */ in dib0090_set_bbramp()
1053 dib0090_set_boost(state, cfg[0] > 500); /* we want the boost if the gain is higher that 50dB */ in dib0090_set_bbramp_pwm()
1206 cnt = 5; in dib0090_gain_control()
1276 if (abs(adc_error) < 50 || state->agc_step++ > 5) { in dib0090_gain_control()
1360 dprintk("wbd-target: %d dB\n", (u32) state->wbd_target); in dib0090_get_wbd_target()
1559 if ((dib0090_read_reg(state, 0x1a) >> 5) & 0x2) in dib0090_reset()
1636 {0x06, 5, 1, (1 << 13) | (0 << 8) | (26 << 3), 1},
1647 {0x06, 5, 1, (1 << 13) | (0 << 8) | (15 << 3), 1},
1844 dib0090_write_reg(state, 0x02, (5 << 11) | (8 << 6) | (22 & 0x3f)); /* 22 = cap_value */ in dib0090_set_bandwidth()
1861 {230000, 0, 5, 12, 6},
1862 {280000, 1, 5, 12, 6},
1891 {750000, 2, 5, 15, 0x300, 0x1d12, 0xb9ce, EN_UHF},
1920 {750000, 2, 5, 15, 0x300, 0x1d12, 0xb9ce, EN_UHF},
1949 {680000, 2, 5, 15, 0x300, 0x1d12, 0xb9ce, EN_UHF},
1980 {455000, 0, 5, 6, 6},
1983 {580000, 1, 5, 6, 6},
2005 {750000, 2, 5, 15, 0x300, 0x1d12, 0xb9ce, EN_UHF},
2025 {858000, 4, 5, 0x8190, 0x2c0, 0x2d22, 0xb9ce, EN_CAB},
2034 { 660000, 0 , 5, 0x85E3, 0x280, 0x2d12, 0xb84e, EN_CAB },
2035 { 720000, 0 , 5, 0x852E, 0x280, 0x2d12, 0xb84e, EN_CAB },
2049 { 860000, 0 , 5, 0x84EF, 0x280, 0x2d12, 0xb84e, EN_CAB }, in dib0090_update_tuning_table_7090()
2317 tmp = (state->identity.version >> 5) & 0x7; in dib0090_tune()
2487 dib0090_write_reg(state, 0x09, (tune->lna_tune << 5) | tune->lna_bias); in dib0090_tune()