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

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/nand/
H A Domap2.c494 * @ecc_buf: buffer to store ecc code
499 static void gen_true_ecc(u8 *ecc_buf) argument
501 u32 tmp = ecc_buf[0] | (ecc_buf[1] << 16) |
502 ((ecc_buf[2] & 0xF0) << 20) | ((ecc_buf[2] & 0x0F) << 8);
504 ecc_buf[0] = ~(P64o(tmp) | P64e(tmp) | P32o(tmp) | P32e(tmp) |
506 ecc_buf[1] = ~(P1024o(tmp) | P1024e(tmp) | P512o(tmp) | P512e(tmp) |
508 ecc_buf[2] = ~(P4o(tmp) | P4e(tmp) | P2o(tmp) | P2e(tmp) | P1o(tmp) |
H A Dsh_flctl.c257 unsigned long *ecc_buf = (unsigned long *)buff; local
263 ecc_buf[i] = readl(fifo_addr);
264 ecc_buf[i] = be32_to_cpu(ecc_buf[i]);

Completed in 35 milliseconds