Lines Matching refs:cx24110_writereg
103 static int cx24110_writereg (struct cx24110_state* state, int reg, int data) in cx24110_writereg() function
140 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x1); in cx24110_set_inversion()
142 cx24110_writereg(state,0x5,cx24110_readreg(state,0x5)&0xf7); in cx24110_set_inversion()
144 cx24110_writereg(state,0x22,cx24110_readreg(state,0x22)&0xef); in cx24110_set_inversion()
150 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x1); in cx24110_set_inversion()
152 cx24110_writereg(state,0x5,cx24110_readreg(state,0x5)|0x08); in cx24110_set_inversion()
154 cx24110_writereg(state,0x22,cx24110_readreg(state,0x22)|0x10); in cx24110_set_inversion()
158 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)&0xfe); in cx24110_set_inversion()
182 cx24110_writereg(state, 0x37, cx24110_readreg(state, 0x37) & 0xdf); in cx24110_set_fec()
184 cx24110_writereg(state, 0x18, 0xae); in cx24110_set_fec()
186 cx24110_writereg(state, 0x05, (cx24110_readreg(state, 0x05) & 0xf0) | 0x3); in cx24110_set_fec()
188 cx24110_writereg(state, 0x22, (cx24110_readreg(state, 0x22) & 0xf0) | 0x3); in cx24110_set_fec()
190 cx24110_writereg(state, 0x1a, 0x05); in cx24110_set_fec()
191 cx24110_writereg(state, 0x1b, 0x06); in cx24110_set_fec()
195 cx24110_writereg(state, 0x37, cx24110_readreg(state, 0x37) | 0x20); in cx24110_set_fec()
200 cx24110_writereg(state, 0x05, (cx24110_readreg(state, 0x05) & 0xf0) | rate[fec]); in cx24110_set_fec()
202 cx24110_writereg(state, 0x22, (cx24110_readreg(state, 0x22) & 0xf0) | rate[fec]); in cx24110_set_fec()
204 cx24110_writereg(state, 0x1a, g1[fec]); in cx24110_set_fec()
205 cx24110_writereg(state, 0x1b, g2[fec]); in cx24110_set_fec()
249 cx24110_writereg(state,0x07,tmp); in cx24110_set_symbolrate()
250 cx24110_writereg(state,0x06,0x78); in cx24110_set_symbolrate()
253 cx24110_writereg(state,0x07,tmp|0x1); in cx24110_set_symbolrate()
254 cx24110_writereg(state,0x06,0xa5); in cx24110_set_symbolrate()
257 cx24110_writereg(state,0x07,tmp|0x2); in cx24110_set_symbolrate()
258 cx24110_writereg(state,0x06,0x87); in cx24110_set_symbolrate()
261 cx24110_writereg(state,0x07,tmp|0x3); in cx24110_set_symbolrate()
262 cx24110_writereg(state,0x06,0x78); in cx24110_set_symbolrate()
291 cx24110_writereg(state, 0x1, (ratio>>16)&0xff); in cx24110_set_symbolrate()
292 cx24110_writereg(state, 0x2, (ratio>>8)&0xff); in cx24110_set_symbolrate()
293 cx24110_writereg(state, 0x3, (ratio)&0xff); in cx24110_set_symbolrate()
310 cx24110_writereg(state,0x6d,0x30); /* auto mode at 62kHz */ in _cx24110_pll_write()
311 cx24110_writereg(state,0x70,0x15); /* auto mode 21 bits */ in _cx24110_pll_write()
315 cx24110_writereg(state,0x72,0); in _cx24110_pll_write()
318 cx24110_writereg(state,0x72,buf[0]); in _cx24110_pll_write()
325 cx24110_writereg(state,0x72,buf[1]); in _cx24110_pll_write()
330 cx24110_writereg(state,0x72,buf[2]); in _cx24110_pll_write()
335 cx24110_writereg(state,0x6d,0x32); in _cx24110_pll_write()
336 cx24110_writereg(state,0x6d,0x30); in _cx24110_pll_write()
350 cx24110_writereg(state, cx24110_regdata[i].reg, cx24110_regdata[i].data); in cx24110_initfe()
363 return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&0x3b)|0xc0); in cx24110_set_voltage()
365 return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&0x3b)|0x40); in cx24110_set_voltage()
387 cx24110_writereg(state, 0x77, rv | 0x04); in cx24110_diseqc_send_burst()
390 cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40 | bit)); in cx24110_diseqc_send_burst()
409 cx24110_writereg(state, 0x79 + i, cmd->msg[i]); in cx24110_send_diseqc_msg()
413 cx24110_writereg(state, 0x77, rv & ~0x04); in cx24110_send_diseqc_msg()
419 cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40) | ((cmd->msg_len-3) & 3)); in cx24110_send_diseqc_msg()
463 cx24110_writereg(state,0x24,0x04); /* select the ber reg */ in cx24110_read_ber()
466 cx24110_writereg(state,0x24,0x04); /* start new count window */ in cx24110_read_ber()
467 cx24110_writereg(state,0x24,0x14); in cx24110_read_ber()
494 cx24110_writereg(state,0x6a,0x84); /* start new count window */ in cx24110_read_snr()
507 cx24110_writereg(state,0x10,0x60); /* select the byer reg */ in cx24110_read_ucblocks()
511 cx24110_writereg(state,0x10,0x70); /* select the bler reg */ in cx24110_read_ucblocks()
515 cx24110_writereg(state,0x10,0x20); /* start new count window */ in cx24110_read_ucblocks()
535 cx24110_writereg(state,0x04,0x05); /* start acquisition */ in cx24110_set_frontend()
573 …return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&~0x10)|(((tone==SEC_TONE_ON))?0x10… in cx24110_set_tone()