Searched refs:mtdinfo (Results 1 – 4 of 4) 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 …]
175 static inline struct sh_flctl *mtd_to_flctl(struct mtd_info *mtdinfo) in mtd_to_flctl() argument177 return container_of(mtd_to_nand(mtdinfo), struct sh_flctl, chip); in mtd_to_flctl()
36 static inline struct fsl_upm_nand *to_fsl_upm_nand(struct mtd_info *mtdinfo) in to_fsl_upm_nand() argument38 return container_of(mtd_to_nand(mtdinfo), struct fsl_upm_nand, in to_fsl_upm_nand()
742 struct mtd_info *mtdinfo = nand_to_mtd(&mtd->chip); in s3c2410_nand_add_partition() local744 mtdinfo->name = set->name; in s3c2410_nand_add_partition()746 return mtd_device_register(mtdinfo, set->partitions, in s3c2410_nand_add_partition()