cb_buff 29 drivers/iio/buffer/industrialio-buffer-cb.c struct iio_cb_buffer *cb_buff = buffer_to_cb_buffer(buffer); cb_buff 30 drivers/iio/buffer/industrialio-buffer-cb.c return cb_buff->cb(data, cb_buff->private); cb_buff 35 drivers/iio/buffer/industrialio-buffer-cb.c struct iio_cb_buffer *cb_buff = buffer_to_cb_buffer(buffer); cb_buff 37 drivers/iio/buffer/industrialio-buffer-cb.c bitmap_free(cb_buff->buffer.scan_mask); cb_buff 38 drivers/iio/buffer/industrialio-buffer-cb.c kfree(cb_buff); cb_buff 54 drivers/iio/buffer/industrialio-buffer-cb.c struct iio_cb_buffer *cb_buff; cb_buff 57 drivers/iio/buffer/industrialio-buffer-cb.c cb_buff = kzalloc(sizeof(*cb_buff), GFP_KERNEL); cb_buff 58 drivers/iio/buffer/industrialio-buffer-cb.c if (cb_buff == NULL) cb_buff 61 drivers/iio/buffer/industrialio-buffer-cb.c iio_buffer_init(&cb_buff->buffer); cb_buff 63 drivers/iio/buffer/industrialio-buffer-cb.c cb_buff->private = private; cb_buff 64 drivers/iio/buffer/industrialio-buffer-cb.c cb_buff->cb = cb; cb_buff 65 drivers/iio/buffer/industrialio-buffer-cb.c cb_buff->buffer.access = &iio_cb_access; cb_buff 66 drivers/iio/buffer/industrialio-buffer-cb.c INIT_LIST_HEAD(&cb_buff->buffer.demux_list); cb_buff 68 drivers/iio/buffer/industrialio-buffer-cb.c cb_buff->channels = iio_channel_get_all(dev); cb_buff 69 drivers/iio/buffer/industrialio-buffer-cb.c if (IS_ERR(cb_buff->channels)) { cb_buff 70 drivers/iio/buffer/industrialio-buffer-cb.c ret = PTR_ERR(cb_buff->channels); cb_buff 74 drivers/iio/buffer/industrialio-buffer-cb.c cb_buff->indio_dev = cb_buff->channels[0].indio_dev; cb_buff 75 drivers/iio/buffer/industrialio-buffer-cb.c cb_buff->buffer.scan_mask = bitmap_zalloc(cb_buff->indio_dev->masklength, cb_buff 77 drivers/iio/buffer/industrialio-buffer-cb.c if (cb_buff->buffer.scan_mask == NULL) { cb_buff 81 drivers/iio/buffer/industrialio-buffer-cb.c chan = &cb_buff->channels[0]; cb_buff 83 drivers/iio/buffer/industrialio-buffer-cb.c if (chan->indio_dev != cb_buff->indio_dev) { cb_buff 88 drivers/iio/buffer/industrialio-buffer-cb.c cb_buff->buffer.scan_mask); cb_buff 92 drivers/iio/buffer/industrialio-buffer-cb.c return cb_buff; cb_buff 95 drivers/iio/buffer/industrialio-buffer-cb.c bitmap_free(cb_buff->buffer.scan_mask); cb_buff 97 drivers/iio/buffer/industrialio-buffer-cb.c iio_channel_release_all(cb_buff->channels); cb_buff 99 drivers/iio/buffer/industrialio-buffer-cb.c kfree(cb_buff); cb_buff 104 drivers/iio/buffer/industrialio-buffer-cb.c int iio_channel_cb_set_buffer_watermark(struct iio_cb_buffer *cb_buff, cb_buff 109 drivers/iio/buffer/industrialio-buffer-cb.c cb_buff->buffer.watermark = watermark; cb_buff 115 drivers/iio/buffer/industrialio-buffer-cb.c int iio_channel_start_all_cb(struct iio_cb_buffer *cb_buff) cb_buff 117 drivers/iio/buffer/industrialio-buffer-cb.c return iio_update_buffers(cb_buff->indio_dev, &cb_buff->buffer, cb_buff 122 drivers/iio/buffer/industrialio-buffer-cb.c void iio_channel_stop_all_cb(struct iio_cb_buffer *cb_buff) cb_buff 124 drivers/iio/buffer/industrialio-buffer-cb.c iio_update_buffers(cb_buff->indio_dev, NULL, &cb_buff->buffer); cb_buff 128 drivers/iio/buffer/industrialio-buffer-cb.c void iio_channel_release_all_cb(struct iio_cb_buffer *cb_buff) cb_buff 130 drivers/iio/buffer/industrialio-buffer-cb.c iio_channel_release_all(cb_buff->channels); cb_buff 131 drivers/iio/buffer/industrialio-buffer-cb.c iio_buffer_put(&cb_buff->buffer); cb_buff 154 include/linux/iio/consumer.h int iio_channel_start_all_cb(struct iio_cb_buffer *cb_buff); cb_buff 160 include/linux/iio/consumer.h void iio_channel_stop_all_cb(struct iio_cb_buffer *cb_buff);