Lines Matching refs:block
25 static int nand_command(int block, int page, uint32_t offs, in nand_command() argument
29 int page_addr = page + block * CONFIG_SYS_NAND_PAGE_COUNT; in nand_command()
62 static int nand_command(int block, int page, uint32_t offs, in nand_command() argument
66 int page_addr = page + block * CONFIG_SYS_NAND_PAGE_COUNT; in nand_command()
114 static int nand_is_bad_block(int block) in nand_is_bad_block() argument
119 nand_command(block, 0, CONFIG_SYS_NAND_BAD_BLOCK_POS, in nand_is_bad_block()
139 static int nand_read_page(int block, int page, uchar *dst) in nand_read_page() argument
151 nand_command(block, page, 0, NAND_CMD_READOOB); in nand_read_page()
153 nand_command(block, page, 0, NAND_CMD_READ0); in nand_read_page()
170 static int nand_read_page(int block, int page, void *dst) in nand_read_page() argument
182 nand_command(block, page, 0, NAND_CMD_READ0); in nand_read_page()