Lines Matching refs:ret
97 int ret = -1; in xenhypfs_get_pathbuf() local
119 ret = path_sz; in xenhypfs_get_pathbuf()
122 return ret; in xenhypfs_get_pathbuf()
131 int ret; in xenhypfs_inflate() local
139 ret = inflateInit2(&z, MAX_WBITS + 32); /* 32 == gzip */ in xenhypfs_inflate()
141 for (*sz = 0; ret == Z_OK; *sz += out_sz) { in xenhypfs_inflate()
144 ret = inflate(&z, Z_SYNC_FLUSH); in xenhypfs_inflate()
145 if (ret != Z_OK && ret != Z_STREAM_END) in xenhypfs_inflate()
151 ret = Z_MEM_ERROR; in xenhypfs_inflate()
158 if (ret != Z_STREAM_END) { in xenhypfs_inflate()
217 int ret; in xenhypfs_read_raw() local
221 ret = xenhypfs_get_pathbuf(fshdl, path, &path_buf); in xenhypfs_read_raw()
222 if (ret < 0) in xenhypfs_read_raw()
225 path_sz = ret; in xenhypfs_read_raw()
238 ret = xencall5(fshdl->xcall, __HYPERVISOR_hypfs_op, XEN_HYPFS_OP_read, in xenhypfs_read_raw()
241 if (!ret) in xenhypfs_read_raw()
273 ret = errno; in xenhypfs_read_raw()
276 errno = ret; in xenhypfs_read_raw()
285 int ret; in xenhypfs_read() local
319 ret = asprintf(&ret_buf, "%"PRIu8, *(uint8_t *)buf); in xenhypfs_read()
322 ret = asprintf(&ret_buf, "%"PRIu16, *(uint16_t *)buf); in xenhypfs_read()
325 ret = asprintf(&ret_buf, "%"PRIu32, *(uint32_t *)buf); in xenhypfs_read()
328 ret = asprintf(&ret_buf, "%"PRIu64, *(uint64_t *)buf); in xenhypfs_read()
331 ret = -1; in xenhypfs_read()
334 if (ret < 0) in xenhypfs_read()
340 ret = asprintf(&ret_buf, "%"PRId8, *(int8_t *)buf); in xenhypfs_read()
343 ret = asprintf(&ret_buf, "%"PRId16, *(int16_t *)buf); in xenhypfs_read()
346 ret = asprintf(&ret_buf, "%"PRId32, *(int32_t *)buf); in xenhypfs_read()
349 ret = asprintf(&ret_buf, "%"PRId64, *(int64_t *)buf); in xenhypfs_read()
352 ret = -1; in xenhypfs_read()
355 if (ret < 0) in xenhypfs_read()
361 ret = errno; in xenhypfs_read()
364 errno = ret; in xenhypfs_read()
374 int ret; in xenhypfs_readdir() local
419 ret = errno; in xenhypfs_readdir()
422 errno = ret; in xenhypfs_readdir()
431 int ret, saved_errno; in xenhypfs_write() local
436 ret = xenhypfs_get_pathbuf(fshdl, path, &path_buf); in xenhypfs_write()
437 if (ret < 0) in xenhypfs_write()
440 path_sz = ret; in xenhypfs_write()
441 ret = -1; in xenhypfs_write()
450 ret = xencall5(fshdl->xcall, __HYPERVISOR_hypfs_op, XEN_HYPFS_OP_read, in xenhypfs_write()
453 if (ret && errno != ENOBUFS) in xenhypfs_write()
455 ret = -1; in xenhypfs_write()
523 ret = xencall5(fshdl->xcall, __HYPERVISOR_hypfs_op, in xenhypfs_write()
533 return ret; in xenhypfs_write()