Lines Matching full:subdevice
29 * struct comedi_subdevice - Working data for a COMEDI subdevice
30 * @device: COMEDI device to which this subdevice belongs. (Initialized by
32 * @index: Index of this subdevice within device's array of subdevices.
34 * @type: Type of subdevice from &enum comedi_subdevice_type. (Initialized by
36 * @n_chan: Number of channels the subdevice supports. (Initialized by the
38 * @subdev_flags: Various "SDF" flags indicating aspects of the subdevice to
41 * @len_chanlist: Maximum length of a channel list if the subdevice supports
49 * @async: Pointer to &struct comedi_async id the subdevice supports
53 * subdevice. (Initially NULL.)
55 * acquisition command on the subdevice. (Initially NULL.)
60 * @io_bits: Bit-mask indicating the channel directions for a DIO subdevice
63 * low-level driver for a DIO subdevice. Forced to all-outputs during
64 * post-configuration for a digital output subdevice.)
72 * subdevice. If NULL, the range table is channel-specific. (Initialized
87 * for a digital input, digital output or digital input/output subdevice.
93 * @do_cmd: If the subdevice supports asynchronous acquisition commands, this
96 * @do_cmdtest: If the subdevice supports asynchronous acquisition commands,
100 * @poll: If the subdevice supports asynchronous acquisition commands, this
104 * @cancel: If the subdevice supports asynchronous acquisition commands, this
107 * @buf_change: If the subdevice supports asynchronous acquisition commands,
111 * @munge: If the subdevice supports asynchronous acquisition commands and
116 * @async_dma_dir: If the subdevice supports asynchronous acquisition commands
122 * output subdevice with no more than 32 channels. (Initialized by the
124 * @class_dev: If the subdevice supports asynchronous acquisition commands,
126 * number of the COMEDI device and Y is the subdevice number. The minor
129 * with a different default read or write subdevice. (Allocated during
139 * This is the main control structure for a COMEDI subdevice. If the subdevice
143 * Most of the subdevice is initialized by the low-level driver's "attach" or
149 * or DIO subdevice may leave @insn_read and @insn_write uninitialized, in
510 * @read_subdev: Optional pointer to a default COMEDI subdevice operated on by
512 * @write_subdev: Optional pointer to a default COMEDI subdevice operated on by
641 * comedi_range_is_bipolar() - Test if subdevice range is bipolar
642 * @s: COMEDI subdevice.
662 * comedi_range_is_unipolar() - Test if subdevice range is unipolar
663 * @s: COMEDI subdevice.
683 * comedi_range_is_external() - Test if subdevice range is external
684 * @s: COMEDI subdevice.
705 * @s: COMEDI subdevice.
728 * @s: COMEDI subdevice.
751 * @s: COMEDI subdevice.
774 * @s: COMEDI subdevice.
789 * comedi_bytes_per_sample() - Determine subdevice sample size
790 * @s: COMEDI subdevice.
793 * whether the %SDF_LSAMPL subdevice flag is set or not.
795 * Return: The subdevice sample size.
803 * comedi_sample_shift() - Determine log2 of subdevice sample size
804 * @s: COMEDI subdevice.
807 * whether the %SDF_LSAMPL subdevice flag is set or not. The log2 of the
811 * Return: log2 of the subdevice sample size.
820 * @s: COMEDI subdevice.
823 * Return: The number of bytes divided by the subdevice sample size.
833 * @s: COMEDI subdevice.
836 * Return: The number of samples multiplied by the subdevice sample size.
959 * @s: COMEDI subdevice.
962 * acquisition data buffer for a subdevice. The data in question might not