Lines Matching refs:sumlen
488 uint32_t sumlen; in jffs2_scan_eraseblock() local
495 sumlen = c->sector_size - je32_to_cpu(sm->offset); in jffs2_scan_eraseblock()
513 sumlen = c->sector_size - je32_to_cpu(sm->offset); in jffs2_scan_eraseblock()
514 sumptr = buf + buf_size - sumlen; in jffs2_scan_eraseblock()
517 if (sumlen > c->sector_size) in jffs2_scan_eraseblock()
521 if (sumlen > buf_size) { in jffs2_scan_eraseblock()
523 sumptr = kmalloc(sumlen, GFP_KERNEL); in jffs2_scan_eraseblock()
526 memcpy(sumptr + sumlen - buf_len, buf + buf_size - buf_len, buf_len); in jffs2_scan_eraseblock()
528 if (buf_len < sumlen) { in jffs2_scan_eraseblock()
531 jeb->offset + c->sector_size - sumlen, in jffs2_scan_eraseblock()
532 sumlen - buf_len); in jffs2_scan_eraseblock()
534 if (sumlen > buf_size) in jffs2_scan_eraseblock()
544 err = jffs2_sum_scan_sumnode(c, jeb, sumptr, sumlen, &pseudo_random); in jffs2_scan_eraseblock()
546 if (buf_size && sumlen > buf_size) in jffs2_scan_eraseblock()