Searched refs:ECCBUF_SIZE (Results 1 – 1 of 1) sorted by relevance
691 #define ECCBUF_SIZE (mtd->eccsize) macro692 #define ECCBUF_DIV(x) ((x) & ~(ECCBUF_SIZE - 1))693 #define ECCBUF_MOD(x) ((x) & (ECCBUF_SIZE - 1))704 if (!ECCBUF_SIZE) { in cfi_staa_writev()710 buffer = kmalloc(ECCBUF_SIZE, GFP_KERNEL); in cfi_staa_writev()720 if (buflen + elem_len < ECCBUF_SIZE) { /* just accumulate */ in cfi_staa_writev()725 memcpy(buffer+buflen, elem_base, ECCBUF_SIZE-buflen); in cfi_staa_writev()726 ret = mtd->write(mtd, to, ECCBUF_SIZE, &thislen, buffer); in cfi_staa_writev()728 if (ret || thislen != ECCBUF_SIZE) in cfi_staa_writev()732 to += ECCBUF_SIZE; in cfi_staa_writev()[all …]