Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/drivers/dma-buf/
H A Dudmabuf.c57 static int create_udmabuf_list(int devfd, int memfd, off64_t memfd_size) in create_udmabuf_list() argument
71 list->list[i].offset = i * (memfd_size / NUM_ENTRIES); in create_udmabuf_list()
109 static int compare_chunks(void *addr1, void *addr2, off64_t memfd_size) in compare_chunks() argument
116 off = i * (memfd_size / NUM_ENTRIES); in compare_chunks()
128 munmap(addr1, memfd_size); in compare_chunks()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dprivate_mem_conversions_test.c378 const size_t memfd_size = per_cpu_size * nr_vcpus; in test_mem_conversions() local
379 const size_t slot_size = memfd_size / nr_memslots; in test_mem_conversions()
390 TEST_ASSERT(slot_size * nr_memslots == memfd_size, in test_mem_conversions()
392 memfd_size, nr_memslots); in test_mem_conversions()
397 memfd = vm_create_guest_memfd(vm, memfd_size, 0); in test_mem_conversions()
431 r = fallocate(memfd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, memfd_size); in test_mem_conversions()
434 r = fallocate(memfd, FALLOC_FL_KEEP_SIZE, 0, memfd_size); in test_mem_conversions()