Lines Matching full:buffer_size
44 BUFFER_SIZE = PAGE_SIZE * 16; in setup_sizes()
45 rc = posix_memalign(&buffer, HUGEPAGE_SIZE, BUFFER_SIZE); in setup_sizes()
49 vrc = mmap(buffer, BUFFER_SIZE, PROT_READ | PROT_WRITE, in setup_sizes()
860 .num_iovas = BUFFER_SIZE / sizeof(*ranges), in TEST_F()
878 memset(ranges, 0, BUFFER_SIZE); in TEST_F()
890 ranges_cmd.num_iovas = BUFFER_SIZE / sizeof(*ranges); in TEST_F()
905 memset(ranges, 0, BUFFER_SIZE); in TEST_F()
964 .length = BUFFER_SIZE, in TEST_F()
971 .length = BUFFER_SIZE, in TEST_F()
980 for (npages = 1; npages < BUFFER_SIZE / PAGE_SIZE; npages++) { in TEST_F()
987 test_ioctl_ioas_map_fixed(buffer, BUFFER_SIZE, in TEST_F()
1025 test_ioctl_ioas_unmap(MOCK_APERTURE_START, BUFFER_SIZE); in TEST_F()
1036 .length = BUFFER_SIZE, in TEST_F()
1042 test_ioctl_ioas_map_fixed(buffer, BUFFER_SIZE, MOCK_APERTURE_START); in TEST_F()
1048 test_ioctl_ioas_unmap(MOCK_APERTURE_START, BUFFER_SIZE); in TEST_F()
1071 for (i = 0; i != BUFFER_SIZE / sizeof(*buffer16); i++) in check_access_rw()
1106 tmp2 = malloc(BUFFER_SIZE); in check_access_rw()
1109 access_cmd.access_rw.length = BUFFER_SIZE; in check_access_rw()
1124 test_ioctl_ioas_map(buffer, BUFFER_SIZE, &iova); in TEST_F()
1128 test_ioctl_ioas_unmap(iova, BUFFER_SIZE); in TEST_F()
1141 test_ioctl_ioas_map_fixed(buffer, BUFFER_SIZE, iova); in TEST_F()
1143 test_ioctl_ioas_unmap(iova, BUFFER_SIZE); in TEST_F()
1157 test_ioctl_ioas_map_fixed(buffer, BUFFER_SIZE, in TEST_F()
1205 test_ioctl_ioas_map_fixed(buffer, BUFFER_SIZE, in TEST_F()
1334 last_iova = MOCK_APERTURE_START + BUFFER_SIZE - 1; in TEST_F()
1336 last_iova = MOCK_APERTURE_START + BUFFER_SIZE - 2; in TEST_F()
1606 .access_pages = { .length = BUFFER_SIZE, in TEST_F()
1614 .length = BUFFER_SIZE, in TEST_F()
1620 .length = BUFFER_SIZE, in TEST_F()
1626 test_ioctl_ioas_map_id(ioas_id, buffer, BUFFER_SIZE, in TEST_F()
1638 check_mock_iova(buffer, MOCK_APERTURE_START, BUFFER_SIZE); in TEST_F()
1642 test_ioctl_ioas_map_id(new_ioas_id, buffer, BUFFER_SIZE, in TEST_F()
1657 check_mock_iova(buffer, MOCK_APERTURE_START, BUFFER_SIZE); in TEST_F()
1741 unsigned long buffer_size; in FIXTURE_VARIANT() local
1752 if (variant->buffer_size < MOCK_PAGE_SIZE) { in FIXTURE_SETUP()
1754 "Skipping buffer_size=%lu, less than MOCK_PAGE_SIZE=%lu", in FIXTURE_SETUP()
1755 variant->buffer_size, MOCK_PAGE_SIZE); in FIXTURE_SETUP()
1761 rc = posix_memalign(&self->buffer, HUGEPAGE_SIZE, variant->buffer_size); in FIXTURE_SETUP()
1763 SKIP(return, "Skipping buffer_size=%lu due to errno=%d", in FIXTURE_SETUP()
1764 variant->buffer_size, rc); in FIXTURE_SETUP()
1776 vrc = mmap(self->buffer, variant->buffer_size, PROT_READ | PROT_WRITE, in FIXTURE_SETUP()
1781 self->bitmap_size = variant->buffer_size / self->page_size; in FIXTURE_SETUP()
1805 munmap(self->buffer, variant->buffer_size); in FIXTURE_TEARDOWN()
1813 .buffer_size = 8UL * 1024UL, in FIXTURE_VARIANT_ADD()
1819 .buffer_size = 16UL * 1024UL, in FIXTURE_VARIANT_ADD()
1825 .buffer_size = 64UL * 1024UL, in FIXTURE_VARIANT_ADD()
1831 .buffer_size = 128UL * 1024UL, in FIXTURE_VARIANT_ADD()
1837 .buffer_size = 320UL * 1024UL, in FIXTURE_VARIANT_ADD()
1843 .buffer_size = 64UL * 1024UL * 1024UL, in FIXTURE_VARIANT_ADD()
1849 .buffer_size = 64UL * 1024UL * 1024UL, in FIXTURE_VARIANT_ADD()
1856 .buffer_size = 128UL * 1024UL * 1024UL, in FIXTURE_VARIANT_ADD()
1862 .buffer_size = 128UL * 1024UL * 1024UL, in FIXTURE_VARIANT_ADD()
1934 variant->buffer_size, MOCK_APERTURE_START); in TEST_F()
1941 test_mock_dirty_bitmaps(hwpt_id, variant->buffer_size, in TEST_F()
1946 test_mock_dirty_bitmaps(hwpt_id, variant->buffer_size, in TEST_F()
1952 test_mock_dirty_bitmaps(hwpt_id, variant->buffer_size, in TEST_F()
1971 variant->buffer_size, MOCK_APERTURE_START); in TEST_F()
1978 test_mock_dirty_bitmaps(hwpt_id, variant->buffer_size, in TEST_F()
1985 test_mock_dirty_bitmaps(hwpt_id, variant->buffer_size, in TEST_F()
1993 test_mock_dirty_bitmaps(hwpt_id, variant->buffer_size, in TEST_F()
2186 memset(buffer + _cmd_len, 0xAA, BUFFER_SIZE - _cmd_len); \
2189 BUFFER_SIZE - _cmd_len)); \
2301 .size = BUFFER_SIZE, in TEST_F()
2306 .size = BUFFER_SIZE, in TEST_F()
2309 unsigned long pages_iova[BUFFER_SIZE / PAGE_SIZE]; in TEST_F()
2315 ASSERT_EQ(BUFFER_SIZE, unmap_cmd.size); in TEST_F()
2325 ASSERT_EQ(BUFFER_SIZE, unmap_cmd.size); in TEST_F()