Home
last modified time | relevance | path

Searched refs:needed_buffer_size (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/drivers/adc/
Dadc_nrfx_adc.c136 size_t needed_buffer_size; in check_buffer_size() local
138 needed_buffer_size = active_channels * sizeof(nrf_adc_value_t); in check_buffer_size()
140 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
143 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
145 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
Dadc_gecko.c75 size_t needed_buffer_size; in adc_gecko_check_buffer_size() local
77 needed_buffer_size = active_channels * sizeof(uint16_t); in adc_gecko_check_buffer_size()
80 needed_buffer_size *= (1 + sequence->options->extra_samplings); in adc_gecko_check_buffer_size()
83 if (sequence->buffer_size < needed_buffer_size) { in adc_gecko_check_buffer_size()
85 sequence->buffer_size, needed_buffer_size); in adc_gecko_check_buffer_size()
Dadc_sam_afec.c175 size_t needed_buffer_size; in check_buffer_size() local
176 needed_buffer_size = active_channels * sizeof(uint16_t); in check_buffer_size()
178 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
180 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
182 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
Dadc_smartbond_gpadc.c178 size_t needed_buffer_size; in check_buffer_size() local
180 needed_buffer_size = active_channels * sizeof(uint16_t); in check_buffer_size()
182 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
185 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
187 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
Dadc_smartbond_sdadc.c184 size_t needed_buffer_size; in check_buffer_size() local
186 needed_buffer_size = active_channels * sizeof(uint16_t); in check_buffer_size()
188 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
191 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
193 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
Dadc_ite_it8xxx2.c265 size_t needed_buffer_size; in check_buffer_size() local
267 needed_buffer_size = active_channels * sizeof(uint16_t); in check_buffer_size()
269 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
272 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
274 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
Dadc_ambiq.c129 size_t needed_buffer_size; in adc_ambiq_check_buffer_size() local
131 needed_buffer_size = active_channels * sizeof(uint16_t); in adc_ambiq_check_buffer_size()
134 needed_buffer_size *= (1 + sequence->options->extra_samplings); in adc_ambiq_check_buffer_size()
137 if (sequence->buffer_size < needed_buffer_size) { in adc_ambiq_check_buffer_size()
139 needed_buffer_size); in adc_ambiq_check_buffer_size()
Diadc_gecko.c78 size_t needed_buffer_size; in adc_gecko_check_buffer_size() local
80 needed_buffer_size = active_channels * sizeof(uint16_t); in adc_gecko_check_buffer_size()
83 needed_buffer_size *= (1 + sequence->options->extra_samplings); in adc_gecko_check_buffer_size()
86 if (sequence->buffer_size < needed_buffer_size) { in adc_gecko_check_buffer_size()
88 sequence->buffer_size, needed_buffer_size); in adc_gecko_check_buffer_size()
Dadc_sam.c184 size_t needed_buffer_size = active_channels * sizeof(uint16_t); in check_buffer_size() local
187 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
190 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
192 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
Dadc_sam0.c302 size_t needed_buffer_size; in check_buffer_size() local
304 needed_buffer_size = active_channels * sizeof(uint16_t); in check_buffer_size()
306 needed_buffer_size *= (1U + sequence->options->extra_samplings); in check_buffer_size()
309 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
311 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
Dadc_nrfx_saadc.c426 size_t needed_buffer_size; in check_buffer_size() local
428 needed_buffer_size = samples_to_bytes(sequence, active_channels); in check_buffer_size()
431 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
434 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
436 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
Dadc_stm32.c297 size_t needed_buffer_size; in check_buffer() local
299 needed_buffer_size = active_channels * sizeof(uint16_t); in check_buffer()
302 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer()
305 if (sequence->buffer_size < needed_buffer_size) { in check_buffer()
307 sequence->buffer_size, needed_buffer_size); in check_buffer()
313 if (!buf_in_nocache((uintptr_t)sequence->buffer, needed_buffer_size)) { in check_buffer()