Lines Matching refs:readbuf
80 char readbuf[32]; in mraa_iio_get_channel_data() local
113 if (read(fd, readbuf, 2 * sizeof(char)) != 2) { in mraa_iio_get_channel_data()
117 chan_num = ((int) strtol(readbuf, NULL, 10)); in mraa_iio_get_channel_data()
128 read(fd, readbuf, 31 * sizeof(char)); in mraa_iio_get_channel_data()
129 ret = sscanf(readbuf, "%ce:%c%u/%u>>%u", &shortbuf, &signchar, &chan->bits_used, in mraa_iio_get_channel_data()
158 if (read(fd, readbuf, 2 * sizeof(char)) != 2) { in mraa_iio_get_channel_data()
164 chan->enabled = (int) strtol(readbuf, NULL, 10); in mraa_iio_get_channel_data()
368 char readbuf[32]; in mraa_iio_get_event_data() local
375 memset(readbuf, 0, 32); in mraa_iio_get_event_data()
405 if (read(fd, readbuf, 2 * sizeof(char)) != 2) { in mraa_iio_get_event_data()
411 event->enabled = ((int) strtol(readbuf, NULL, 10)); in mraa_iio_get_event_data()
589 char readbuf[32]; in mraa_iio_update_channels() local
603 if (read(fd, readbuf, 2 * sizeof(char)) != 2) { in mraa_iio_update_channels()
607 chan_num = ((int) strtol(readbuf, NULL, 10)); in mraa_iio_update_channels()
619 if (read(fd, readbuf, 2 * sizeof(char)) != 2) { in mraa_iio_update_channels()
626 chan->enabled = (int) strtol(readbuf, NULL, 10); in mraa_iio_update_channels()