Lines Matching refs:nand_dev
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()
328 rawnand_dev.nand_dev->page_size = page.bytes_per_page; in nand_read_param_page()
329 rawnand_dev.nand_dev->size = page.num_pages_per_blk * in nand_read_param_page()
334 rawnand_dev.nand_dev->ecc.max_bit_corr = page.nb_ecc_bits; in nand_read_param_page()
335 rawnand_dev.nand_dev->ecc.size = SZ_512; in nand_read_param_page()
339 rawnand_dev.nand_dev->page_size, in nand_read_param_page()
340 rawnand_dev.nand_dev->block_size, rawnand_dev.nand_dev->size, in nand_read_param_page()
341 rawnand_dev.nand_dev->ecc.max_bit_corr, in nand_read_param_page()
342 rawnand_dev.nand_dev->buswidth); in nand_read_param_page()
373 unsigned int nbpages_per_block = rawnand_dev.nand_dev->block_size / in nand_mtd_block_is_bad()
374 rawnand_dev.nand_dev->page_size; in nand_mtd_block_is_bad()
381 rawnand_dev.nand_dev->page_size, in nand_mtd_block_is_bad()
402 rawnand_dev.nand_dev->page_size); in nand_mtd_read_page_raw()
412 rawnand_dev.nand_dev = get_nand_device(); in nand_raw_init()
413 if (rawnand_dev.nand_dev == NULL) { in nand_raw_init()
417 rawnand_dev.nand_dev->mtd_block_is_bad = nand_mtd_block_is_bad; in nand_raw_init()
418 rawnand_dev.nand_dev->mtd_read_page = nand_mtd_read_page_raw; in nand_raw_init()
419 rawnand_dev.nand_dev->ecc.mode = NAND_ECC_NONE; in nand_raw_init()
436 assert((rawnand_dev.nand_dev->page_size != 0U) && in nand_raw_init()
437 (rawnand_dev.nand_dev->block_size != 0U) && in nand_raw_init()
438 (rawnand_dev.nand_dev->size != 0U)); in nand_raw_init()
440 *size = rawnand_dev.nand_dev->size; in nand_raw_init()
441 *erase_size = rawnand_dev.nand_dev->block_size; in nand_raw_init()
443 rawnand_dev.ops->setup(rawnand_dev.nand_dev); in nand_raw_init()