Lines Matching refs:buf
160 char buf[9]; in parse_header() local
163 buf[8] = '\0'; in parse_header()
165 memcpy(buf, s, 8); in parse_header()
166 parsed[i] = simple_strtoul(buf, NULL, 16); in parse_header()
209 static void __init read_into(char *buf, unsigned size, enum state next) in read_into() argument
216 collect = collected = buf; in read_into()
414 static long __init write_buffer(char *buf, unsigned long len) in write_buffer() argument
417 victim = buf; in write_buffer()
426 char *buf = (char *) bufv; in flush_buffer() local
431 while ((written = write_buffer(buf, len)) < len && !message) { in flush_buffer()
432 char c = buf[written]; in flush_buffer()
434 buf += written; in flush_buffer()
438 buf += written; in flush_buffer()
451 static char * __init unpack_to_rootfs(char *buf, unsigned long len) in unpack_to_rootfs() argument
470 if (*buf == '0' && !(this_header & 3)) { in unpack_to_rootfs()
472 written = write_buffer(buf, len); in unpack_to_rootfs()
473 buf += written; in unpack_to_rootfs()
477 if (!*buf) { in unpack_to_rootfs()
478 buf++; in unpack_to_rootfs()
484 decompress = decompress_method(buf, len, &compress_name); in unpack_to_rootfs()
487 int res = decompress(buf, len, NULL, flush_buffer, NULL, in unpack_to_rootfs()
503 buf += my_inptr; in unpack_to_rootfs()