Lines Matching full:sequence
48 /* Pointer to the buffer in the sequence. */
52 * channels in the sequence: this buffer changes by that amount
157 data->channels = ctx->sequence.channels; in adc_context_start_sampling()
172 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument
177 if (sequence->options) { in check_buffer_size()
178 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
180 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
182 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
189 const struct adc_sequence *sequence) in start_read() argument
193 uint32_t channels = sequence->channels; in start_read()
206 if (sequence->oversampling != 0U) { in start_read()
211 if (sequence->resolution != 12U) { in start_read()
216 sequence->resolution); in start_read()
231 error = check_buffer_size(sequence, num_active_channels); in start_read()
239 data->buffer = sequence->buffer; in start_read()
240 data->repeat_buffer = sequence->buffer; in start_read()
247 adc_context_start_read(&data->ctx, sequence); in start_read()
254 const struct adc_sequence *sequence) in adc_sam_read() argument
260 error = start_read(dev, sequence); in adc_sam_read()
320 const struct adc_sequence *sequence, in adc_sam_read_async() argument
327 error = start_read(dev, sequence); in adc_sam_read_async()