Lines Matching refs:nand_chip

162 	struct nand_chip *nand_chip = mtd_to_nand(mtd);  in pmecc_gen_syndrome()  local
163 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_gen_syndrome()
179 struct nand_chip *nand_chip = mtd_to_nand(mtd); in pmecc_substitute() local
180 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_substitute()
229 struct nand_chip *nand_chip = mtd_to_nand(mtd); in pmecc_get_sigma() local
230 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_get_sigma()
385 struct nand_chip *nand_chip = mtd_to_nand(mtd); in pmecc_err_location() local
386 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_err_location()
439 struct nand_chip *nand_chip = mtd_to_nand(mtd); in pmecc_correct_data() local
440 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_correct_data()
470 pos = tmp + nand_chip->ecc.layout->eccpos[0]; in pmecc_correct_data()
485 struct nand_chip *nand_chip = mtd_to_nand(mtd); in pmecc_correction() local
486 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in pmecc_correction()
494 eccbytes = nand_chip->ecc.bytes; in pmecc_correction()
529 struct nand_chip *chip, uint8_t *buf, int oob_required, int page) in atmel_nand_pmecc_read_page()
570 struct nand_chip *chip, const uint8_t *buf, in atmel_nand_pmecc_write_page()
617 struct nand_chip *nand_chip = mtd_to_nand(mtd); in atmel_pmecc_core_init() local
618 struct atmel_nand_host *host = nand_get_controller_data(nand_chip); in atmel_pmecc_core_init()
670 ecc_layout = nand_chip->ecc.layout; in atmel_pmecc_core_init()
696 struct nand_chip *chip, in pmecc_choose_ecc()
804 static int atmel_pmecc_nand_init_params(struct nand_chip *nand, in atmel_pmecc_nand_init_params()
1020 static int atmel_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip, in atmel_nand_read_page()
1082 struct nand_chip *nand_chip = mtd_to_nand(mtd); in atmel_nand_correct() local
1131 if (nand_chip->options & NAND_BUSWIDTH_16) { in atmel_nand_correct()
1149 int atmel_hwecc_nand_init_param(struct nand_chip *nand, struct mtd_info *mtd) in atmel_hwecc_nand_init_param()
1210 struct nand_chip *this = mtd_to_nand(mtd); in at91_nand_hwcontrol()
1243 static struct nand_chip nand_chip; variable
1247 struct nand_chip *this = mtd_to_nand(mtd); in nand_command()
1285 struct nand_chip *this = mtd_to_nand(mtd); in nand_is_bad_block()
1308 struct nand_chip *this = mtd_to_nand(mtd); in nand_read_page()
1341 struct nand_chip *this = mtd_to_nand(mtd); in spl_nand_erase_one()
1346 if (nand_chip.select_chip) in spl_nand_erase_one()
1347 nand_chip.select_chip(mtd, 0); in spl_nand_erase_one()
1372 struct nand_chip *this = mtd_to_nand(mtd); in nand_read_page()
1383 struct nand_chip *this = mtd_to_nand(mtd); in at91_nand_wait_ready()
1390 int board_nand_init(struct nand_chip *nand) in board_nand_init()
1423 mtd = nand_to_mtd(&nand_chip); in nand_init()
1426 nand_chip.IO_ADDR_R = (void __iomem *)CONFIG_SYS_NAND_BASE; in nand_init()
1427 nand_chip.IO_ADDR_W = (void __iomem *)CONFIG_SYS_NAND_BASE; in nand_init()
1428 board_nand_init(&nand_chip); in nand_init()
1431 if (nand_chip.ecc.mode == NAND_ECC_SOFT) { in nand_init()
1432 nand_chip.ecc.calculate = nand_calculate_ecc; in nand_init()
1433 nand_chip.ecc.correct = nand_correct_data; in nand_init()
1437 if (nand_chip.select_chip) in nand_init()
1438 nand_chip.select_chip(mtd, 0); in nand_init()
1443 if (nand_chip.select_chip) in nand_deselect()
1444 nand_chip.select_chip(mtd, -1); in nand_deselect()
1454 static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE]; variable
1460 struct nand_chip *nand = &nand_chip[devnum]; in atmel_nand_chip_init()