• Home
  • Raw
  • Download

Lines Matching refs:node

364 		raw->next_in_ino = xd->node->next_in_ino;  in jffs2_scan_xattr_node()
365 xd->node->next_in_ino = raw; in jffs2_scan_xattr_node()
444 struct jffs2_unknown_node *node; in jffs2_scan_eraseblock() local
638 if (jeb->offset + c->sector_size < ofs + sizeof(*node)) { in jffs2_scan_eraseblock()
642 sizeof(*node)); in jffs2_scan_eraseblock()
648 if (buf_ofs + buf_len < ofs + sizeof(*node)) { in jffs2_scan_eraseblock()
659 node = (struct jffs2_unknown_node *)&buf[ofs-buf_ofs]; in jffs2_scan_eraseblock()
721 if (ofs == jeb->offset && je16_to_cpu(node->magic) == KSAMTIB_CIGAM_2SFFJ) { in jffs2_scan_eraseblock()
729 if (je16_to_cpu(node->magic) == JFFS2_DIRTY_BITMASK) { in jffs2_scan_eraseblock()
736 if (je16_to_cpu(node->magic) == JFFS2_OLD_MAGIC_BITMASK) { in jffs2_scan_eraseblock()
744 if (je16_to_cpu(node->magic) != JFFS2_MAGIC_BITMASK) { in jffs2_scan_eraseblock()
749 je16_to_cpu(node->magic)); in jffs2_scan_eraseblock()
756 crcnode.magic = node->magic; in jffs2_scan_eraseblock()
757 crcnode.nodetype = cpu_to_je16( je16_to_cpu(node->nodetype) | JFFS2_NODE_ACCURATE); in jffs2_scan_eraseblock()
758 crcnode.totlen = node->totlen; in jffs2_scan_eraseblock()
761 if (hdr_crc != je32_to_cpu(node->hdr_crc)) { in jffs2_scan_eraseblock()
764 ofs, je16_to_cpu(node->magic), in jffs2_scan_eraseblock()
765 je16_to_cpu(node->nodetype), in jffs2_scan_eraseblock()
766 je32_to_cpu(node->totlen), in jffs2_scan_eraseblock()
767 je32_to_cpu(node->hdr_crc), in jffs2_scan_eraseblock()
775 if (ofs + je32_to_cpu(node->totlen) > jeb->offset + c->sector_size) { in jffs2_scan_eraseblock()
778 ofs, je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
786 if (!(je16_to_cpu(node->nodetype) & JFFS2_NODE_ACCURATE)) { in jffs2_scan_eraseblock()
790 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
792 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
796 switch(je16_to_cpu(node->nodetype)) { in jffs2_scan_eraseblock()
807 node = (void *)buf; in jffs2_scan_eraseblock()
809 err = jffs2_scan_inode_node(c, jeb, (void *)node, ofs, s); in jffs2_scan_eraseblock()
811 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
815 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
818 je32_to_cpu(node->totlen), buf_len, in jffs2_scan_eraseblock()
824 node = (void *)buf; in jffs2_scan_eraseblock()
826 err = jffs2_scan_dirent_node(c, jeb, (void *)node, ofs, s); in jffs2_scan_eraseblock()
828 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
833 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
836 je32_to_cpu(node->totlen), buf_len, in jffs2_scan_eraseblock()
842 node = (void *)buf; in jffs2_scan_eraseblock()
844 err = jffs2_scan_xattr_node(c, jeb, (void *)node, ofs, s); in jffs2_scan_eraseblock()
847 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
850 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
853 je32_to_cpu(node->totlen), buf_len, in jffs2_scan_eraseblock()
859 node = (void *)buf; in jffs2_scan_eraseblock()
861 err = jffs2_scan_xref_node(c, jeb, (void *)node, ofs, s); in jffs2_scan_eraseblock()
864 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
870 if (je32_to_cpu(node->totlen) != c->cleanmarker_size) { in jffs2_scan_eraseblock()
872 ofs, je32_to_cpu(node->totlen), in jffs2_scan_eraseblock()
892 jffs2_sum_add_padding_mem(s, je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
893 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
895 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
899 switch (je16_to_cpu(node->nodetype) & JFFS2_COMPAT_MASK) { in jffs2_scan_eraseblock()
902 je16_to_cpu(node->nodetype), ofs); in jffs2_scan_eraseblock()
906 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
908 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
913 je16_to_cpu(node->nodetype), ofs); in jffs2_scan_eraseblock()
918 je16_to_cpu(node->nodetype), ofs); in jffs2_scan_eraseblock()
919 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen))))) in jffs2_scan_eraseblock()
921 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()
926 je16_to_cpu(node->nodetype), ofs); in jffs2_scan_eraseblock()
928 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(node->totlen)), NULL); in jffs2_scan_eraseblock()
932 ofs += PAD(je32_to_cpu(node->totlen)); in jffs2_scan_eraseblock()