Lines Matching refs:ulen
141 unsigned long ulen) in hypfs_get_path_user() argument
143 if ( ulen > XEN_HYPFS_MAX_PATHLEN ) in hypfs_get_path_user()
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()
263 XEN_GUEST_HANDLE_PARAM(void) uaddr, unsigned long ulen) in hypfs_read() argument
268 if ( ulen < sizeof(e) ) in hypfs_read()
282 if ( ulen < entry->size + sizeof(e) ) in hypfs_read()
294 XEN_GUEST_HANDLE_PARAM(void) uaddr, unsigned int ulen) in hypfs_write_leaf() argument
301 if ( ulen > leaf->e.max_size ) in hypfs_write_leaf()
305 leaf->e.type != XEN_HYPFS_TYPE_BLOB && ulen != leaf->e.size ) in hypfs_write_leaf()
308 buf = xmalloc_array(char, ulen); 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()
324 leaf->e.size = ulen; in hypfs_write_leaf()
332 XEN_GUEST_HANDLE_PARAM(void) uaddr, unsigned int ulen) in hypfs_write_bool() argument
341 if ( ulen != leaf->e.max_size ) in hypfs_write_bool()
344 if ( copy_from_guest(&buf, uaddr, ulen) ) in hypfs_write_bool()
353 XEN_GUEST_HANDLE_PARAM(void) uaddr, unsigned int ulen) in hypfs_write_custom() argument
362 if ( ulen > MAX_PARAM_SIZE ) in hypfs_write_custom()
365 buf = xzalloc_array(char, ulen); 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()
386 XEN_GUEST_HANDLE_PARAM(void) uaddr, unsigned long ulen) in hypfs_write() argument
397 return entry->write(l, uaddr, ulen); in hypfs_write()