Lines Matching defs:start
283 uint32_t start, end, ofs, len;
324 start = ref_offset(first_raw);
333 start, end, end - start, nr_refile);
336 if (start < c->wbuf_ofs) {
340 buf = kmalloc(end - start, GFP_KERNEL);
348 ret = mtd_read(c->mtd, start, c->wbuf_ofs - start, &retlen,
353 (retlen == c->wbuf_ofs - start))
356 if (ret || retlen != c->wbuf_ofs - start) {
376 start = ref_offset(first_raw);
378 start, end, end - start, nr_refile);
382 memcpy(buf + (c->wbuf_ofs - start), c->wbuf, end - c->wbuf_ofs);
385 /* OK... we're to rewrite (end-start) bytes of data from first_raw onwards.
389 ret = jffs2_reserve_space_gc(c, end-start, &len, JFFS2_SUMMARY_NOSUM_SIZE);
408 if (end-start >= c->wbuf_pagesize) {
415 uint32_t towrite = (end-start) - ((end-start)%c->wbuf_pagesize);
444 c->wbuf_len = (end - start) - towrite;
451 memcpy(c->wbuf, buf, end-start);
453 memmove(c->wbuf, c->wbuf + (start - c->wbuf_ofs), end - start);
456 c->wbuf_len = end - start;
518 (void *)(buf?:c->wbuf) + (ref_offset(raw) - start));