Lines Matching refs:cx24110_writereg
116 static int cx24110_writereg (struct cx24110_state* state, int reg, int data)
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);
196 cx24110_writereg(state,0x18,0xae);
198 cx24110_writereg(state,0x05,(cx24110_readreg(state,0x05)&0xf0)|0x3);
200 cx24110_writereg(state,0x22,(cx24110_readreg(state,0x22)&0xf0)|0x3);
202 cx24110_writereg(state,0x1a,0x05); cx24110_writereg(state,0x1b,0x06);
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]);
213 cx24110_writereg(state,0x1a,g1[fec]);
214 cx24110_writereg(state,0x1b,g2[fec]);
255 cx24110_writereg(state,0x07,tmp);
256 cx24110_writereg(state,0x06,0x78);
259 cx24110_writereg(state,0x07,tmp|0x1);
260 cx24110_writereg(state,0x06,0xa5);
263 cx24110_writereg(state,0x07,tmp|0x2);
264 cx24110_writereg(state,0x06,0x87);
267 cx24110_writereg(state,0x07,tmp|0x3);
268 cx24110_writereg(state,0x06,0x78);
297 cx24110_writereg(state, 0x1, (ratio>>16)&0xff);
298 cx24110_writereg(state, 0x2, (ratio>>8)&0xff);
299 cx24110_writereg(state, 0x3, (ratio)&0xff);
315 cx24110_writereg(state,0x6d,0x30); /* auto mode at 62kHz */
316 cx24110_writereg(state,0x70,0x15); /* auto mode 21 bits */
320 cx24110_writereg(state,0x72,0);
323 cx24110_writereg(state,0x72,buf[0]);
330 cx24110_writereg(state,0x72,buf[1]);
335 cx24110_writereg(state,0x72,buf[2]);
340 cx24110_writereg(state,0x6d,0x32);
341 cx24110_writereg(state,0x6d,0x30);
354 cx24110_writereg(state, cx24110_regdata[i].reg, cx24110_regdata[i].data);
366 return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&0x3b)|0xc0);
368 return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&0x3b)|0x40);
389 cx24110_writereg(state, 0x77, rv | 0x04);
392 cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40 | bit));
411 cx24110_writereg(state, 0x79 + i, cmd->msg[i]);
415 cx24110_writereg(state, 0x77, rv & ~0x04);
421 cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40) | ((cmd->msg_len-3) & 3));
463 cx24110_writereg(state,0x24,0x04); /* select the ber reg */
466 cx24110_writereg(state,0x24,0x04); /* start new count window */
467 cx24110_writereg(state,0x24,0x14);
494 cx24110_writereg(state,0x6a,0x84); /* start new count window */
508 cx24110_writereg(state,0x10,0x60); /* select the byer reg */
512 cx24110_writereg(state,0x10,0x70); /* select the bler reg */
516 cx24110_writereg(state,0x10,0x20); /* start new count window */
536 cx24110_writereg(state,0x04,0x05); /* start aquisition */
572 return cx24110_writereg(state,0x76,(cx24110_readreg(state,0x76)&~0x10)|(((tone==SEC_TONE_ON))?0x10:0));