Lines Matching full:sequence
31 /* Copy of channel mask from sequence */
33 /* Number of bits in sequence channels */
117 /* Extract lower channel from sequence mask */ in adc_context_start_sampling()
120 if (ctx->sequence.calibrate) { in adc_context_start_sampling()
144 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument
150 if (sequence->options) { in check_buffer_size()
151 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
154 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
156 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
164 const struct adc_sequence *sequence) in start_read() argument
169 if (sequence->oversampling > 7U) { in start_read()
174 if ((sequence->channels == 0) || in start_read()
175 ((sequence->channels & ~BIT_MASK(SMARTBOND_ADC_CHANNEL_COUNT)) != 0)) { in start_read()
180 if (sequence->resolution < 8 || sequence->resolution > 15) { in start_read()
182 sequence->resolution); in start_read()
186 error = check_buffer_size(sequence, 1); in start_read()
191 data->buffer = sequence->buffer; in start_read()
192 data->channel_read_mask = sequence->channels; in start_read()
193 data->sequence_channel_count = pop_count(sequence->channels); in start_read()
196 adc_context_start_read(&data->ctx, sequence); in start_read()
210 (16 - data->ctx.sequence.resolution); in adc_smartbond_isr()
225 const struct adc_sequence *sequence) in adc_smartbond_read() argument
231 error = start_read(dev, sequence); in adc_smartbond_read()
240 const struct adc_sequence *sequence, in adc_smartbond_read_async() argument
247 error = start_read(dev, sequence); in adc_smartbond_read_async()