Lines Matching refs:rec_buf

155 	u8 rec_buf[14];  in or51211_setmode()  local
187 rec_buf[0] = 0x04; in or51211_setmode()
188 rec_buf[1] = 0x00; in or51211_setmode()
189 rec_buf[2] = 0x03; in or51211_setmode()
190 rec_buf[3] = 0x00; in or51211_setmode()
192 if (i2c_writebytes(state,state->config->demod_address,rec_buf,3)) { in or51211_setmode()
196 if (i2c_readbytes(state,state->config->demod_address,&rec_buf[10],2)) { in or51211_setmode()
200 dprintk("rec status %02x %02x\n", rec_buf[10], rec_buf[11]); in or51211_setmode()
229 unsigned char rec_buf[2]; in or51211_read_status() local
239 if (i2c_readbytes(state,state->config->demod_address,rec_buf,2)) { in or51211_read_status()
243 dprintk("%x %x\n", rec_buf[0], rec_buf[1]); in or51211_read_status()
245 if (rec_buf[0] & 0x01) { /* Receiver Lock */ in or51211_read_status()
284 u8 rec_buf[2]; in or51211_read_snr() local
296 if (i2c_readbytes(state,state->config->demod_address,rec_buf,2)) { in or51211_read_snr()
301 state->snr = calculate_snr(rec_buf[0], 89599047); in or51211_read_snr()
304 dprintk("noise = 0x%02x, snr = %d.%02d dB\n", rec_buf[0], in or51211_read_snr()
355 unsigned char rec_buf[14]; in or51211_init() local
395 rec_buf[0] = 0x04; in or51211_init()
396 rec_buf[1] = 0x00; in or51211_init()
397 rec_buf[2] = 0x03; in or51211_init()
398 rec_buf[3] = 0x00; in or51211_init()
401 rec_buf,3)) { in or51211_init()
407 &rec_buf[10],2)) { in or51211_init()
412 rec_buf[0] = 0x04; in or51211_init()
413 rec_buf[1] = 0x00; in or51211_init()
414 rec_buf[2] = 0x01; in or51211_init()
415 rec_buf[3] = 0x00; in or51211_init()
418 rec_buf,3)) { in or51211_init()
424 &rec_buf[12],2)) { in or51211_init()
430 rec_buf[i]=0xed; in or51211_init()
443 &rec_buf[i*2],2)) { in or51211_init()
448 if ((int)rec_buf[i*2+1]!=i+1){ in or51211_init()
452 dprintk("read_fwbits %10ph\n", rec_buf); in or51211_init()
455 rec_buf[2], rec_buf[4], rec_buf[6], rec_buf[12], in or51211_init()
456 rec_buf[10]); in or51211_init()
458 rec_buf[0] = 0x04; in or51211_init()
459 rec_buf[1] = 0x00; in or51211_init()
460 rec_buf[2] = 0x03; in or51211_init()
461 rec_buf[3] = 0x00; in or51211_init()
464 rec_buf,3)) { in or51211_init()
470 &rec_buf[8],2)) { in or51211_init()