Lines Matching refs:buffer
2 /* Industrialio buffer test code.
7 * Reads the current buffer setup from sysfs and starts a short capture
34 #include <linux/iio/buffer.h>
52 * in processing the buffer output.
256 "Capture, convert and output data from IIO device buffer\n"
259 " -b <n> The buffer which to open (by index), default 0\n"
263 " -l <n> Set buffer length to n samples\n"
294 /* Disable buffer */
298 fprintf(stderr, "Failed to disable buffer: %s\n",
604 * Construct the directory name for the associated buffer.
605 * As we know that the lis3l02dq has only one buffer this may
609 "%siio:device%d/buffer%d", iio_dir, dev_num, buffer_idx);
658 /* specify for which buffer index we want an FD */
668 fprintf(stderr, "Failed to retrieve buffer fd\n");
673 /* Setup ring buffer parameters */
678 /* Enable the buffer */
682 "Failed to enable buffer '%s': %s\n",
718 /* close now the main chardev FD and let the buffer FD work */
764 perror("Failed to close buffer");