Lines Matching refs:je32_to_cpu

337 	if (crc != je32_to_cpu(rx->node_crc)) {  in jffs2_scan_xattr_node()
339 ofs, je32_to_cpu(rx->node_crc), crc); in jffs2_scan_xattr_node()
340 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node()
345 xid = je32_to_cpu(rx->xid); in jffs2_scan_xattr_node()
346 version = je32_to_cpu(rx->version); in jffs2_scan_xattr_node()
350 if (totlen != je32_to_cpu(rx->totlen)) { in jffs2_scan_xattr_node()
352 ofs, je32_to_cpu(rx->totlen), totlen); in jffs2_scan_xattr_node()
353 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node()
372 xd->data_crc = je32_to_cpu(rx->data_crc); in jffs2_scan_xattr_node()
393 if (crc != je32_to_cpu(rr->node_crc)) { in jffs2_scan_xref_node()
395 ofs, je32_to_cpu(rr->node_crc), crc); in jffs2_scan_xref_node()
396 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rr->totlen))))) in jffs2_scan_xref_node()
401 if (PAD(sizeof(struct jffs2_raw_xref)) != je32_to_cpu(rr->totlen)) { in jffs2_scan_xref_node()
403 ofs, je32_to_cpu(rr->totlen), in jffs2_scan_xref_node()
405 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rr->totlen)))) in jffs2_scan_xref_node()
423 ref->ino = je32_to_cpu(rr->ino); in jffs2_scan_xref_node()
424 ref->xid = je32_to_cpu(rr->xid); in jffs2_scan_xref_node()
425 ref->xseqno = je32_to_cpu(rr->xseqno); in jffs2_scan_xref_node()
431 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(rr->totlen)), (void *)ref); in jffs2_scan_xref_node()
491 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock()
492 sumptr = buf + je32_to_cpu(sm->offset); in jffs2_scan_eraseblock()
493 sumlen = c->sector_size - je32_to_cpu(sm->offset); in jffs2_scan_eraseblock()
510 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock()
511 sumlen = c->sector_size - je32_to_cpu(sm->offset); in jffs2_scan_eraseblock()
762 if (hdr_crc != je32_to_cpu(node->hdr_crc)) { in jffs2_scan_eraseblock()
767 je32_to_cpu(node->totlen), in jffs2_scan_eraseblock()
768 je32_to_cpu(node->hdr_crc), in jffs2_scan_eraseblock()
776 if (ofs + je32_to_cpu(node->totlen) > jeb->offset + c->sector_size) { in jffs2_scan_eraseblock()
779 ofs, je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
791 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
793 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
812 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
816 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
819 je32_to_cpu(node->totlen), buf_len, in jffs2_scan_eraseblock()
829 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
834 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
837 je32_to_cpu(node->totlen), buf_len, in jffs2_scan_eraseblock()
848 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
851 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
854 je32_to_cpu(node->totlen), buf_len, in jffs2_scan_eraseblock()
865 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
871 if (je32_to_cpu(node->totlen) != c->cleanmarker_size) { in jffs2_scan_eraseblock()
873 ofs, je32_to_cpu(node->totlen), in jffs2_scan_eraseblock()
893 jffs2_sum_add_padding_mem(s, je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
894 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
896 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
907 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
909 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
920 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
922 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
929 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(node->totlen)), NULL); in jffs2_scan_eraseblock()
933 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
993 uint32_t crc, ino = je32_to_cpu(ri->ino); in jffs2_scan_inode_node()
1008 if (crc != je32_to_cpu(ri->node_crc)) { in jffs2_scan_inode_node()
1010 __func__, ofs, je32_to_cpu(ri->node_crc), crc); in jffs2_scan_inode_node()
1016 PAD(je32_to_cpu(ri->totlen))); in jffs2_scan_inode_node()
1027 jffs2_link_node_ref(c, jeb, ofs | REF_UNCHECKED, PAD(je32_to_cpu(ri->totlen)), ic); in jffs2_scan_inode_node()
1030 je32_to_cpu(ri->ino), je32_to_cpu(ri->version), in jffs2_scan_inode_node()
1031 je32_to_cpu(ri->offset), in jffs2_scan_inode_node()
1032 je32_to_cpu(ri->offset)+je32_to_cpu(ri->dsize)); in jffs2_scan_inode_node()
1034 pseudo_random += je32_to_cpu(ri->version); in jffs2_scan_inode_node()
1058 if (crc != je32_to_cpu(rd->node_crc)) { in jffs2_scan_dirent_node()
1060 __func__, ofs, je32_to_cpu(rd->node_crc), crc); in jffs2_scan_dirent_node()
1062 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen))))) in jffs2_scan_dirent_node()
1067 pseudo_random += je32_to_cpu(rd->version); in jffs2_scan_dirent_node()
1083 if (crc != je32_to_cpu(rd->name_crc)) { in jffs2_scan_dirent_node()
1085 __func__, ofs, je32_to_cpu(rd->name_crc), crc); in jffs2_scan_dirent_node()
1087 fd->name, je32_to_cpu(rd->ino)); in jffs2_scan_dirent_node()
1091 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen))))) in jffs2_scan_dirent_node()
1095 ic = jffs2_scan_make_ino_cache(c, je32_to_cpu(rd->pino)); in jffs2_scan_dirent_node()
1102 PAD(je32_to_cpu(rd->totlen)), ic); in jffs2_scan_dirent_node()
1105 fd->version = je32_to_cpu(rd->version); in jffs2_scan_dirent_node()
1106 fd->ino = je32_to_cpu(rd->ino); in jffs2_scan_dirent_node()