Lines Matching refs:rbuf
34 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
38 int wo = (rbuf == NULL || rlen == 0); /* write only */
63 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen)
67 int wo = (rbuf == NULL || rlen == 0); /* write-only */
74 return gl861_i2c_ctrlmsg_data(d, addr, wbuf, wlen, rbuf, rlen);
105 value, index, rbuf, rlen, 2000);
222 u8 rbuf[2];
258 ret = gl861_i2c_msg(d, 0x12 >> 1, wbuf, 3, rbuf, 2);
260 if (ret < 0 || rbuf[0] != 0xff || rbuf[1] != 0xff)
276 ret = gl861_i2c_msg(d, 0x90 >> 1, wbuf, 3, rbuf, 2);
278 if (ret < 0 || rbuf[0] != 0xff || rbuf[1] != 0xff)
297 ret = gl861_i2c_msg(d, FRIIO_DEMOD_ADDR, wbuf, 3, rbuf, 1);
304 ret = gl861_i2c_msg(d, FRIIO_DEMOD_ADDR, wbuf, 2, rbuf, 1);
308 if (rbuf[0] & 0x80) { /* still in PowerOnReset state? */
311 " FE demod status:0x%02x\n", rbuf[0]);
318 /* TODO: check return value in rbuf */