Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_dev.c11 #define TEST_BUFFER_SIZE 64 macro
79 char buf[TEST_BUFFER_SIZE] = "some random test data"; in test_cgroup_dev()
100 test_read("/dev/urandom", buf, TEST_BUFFER_SIZE, in test_cgroup_dev()
101 TEST_BUFFER_SIZE, 0); in test_cgroup_dev()
104 test_write("/dev/null", buf, TEST_BUFFER_SIZE, in test_cgroup_dev()
105 TEST_BUFFER_SIZE, 0); in test_cgroup_dev()
112 test_read("/dev/random", buf, TEST_BUFFER_SIZE, -1, EPERM); in test_cgroup_dev()
115 test_write("/dev/zero", buf, TEST_BUFFER_SIZE, -1, EPERM); in test_cgroup_dev()
/linux/drivers/net/ethernet/broadcom/
H A Dtg3.c17319 #define TEST_BUFFER_SIZE 0x2000 macro
17332 buf = dma_alloc_coherent(&tp->pdev->dev, TEST_BUFFER_SIZE, in tg3_test_dma()
17431 for (i = 0; i < TEST_BUFFER_SIZE / sizeof(u32); i++) in tg3_test_dma()
17435 ret = tg3_do_test_dma(tp, buf, buf_dma, TEST_BUFFER_SIZE, true); in tg3_test_dma()
17444 ret = tg3_do_test_dma(tp, buf, buf_dma, TEST_BUFFER_SIZE, false); in tg3_test_dma()
17452 for (i = 0; i < TEST_BUFFER_SIZE / sizeof(u32); i++) { in tg3_test_dma()
17471 if (i == (TEST_BUFFER_SIZE / sizeof(u32))) { in tg3_test_dma()
17495 dma_free_coherent(&tp->pdev->dev, TEST_BUFFER_SIZE, buf, buf_dma); in tg3_test_dma()