Home
last modified time | relevance | path

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

/linux-6.12.1/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 …]
/linux-6.12.1/include/linux/mtd/
Dsh_flctl.h175 static inline struct sh_flctl *mtd_to_flctl(struct mtd_info *mtdinfo) in mtd_to_flctl() argument
177 return container_of(mtd_to_nand(mtdinfo), struct sh_flctl, chip); in mtd_to_flctl()
/linux-6.12.1/drivers/mtd/nand/raw/
Dfsl_upm.c36 static inline struct fsl_upm_nand *to_fsl_upm_nand(struct mtd_info *mtdinfo) in to_fsl_upm_nand() argument
38 return container_of(mtd_to_nand(mtdinfo), struct fsl_upm_nand, in to_fsl_upm_nand()
Ds3c2410.c742 struct mtd_info *mtdinfo = nand_to_mtd(&mtd->chip); in s3c2410_nand_add_partition() local
744 mtdinfo->name = set->name; in s3c2410_nand_add_partition()
746 return mtd_device_register(mtdinfo, set->partitions, in s3c2410_nand_add_partition()