Searched refs:mtdinfo (Results 1 – 2 of 2) sorted by relevance
60 struct mtd_info *mtdinfo; member147 (*curmtd)->mtdinfo = kzalloc(sizeof(struct mtd_info), GFP_KERNEL); in register_device()150 if ((*curmtd)->mtdinfo) { in register_device()151 (*curmtd)->mtdinfo->priv = in register_device()154 if (!(*curmtd)->mtdinfo->priv) { in register_device()155 kfree((*curmtd)->mtdinfo); in register_device()156 (*curmtd)->mtdinfo = NULL; in register_device()160 if (!(*curmtd)->mtdinfo) { in register_device()165 if (!(((slram_priv_t *)(*curmtd)->mtdinfo->priv)->start = in register_device()170 ((slram_priv_t *)(*curmtd)->mtdinfo->priv)->end = in register_device()[all …]
50 static inline struct fsl_upm_nand *to_fsl_upm_nand(struct mtd_info *mtdinfo) in to_fsl_upm_nand() argument52 return container_of(mtdinfo, struct fsl_upm_nand, mtd); in to_fsl_upm_nand()