Home
last modified time | relevance | path

Searched refs:mtdinfo (Results 1 – 3 of 3) sorted by relevance

/drivers/mtd/devices/
Dslram.c61 struct mtd_info *mtdinfo; member
143 (*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 …]
/drivers/mtd/nand/raw/
Dfsl_upm.c35 static inline struct fsl_upm_nand *to_fsl_upm_nand(struct mtd_info *mtdinfo) in to_fsl_upm_nand() argument
37 return container_of(mtd_to_nand(mtdinfo), struct fsl_upm_nand, in to_fsl_upm_nand()
Ds3c2410.c801 struct mtd_info *mtdinfo = nand_to_mtd(&mtd->chip); in s3c2410_nand_add_partition() local
803 mtdinfo->name = set->name; in s3c2410_nand_add_partition()
805 return mtd_device_register(mtdinfo, set->partitions, in s3c2410_nand_add_partition()