Lines Matching refs:in_buf

122 	char *in_buf = data->buf2;  in copyin_from_kernel()  local
123 return copyin((uintptr_t)data->kern_addr, in_buf, copyio_test_buf_size); in copyin_from_kernel()
130 char *in_buf = data->buf2; in copyin_test() local
137 int err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test()
139 int cmp = memcmp(out_buf, in_buf, copyio_test_buf_size); in copyin_test()
145 err = copyin(data->unmapped_addr, in_buf, copyio_test_buf_size); in copyin_test()
147 err = copyin(data->unmapped_addr - PAGE_SIZE, in_buf, PAGE_SIZE * 2); in copyin_test()
149 err = copyin(data->user_lastpage_addr, in_buf, PAGE_SIZE * 2); in copyin_test()
152 bzero(in_buf, copyio_test_buf_size); in copyin_test()
155 cmp = memcmp(data->kern_addr, in_buf, copyio_test_buf_size); in copyin_test()
161 err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test()
217 char *in_buf = data->buf1; in copyinstr_from_kernel() local
219 return copyinstr((user_addr_t)data->kern_addr, in_buf, copyio_test_buf_size, lencopied); in copyinstr_from_kernel()
225 char *in_buf = data->buf1; in copyinstr_test() local
229 bzero(in_buf, copyio_test_buf_size); in copyinstr_test()
231 int err = copyinstr(data->user_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
235 int cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
237 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test()
240 bzero(in_buf, copyio_test_buf_size); in copyinstr_test()
242 err = copyinstr(data->user_addr, in_buf, trunc_size, &lencopied); in copyinstr_test()
245 cmp = memcmp(in_buf, copyio_test_string, trunc_size); in copyinstr_test()
247 cmp = memcmp(in_buf, copyio_test_string, strlen(copyio_test_string)); in copyinstr_test()
250 err = copyinstr(data->unmapped_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
252 err = copyinstr(data->user_lastpage_addr, in_buf, PAGE_SIZE * 2, &lencopied); in copyinstr_test()
255 bzero(in_buf, copyio_test_buf_size); in copyinstr_test()
264 cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
266 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test()
273 err = copyinstr(data->user_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
283 err = copyinstr(user_unterminated_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()