Searched refs:nand_dev (Results 1 – 5 of 5) sorted by relevance
21 static struct nand_device nand_dev; variable27 unsigned int block = offset / nand_dev.block_size; in nand_read()28 unsigned int end_block = (offset + length - 1U) / nand_dev.block_size; in nand_read()30 (offset % nand_dev.block_size) / nand_dev.page_size; in nand_read()31 unsigned int nb_pages = nand_dev.block_size / nand_dev.page_size; in nand_read()32 unsigned int start_offset = offset % nand_dev.page_size; in nand_read()43 if (((start_offset != 0U) || (length % nand_dev.page_size) != 0U) && in nand_read()44 (sizeof(scratch_buff) < nand_dev.page_size)) { in nand_read()49 is_bad = nand_dev.mtd_block_is_bad(block); in nand_read()57 nand_dev.size / nand_dev.block_size; in nand_read()[all …]
43 req.nand = rawnand_dev.nand_dev; in nand_send_cmd()55 req.nand = rawnand_dev.nand_dev; in nand_send_addr()68 req.nand = rawnand_dev.nand_dev; in nand_send_wait()82 req.nand = rawnand_dev.nand_dev; in nand_read_data()102 if (rawnand_dev.nand_dev->buswidth == NAND_BUS_WIDTH_16) { in nand_change_read_column_cmd()135 if (rawnand_dev.nand_dev->buswidth == NAND_BUS_WIDTH_16) { in nand_read_page_cmd()144 if (rawnand_dev.nand_dev->size > SZ_128M) { in nand_read_page_cmd()321 rawnand_dev.nand_dev->buswidth = NAND_BUS_WIDTH_16; in nand_read_param_page()323 rawnand_dev.nand_dev->buswidth = NAND_BUS_WIDTH_8; in nand_read_param_page()326 rawnand_dev.nand_dev->block_size = page.num_pages_per_blk * in nand_read_param_page()[all …]
163 uint32_t block_nb = page / spinand_dev.nand_dev->block_size; in spi_nand_load_page()164 uint32_t page_nb = page - (block_nb * spinand_dev.nand_dev->page_size); in spi_nand_load_page()165 uint32_t nbpages_per_block = spinand_dev.nand_dev->block_size / in spi_nand_load_page()166 spinand_dev.nand_dev->page_size; in spi_nand_load_page()182 uint32_t nbpages_per_block = spinand_dev.nand_dev->block_size / in spi_nand_read_from_cache()183 spinand_dev.nand_dev->page_size; in spi_nand_read_from_cache()185 uint32_t page_sh = __builtin_ctz(spinand_dev.nand_dev->page_size) + 1U; in spi_nand_read_from_cache()189 if ((spinand_dev.nand_dev->nb_planes > 1U) && ((block_nb % 2U) == 1U)) { in spi_nand_read_from_cache()235 unsigned int nbpages_per_block = spinand_dev.nand_dev->block_size / in spi_nand_mtd_block_is_bad()236 spinand_dev.nand_dev->page_size; in spi_nand_mtd_block_is_bad()[all …]
33 struct nand_device *nand_dev; member
167 struct nand_device *nand_dev; member