Lines Matching refs:nand
303 struct nand_chip nand; member
932 struct nand_chip *nand; in fsmc_nand_probe() local
1016 nand = &host->nand; in fsmc_nand_probe()
1017 mtd->priv = nand; in fsmc_nand_probe()
1018 nand->priv = host; in fsmc_nand_probe()
1021 nand->IO_ADDR_R = host->data_va; in fsmc_nand_probe()
1022 nand->IO_ADDR_W = host->data_va; in fsmc_nand_probe()
1023 nand->cmd_ctrl = fsmc_cmd_ctrl; in fsmc_nand_probe()
1024 nand->chip_delay = 30; in fsmc_nand_probe()
1030 nand->ecc.mode = NAND_ECC_HW; in fsmc_nand_probe()
1031 nand->ecc.hwctl = fsmc_enable_hwecc; in fsmc_nand_probe()
1032 nand->ecc.size = 512; in fsmc_nand_probe()
1033 nand->options = pdata->options; in fsmc_nand_probe()
1034 nand->select_chip = fsmc_select_chip; in fsmc_nand_probe()
1035 nand->badblockbits = 7; in fsmc_nand_probe()
1036 nand->flash_node = np; in fsmc_nand_probe()
1039 nand->options |= NAND_BUSWIDTH_16; in fsmc_nand_probe()
1057 nand->read_buf = fsmc_read_buf_dma; in fsmc_nand_probe()
1058 nand->write_buf = fsmc_write_buf_dma; in fsmc_nand_probe()
1063 nand->read_buf = fsmc_read_buf; in fsmc_nand_probe()
1064 nand->write_buf = fsmc_write_buf; in fsmc_nand_probe()
1069 nand->options & NAND_BUSWIDTH_16, in fsmc_nand_probe()
1073 nand->ecc.read_page = fsmc_read_page_hwecc; in fsmc_nand_probe()
1074 nand->ecc.calculate = fsmc_read_hwecc_ecc4; in fsmc_nand_probe()
1075 nand->ecc.correct = fsmc_bch8_correct_data; in fsmc_nand_probe()
1076 nand->ecc.bytes = 13; in fsmc_nand_probe()
1077 nand->ecc.strength = 8; in fsmc_nand_probe()
1092 nand->ecc.layout = &fsmc_ecc4_16_layout; in fsmc_nand_probe()
1096 nand->ecc.layout = &fsmc_ecc4_64_layout; in fsmc_nand_probe()
1100 nand->ecc.layout = &fsmc_ecc4_128_layout; in fsmc_nand_probe()
1104 nand->ecc.layout = &fsmc_ecc4_224_layout; in fsmc_nand_probe()
1108 nand->ecc.layout = &fsmc_ecc4_256_layout; in fsmc_nand_probe()
1118 switch (nand->ecc.mode) { in fsmc_nand_probe()
1121 nand->ecc.calculate = fsmc_read_hwecc_ecc1; in fsmc_nand_probe()
1122 nand->ecc.correct = nand_correct_data; in fsmc_nand_probe()
1123 nand->ecc.bytes = 3; in fsmc_nand_probe()
1124 nand->ecc.strength = 1; in fsmc_nand_probe()
1140 if (nand->ecc.mode != NAND_ECC_SOFT_BCH) { in fsmc_nand_probe()
1143 nand->ecc.layout = &fsmc_ecc1_16_layout; in fsmc_nand_probe()
1146 nand->ecc.layout = &fsmc_ecc1_64_layout; in fsmc_nand_probe()
1149 nand->ecc.layout = &fsmc_ecc1_128_layout; in fsmc_nand_probe()
1238 host->nand.options & NAND_BUSWIDTH_16, in fsmc_nand_resume()