Lines Matching refs:ret
74 int ret = -ENOENT; in add_entry() local
85 ret = 0; in add_entry()
91 ret = -EEXIST; in add_entry()
96 if ( ret == -ENOENT ) in add_entry()
98 ret = 0; in add_entry()
102 if ( !ret ) in add_entry()
111 return ret; in add_entry()
117 int ret; in hypfs_add_dir() local
119 ret = add_entry(parent, &dir->e); in hypfs_add_dir()
120 BUG_ON(nofault && ret); in hypfs_add_dir()
122 return ret; in hypfs_add_dir()
128 int ret; in hypfs_add_leaf() local
131 ret = -EINVAL; in hypfs_add_leaf()
133 ret = add_entry(parent, &leaf->e); in hypfs_add_leaf()
134 BUG_ON(nofault && ret); in hypfs_add_leaf()
136 return ret; in hypfs_add_leaf()
266 long ret = -EINVAL; in hypfs_read() local
277 ret = -EFAULT; in hypfs_read()
281 ret = -ENOBUFS; in hypfs_read()
287 ret = entry->read(entry, uaddr); in hypfs_read()
290 return ret; in hypfs_read()
297 int ret; in hypfs_write_leaf() local
312 ret = -EFAULT; in hypfs_write_leaf()
316 ret = -EINVAL; in hypfs_write_leaf()
322 ret = 0; in hypfs_write_leaf()
328 return ret; in hypfs_write_leaf()
357 int ret; in hypfs_write_custom() local
369 ret = -EFAULT; in hypfs_write_custom()
373 ret = -EDOM; in hypfs_write_custom()
378 ret = p->func(buf); in hypfs_write_custom()
382 return ret; in hypfs_write_custom()
404 int ret; in do_hypfs_op() local
425 ret = hypfs_get_path_user(path, arg1, arg2); in do_hypfs_op()
426 if ( ret ) in do_hypfs_op()
432 ret = -ENOENT; in do_hypfs_op()
439 ret = hypfs_read(entry, arg3, arg4); in do_hypfs_op()
443 ret = hypfs_write(entry, arg3, arg4); in do_hypfs_op()
447 ret = -EOPNOTSUPP; in do_hypfs_op()
454 return ret; in do_hypfs_op()