Lines Matching refs:je32_to_cpu
54 ref_offset(fd->raw), je32_to_cpu(ri->node_crc),
55 crc, je32_to_cpu(ri->dsize), je32_to_cpu(ri->csize),
56 je32_to_cpu(ri->offset), buf);
57 if (crc != je32_to_cpu(ri->node_crc)) {
59 je32_to_cpu(ri->node_crc), crc, ref_offset(fd->raw));
65 if (ri->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(ri->dsize) &&
66 je32_to_cpu(ri->csize)) {
71 D1(if(ofs + len > je32_to_cpu(ri->dsize)) {
73 len, ofs, je32_to_cpu(ri->dsize));
90 if (ri->compr == JFFS2_COMPR_NONE && len == je32_to_cpu(ri->dsize)) {
93 readbuf = kmalloc(je32_to_cpu(ri->csize), GFP_KERNEL);
100 if (len < je32_to_cpu(ri->dsize)) {
101 decomprbuf = kmalloc(je32_to_cpu(ri->dsize), GFP_KERNEL);
113 jffs2_dbg(2, "Read %d bytes to %p\n", je32_to_cpu(ri->csize),
116 je32_to_cpu(ri->csize), &readlen, readbuf);
118 if (!ret && readlen != je32_to_cpu(ri->csize))
123 crc = crc32(0, readbuf, je32_to_cpu(ri->csize));
124 if (crc != je32_to_cpu(ri->data_crc)) {
126 je32_to_cpu(ri->data_crc), crc, ref_offset(fd->raw));
133 je32_to_cpu(ri->csize), readbuf,
134 je32_to_cpu(ri->dsize), decomprbuf);
135 ret = jffs2_decompress(c, f, ri->compr | (ri->usercompr << 8), readbuf, decomprbuf, je32_to_cpu(ri->csize), je32_to_cpu(ri->dsize));
142 if (len < je32_to_cpu(ri->dsize)) {