Lines Matching refs:thislen
396 unsigned long thislen;
402 thislen = (1<<cfi->chipshift) - ofs;
404 thislen = len;
406 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf);
410 *retlen += thislen;
411 len -= thislen;
412 buf += thislen;
667 size_t totlen = 0, thislen;
694 ret = mtd_write(mtd, to, ECCBUF_SIZE, &thislen,
696 totlen += thislen;
697 if (ret || thislen != ECCBUF_SIZE)
699 elem_len -= thislen-buflen;
700 elem_base += thislen-buflen;
705 &thislen, elem_base);
706 totlen += thislen;
707 if (ret || thislen != ECCBUF_DIV(elem_len))
709 to += thislen;
714 memcpy(buffer, elem_base + thislen, buflen);
719 ret = mtd_write(mtd, to, buflen, &thislen, buffer);
720 totlen += thislen;
721 if (ret || thislen != ECCBUF_SIZE)