Lines Matching refs:nxt6000_writereg

38 static int nxt6000_writereg(struct nxt6000_state* state, u8 reg, u8 data)  in nxt6000_writereg()  function
74 nxt6000_writereg(state, OFDM_COR_CTL, val & ~COREACT); in nxt6000_reset()
75 nxt6000_writereg(state, OFDM_COR_CTL, val | COREACT); in nxt6000_reset()
100 if ((result = nxt6000_writereg(state, OFDM_TRL_NOMINALRATE_1, nominal_rate & 0xFF)) < 0) in nxt6000_set_bandwidth()
103 return nxt6000_writereg(state, OFDM_TRL_NOMINALRATE_2, (nominal_rate >> 8) & 0xFF); in nxt6000_set_bandwidth()
112 …return nxt6000_writereg(state, OFDM_COR_MODEGUARD, 0x00 | (nxt6000_readreg(state, OFDM_COR_MODEGUA… in nxt6000_set_guard_interval()
115 …return nxt6000_writereg(state, OFDM_COR_MODEGUARD, 0x01 | (nxt6000_readreg(state, OFDM_COR_MODEGUA… in nxt6000_set_guard_interval()
119 …return nxt6000_writereg(state, OFDM_COR_MODEGUARD, 0x02 | (nxt6000_readreg(state, OFDM_COR_MODEGUA… in nxt6000_set_guard_interval()
122 …return nxt6000_writereg(state, OFDM_COR_MODEGUARD, 0x03 | (nxt6000_readreg(state, OFDM_COR_MODEGUA… in nxt6000_set_guard_interval()
135 return nxt6000_writereg(state, OFDM_ITB_CTL, 0x00); in nxt6000_set_inversion()
138 return nxt6000_writereg(state, OFDM_ITB_CTL, ITBINV); in nxt6000_set_inversion()
155 …if ((result = nxt6000_writereg(state, EN_DMD_RACQ, 0x00 | (nxt6000_readreg(state, EN_DMD_RACQ) & ~… in nxt6000_set_transmission_mode()
158 …return nxt6000_writereg(state, OFDM_COR_MODEGUARD, (0x00 << 2) | (nxt6000_readreg(state, OFDM_COR_… in nxt6000_set_transmission_mode()
162 …if ((result = nxt6000_writereg(state, EN_DMD_RACQ, 0x02 | (nxt6000_readreg(state, EN_DMD_RACQ) & ~… in nxt6000_set_transmission_mode()
165 …return nxt6000_writereg(state, OFDM_COR_MODEGUARD, (0x01 << 2) | (nxt6000_readreg(state, OFDM_COR_… in nxt6000_set_transmission_mode()
177 nxt6000_writereg(state, RS_COR_SYNC_PARAM, SYNC_PARAM); in nxt6000_setup()
178 nxt6000_writereg(state, BER_CTRL, /*(1 << 2) | */ (0x01 << 1) | 0x01); in nxt6000_setup()
179 nxt6000_writereg(state, VIT_BERTIME_2, 0x00); // BER Timer = 0x000200 * 256 = 131072 bits in nxt6000_setup()
180 nxt6000_writereg(state, VIT_BERTIME_1, 0x02); // in nxt6000_setup()
181 nxt6000_writereg(state, VIT_BERTIME_0, 0x00); // in nxt6000_setup()
182 nxt6000_writereg(state, VIT_COR_INTEN, 0x98); // Enable BER interrupts in nxt6000_setup()
183 nxt6000_writereg(state, VIT_COR_CTL, 0x82); // Enable BER measurement in nxt6000_setup()
184 nxt6000_writereg(state, VIT_COR_CTL, VIT_COR_RESYNC | 0x02 ); in nxt6000_setup()
185 nxt6000_writereg(state, OFDM_COR_CTL, (0x01 << 5) | (nxt6000_readreg(state, OFDM_COR_CTL) & 0x0F)); in nxt6000_setup()
186 nxt6000_writereg(state, OFDM_COR_MODEGUARD, FORCEMODE8K | 0x02); in nxt6000_setup()
187 nxt6000_writereg(state, OFDM_AGC_CTL, AGCLAST | INITIAL_AGC_BW); in nxt6000_setup()
188 nxt6000_writereg(state, OFDM_ITB_FREQ_1, 0x06); in nxt6000_setup()
189 nxt6000_writereg(state, OFDM_ITB_FREQ_2, 0x31); in nxt6000_setup()
190 nxt6000_writereg(state, OFDM_CAS_CTL, (0x01 << 7) | (0x02 << 3) | 0x04); in nxt6000_setup()
191 nxt6000_writereg(state, CAS_FREQ, 0xBB); /* CHECKME */ in nxt6000_setup()
192 nxt6000_writereg(state, OFDM_SYR_CTL, 1 << 2); in nxt6000_setup()
193 nxt6000_writereg(state, OFDM_PPM_CTL_1, PPM256); in nxt6000_setup()
194 nxt6000_writereg(state, OFDM_TRL_NOMINALRATE_1, 0x49); in nxt6000_setup()
195 nxt6000_writereg(state, OFDM_TRL_NOMINALRATE_2, 0x72); in nxt6000_setup()
196 nxt6000_writereg(state, ANALOG_CONTROL_0, 1 << 5); in nxt6000_setup()
197 nxt6000_writereg(state, EN_DMD_RACQ, (1 << 7) | (3 << 4) | 2); in nxt6000_setup()
198 nxt6000_writereg(state, DIAG_CONFIG, TB_SET); in nxt6000_setup()
201 nxt6000_writereg(state, SUB_DIAG_MODE_SEL, CLKINVERSION); in nxt6000_setup()
203 nxt6000_writereg(state, SUB_DIAG_MODE_SEL, 0); in nxt6000_setup()
205 nxt6000_writereg(state, TS_FORMAT, 0); in nxt6000_setup()
517 nxt6000_writereg( state, VIT_COR_INTSTAT, 0x18 ); in nxt6000_read_ber()
522 nxt6000_writereg( state, VIT_COR_INTSTAT, 0x18); // Clear BER Done interrupts in nxt6000_read_ber()
549 return nxt6000_writereg(state, ENABLE_TUNER_IIC, 0x01); in nxt6000_i2c_gate_ctrl()
551 return nxt6000_writereg(state, ENABLE_TUNER_IIC, 0x00); in nxt6000_i2c_gate_ctrl()