Lines Matching refs:buf_ofs
450 uint32_t hdr_crc, buf_ofs, buf_len; in jffs2_scan_eraseblock() local
558 buf_ofs = jeb->offset; in jffs2_scan_eraseblock()
565 err = jffs2_fill_scan_buf(c, buf, buf_ofs, buf_len); in jffs2_scan_eraseblock()
651 if (buf_ofs + buf_len < ofs + sizeof(*node)) { in jffs2_scan_eraseblock()
659 buf_ofs = ofs; in jffs2_scan_eraseblock()
662 node = (struct jffs2_unknown_node *)&buf[ofs-buf_ofs]; in jffs2_scan_eraseblock()
664 if (*(uint32_t *)(&buf[ofs-buf_ofs]) == 0xffffffff) { in jffs2_scan_eraseblock()
674 inbuf_ofs = ofs - buf_ofs; in jffs2_scan_eraseblock()
693 if (buf_ofs == jeb->offset && jeb->used_size == PAD(c->cleanmarker_size) && in jffs2_scan_eraseblock()
720 buf_ofs = ofs; in jffs2_scan_eraseblock()
801 if (buf_ofs + buf_len < ofs + sizeof(struct jffs2_raw_inode)) { in jffs2_scan_eraseblock()
809 buf_ofs = ofs; in jffs2_scan_eraseblock()
818 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
826 buf_ofs = ofs; in jffs2_scan_eraseblock()
836 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
844 buf_ofs = ofs; in jffs2_scan_eraseblock()
853 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { in jffs2_scan_eraseblock()
861 buf_ofs = ofs; in jffs2_scan_eraseblock()