Searched refs:needed_buffer_size (Results 1 – 12 of 12) sorted by relevance
/Zephyr-latest/drivers/adc/ |
D | adc_nrfx_adc.c | 136 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()
|
D | adc_gecko.c | 75 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()
|
D | adc_sam_afec.c | 175 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()
|
D | adc_smartbond_gpadc.c | 178 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()
|
D | adc_smartbond_sdadc.c | 184 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()
|
D | adc_ite_it8xxx2.c | 265 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()
|
D | adc_ambiq.c | 129 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()
|
D | iadc_gecko.c | 78 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()
|
D | adc_sam.c | 184 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()
|
D | adc_sam0.c | 302 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()
|
D | adc_nrfx_saadc.c | 426 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()
|
D | adc_stm32.c | 297 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()
|