Lines Matching refs:ECCBUF_SIZE
655 #define ECCBUF_SIZE (mtd->writesize)
656 #define ECCBUF_DIV(x) ((x) & ~(ECCBUF_SIZE - 1))
657 #define ECCBUF_MOD(x) ((x) & (ECCBUF_SIZE - 1))
668 if (!ECCBUF_SIZE) {
674 buffer = kmalloc(ECCBUF_SIZE, GFP_KERNEL);
684 if (buflen + elem_len < ECCBUF_SIZE) { /* just accumulate */
689 memcpy(buffer+buflen, elem_base, ECCBUF_SIZE-buflen);
690 ret = mtd->write(mtd, to, ECCBUF_SIZE, &thislen, buffer);
692 if (ret || thislen != ECCBUF_SIZE)
696 to += ECCBUF_SIZE;
707 memset(buffer, 0xff, ECCBUF_SIZE);
715 if (ret || thislen != ECCBUF_SIZE)