Lines Matching refs:sequence

121 					const struct adc_sequence *sequence)  in adc_nxp_s32_validate_buffer_size()  argument
126 active_channels = POPCOUNT(sequence->channels); in adc_nxp_s32_validate_buffer_size()
129 if (sequence->options) { in adc_nxp_s32_validate_buffer_size()
130 needed_size *= (1 + sequence->options->extra_samplings); in adc_nxp_s32_validate_buffer_size()
133 if (sequence->buffer_size < needed_size) { in adc_nxp_s32_validate_buffer_size()
203 const struct adc_sequence *sequence) in adc_nxp_s32_start_read_async() argument
211 if (find_msb_set(sequence->channels) > data->num_channels) { in adc_nxp_s32_start_read_async()
216 error = adc_nxp_s32_validate_buffer_size(dev, sequence); in adc_nxp_s32_start_read_async()
223 error = adc_nxp_s32_set_averaging(dev, sequence->oversampling); in adc_nxp_s32_start_read_async()
228 if (sequence->oversampling) { in adc_nxp_s32_start_read_async()
235 error = adc_nxp_s32_set_resolution(dev, sequence->resolution); in adc_nxp_s32_start_read_async()
240 if (sequence->resolution != ADC_SAR_IP_MAX_RESOLUTION) { in adc_nxp_s32_start_read_async()
246 if (sequence->calibrate) { in adc_nxp_s32_start_read_async()
260 mask = (sequence->channels >> i) & 0x1; in adc_nxp_s32_start_read_async()
276 data->buffer = sequence->buffer; in adc_nxp_s32_start_read_async()
278 data->buf_end = data->buffer + sequence->buffer_size / sizeof(uint16_t); in adc_nxp_s32_start_read_async()
281 adc_context_start_read(&data->ctx, sequence); in adc_nxp_s32_start_read_async()
292 data->mask_channels = ctx->sequence.channels; in adc_context_start_sampling()
310 const struct adc_sequence *sequence, in adc_nxp_s32_read_async() argument
317 error = adc_nxp_s32_start_read_async(dev, sequence); in adc_nxp_s32_read_async()
324 const struct adc_sequence *sequence) in adc_nxp_s32_read() argument
326 return adc_nxp_s32_read_async(dev, sequence, NULL); in adc_nxp_s32_read()