Home
last modified time | relevance | path

Searched refs:elem_len (Results 1 – 1 of 1) sorted by relevance

/linux-2.4.37.9/drivers/mtd/chips/
Dcfi_cmdset_0020.c715 size_t elem_len = vecs[i].iov_len; in cfi_staa_writev() local
717 if (!elem_len) /* FIXME: Might be unnecessary. Check that */ in cfi_staa_writev()
720 if (buflen + elem_len < ECCBUF_SIZE) { /* just accumulate */ in cfi_staa_writev()
721 memcpy(buffer+buflen, elem_base, elem_len); in cfi_staa_writev()
722 buflen += elem_len; in cfi_staa_writev()
730 elem_len -= thislen-buflen; in cfi_staa_writev()
734 if (ECCBUF_DIV(elem_len)) { /* write clean aligned data */ in cfi_staa_writev()
735 ret = mtd->write(mtd, to, ECCBUF_DIV(elem_len), &thislen, elem_base); in cfi_staa_writev()
737 if (ret || thislen != ECCBUF_DIV(elem_len)) in cfi_staa_writev()
741 buflen = ECCBUF_MOD(elem_len); /* cut off tail */ in cfi_staa_writev()