Searched refs:mtdinfo (Results 1 – 3 of 3) sorted by relevance
61 struct mtd_info *mtdinfo; member143 (*curmtd)->mtdinfo = kzalloc(sizeof(struct mtd_info), GFP_KERNEL); in register_device()146 if ((*curmtd)->mtdinfo) { in register_device()147 (*curmtd)->mtdinfo->priv = in register_device()150 if (!(*curmtd)->mtdinfo->priv) { in register_device()151 kfree((*curmtd)->mtdinfo); in register_device()152 (*curmtd)->mtdinfo = NULL; in register_device()156 if (!(*curmtd)->mtdinfo) { in register_device()161 if (!(((slram_priv_t *)(*curmtd)->mtdinfo->priv)->start = in register_device()167 ((slram_priv_t *)(*curmtd)->mtdinfo->priv)->end = in register_device()[all …]
35 static inline struct fsl_upm_nand *to_fsl_upm_nand(struct mtd_info *mtdinfo) in to_fsl_upm_nand() argument37 return container_of(mtd_to_nand(mtdinfo), struct fsl_upm_nand, in to_fsl_upm_nand()
801 struct mtd_info *mtdinfo = nand_to_mtd(&mtd->chip); in s3c2410_nand_add_partition() local803 mtdinfo->name = set->name; in s3c2410_nand_add_partition()805 return mtd_device_register(mtdinfo, set->partitions, in s3c2410_nand_add_partition()