Lines Matching refs:buf
139 static int hypfs_get_path_user(char *buf, in hypfs_get_path_user() argument
146 if ( copy_from_guest(buf, uaddr, ulen) ) in hypfs_get_path_user()
149 if ( memchr(buf, 0, ulen) != buf + ulen - 1 ) in hypfs_get_path_user()
296 char *buf; in hypfs_write_leaf() local
308 buf = xmalloc_array(char, ulen); in hypfs_write_leaf()
309 if ( !buf ) in hypfs_write_leaf()
313 if ( copy_from_guest(buf, uaddr, ulen) ) in hypfs_write_leaf()
319 memchr(buf, 0, ulen) != (buf + ulen - 1) ) in hypfs_write_leaf()
323 memcpy(leaf->u.write_ptr, buf, ulen); in hypfs_write_leaf()
327 xfree(buf); in hypfs_write_leaf()
334 bool buf; in hypfs_write_bool() local
344 if ( copy_from_guest(&buf, uaddr, ulen) ) in hypfs_write_bool()
347 *(bool *)leaf->u.write_ptr = buf; in hypfs_write_bool()
356 char *buf; in hypfs_write_custom() local
365 buf = xzalloc_array(char, ulen); in hypfs_write_custom()
366 if ( !buf ) in hypfs_write_custom()
370 if ( copy_from_guest(buf, uaddr, ulen) ) in hypfs_write_custom()
374 if ( memchr(buf, 0, ulen) != (buf + ulen - 1) ) in hypfs_write_custom()
378 ret = p->func(buf); in hypfs_write_custom()
381 xfree(buf); in hypfs_write_custom()