Lines Matching full:readback
123 * comedi_alloc_subdev_readback() - Allocate memory for the subdevice readback
132 * On success, @s->readback points to the first element of the array, which
145 s->readback = kcalloc(s->n_chan, sizeof(*s->readback), GFP_KERNEL); in comedi_alloc_subdev_readback()
146 if (!s->readback) in comedi_alloc_subdev_readback()
173 kfree(s->readback); in comedi_device_detach_cleanup()
237 * comedi_readback_insn_read() - A generic (*insn_read) for subdevice readback.
241 * @data: Pointer to return the readback data.
243 * Handles the %INSN_READ instruction for subdevices that use the readback
249 * same element of the readback array will be read multiple times.
251 * Returns @insn->n on success, or -EINVAL if @s->readback is NULL.
261 if (!s->readback) in comedi_readback_insn_read()
265 data[i] = s->readback[chan]; in comedi_readback_insn_read()