Lines Matching refs:block
32 static inline int onenand_block_address(int block) in onenand_block_address() argument
35 if (block & density_mask) in onenand_block_address()
36 return ONENAND_DDP_CHIP1 | (block ^ density_mask); in onenand_block_address()
38 return block; in onenand_block_address()
41 static inline int onenand_bufferram_address(int block) in onenand_bufferram_address() argument
44 if (block & density_mask) in onenand_bufferram_address()
82 static int onenand_spl_read_page(uint32_t block, uint32_t page, uint32_t *buf, in onenand_spl_read_page() argument
88 onenand_writew(onenand_block_address(block), in onenand_spl_read_page()
91 onenand_writew(onenand_bufferram_address(block), in onenand_spl_read_page()
132 int onenand_spl_read_block(int block, int offset, int len, void *dst) in onenand_spl_read_block() argument
151 onenand_spl_read_page(block, page, in onenand_spl_read_block()
157 onenand_spl_read_page(block, page, dst, psize); in onenand_spl_read_block()
172 uint32_t block; in onenand_spl_load_image() local
192 block = page / ONENAND_PAGES_PER_BLOCK; in onenand_spl_load_image()
194 ret = onenand_spl_read_page(block, rpage, addr, pagesize); in onenand_spl_load_image()