Lines Matching +full:6 +full:db
133 s16 wbd_target; /* in dB */
318 #define WBD_ALPHA 6
533 …if ((PllCfg & 0x1FFF) != ((cfg->io.pll_range << 12) | (cfg->io.pll_loopdiv << 6) | (cfg->io.pll_pr… in dib0090_reset_digital()
545 …PllCfg = (1 << 15) | (0 << 13) | (cfg->io.pll_range << 12) | (cfg->io.pll_loopdiv << 6) | (cfg->io… in dib0090_reset_digital()
605 …if ((PllCfg & 0x1FFF) != ((cfg->io.pll_range << 12) | (cfg->io.pll_loopdiv << 6) | (cfg->io.pll_pr… in dib0090_fw_reset_digital()
616 …PllCfg = (1 << 15) | (0 << 13) | (cfg->io.pll_range << 12) | (cfg->io.pll_loopdiv << 6) | (cfg->io… 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()
991 else if (i == 6) /* BB gain 2 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()
1039 dib0090_write_regs(state, 0x2c, cfg + 3, 6); in dib0090_set_rframp_pwm()
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()
1280 …dib0090_write_reg(state, 0x02, (1 << 15) | (15 << 11) | (31 << 6) | (63)); /* cap value = 63 : nar… in dib0090_gain_control()
1285 dib0090_write_reg(state, 0x02, (1 << 15) | (3 << 11) | (6 << 6) | (32)); in dib0090_gain_control()
1354 wbd_thot = wbd->offset_hot - (((u32) wbd->slope_hot * f_MHz) >> 6); in dib0090_get_wbd_target()
1355 wbd_tcold = wbd->offset_cold - (((u32) wbd->slope_cold * f_MHz) >> 6); in dib0090_get_wbd_target()
1360 dprintk("wbd-target: %d dB\n", (u32) state->wbd_target); in dib0090_get_wbd_target()
1514 cal = (dib0090_read_reg(state, 0x22) >> 6) & 0x3ff; in dib0090_set_EFUSE()
1518 n = 165 - ((cal * 10)>>6) ; in dib0090_set_EFUSE()
1519 e2 = e4 = (3<<12) | (34<<6) | (n); in dib0090_set_EFUSE()
1528 h = (e2 >> 6) & 0x3f; in dib0090_set_EFUSE()
1540 e2 = (n << 11) | ((h >> 2)<<6) | c; in dib0090_set_EFUSE()
1844 dib0090_write_reg(state, 0x02, (5 << 11) | (8 << 6) | (22 & 0x3f)); /* 22 = cap_value */ in dib0090_set_bandwidth()
1851 {56000, 0, 9, 48, 6},
1852 {70000, 1, 9, 48, 6},
1855 {115000, 0, 7, 24, 6},
1856 {140000, 1, 7, 24, 6},
1857 {170000, 0, 6, 16, 4},
1860 {200000, 1, 6, 16, 4},
1861 {230000, 0, 5, 12, 6},
1862 {280000, 1, 5, 12, 6},
1865 {450000, 0, 3, 6, 6},
1868 {580000, 1, 3, 6, 6},
1892 {850000, 2, 6, 15, 0x300, 0x1d12, 0xb9ce, EN_UHF},
1921 {850000, 2, 6, 15, 0x300, 0x1d12, 0xb9ce, EN_UHF},
1950 {720000, 2, 6, 15, 0x300, 0x1d12, 0xb9ce, EN_UHF},
1966 {57000, 0, 11, 48, 6},
1967 {70000, 1, 11, 48, 6},
1970 {115000, 0, 9, 24, 6},
1971 {140000, 1, 9, 24, 6},
1976 {230000, 0, 7, 12, 6},
1977 {280000, 1, 7, 12, 6},
1978 {340000, 0, 6, 8, 4},
1979 {380000, 1, 6, 8, 4},
1980 {455000, 0, 5, 6, 6},
1983 {580000, 1, 5, 6, 6},
1991 {2900000, 0, 1, 1, 6},
2006 {850000, 2, 6, 15, 0x300, 0x1d12, 0xb9ce, EN_UHF},
2070 | ((tune->lna_tune << 6) & 0x07c0)); in dib0090_update_tuning_table_7090()
2387 * lo5 = (0 << 15) | (0 << 12) | (0 << 11) | (3 << 9) | (4 << 6) | (3 << 4) | 4; in dib0090_tune()
2485 dib0090_write_reg(state, 0x0b, 0xb800 | (tune->lna_tune << 6) | (tune->switch_trim)); in dib0090_tune()
2603 {2900, 0, 250, 0, 100, 6},