Lines Matching refs:dtr
74 static bool dmm_buffer_in_region_check(struct dmm_test_region *dtr, void *buf, size_t size) in dmm_buffer_in_region_check() argument
78 return ((start >= dtr->start) && ((start + size) <= (dtr->start + dtr->size))); in dmm_buffer_in_region_check()
81 static void dmm_check_output_buffer(struct dmm_test_region *dtr, uint32_t *fill_value, in dmm_check_output_buffer() argument
88 retval = dmm_buffer_out_prepare(dtr->mem_reg, data, size, &buf); in dmm_check_output_buffer()
100 zassert_true(dmm_buffer_in_region_check(dtr, buf, size)); in dmm_check_output_buffer()
107 retval = dmm_buffer_out_release(dtr->mem_reg, buf); in dmm_check_output_buffer()
111 static void dmm_check_input_buffer(struct dmm_test_region *dtr, uint32_t *fill_value, in dmm_check_input_buffer() argument
120 retval = dmm_buffer_in_prepare(dtr->mem_reg, data, size, &buf); in dmm_check_input_buffer()
132 zassert_true(dmm_buffer_in_region_check(dtr, buf, size)); in dmm_check_input_buffer()
147 retval = dmm_buffer_in_release(dtr->mem_reg, data, size, buf); in dmm_check_input_buffer()
221 const struct dmm_test_region *dtr; in dmm_test_prepare() local
224 dtr = &dmm_test_regions[i]; in dmm_test_prepare()
225 memset((void *)dtr->start, 0x00, dtr->size); in dmm_test_prepare()