Lines Matching full:sequence
72 static int adc_gecko_check_buffer_size(const struct adc_sequence *sequence, in adc_gecko_check_buffer_size() argument
79 if (sequence->options) { in adc_gecko_check_buffer_size()
80 needed_buffer_size *= (1 + sequence->options->extra_samplings); in adc_gecko_check_buffer_size()
83 if (sequence->buffer_size < needed_buffer_size) { in adc_gecko_check_buffer_size()
85 sequence->buffer_size, needed_buffer_size); in adc_gecko_check_buffer_size()
92 static int start_read(const struct device *dev, const struct adc_sequence *sequence) in start_read() argument
102 if (sequence->channels == 0) { in start_read()
107 if (sequence->oversampling) { in start_read()
113 channels = sequence->channels; in start_read()
131 res = adc_gecko_check_buffer_size(sequence, channel_count); in start_read()
136 data->buffer = sequence->buffer; in start_read()
138 adc_context_start_read(&data->ctx, sequence); in start_read()
162 data->channels = ctx->sequence.channels; in adc_context_start_sampling()
209 const struct adc_sequence *sequence) in adc_gecko_read() argument
215 error = start_read(dev, sequence); in adc_gecko_read()