Searched refs:ECCBUF_SIZE (Results 1 - 1 of 1) sorted by relevance

/drivers/mtd/chips/
H A Dcfi_cmdset_0020.c658 #define ECCBUF_SIZE (mtd->writesize) macro
659 #define ECCBUF_DIV(x) ((x) & ~(ECCBUF_SIZE - 1))
660 #define ECCBUF_MOD(x) ((x) & (ECCBUF_SIZE - 1))
671 if (!ECCBUF_SIZE) {
677 buffer = kmalloc(ECCBUF_SIZE, GFP_KERNEL);
687 if (buflen + elem_len < ECCBUF_SIZE) { /* just accumulate */
692 memcpy(buffer+buflen, elem_base, ECCBUF_SIZE-buflen);
693 ret = mtd_write(mtd, to, ECCBUF_SIZE, &thislen,
696 if (ret || thislen != ECCBUF_SIZE)
700 to += ECCBUF_SIZE;
[all...]

Completed in 99 milliseconds