Lines Matching refs:je32_to_cpu
51 ref_offset(fd->raw), je32_to_cpu(ri->node_crc),
52 crc, je32_to_cpu(ri->dsize), je32_to_cpu(ri->csize),
53 je32_to_cpu(ri->offset), buf));
54 if (crc != je32_to_cpu(ri->node_crc)) {
56 je32_to_cpu(ri->node_crc), crc, ref_offset(fd->raw));
62 if (ri->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(ri->dsize) &&
63 je32_to_cpu(ri->csize)) {
68 D1(if(ofs + len > je32_to_cpu(ri->dsize)) {
70 len, ofs, je32_to_cpu(ri->dsize));
87 if (ri->compr == JFFS2_COMPR_NONE && len == je32_to_cpu(ri->dsize)) {
90 readbuf = kmalloc(je32_to_cpu(ri->csize), GFP_KERNEL);
97 if (len < je32_to_cpu(ri->dsize)) {
98 decomprbuf = kmalloc(je32_to_cpu(ri->dsize), GFP_KERNEL);
110 D2(printk(KERN_DEBUG "Read %d bytes to %p\n", je32_to_cpu(ri->csize),
113 je32_to_cpu(ri->csize), &readlen, readbuf);
115 if (!ret && readlen != je32_to_cpu(ri->csize))
120 crc = crc32(0, readbuf, je32_to_cpu(ri->csize));
121 if (crc != je32_to_cpu(ri->data_crc)) {
123 je32_to_cpu(ri->data_crc), crc, ref_offset(fd->raw));
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));
138 if (len < je32_to_cpu(ri->dsize)) {