Lines Matching refs:cx24110_readreg
131 static int cx24110_readreg (struct cx24110_state* state, u8 reg)
151 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x1);
153 cx24110_writereg(state,0x5,cx24110_readreg(state,0x5)&0xf7);
155 cx24110_writereg(state,0x22,cx24110_readreg(state,0x22)&0xef);
161 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x1);
163 cx24110_writereg(state,0x5,cx24110_readreg(state,0x5)|0x08);
165 cx24110_writereg(state,0x22,cx24110_readreg(state,0x22)|0x10);
169 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)&0xfe);
194 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)&0xdf);
198 cx24110_writereg(state,0x05,(cx24110_readreg(state,0x05)&0xf0)|0x3);
200 cx24110_writereg(state,0x22,(cx24110_readreg(state,0x22)&0xf0)|0x3);
206 cx24110_writereg(state,0x37,cx24110_readreg(state,0x37)|0x20);
209 cx24110_writereg(state,0x05,(cx24110_readreg(state,0x05)&0xf0)|rate[fec]);
211 cx24110_writereg(state,0x22,(cx24110_readreg(state,0x22)&0xf0)|rate[fec]);
226 i=cx24110_readreg(state,0x22)&0x0f;
253 tmp=cx24110_readreg(state,0x07)&0xfc;
319 while (cx24110_readreg(state,0x6d)&0x80)
326 while ((cx24110_readreg(state,0x6d)&0xc0)==0x80)
331 while ((cx24110_readreg(state,0x6d)&0xc0)==0x80)
336 while ((cx24110_readreg(state,0x6d)&0xc0)==0x80)
366 return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&0x3b)|0xc0);
368 return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&0x3b)|0x40);
387 rv = cx24110_readreg(state, 0x77);
391 rv = cx24110_readreg(state, 0x76);
394 while (!time_after(jiffies, timeout) && !(cx24110_readreg(state, 0x76) & 0x40))
413 rv = cx24110_readreg(state, 0x77);
419 rv = cx24110_readreg(state, 0x76);
423 while (!time_after(jiffies, timeout) && !(cx24110_readreg(state, 0x76) & 0x40))
433 int sync = cx24110_readreg (state, 0x55);
443 sync = cx24110_readreg (state, 0x08);
461 if(cx24110_readreg(state,0x24)&0x10) {
464 state->lastber=cx24110_readreg(state,0x25)|
465 (cx24110_readreg(state,0x26)<<8);
479 u8 signal = cx24110_readreg (state, 0x27)+128;
490 if(cx24110_readreg(state,0x6a)&0x80) {
492 state->lastesn0=cx24110_readreg(state,0x69)|
493 (cx24110_readreg(state,0x68)<<8);
506 if(cx24110_readreg(state,0x10)&0x40) {
509 lastbyer=cx24110_readreg(state,0x12)|
510 (cx24110_readreg(state,0x13)<<8)|
511 (cx24110_readreg(state,0x14)<<16);
513 state->lastbler=cx24110_readreg(state,0x12)|
514 (cx24110_readreg(state,0x13)<<8)|
515 (cx24110_readreg(state,0x14)<<16);
548 sclk = cx24110_readreg (state, 0x07) & 0x03;
556 afc = sclk*(cx24110_readreg (state, 0x44)&0x1f)+
557 ((sclk*cx24110_readreg (state, 0x45))>>8)+
558 ((sclk*cx24110_readreg (state, 0x46))>>16);
561 p->inversion = (cx24110_readreg (state, 0x22) & 0x10) ?
572 return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&~0x10)|(((tone==SEC_TONE_ON))?0x10:0));
601 ret = cx24110_readreg(state, 0x00);