Lines Matching refs:sequence
87 static int adc_xmc4xxx_validate_buffer_size(const struct adc_sequence *sequence) in adc_xmc4xxx_validate_buffer_size() argument
93 if (sequence->channels & BIT(i)) { in adc_xmc4xxx_validate_buffer_size()
100 if (sequence->options) { in adc_xmc4xxx_validate_buffer_size()
101 total_buffer_size *= (1 + sequence->options->extra_samplings); in adc_xmc4xxx_validate_buffer_size()
104 if (sequence->buffer_size < total_buffer_size) { in adc_xmc4xxx_validate_buffer_size()
112 const struct adc_sequence *sequence) in start_read() argument
118 uint32_t requested_channels = sequence->channels; in start_read()
119 uint8_t resolution = sequence->resolution; in start_read()
133 if (sequence->oversampling) { in start_read()
138 ret = adc_xmc4xxx_validate_buffer_size(sequence); in start_read()
157 data->buffer = sequence->buffer; in start_read()
158 adc_context_start_read(&data->ctx, sequence); in start_read()
164 const struct adc_sequence *sequence) in adc_xmc4xxx_read() argument
170 ret = start_read(dev, sequence); in adc_xmc4xxx_read()
177 const struct adc_sequence *sequence, in adc_xmc4xxx_read_async() argument
184 ret = start_read(dev, sequence); in adc_xmc4xxx_read_async()