Lines Matching refs:size
124 size_t i, n, align1, align2, len, size; in do_random_tests() local
135 size = 65536; in do_random_tests()
137 size = 512; in do_random_tests()
138 if (size > page_size) in do_random_tests()
139 size = page_size; in do_random_tests()
142 len = random () & (size - 1); in do_random_tests()
143 align1 = size - len - (random () & 31); in do_random_tests()
144 align2 = size - len - (random () & 31); in do_random_tests()
145 if (align1 > size) in do_random_tests()
147 if (align2 > size) in do_random_tests()
152 align1 = random () & (size / 2 - 1); in do_random_tests()
153 align2 = random () & (size / 2 - 1); in do_random_tests()
154 len = random () & (size - 1); in do_random_tests()
155 if (align1 + len > size) in do_random_tests()
156 align1 = size - len; in do_random_tests()
157 if (align2 + len > size) in do_random_tests()
158 align2 = size - len; in do_random_tests()
161 p1 = buf1 + page_size - size; in do_random_tests()
162 p2 = buf2 + page_size - size; in do_random_tests()
165 if (srcend > size) in do_random_tests()
166 srcend = size; in do_random_tests()
174 if (dstend > size) in do_random_tests()
175 dstend = size; in do_random_tests()
251 size_t size = 0x20000000; in do_test2() local
254 large_buf = mmap ((void*) 0x70000000, size, PROT_READ | PROT_WRITE, in do_test2()
265 munmap ((void *) large_buf, size); in do_test2()
270 if (bytes_move + offset * sizeof (uint32_t) > size) in do_test2()
272 munmap ((void *) large_buf, size); in do_test2()
302 munmap ((void *) large_buf, size); in do_test2()
311 munmap ((void *) large_buf, size); in do_test2()
317 size_t size = bytes_move * 3; in do_test3() local
320 buf = mmap (NULL, size, PROT_READ | PROT_WRITE, in do_test3()
355 munmap ((void *) buf, size); in do_test3()
361 size_t size, repeats, i; in do_test4() local
364 size = bytes_move + MAX(offset1, offset2); in do_test4()
365 buf = mmap(NULL, size, PROT_READ | PROT_WRITE, in do_test4()
399 munmap ((void *) buf, size); in do_test4()