Lines Matching refs:buf
173 char buf[9]; in parse_header() local
176 buf[8] = '\0'; in parse_header()
178 memcpy(buf, s, 8); in parse_header()
179 parsed[i] = simple_strtoul(buf, NULL, 16); in parse_header()
222 static void __init read_into(char *buf, unsigned size, enum state next) in read_into() argument
229 collect = collected = buf; in read_into()
427 static long __init write_buffer(char *buf, unsigned long len) in write_buffer() argument
430 victim = buf; in write_buffer()
439 char *buf = (char *) bufv; in flush_buffer() local
444 while ((written = write_buffer(buf, len)) < len && !message) { in flush_buffer()
445 char c = buf[written]; in flush_buffer()
447 buf += written; in flush_buffer()
451 buf += written; in flush_buffer()
464 static char * __init unpack_to_rootfs(char *buf, unsigned long len) in unpack_to_rootfs() argument
483 if (*buf == '0' && !(this_header & 3)) { in unpack_to_rootfs()
485 written = write_buffer(buf, len); in unpack_to_rootfs()
486 buf += written; in unpack_to_rootfs()
490 if (!*buf) { in unpack_to_rootfs()
491 buf++; in unpack_to_rootfs()
497 decompress = decompress_method(buf, len, &compress_name); in unpack_to_rootfs()
500 int res = decompress(buf, len, NULL, flush_buffer, NULL, in unpack_to_rootfs()
516 buf += my_inptr; in unpack_to_rootfs()