Lines Matching refs:sequence
156 static int validate_buffer_size(const struct adc_sequence *sequence) in validate_buffer_size() argument
162 if (sequence->channels & BIT(i)) { in validate_buffer_size()
169 if (sequence->options) { in validate_buffer_size()
170 total_buffer_size *= (1 + sequence->options->extra_samplings); in validate_buffer_size()
173 if (sequence->buffer_size < total_buffer_size) { in validate_buffer_size()
181 const struct adc_sequence *sequence) in start_read() argument
184 uint32_t channels = sequence->channels; in start_read()
187 if (sequence->resolution != ADC_CAT1_RESOLUTION) { in start_read()
188 LOG_ERR("Invalid ADC resolution (%d)", sequence->resolution); in start_read()
197 if (sequence->oversampling) { in start_read()
202 int return_val = validate_buffer_size(sequence); in start_read()
210 data->buffer = sequence->buffer; in start_read()
211 adc_context_start_read(&data->ctx, sequence); in start_read()
217 const struct adc_sequence *sequence) in ifx_cat1_adc_read() argument
223 ret = start_read(dev, sequence); in ifx_cat1_adc_read()
230 const struct adc_sequence *sequence, in ifx_cat1_adc_read_async() argument
237 ret = start_read(dev, sequence); in ifx_cat1_adc_read_async()