Lines Matching full:sequence

33 	/* Copy of channel mask from sequence */
35 /* Number of bits in sequence channels */
120 /* Extract lower channel from sequence mask */ in adc_context_start_sampling()
123 if (ctx->sequence.calibrate) { in adc_context_start_sampling()
130 val |= (ctx->sequence.oversampling - 7) << SDADC_SDADC_CTRL_REG_SDADC_OSR_Pos; in adc_context_start_sampling()
147 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument
153 if (sequence->options) { in check_buffer_size()
154 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
157 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
159 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
167 const struct adc_sequence *sequence) in start_read() argument
172 if (sequence->oversampling < 7U || sequence->oversampling > 10) { in start_read()
177 if ((sequence->channels == 0) || in start_read()
178 ((sequence->channels & ~BIT_MASK(SMARTBOND_SDADC_CHANNEL_COUNT)) != 0)) { in start_read()
183 if (sequence->resolution < 8 || sequence->resolution > 15) { in start_read()
185 sequence->resolution); in start_read()
189 error = check_buffer_size(sequence, 1); in start_read()
194 data->buffer = sequence->buffer; in start_read()
195 data->channel_read_mask = sequence->channels; in start_read()
196 data->sequence_channel_count = pop_count(sequence->channels); in start_read()
199 adc_context_start_read(&data->ctx, sequence); in start_read()
213 (16 - data->ctx.sequence.resolution); in sdadc_smartbond_isr()
228 const struct adc_sequence *sequence) in sdadc_smartbond_read() argument
234 error = start_read(dev, sequence); in sdadc_smartbond_read()
243 const struct adc_sequence *sequence, in sdadc_smartbond_read_async() argument
250 error = start_read(dev, sequence); in sdadc_smartbond_read_async()