Lines Matching refs:stv0367_writebits

212 static void stv0367_writebits(struct stv0367_state *state, u32 label, u8 val)  in stv0367_writebits()  function
503 stv0367_writebits(state, F367TER_IIR_CELL_NB, i - 1); in stv0367ter_filt_coeff_init()
523 stv0367_writebits(state, F367TER_LOCK_DETECT_LSB, 0x00); in stv0367ter_agc_iir_lock_detect_set()
526 stv0367_writebits(state, F367TER_LOCK_DETECT_CHOICE, 0x00); in stv0367ter_agc_iir_lock_detect_set()
527 stv0367_writebits(state, F367TER_LOCK_DETECT_MSB, 0x06); in stv0367ter_agc_iir_lock_detect_set()
528 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_LSB, 0x04); in stv0367ter_agc_iir_lock_detect_set()
531 stv0367_writebits(state, F367TER_LOCK_DETECT_CHOICE, 0x01); in stv0367ter_agc_iir_lock_detect_set()
532 stv0367_writebits(state, F367TER_LOCK_DETECT_MSB, 0x06); in stv0367ter_agc_iir_lock_detect_set()
533 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_LSB, 0x04); in stv0367ter_agc_iir_lock_detect_set()
536 stv0367_writebits(state, F367TER_LOCK_DETECT_CHOICE, 0x02); in stv0367ter_agc_iir_lock_detect_set()
537 stv0367_writebits(state, F367TER_LOCK_DETECT_MSB, 0x01); in stv0367ter_agc_iir_lock_detect_set()
538 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_LSB, 0x00); in stv0367ter_agc_iir_lock_detect_set()
541 stv0367_writebits(state, F367TER_LOCK_DETECT_CHOICE, 0x03); in stv0367ter_agc_iir_lock_detect_set()
542 stv0367_writebits(state, F367TER_LOCK_DETECT_MSB, 0x01); in stv0367ter_agc_iir_lock_detect_set()
543 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_LSB, 0x00); in stv0367ter_agc_iir_lock_detect_set()
552 stv0367_writebits(state, F367TER_NRST_IIR, 0); in stv0367_iir_filt_init()
577 stv0367_writebits(state, F367TER_NRST_IIR, 1); in stv0367_iir_filt_init()
591 stv0367_writebits(state, F367TER_COM_N, 0x07); in stv0367ter_agc_iir_rst()
593 stv0367_writebits(state, F367TER_COM_SOFT_RSTN, 0x00); in stv0367ter_agc_iir_rst()
594 stv0367_writebits(state, F367TER_COM_AGC_ON, 0x00); in stv0367ter_agc_iir_rst()
596 stv0367_writebits(state, F367TER_COM_SOFT_RSTN, 0x01); in stv0367ter_agc_iir_rst()
597 stv0367_writebits(state, F367TER_COM_AGC_ON, 0x01); in stv0367ter_agc_iir_rst()
599 stv0367_writebits(state, F367TER_COM_N, com_n); in stv0367ter_agc_iir_rst()
719 stv0367_writebits(state, F367TER_CORE_ACTIVE, 0); in stv0367ter_lock_algo()
722 stv0367_writebits(state, F367TER_COM_N, 0x07); in stv0367ter_lock_algo()
724 stv0367_writebits(state, F367TER_GUARD, 3);/* suggest 2k 1/4 */ in stv0367ter_lock_algo()
725 stv0367_writebits(state, F367TER_MODE, 0); in stv0367ter_lock_algo()
726 stv0367_writebits(state, F367TER_SYR_TR_DIS, 0); in stv0367ter_lock_algo()
729 stv0367_writebits(state, F367TER_CORE_ACTIVE, 1); in stv0367ter_lock_algo()
774 stv0367_writebits(state, F367TER_AUTO_LE_EN, 0); in stv0367ter_lock_algo()
779 stv0367_writebits(state, F367TER_AUTO_LE_EN, 1); in stv0367ter_lock_algo()
789 stv0367_writebits(state, F367TER_RST_SFEC, 1); in stv0367ter_lock_algo()
790 stv0367_writebits(state, F367TER_RST_REEDSOLO, 1); in stv0367ter_lock_algo()
792 stv0367_writebits(state, F367TER_RST_SFEC, 0); in stv0367ter_lock_algo()
793 stv0367_writebits(state, F367TER_RST_REEDSOLO, 0); in stv0367ter_lock_algo()
828 stv0367_writebits(state, F367TER_AUTO_LE_EN, 0); in stv0367ter_lock_algo()
830 stv0367_writebits(state, F367TER_SYR_FILTER, 0); in stv0367ter_lock_algo()
834 stv0367_writebits(state, F367TER_AUTO_LE_EN, 1); in stv0367ter_lock_algo()
836 stv0367_writebits(state, F367TER_SYR_FILTER, 1); in stv0367ter_lock_algo()
877 stv0367_writebits(state, F367TER_SYR_TR_DIS, 1); in stv0367ter_lock_algo()
894 stv0367_writebits(state, F367TER_TS_DIS, 0); in stv0367ter_set_ts_mode()
899 stv0367_writebits(state, F367TER_TSFIFO_SERIAL, 0); in stv0367ter_set_ts_mode()
900 stv0367_writebits(state, F367TER_TSFIFO_DVBCI, 0); in stv0367ter_set_ts_mode()
903 stv0367_writebits(state, F367TER_TSFIFO_SERIAL, 1); in stv0367ter_set_ts_mode()
904 stv0367_writebits(state, F367TER_TSFIFO_DVBCI, 1); in stv0367ter_set_ts_mode()
920 stv0367_writebits(state, F367TER_TS_BYTE_CLK_INV, 1); in stv0367ter_set_clk_pol()
923 stv0367_writebits(state, F367TER_TS_BYTE_CLK_INV, 0); in stv0367ter_set_clk_pol()
927 stv0367_writebits(state, F367TER_TS_BYTE_CLK_INV, 0); in stv0367ter_set_clk_pol()
938 stv0367_writebits(state, F367TER_CORE_ACTIVE, 0);
939 stv0367_writebits(state, F367TER_CORE_ACTIVE, 1);
950 stv0367_writebits(state, F367TER_STDBY, 1); in stv0367ter_standby()
951 stv0367_writebits(state, F367TER_STDBY_FEC, 1); in stv0367ter_standby()
952 stv0367_writebits(state, F367TER_STDBY_CORE, 1); in stv0367ter_standby()
954 stv0367_writebits(state, F367TER_STDBY, 0); in stv0367ter_standby()
955 stv0367_writebits(state, F367TER_STDBY_FEC, 0); in stv0367ter_standby()
956 stv0367_writebits(state, F367TER_STDBY_CORE, 0); in stv0367ter_standby()
1018 stv0367_writebits(state, F367TER_TUNER_BB, 0); in stv0367ter_algo()
1019 stv0367_writebits(state, F367TER_LONGPATH_IF, 0); in stv0367ter_algo()
1020 stv0367_writebits(state, F367TER_DEMUX_SWAP, 0); in stv0367ter_algo()
1024 stv0367_writebits(state, F367TER_TUNER_BB, 0); in stv0367ter_algo()
1025 stv0367_writebits(state, F367TER_LONGPATH_IF, 1); in stv0367ter_algo()
1026 stv0367_writebits(state, F367TER_DEMUX_SWAP, 1); in stv0367ter_algo()
1030 stv0367_writebits(state, F367TER_TUNER_BB, 1); in stv0367ter_algo()
1031 stv0367_writebits(state, F367TER_PPM_INVSEL, 0); in stv0367ter_algo()
1045 stv0367_writebits(state, F367TER_IQ_INVERT, in stv0367ter_algo()
1048 stv0367_writebits(state, F367TER_INV_SPECTR, in stv0367ter_algo()
1055 stv0367_writebits(state, F367TER_IQ_INVERT, in stv0367ter_algo()
1058 stv0367_writebits(state, F367TER_INV_SPECTR, in stv0367ter_algo()
1070 stv0367_writebits(state, F367TER_SEL_IQNTAR, 1); in stv0367ter_algo()
1071 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_MSB, 0xB); in stv0367ter_algo()
1075 stv0367_writebits(state, F367TER_SEL_IQNTAR, 0); in stv0367ter_algo()
1076 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_MSB, 0xB); in stv0367ter_algo()
1089 stv0367_writebits(state, F367TER_BDI_LPSEL, 0x01); in stv0367ter_algo()
1091 stv0367_writebits(state, F367TER_BDI_LPSEL, 0x00); in stv0367ter_algo()
1098 stv0367_writebits(state, F367TER_TRL_NOMRATE_LSB, temp % 2); in stv0367ter_algo()
1100 stv0367_writebits(state, F367TER_TRL_NOMRATE_HI, temp / 256); in stv0367ter_algo()
1101 stv0367_writebits(state, F367TER_TRL_NOMRATE_LO, temp % 256); in stv0367ter_algo()
1107 stv0367_writebits(state, F367TER_GAIN_SRC_HI, temp / 256); in stv0367ter_algo()
1108 stv0367_writebits(state, F367TER_GAIN_SRC_LO, temp % 256); in stv0367ter_algo()
1116 stv0367_writebits(state, F367TER_INC_DEROT_HI, temp / 256); in stv0367ter_algo()
1117 stv0367_writebits(state, F367TER_INC_DEROT_LO, temp % 256); in stv0367ter_algo()
1122 stv0367_writebits(state, F367TER_LONG_ECHO, ter_state->echo_pos); in stv0367ter_algo()
1141 stv0367_writebits(state, F367TER_FREEZE, 1); in stv0367ter_algo()
1145 stv0367_writebits(state, F367TER_FREEZE, 0); in stv0367ter_algo()
1201 stv0367_writebits(state, F367TER_TRL_NOMRATE_LSB, in stv0367ter_algo()
1203 stv0367_writebits(state, F367TER_TRL_NOMRATE_LO, in stv0367ter_algo()
1214 stv0367_writebits(state, F367TER_CORE_ACTIVE, 0); in stv0367ter_algo()
1216 stv0367_writebits(state, F367TER_CORE_ACTIVE, 1); in stv0367ter_algo()
1481 stv0367_writebits(state, F367TER_CORE_ACTIVE, 0);
1483 stv0367_writebits(state, F367TER_CORE_ACTIVE, 1);
1761 stv0367_writebits(state, F367CAB_I2CT_ON, (enable > 0) ? 1 : 0); in stv0367cab_gate_ctrl()
1808 stv0367_writebits(state, F367CAB_QAM_MODE, QAMSize); in stv0367cab_SetQamSize()
1928 stv0367_writebits(state, F367CAB_MIX_NCO_INC_HH, (sampled_if >> 16)); in stv0367cab_set_derot_freq()
2073 stv0367_writebits(state, F367CAB_ALLPASSFILT_EN, 1); in stv0367cab_set_srate()
2079 stv0367_writebits(state, F367CAB_ALLPASSFILT_EN, 0); in stv0367cab_set_srate()
2087 stv0367_writebits(state, F367CAB_GAIN_SRC_HI, (u32_tmp1 >> 8) & 0x00ff); in stv0367cab_set_srate()
2243 stv0367_writebits(state, F367CAB_BYPASS_PLLXN, 0x03); in stv0367cab_standby()
2244 stv0367_writebits(state, F367CAB_STDBY_PLLXN, 0x01); in stv0367cab_standby()
2245 stv0367_writebits(state, F367CAB_STDBY, 1); in stv0367cab_standby()
2246 stv0367_writebits(state, F367CAB_STDBY_CORE, 1); in stv0367cab_standby()
2247 stv0367_writebits(state, F367CAB_EN_BUFFER_I, 0); in stv0367cab_standby()
2248 stv0367_writebits(state, F367CAB_EN_BUFFER_Q, 0); in stv0367cab_standby()
2249 stv0367_writebits(state, F367CAB_POFFQ, 1); in stv0367cab_standby()
2250 stv0367_writebits(state, F367CAB_POFFI, 1); in stv0367cab_standby()
2252 stv0367_writebits(state, F367CAB_STDBY_PLLXN, 0x00); in stv0367cab_standby()
2253 stv0367_writebits(state, F367CAB_BYPASS_PLLXN, 0x00); in stv0367cab_standby()
2254 stv0367_writebits(state, F367CAB_STDBY, 0); in stv0367cab_standby()
2255 stv0367_writebits(state, F367CAB_STDBY_CORE, 0); in stv0367cab_standby()
2256 stv0367_writebits(state, F367CAB_EN_BUFFER_I, 1); in stv0367cab_standby()
2257 stv0367_writebits(state, F367CAB_EN_BUFFER_Q, 1); in stv0367cab_standby()
2258 stv0367_writebits(state, F367CAB_POFFQ, 0); in stv0367cab_standby()
2259 stv0367_writebits(state, F367CAB_POFFI, 0); in stv0367cab_standby()
2283 stv0367_writebits(state, F367CAB_OUTFORMAT, 0x03); in stv0367cab_init()
2287 stv0367_writebits(state, F367CAB_OUTFORMAT, 0x01); in stv0367cab_init()
2291 stv0367_writebits(state, F367CAB_OUTFORMAT, 0x00); in stv0367cab_init()
2297 stv0367_writebits(state, F367CAB_CLK_POLARITY, 0x00); in stv0367cab_init()
2301 stv0367_writebits(state, F367CAB_CLK_POLARITY, 0x01); in stv0367cab_init()
2305 stv0367_writebits(state, F367CAB_SYNC_STRIP, 0x00); in stv0367cab_init()
2307 stv0367_writebits(state, F367CAB_CT_NBST, 0x01); in stv0367cab_init()
2309 stv0367_writebits(state, F367CAB_TS_SWAP, 0x01); in stv0367cab_init()
2311 stv0367_writebits(state, F367CAB_FIFO_BYPASS, 0x00); in stv0367cab_init()
2406 stv0367_writebits(state, F367CAB_AGC_ACCUMRSTSEL, 0x0); in stv0367cab_algo()
2408 stv0367_writebits(state, F367CAB_MODULUSMAP_EN, 0); in stv0367cab_algo()
2410 stv0367_writebits(state, F367CAB_SWEEP_EN, 0); in stv0367cab_algo()
2417 stv0367_writebits(state, F367CAB_ADJ_EN, 0); in stv0367cab_algo()
2418 stv0367_writebits(state, F367CAB_ALLPASSFILT_EN, 0); in stv0367cab_algo()
2532 stv0367_writebits(state, F367CAB_AGC_ACCUMRSTSEL, TrackAGCAccum); in stv0367cab_algo()
2675 stv0367_writebits(state, F367CAB_STDBY_ADCGP, 0x0); in stv0367cab_get_rf_lvl()