Lines Matching refs:buf_ofs
449 uint32_t hdr_crc, buf_ofs, buf_len; in jffs2_scan_eraseblock() local
554 buf_ofs = jeb->offset; in jffs2_scan_eraseblock()
561 err = jffs2_fill_scan_buf(c, buf, buf_ofs, buf_len); in jffs2_scan_eraseblock()
647 if (buf_ofs + buf_len < ofs + sizeof(*node)) { in jffs2_scan_eraseblock()
655 buf_ofs = ofs; in jffs2_scan_eraseblock()
658 node = (struct jffs2_unknown_node *)&buf[ofs-buf_ofs]; in jffs2_scan_eraseblock()
660 if (*(uint32_t *)(&buf[ofs-buf_ofs]) == 0xffffffff) { in jffs2_scan_eraseblock()
670 inbuf_ofs = ofs - buf_ofs; in jffs2_scan_eraseblock()
689 if (buf_ofs == jeb->offset && jeb->used_size == PAD(c->cleanmarker_size) && in jffs2_scan_eraseblock()
716 buf_ofs = ofs; in jffs2_scan_eraseblock()
797 if (buf_ofs + buf_len < ofs + sizeof(struct jffs2_raw_inode)) { in jffs2_scan_eraseblock()
805 buf_ofs = ofs; in jffs2_scan_eraseblock()
814 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
822 buf_ofs = ofs; in jffs2_scan_eraseblock()
832 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
840 buf_ofs = ofs; in jffs2_scan_eraseblock()
849 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
857 buf_ofs = ofs; in jffs2_scan_eraseblock()