Home
last modified time | relevance | path

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

/trusty/user/base/lib/libc-trusty/test/
Dlibc_test.c883 #define TEST_BUF_SIZE 64 macro
886 uint8_t buf[TEST_BUF_SIZE] = {0}; in TEST_F()
889 int rc = prepare_dma(buf, TEST_BUF_SIZE, DMA_FLAG_TO_DEVICE, &dma); in TEST_F()
893 rc = prepare_dma(buf, TEST_BUF_SIZE, DMA_FLAG_TO_DEVICE, &dma); in TEST_F()
896 rc = finish_dma(buf, TEST_BUF_SIZE, DMA_FLAG_TO_DEVICE); in TEST_F()
901 uint8_t buf_in[TEST_BUF_SIZE] = {0}; in TEST_F()
902 uint8_t buf_out[TEST_BUF_SIZE] = {0}; in TEST_F()
906 int rc = prepare_input_output_dma(buf_in, TEST_BUF_SIZE, buf_out, in TEST_F()
907 TEST_BUF_SIZE, &dma_in, &dma_out); in TEST_F()
911 rc = finish_dma(buf_in, TEST_BUF_SIZE, DMA_FLAG_TO_DEVICE); in TEST_F()
[all …]
/trusty/kernel/app/usercopytest/
Dusercopytest.c38 #define TEST_BUF_SIZE (16) macro
39 #define TEST_BUF1_SIZE (TEST_BUF_SIZE / 2)
40 #define TEST_BUF2_SIZE (TEST_BUF_SIZE - TEST_BUF1_SIZE)
42 #define TEST_BUF_COPY_SIZE (TEST_BUF_SIZE - TEST_BUF_COPY_START - 1)
45 #define TEST_BUF_COPY_LAST (TEST_BUF_SIZE - 1 - 1)
104 if (null_offset >= TEST_BUF1_SIZE && null_offset < TEST_BUF_SIZE) { in usercopy_test_init_buf()
162 char src_buf[TEST_BUF_SIZE]; in TEST_P()
228 EXPECT_EQ(0, checkbuf(src_buf, SRC_DATA, TEST_BUF_SIZE)); in TEST_P()
253 char dest_buf[TEST_BUF_SIZE]; in TEST_P()
275 EXPECT_EQ(0, checkbuf(dest_buf, DEST_DATA, TEST_BUF_SIZE)); in TEST_P()
[all …]