Lines Matching refs:in_buf

118 	char *in_buf = data->buf2;  in copyin_from_kernel()  local
119 return copyin((uintptr_t)data->kern_addr, in_buf, copyio_test_buf_size); in copyin_from_kernel()
126 char *in_buf = data->buf2; in copyin_test() local
133 int err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test()
135 int cmp = memcmp(out_buf, in_buf, copyio_test_buf_size); in copyin_test()
141 err = copyin(data->unmapped_addr, in_buf, copyio_test_buf_size); in copyin_test()
143 err = copyin(data->unmapped_addr - PAGE_SIZE, in_buf, PAGE_SIZE * 2); in copyin_test()
145 err = copyin(data->user_lastpage_addr, in_buf, PAGE_SIZE * 2); in copyin_test()
148 bzero(in_buf, copyio_test_buf_size); in copyin_test()
151 cmp = memcmp(data->kern_addr, in_buf, copyio_test_buf_size); in copyin_test()
157 err = copyin(data->user_addr, in_buf, copyio_test_buf_size); in copyin_test()
213 char *in_buf = data->buf1; in copyinstr_from_kernel() local
215 return copyinstr((user_addr_t)data->kern_addr, in_buf, copyio_test_buf_size, lencopied); in copyinstr_from_kernel()
221 char *in_buf = data->buf1; in copyinstr_test() local
225 bzero(in_buf, copyio_test_buf_size); in copyinstr_test()
227 int err = copyinstr(data->user_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
231 int cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
233 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test()
236 bzero(in_buf, copyio_test_buf_size); in copyinstr_test()
238 err = copyinstr(data->user_addr, in_buf, trunc_size, &lencopied); in copyinstr_test()
241 cmp = memcmp(in_buf, copyio_test_string, trunc_size); in copyinstr_test()
243 cmp = memcmp(in_buf, copyio_test_string, strlen(copyio_test_string)); in copyinstr_test()
246 err = copyinstr(data->unmapped_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
248 err = copyinstr(data->user_lastpage_addr, in_buf, PAGE_SIZE * 2, &lencopied); in copyinstr_test()
251 bzero(in_buf, copyio_test_buf_size); in copyinstr_test()
260 cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
262 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test()
269 err = copyinstr(data->user_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()
279 err = copyinstr(user_unterminated_addr, in_buf, copyio_test_buf_size, &lencopied); in copyinstr_test()