Lines Matching defs:readbuf
29 unsigned char *readbuf = NULL;
84 Reading partial node and it's uncompressed - read into readbuf, check CRC, and copy
85 Reading partial node and it's compressed - read into readbuf, check checksum, decompress to decomprbuf and copy
88 readbuf = buf;
90 readbuf = kmalloc(je32_to_cpu(ri->csize), GFP_KERNEL);
91 if (!readbuf) {
107 decomprbuf = readbuf;
111 readbuf));
113 je32_to_cpu(ri->csize), &readlen, readbuf);
120 crc = crc32(0, readbuf, je32_to_cpu(ri->csize));
130 je32_to_cpu(ri->csize), readbuf, je32_to_cpu(ri->dsize), decomprbuf));
131 ret = jffs2_decompress(c, f, ri->compr | (ri->usercompr << 8), readbuf, decomprbuf, je32_to_cpu(ri->csize), je32_to_cpu(ri->dsize));
142 if(decomprbuf != buf && decomprbuf != readbuf)
145 if(readbuf != buf)
146 kfree(readbuf);