Lines Matching full:subdevice
28 * struct comedi_subdevice - Working data for a COMEDI subdevice
29 * @device: COMEDI device to which this subdevice belongs. (Initialized by
31 * @index: Index of this subdevice within device's array of subdevices.
33 * @type: Type of subdevice from &enum comedi_subdevice_type. (Initialized by
35 * @n_chan: Number of channels the subdevice supports. (Initialized by the
37 * @subdev_flags: Various "SDF" flags indicating aspects of the subdevice to
40 * @len_chanlist: Maximum length of a channel list if the subdevice supports
48 * @async: Pointer to &struct comedi_async id the subdevice supports
52 * subdevice. (Initially NULL.)
54 * acquisition command on the subdevice. (Initially NULL.)
59 * @io_bits: Bit-mask indicating the channel directions for a DIO subdevice
62 * low-level driver for a DIO subdevice. Forced to all-outputs during
63 * post-configuration for a digital output subdevice.)
71 * subdevice. If NULL, the range table is channel-specific. (Initialized
86 * for a digital input, digital output or digital input/output subdevice.
92 * @do_cmd: If the subdevice supports asynchronous acquisition commands, this
95 * @do_cmdtest: If the subdevice supports asynchronous acquisition commands,
99 * @poll: If the subdevice supports asynchronous acquisition commands, this
103 * @cancel: If the subdevice supports asynchronous acquisition commands, this
106 * @buf_change: If the subdevice supports asynchronous acquisition commands,
110 * @munge: If the subdevice supports asynchronous acquisition commands and
115 * @async_dma_dir: If the subdevice supports asynchronous acquisition commands
121 * output subdevice with no more than 32 channels. (Initialized by the
123 * @class_dev: If the subdevice supports asynchronous acquisition commands,
125 * number of the COMEDI device and Y is the subdevice number. The minor
128 * with a different default read or write subdevice. (Allocated during
138 * This is the main control structure for a COMEDI subdevice. If the subdevice
142 * Most of the subdevice is initialized by the low-level driver's "attach" or
148 * or DIO subdevice may leave @insn_read and @insn_write uninitialized, in
509 * @read_subdev: Optional pointer to a default COMEDI subdevice operated on by
511 * @write_subdev: Optional pointer to a default COMEDI subdevice operated on by
640 * comedi_range_is_bipolar() - Test if subdevice range is bipolar
641 * @s: COMEDI subdevice.
661 * comedi_range_is_unipolar() - Test if subdevice range is unipolar
662 * @s: COMEDI subdevice.
682 * comedi_range_is_external() - Test if subdevice range is external
683 * @s: COMEDI subdevice.
704 * @s: COMEDI subdevice.
727 * @s: COMEDI subdevice.
750 * @s: COMEDI subdevice.
773 * @s: COMEDI subdevice.
788 * comedi_bytes_per_sample() - Determine subdevice sample size
789 * @s: COMEDI subdevice.
792 * whether the %SDF_LSAMPL subdevice flag is set or not.
794 * Return: The subdevice sample size.
802 * comedi_sample_shift() - Determine log2 of subdevice sample size
803 * @s: COMEDI subdevice.
806 * whether the %SDF_LSAMPL subdevice flag is set or not. The log2 of the
810 * Return: log2 of the subdevice sample size.
819 * @s: COMEDI subdevice.
822 * Return: The number of bytes divided by the subdevice sample size.
832 * @s: COMEDI subdevice.
835 * Return: The number of samples multiplied by the subdevice sample size.
958 * @s: COMEDI subdevice.
961 * acquisition data buffer for a subdevice. The data in question might not