Lines Matching refs:sz
125 static void *xenhypfs_inflate(void *in_data, size_t *sz) in xenhypfs_inflate() argument
138 z.avail_in = *sz; in xenhypfs_inflate()
141 for (*sz = 0; ret == Z_OK; *sz += out_sz) { in xenhypfs_inflate()
149 content = realloc(content, *sz + out_sz + 1); in xenhypfs_inflate()
154 memcpy(content + *sz, workbuf, out_sz); in xenhypfs_inflate()
155 *(char *)(content + *sz + out_sz) = 0; in xenhypfs_inflate()
219 int sz, path_sz; in xenhypfs_read_raw() local
228 for (sz = BUF_SIZE;; sz = sizeof(*entry) + entry->content_len) { in xenhypfs_read_raw()
232 retbuf = xencall_alloc_buffer(fshdl->xcall, sz); in xenhypfs_read_raw()
241 (unsigned long)retbuf, sz); in xenhypfs_read_raw()
433 int sz, path_sz; in xenhypfs_write() local
444 sz = BUF_SIZE; in xenhypfs_write()
445 buf = xencall_alloc_buffer(fshdl->xcall, sz); in xenhypfs_write()
470 if (sz < strlen(val) + 1) { in xenhypfs_write()
471 sz = strlen(val) + 1; in xenhypfs_write()
473 buf = xencall_alloc_buffer(fshdl->xcall, sz); in xenhypfs_write()
479 sz = strlen(val) + 1; in xenhypfs_write()
483 sz = entry->content_len; in xenhypfs_write()
488 mask = ~0ULL << (8 * sz); in xenhypfs_write()
495 sz = entry->content_len; in xenhypfs_write()
500 mask = (sz == 8) ? 0 : ~0ULL << (8 * sz); in xenhypfs_write()
507 sz = entry->content_len; in xenhypfs_write()
527 (unsigned long)buf, sz); in xenhypfs_write()