Lines Matching refs:len
76 do_test (size_t align, size_t pos, size_t len, int seek_char, int max_char) in do_test() argument
86 if ( (align + len) * sizeof (CHAR) >= page_size) in do_test()
89 for (i = 0; i < len; ++i) in do_test()
96 if ((i > pos || pos >= len) && buf[align + i] == seek_char) in do_test()
99 buf[align + len] = 0; in do_test()
101 if (pos < len) in do_test()
107 result = (CHAR *) (buf + align + len); in do_test()
118 size_t i, j, n, align, pos, len; in do_random_tests() local
134 len = random () & 511; in do_random_tests()
137 if (pos >= len) in do_random_tests()
138 len = pos + (random () & 7); in do_random_tests()
139 if (len + align >= 512) in do_random_tests()
140 len = 511 - align - (random () & 7); in do_random_tests()
142 if (seek_char && pos == len) in do_random_tests()
147 ++len; in do_random_tests()
149 j = len + align + 64; in do_random_tests()
157 else if (i == len + align) in do_random_tests()
162 if (((i > pos + align && i < len + align) || pos > len) in do_random_tests()
165 if (i < len + align && !p[i]) in do_random_tests()
174 if (pos <= len) in do_random_tests()
177 result = (CHAR *) (p + len + align); in do_random_tests()
185 n, impl->name, align, seek_char, len, pos, in do_random_tests()