Lines Matching refs:cx24110_readreg

118 static int cx24110_readreg (struct cx24110_state* state, u8 reg)  in cx24110_readreg()  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()
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()
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()
215 i=cx24110_readreg(state,0x22)&0x0f; in cx24110_get_fec()
247 tmp=cx24110_readreg(state,0x07)&0xfc; in cx24110_set_symbolrate()
314 while (cx24110_readreg(state,0x6d)&0x80) in _cx24110_pll_write()
321 while ((cx24110_readreg(state,0x6d)&0xc0)==0x80) in _cx24110_pll_write()
326 while ((cx24110_readreg(state,0x6d)&0xc0)==0x80) in _cx24110_pll_write()
331 while ((cx24110_readreg(state,0x6d)&0xc0)==0x80) in _cx24110_pll_write()
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()
385 rv = cx24110_readreg(state, 0x77); in cx24110_diseqc_send_burst()
389 rv = cx24110_readreg(state, 0x76); in cx24110_diseqc_send_burst()
392 while (!time_after(jiffies, timeout) && !(cx24110_readreg(state, 0x76) & 0x40)) in cx24110_diseqc_send_burst()
411 rv = cx24110_readreg(state, 0x77); in cx24110_send_diseqc_msg()
417 rv = cx24110_readreg(state, 0x76); in cx24110_send_diseqc_msg()
421 while (!time_after(jiffies, timeout) && !(cx24110_readreg(state, 0x76) & 0x40)) in cx24110_send_diseqc_msg()
432 int sync = cx24110_readreg (state, 0x55); in cx24110_read_status()
442 sync = cx24110_readreg (state, 0x08); in cx24110_read_status()
461 if(cx24110_readreg(state,0x24)&0x10) { in cx24110_read_ber()
464 state->lastber=cx24110_readreg(state,0x25)| in cx24110_read_ber()
465 (cx24110_readreg(state,0x26)<<8); in cx24110_read_ber()
479 u8 signal = cx24110_readreg (state, 0x27)+128; in cx24110_read_signal_strength()
490 if(cx24110_readreg(state,0x6a)&0x80) { in cx24110_read_snr()
492 state->lastesn0=cx24110_readreg(state,0x69)| in cx24110_read_snr()
493 (cx24110_readreg(state,0x68)<<8); in cx24110_read_snr()
505 if(cx24110_readreg(state,0x10)&0x40) { in cx24110_read_ucblocks()
508 (void)(cx24110_readreg(state, 0x12) | in cx24110_read_ucblocks()
509 (cx24110_readreg(state, 0x13) << 8) | in cx24110_read_ucblocks()
510 (cx24110_readreg(state, 0x14) << 16)); in cx24110_read_ucblocks()
512 state->lastbler=cx24110_readreg(state,0x12)| in cx24110_read_ucblocks()
513 (cx24110_readreg(state,0x13)<<8)| in cx24110_read_ucblocks()
514 (cx24110_readreg(state,0x14)<<16); in cx24110_read_ucblocks()
548 sclk = cx24110_readreg (state, 0x07) & 0x03; in cx24110_get_frontend()
556 afc = sclk*(cx24110_readreg (state, 0x44)&0x1f)+ in cx24110_get_frontend()
557 ((sclk*cx24110_readreg (state, 0x45))>>8)+ in cx24110_get_frontend()
558 ((sclk*cx24110_readreg (state, 0x46))>>16); in cx24110_get_frontend()
561 p->inversion = (cx24110_readreg (state, 0x22) & 0x10) ? in cx24110_get_frontend()
573 …return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&~0x10)|(((tone==SEC_TONE_ON))?0x10… in cx24110_set_tone()
602 ret = cx24110_readreg(state, 0x00); in cx24110_attach()