Lines Matching defs:readbuf
31 unsigned char *readbuf = NULL;
87 Reading partial node and it's uncompressed - read into readbuf, check CRC, and copy
88 Reading partial node and it's compressed - read into readbuf, check checksum, decompress to decomprbuf and copy
91 readbuf = buf;
93 readbuf = kmalloc(je32_to_cpu(ri->csize), GFP_KERNEL);
94 if (!readbuf) {
110 decomprbuf = readbuf;
114 readbuf);
116 je32_to_cpu(ri->csize), &readlen, readbuf);
123 crc = crc32(0, readbuf, je32_to_cpu(ri->csize));
133 je32_to_cpu(ri->csize), readbuf,
135 ret = jffs2_decompress(c, f, ri->compr | (ri->usercompr << 8), readbuf, decomprbuf, je32_to_cpu(ri->csize), je32_to_cpu(ri->dsize));
146 if(decomprbuf != buf && decomprbuf != readbuf)
149 if(readbuf != buf)
150 kfree(readbuf);