Lines Matching defs:thislen
397 unsigned long thislen;
403 thislen = (1<<cfi->chipshift) - ofs;
405 thislen = len;
407 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf);
411 *retlen += thislen;
412 len -= thislen;
413 buf += thislen;
668 size_t totlen = 0, thislen;
695 ret = mtd_write(mtd, to, ECCBUF_SIZE, &thislen,
697 totlen += thislen;
698 if (ret || thislen != ECCBUF_SIZE)
700 elem_len -= thislen-buflen;
701 elem_base += thislen-buflen;
706 &thislen, elem_base);
707 totlen += thislen;
708 if (ret || thislen != ECCBUF_DIV(elem_len))
710 to += thislen;
715 memcpy(buffer, elem_base + thislen, buflen);
720 ret = mtd_write(mtd, to, buflen, &thislen, buffer);
721 totlen += thislen;
722 if (ret || thislen != ECCBUF_SIZE)