Lines Matching refs:bufnum
35 unsigned int bufnum, int page_size) in check_read_ecc() argument
37 u32 reg = eccstat[bufnum / 4]; in check_read_ecc()
38 int errors = (reg >> ((3 - bufnum % 4) * 8)) & 0xf; in check_read_ecc()
67 static inline void nand_wait(uchar *buf, int bufnum, int page_size) in nand_wait() argument
75 bufnum *= bufperpage; in nand_wait()
76 bufnum_end = bufnum + bufperpage - 1; in nand_wait()
88 for (i = bufnum / 4; i <= bufnum_end / 4; i++) in nand_wait()
91 for (i = bufnum; i <= bufnum_end; i++) { in nand_wait()
117 int bufnum_mask, bufnum, ver = 0; in nand_spl_load_image() local
203 bufnum = pg_no & bufnum_mask; in nand_spl_load_image()
204 sram_addr = bufnum * page_size * 2; in nand_spl_load_image()
213 nand_wait(&buf[sram_addr], bufnum, page_size); in nand_spl_load_image()