Lines Matching refs:totlen
332 uint32_t xid, version, totlen, crc; in jffs2_scan_xattr_node() local
339 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node()
347 totlen = PAD(sizeof(struct jffs2_raw_xattr) in jffs2_scan_xattr_node()
349 if (totlen != je32_to_cpu(rx->totlen)) { in jffs2_scan_xattr_node()
351 ofs, je32_to_cpu(rx->totlen), totlen); in jffs2_scan_xattr_node()
352 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node()
363 = jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, NULL); in jffs2_scan_xattr_node()
373 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, (void *)xd); in jffs2_scan_xattr_node()
395 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rr->totlen))))) in jffs2_scan_xref_node()
400 if (PAD(sizeof(struct jffs2_raw_xref)) != je32_to_cpu(rr->totlen)) { in jffs2_scan_xref_node()
402 ofs, je32_to_cpu(rr->totlen), in jffs2_scan_xref_node()
404 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rr->totlen)))) in jffs2_scan_xref_node()
430 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(rr->totlen)), (void *)ref); in jffs2_scan_xref_node()
750 crcnode.totlen = node->totlen; in jffs2_scan_eraseblock()
758 je32_to_cpu(node->totlen), in jffs2_scan_eraseblock()
767 if (ofs + je32_to_cpu(node->totlen) > jeb->offset + c->sector_size) { in jffs2_scan_eraseblock()
770 ofs, je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
782 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
784 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
803 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
807 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
810 je32_to_cpu(node->totlen), buf_len, in jffs2_scan_eraseblock()
820 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
825 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
828 je32_to_cpu(node->totlen), buf_len, in jffs2_scan_eraseblock()
839 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
842 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
845 je32_to_cpu(node->totlen), buf_len, in jffs2_scan_eraseblock()
856 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
862 if (je32_to_cpu(node->totlen) != c->cleanmarker_size) { in jffs2_scan_eraseblock()
864 ofs, je32_to_cpu(node->totlen), in jffs2_scan_eraseblock()
884 jffs2_sum_add_padding_mem(s, je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
885 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
887 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
898 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
900 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
911 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
913 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
920 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(node->totlen)), NULL); in jffs2_scan_eraseblock()
924 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
1007 PAD(je32_to_cpu(ri->totlen))); in jffs2_scan_inode_node()
1018 jffs2_link_node_ref(c, jeb, ofs | REF_UNCHECKED, PAD(je32_to_cpu(ri->totlen)), ic); in jffs2_scan_inode_node()
1053 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen))))) in jffs2_scan_dirent_node()
1082 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen))))) in jffs2_scan_dirent_node()
1093 PAD(je32_to_cpu(rd->totlen)), ic); in jffs2_scan_dirent_node()