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