Lines Matching refs:totlen
333 uint32_t xid, version, totlen, crc; in jffs2_scan_xattr_node() local
340 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node()
348 totlen = PAD(sizeof(struct jffs2_raw_xattr) 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()
364 = jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, NULL); in jffs2_scan_xattr_node()
374 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, (void *)xd); in jffs2_scan_xattr_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()
431 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(rr->totlen)), (void *)ref); in jffs2_scan_xref_node()
759 crcnode.totlen = node->totlen; in jffs2_scan_eraseblock()
767 je32_to_cpu(node->totlen), 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()
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()
1062 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen))))) 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()
1102 PAD(je32_to_cpu(rd->totlen)), ic); in jffs2_scan_dirent_node()