Lines Matching refs:stv0367_writebits
194 static void stv0367_writebits(struct stv0367_state *state, u32 label, u8 val) in stv0367_writebits() function
485 stv0367_writebits(state, F367TER_IIR_CELL_NB, i - 1); in stv0367ter_filt_coeff_init()
505 stv0367_writebits(state, F367TER_LOCK_DETECT_LSB, 0x00); in stv0367ter_agc_iir_lock_detect_set()
508 stv0367_writebits(state, F367TER_LOCK_DETECT_CHOICE, 0x00); in stv0367ter_agc_iir_lock_detect_set()
509 stv0367_writebits(state, F367TER_LOCK_DETECT_MSB, 0x06); in stv0367ter_agc_iir_lock_detect_set()
510 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_LSB, 0x04); in stv0367ter_agc_iir_lock_detect_set()
513 stv0367_writebits(state, F367TER_LOCK_DETECT_CHOICE, 0x01); in stv0367ter_agc_iir_lock_detect_set()
514 stv0367_writebits(state, F367TER_LOCK_DETECT_MSB, 0x06); in stv0367ter_agc_iir_lock_detect_set()
515 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_LSB, 0x04); in stv0367ter_agc_iir_lock_detect_set()
518 stv0367_writebits(state, F367TER_LOCK_DETECT_CHOICE, 0x02); in stv0367ter_agc_iir_lock_detect_set()
519 stv0367_writebits(state, F367TER_LOCK_DETECT_MSB, 0x01); in stv0367ter_agc_iir_lock_detect_set()
520 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_LSB, 0x00); in stv0367ter_agc_iir_lock_detect_set()
523 stv0367_writebits(state, F367TER_LOCK_DETECT_CHOICE, 0x03); in stv0367ter_agc_iir_lock_detect_set()
524 stv0367_writebits(state, F367TER_LOCK_DETECT_MSB, 0x01); in stv0367ter_agc_iir_lock_detect_set()
525 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_LSB, 0x00); in stv0367ter_agc_iir_lock_detect_set()
534 stv0367_writebits(state, F367TER_NRST_IIR, 0); in stv0367_iir_filt_init()
559 stv0367_writebits(state, F367TER_NRST_IIR, 1); in stv0367_iir_filt_init()
573 stv0367_writebits(state, F367TER_COM_N, 0x07); in stv0367ter_agc_iir_rst()
575 stv0367_writebits(state, F367TER_COM_SOFT_RSTN, 0x00); in stv0367ter_agc_iir_rst()
576 stv0367_writebits(state, F367TER_COM_AGC_ON, 0x00); in stv0367ter_agc_iir_rst()
578 stv0367_writebits(state, F367TER_COM_SOFT_RSTN, 0x01); in stv0367ter_agc_iir_rst()
579 stv0367_writebits(state, F367TER_COM_AGC_ON, 0x01); in stv0367ter_agc_iir_rst()
581 stv0367_writebits(state, F367TER_COM_N, com_n); in stv0367ter_agc_iir_rst()
701 stv0367_writebits(state, F367TER_CORE_ACTIVE, 0); in stv0367ter_lock_algo()
704 stv0367_writebits(state, F367TER_COM_N, 0x07); in stv0367ter_lock_algo()
706 stv0367_writebits(state, F367TER_GUARD, 3);/* suggest 2k 1/4 */ in stv0367ter_lock_algo()
707 stv0367_writebits(state, F367TER_MODE, 0); in stv0367ter_lock_algo()
708 stv0367_writebits(state, F367TER_SYR_TR_DIS, 0); in stv0367ter_lock_algo()
711 stv0367_writebits(state, F367TER_CORE_ACTIVE, 1); in stv0367ter_lock_algo()
756 stv0367_writebits(state, F367TER_AUTO_LE_EN, 0); in stv0367ter_lock_algo()
761 stv0367_writebits(state, F367TER_AUTO_LE_EN, 1); in stv0367ter_lock_algo()
771 stv0367_writebits(state, F367TER_RST_SFEC, 1); in stv0367ter_lock_algo()
772 stv0367_writebits(state, F367TER_RST_REEDSOLO, 1); in stv0367ter_lock_algo()
774 stv0367_writebits(state, F367TER_RST_SFEC, 0); in stv0367ter_lock_algo()
775 stv0367_writebits(state, F367TER_RST_REEDSOLO, 0); in stv0367ter_lock_algo()
810 stv0367_writebits(state, F367TER_AUTO_LE_EN, 0); in stv0367ter_lock_algo()
812 stv0367_writebits(state, F367TER_SYR_FILTER, 0); in stv0367ter_lock_algo()
816 stv0367_writebits(state, F367TER_AUTO_LE_EN, 1); in stv0367ter_lock_algo()
818 stv0367_writebits(state, F367TER_SYR_FILTER, 1); in stv0367ter_lock_algo()
859 stv0367_writebits(state, F367TER_SYR_TR_DIS, 1); in stv0367ter_lock_algo()
876 stv0367_writebits(state, F367TER_TS_DIS, 0); in stv0367ter_set_ts_mode()
881 stv0367_writebits(state, F367TER_TSFIFO_SERIAL, 0); in stv0367ter_set_ts_mode()
882 stv0367_writebits(state, F367TER_TSFIFO_DVBCI, 0); in stv0367ter_set_ts_mode()
885 stv0367_writebits(state, F367TER_TSFIFO_SERIAL, 1); in stv0367ter_set_ts_mode()
886 stv0367_writebits(state, F367TER_TSFIFO_DVBCI, 1); in stv0367ter_set_ts_mode()
902 stv0367_writebits(state, F367TER_TS_BYTE_CLK_INV, 1); in stv0367ter_set_clk_pol()
905 stv0367_writebits(state, F367TER_TS_BYTE_CLK_INV, 0); in stv0367ter_set_clk_pol()
909 stv0367_writebits(state, F367TER_TS_BYTE_CLK_INV, 0); in stv0367ter_set_clk_pol()
920 stv0367_writebits(state, F367TER_CORE_ACTIVE, 0);
921 stv0367_writebits(state, F367TER_CORE_ACTIVE, 1);
932 stv0367_writebits(state, F367TER_STDBY, 1); in stv0367ter_standby()
933 stv0367_writebits(state, F367TER_STDBY_FEC, 1); in stv0367ter_standby()
934 stv0367_writebits(state, F367TER_STDBY_CORE, 1); in stv0367ter_standby()
936 stv0367_writebits(state, F367TER_STDBY, 0); in stv0367ter_standby()
937 stv0367_writebits(state, F367TER_STDBY_FEC, 0); in stv0367ter_standby()
938 stv0367_writebits(state, F367TER_STDBY_CORE, 0); in stv0367ter_standby()
1000 stv0367_writebits(state, F367TER_TUNER_BB, 0); in stv0367ter_algo()
1001 stv0367_writebits(state, F367TER_LONGPATH_IF, 0); in stv0367ter_algo()
1002 stv0367_writebits(state, F367TER_DEMUX_SWAP, 0); in stv0367ter_algo()
1006 stv0367_writebits(state, F367TER_TUNER_BB, 0); in stv0367ter_algo()
1007 stv0367_writebits(state, F367TER_LONGPATH_IF, 1); in stv0367ter_algo()
1008 stv0367_writebits(state, F367TER_DEMUX_SWAP, 1); in stv0367ter_algo()
1012 stv0367_writebits(state, F367TER_TUNER_BB, 1); in stv0367ter_algo()
1013 stv0367_writebits(state, F367TER_PPM_INVSEL, 0); in stv0367ter_algo()
1027 stv0367_writebits(state, F367TER_IQ_INVERT, in stv0367ter_algo()
1030 stv0367_writebits(state, F367TER_INV_SPECTR, in stv0367ter_algo()
1037 stv0367_writebits(state, F367TER_IQ_INVERT, in stv0367ter_algo()
1040 stv0367_writebits(state, F367TER_INV_SPECTR, in stv0367ter_algo()
1052 stv0367_writebits(state, F367TER_SEL_IQNTAR, 1); in stv0367ter_algo()
1053 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_MSB, 0xB); in stv0367ter_algo()
1057 stv0367_writebits(state, F367TER_SEL_IQNTAR, 0); in stv0367ter_algo()
1058 stv0367_writebits(state, F367TER_AUT_AGC_TARGET_MSB, 0xB); in stv0367ter_algo()
1071 stv0367_writebits(state, F367TER_BDI_LPSEL, 0x01); in stv0367ter_algo()
1073 stv0367_writebits(state, F367TER_BDI_LPSEL, 0x00); in stv0367ter_algo()
1080 stv0367_writebits(state, F367TER_TRL_NOMRATE_LSB, temp % 2); in stv0367ter_algo()
1082 stv0367_writebits(state, F367TER_TRL_NOMRATE_HI, temp / 256); in stv0367ter_algo()
1083 stv0367_writebits(state, F367TER_TRL_NOMRATE_LO, temp % 256); in stv0367ter_algo()
1089 stv0367_writebits(state, F367TER_GAIN_SRC_HI, temp / 256); in stv0367ter_algo()
1090 stv0367_writebits(state, F367TER_GAIN_SRC_LO, temp % 256); in stv0367ter_algo()
1098 stv0367_writebits(state, F367TER_INC_DEROT_HI, temp / 256); in stv0367ter_algo()
1099 stv0367_writebits(state, F367TER_INC_DEROT_LO, temp % 256); in stv0367ter_algo()
1104 stv0367_writebits(state, F367TER_LONG_ECHO, ter_state->echo_pos); in stv0367ter_algo()
1123 stv0367_writebits(state, F367TER_FREEZE, 1); in stv0367ter_algo()
1127 stv0367_writebits(state, F367TER_FREEZE, 0); in stv0367ter_algo()
1183 stv0367_writebits(state, F367TER_TRL_NOMRATE_LSB, in stv0367ter_algo()
1185 stv0367_writebits(state, F367TER_TRL_NOMRATE_LO, in stv0367ter_algo()
1196 stv0367_writebits(state, F367TER_CORE_ACTIVE, 0); in stv0367ter_algo()
1198 stv0367_writebits(state, F367TER_CORE_ACTIVE, 1); in stv0367ter_algo()
1463 stv0367_writebits(state, F367TER_CORE_ACTIVE, 0);
1465 stv0367_writebits(state, F367TER_CORE_ACTIVE, 1);
1743 stv0367_writebits(state, F367CAB_I2CT_ON, (enable > 0) ? 1 : 0); in stv0367cab_gate_ctrl()
1790 stv0367_writebits(state, F367CAB_QAM_MODE, QAMSize); in stv0367cab_SetQamSize()
1910 stv0367_writebits(state, F367CAB_MIX_NCO_INC_HH, (sampled_if >> 16)); in stv0367cab_set_derot_freq()
2055 stv0367_writebits(state, F367CAB_ALLPASSFILT_EN, 1); in stv0367cab_set_srate()
2061 stv0367_writebits(state, F367CAB_ALLPASSFILT_EN, 0); in stv0367cab_set_srate()
2069 stv0367_writebits(state, F367CAB_GAIN_SRC_HI, (u32_tmp1 >> 8) & 0x00ff); in stv0367cab_set_srate()
2225 stv0367_writebits(state, F367CAB_BYPASS_PLLXN, 0x03); in stv0367cab_standby()
2226 stv0367_writebits(state, F367CAB_STDBY_PLLXN, 0x01); in stv0367cab_standby()
2227 stv0367_writebits(state, F367CAB_STDBY, 1); in stv0367cab_standby()
2228 stv0367_writebits(state, F367CAB_STDBY_CORE, 1); in stv0367cab_standby()
2229 stv0367_writebits(state, F367CAB_EN_BUFFER_I, 0); in stv0367cab_standby()
2230 stv0367_writebits(state, F367CAB_EN_BUFFER_Q, 0); in stv0367cab_standby()
2231 stv0367_writebits(state, F367CAB_POFFQ, 1); in stv0367cab_standby()
2232 stv0367_writebits(state, F367CAB_POFFI, 1); in stv0367cab_standby()
2234 stv0367_writebits(state, F367CAB_STDBY_PLLXN, 0x00); in stv0367cab_standby()
2235 stv0367_writebits(state, F367CAB_BYPASS_PLLXN, 0x00); in stv0367cab_standby()
2236 stv0367_writebits(state, F367CAB_STDBY, 0); in stv0367cab_standby()
2237 stv0367_writebits(state, F367CAB_STDBY_CORE, 0); in stv0367cab_standby()
2238 stv0367_writebits(state, F367CAB_EN_BUFFER_I, 1); in stv0367cab_standby()
2239 stv0367_writebits(state, F367CAB_EN_BUFFER_Q, 1); in stv0367cab_standby()
2240 stv0367_writebits(state, F367CAB_POFFQ, 0); in stv0367cab_standby()
2241 stv0367_writebits(state, F367CAB_POFFI, 0); in stv0367cab_standby()
2265 stv0367_writebits(state, F367CAB_OUTFORMAT, 0x03); in stv0367cab_init()
2269 stv0367_writebits(state, F367CAB_OUTFORMAT, 0x01); in stv0367cab_init()
2273 stv0367_writebits(state, F367CAB_OUTFORMAT, 0x00); in stv0367cab_init()
2279 stv0367_writebits(state, F367CAB_CLK_POLARITY, 0x00); in stv0367cab_init()
2283 stv0367_writebits(state, F367CAB_CLK_POLARITY, 0x01); in stv0367cab_init()
2287 stv0367_writebits(state, F367CAB_SYNC_STRIP, 0x00); in stv0367cab_init()
2289 stv0367_writebits(state, F367CAB_CT_NBST, 0x01); in stv0367cab_init()
2291 stv0367_writebits(state, F367CAB_TS_SWAP, 0x01); in stv0367cab_init()
2293 stv0367_writebits(state, F367CAB_FIFO_BYPASS, 0x00); in stv0367cab_init()
2388 stv0367_writebits(state, F367CAB_AGC_ACCUMRSTSEL, 0x0); in stv0367cab_algo()
2390 stv0367_writebits(state, F367CAB_MODULUSMAP_EN, 0); in stv0367cab_algo()
2392 stv0367_writebits(state, F367CAB_SWEEP_EN, 0); in stv0367cab_algo()
2399 stv0367_writebits(state, F367CAB_ADJ_EN, 0); in stv0367cab_algo()
2400 stv0367_writebits(state, F367CAB_ALLPASSFILT_EN, 0); in stv0367cab_algo()
2514 stv0367_writebits(state, F367CAB_AGC_ACCUMRSTSEL, TrackAGCAccum); in stv0367cab_algo()
2657 stv0367_writebits(state, F367CAB_STDBY_ADCGP, 0x0); in stv0367cab_get_rf_lvl()