Lines Matching refs:nmtd
408 struct s3c2410_nand_mtd *nmtd; in s3c2410_nand_select_chip() local
411 nmtd = nand_get_controller_data(this); in s3c2410_nand_select_chip()
412 info = nmtd->info; in s3c2410_nand_select_chip()
422 if (nmtd->set != NULL && chip > nmtd->set->nr_chips) { in s3c2410_nand_select_chip()
429 (info->platform->select_chip) (nmtd->set, chip); in s3c2410_nand_select_chip()
846 struct s3c2410_nand_mtd *nmtd, in s3c2410_nand_init_chip() argument
850 struct nand_chip *chip = &nmtd->chip; in s3c2410_nand_init_chip()
859 nand_set_controller_data(chip, nmtd); in s3c2410_nand_init_chip()
904 nmtd->info = info; in s3c2410_nand_init_chip()
905 nmtd->set = set; in s3c2410_nand_init_chip()
1085 struct s3c2410_nand_mtd *nmtd; in s3c24xx_nand_probe() local
1163 nmtd = info->mtds; in s3c24xx_nand_probe()
1165 for (setno = 0; setno < nr_sets; setno++, nmtd++, sets++) { in s3c24xx_nand_probe()
1166 struct mtd_info *mtd = nand_to_mtd(&nmtd->chip); in s3c24xx_nand_probe()
1169 setno, nmtd, info); in s3c24xx_nand_probe()
1172 s3c2410_nand_init_chip(info, nmtd, sets); in s3c24xx_nand_probe()
1174 err = nand_scan(&nmtd->chip, sets ? sets->nr_chips : 1); in s3c24xx_nand_probe()
1178 s3c2410_nand_add_partition(info, nmtd, sets); in s3c24xx_nand_probe()