Lines Matching refs:len
55 #define N_ALIGN(len) ((((len) + 1) & ~3) + 2) argument
413 static long __init write_buffer(char *buf, unsigned long len) in write_buffer() argument
415 byte_count = len; in write_buffer()
420 return len - byte_count; in write_buffer()
423 static long __init flush_buffer(void *bufv, unsigned long len) in flush_buffer() argument
427 long origLen = len; in flush_buffer()
430 while ((written = write_buffer(buf, len)) < len && !message) { in flush_buffer()
434 len -= written; in flush_buffer()
438 len -= written; in flush_buffer()
450 static char * __init unpack_to_rootfs(char *buf, unsigned long len) in unpack_to_rootfs() argument
467 while (!message && len) { in unpack_to_rootfs()
471 written = write_buffer(buf, len); in unpack_to_rootfs()
473 len -= written; in unpack_to_rootfs()
478 len--; in unpack_to_rootfs()
483 decompress = decompress_method(buf, len, &compress_name); in unpack_to_rootfs()
486 int res = decompress(buf, len, NULL, flush_buffer, NULL, in unpack_to_rootfs()
503 len -= my_inptr; in unpack_to_rootfs()