Home
last modified time | relevance | path

Searched refs:user_length (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/soc/nordic/common/
Ddmm.h105 int dmm_buffer_out_prepare(void *region, void const *user_buffer, size_t user_length,
142 int dmm_buffer_in_prepare(void *region, void *user_buffer, size_t user_length, void **buffer_in);
164 int dmm_buffer_in_release(void *region, void *user_buffer, size_t user_length, void *buffer_in);
179 size_t user_length, void **buffer_out)
182 ARG_UNUSED(user_length);
194 static ALWAYS_INLINE int dmm_buffer_in_prepare(void *region, void *user_buffer, size_t user_length,
198 ARG_UNUSED(user_length);
203 static ALWAYS_INLINE int dmm_buffer_in_release(void *region, void *user_buffer, size_t user_length,
208 ARG_UNUSED(user_length);
Ddmm.c82 static bool is_user_buffer_correctly_preallocated(void const *user_buffer, size_t user_length, in is_user_buffer_correctly_preallocated() argument
87 if (!is_buffer_within_region(addr, user_length, region->dt_addr, region->dt_size)) { in is_user_buffer_correctly_preallocated()
125 int dmm_buffer_out_prepare(void *region, void const *user_buffer, size_t user_length, in dmm_buffer_out_prepare() argument
130 if (user_length == 0) { in dmm_buffer_out_prepare()
147 if (is_user_buffer_correctly_preallocated(user_buffer, user_length, dh->region)) { in dmm_buffer_out_prepare()
155 *buffer_out = dmm_buffer_alloc(dh, user_length); in dmm_buffer_out_prepare()
161 memcpy(*buffer_out, user_buffer, user_length); in dmm_buffer_out_prepare()
169 sys_cache_data_flush_range(*buffer_out, user_length); in dmm_buffer_out_prepare()
199 int dmm_buffer_in_prepare(void *region, void *user_buffer, size_t user_length, void **buffer_in) in dmm_buffer_in_prepare() argument
203 if (user_length == 0) { in dmm_buffer_in_prepare()
[all …]