Lines Matching refs:in_buf
119 char *in_buf = data->buf2; in copyin_from_kernel() local
120 return copyin((uintptr_t)data->kern_addr, in_buf, copyio_test_buf_size); in copyin_from_kernel()
127 char *in_buf = data->buf2; in copyin_test() local
134 int err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test()
136 int cmp = memcmp(out_buf, in_buf, copyio_test_buf_size); in copyin_test()
142 err = copyin(data->unmapped_addr, in_buf, copyio_test_buf_size); in copyin_test()
144 err = copyin(data->unmapped_addr - PAGE_SIZE, in_buf, PAGE_SIZE * 2); in copyin_test()
146 err = copyin(data->user_lastpage_addr, in_buf, PAGE_SIZE * 2); in copyin_test()
149 bzero(in_buf, copyio_test_buf_size); in copyin_test()
152 cmp = memcmp(data->kern_addr, in_buf, copyio_test_buf_size); in copyin_test()
158 err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test()
214 char *in_buf = data->buf1; in copyinstr_from_kernel() local
216 return copyinstr((user_addr_t)data->kern_addr, in_buf, copyio_test_buf_size, lencopied); in copyinstr_from_kernel()
222 char *in_buf = data->buf1; in copyinstr_test() local
226 bzero(in_buf, copyio_test_buf_size); in copyinstr_test()
228 int err = copyinstr(data->user_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
232 int cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
234 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test()
237 bzero(in_buf, copyio_test_buf_size); in copyinstr_test()
239 err = copyinstr(data->user_addr, in_buf, trunc_size, &lencopied); in copyinstr_test()
242 cmp = memcmp(in_buf, copyio_test_string, trunc_size); in copyinstr_test()
244 cmp = memcmp(in_buf, copyio_test_string, strlen(copyio_test_string)); in copyinstr_test()
247 err = copyinstr(data->unmapped_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
249 err = copyinstr(data->user_lastpage_addr, in_buf, PAGE_SIZE * 2, &lencopied); in copyinstr_test()
252 bzero(in_buf, copyio_test_buf_size); in copyinstr_test()
261 cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
263 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test()
270 err = copyinstr(data->user_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
280 err = copyinstr(user_unterminated_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()