mtdinfo 61 drivers/mtd/devices/slram.c struct mtd_info *mtdinfo; mtdinfo 143 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo = kzalloc(sizeof(struct mtd_info), GFP_KERNEL); mtdinfo 146 drivers/mtd/devices/slram.c if ((*curmtd)->mtdinfo) { mtdinfo 147 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->priv = mtdinfo 150 drivers/mtd/devices/slram.c if (!(*curmtd)->mtdinfo->priv) { mtdinfo 151 drivers/mtd/devices/slram.c kfree((*curmtd)->mtdinfo); mtdinfo 152 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo = NULL; mtdinfo 156 drivers/mtd/devices/slram.c if (!(*curmtd)->mtdinfo) { mtdinfo 161 drivers/mtd/devices/slram.c if (!(((slram_priv_t *)(*curmtd)->mtdinfo->priv)->start = mtdinfo 167 drivers/mtd/devices/slram.c ((slram_priv_t *)(*curmtd)->mtdinfo->priv)->end = mtdinfo 168 drivers/mtd/devices/slram.c ((slram_priv_t *)(*curmtd)->mtdinfo->priv)->start + length; mtdinfo 171 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->name = name; mtdinfo 172 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->size = length; mtdinfo 173 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->flags = MTD_CAP_RAM; mtdinfo 174 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->_erase = slram_erase; mtdinfo 175 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->_point = slram_point; mtdinfo 176 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->_unpoint = slram_unpoint; mtdinfo 177 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->_read = slram_read; mtdinfo 178 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->_write = slram_write; mtdinfo 179 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->owner = THIS_MODULE; mtdinfo 180 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->type = MTD_RAM; mtdinfo 181 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->erasesize = SLRAM_BLK_SZ; mtdinfo 182 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->writesize = 1; mtdinfo 184 drivers/mtd/devices/slram.c if (mtd_device_register((*curmtd)->mtdinfo, NULL, 0)) { mtdinfo 186 drivers/mtd/devices/slram.c memunmap(((slram_priv_t *)(*curmtd)->mtdinfo->priv)->start); mtdinfo 187 drivers/mtd/devices/slram.c kfree((*curmtd)->mtdinfo->priv); mtdinfo 188 drivers/mtd/devices/slram.c kfree((*curmtd)->mtdinfo); mtdinfo 194 drivers/mtd/devices/slram.c ((slram_priv_t *)(*curmtd)->mtdinfo->priv)->start, mtdinfo 195 drivers/mtd/devices/slram.c ((slram_priv_t *)(*curmtd)->mtdinfo->priv)->end); mtdinfo 205 drivers/mtd/devices/slram.c mtd_device_unregister(slram_mtdlist->mtdinfo); mtdinfo 206 drivers/mtd/devices/slram.c memunmap(((slram_priv_t *)slram_mtdlist->mtdinfo->priv)->start); mtdinfo 207 drivers/mtd/devices/slram.c kfree(slram_mtdlist->mtdinfo->priv); mtdinfo 208 drivers/mtd/devices/slram.c kfree(slram_mtdlist->mtdinfo); mtdinfo 45 drivers/mtd/nand/raw/fsl_upm.c static inline struct fsl_upm_nand *to_fsl_upm_nand(struct mtd_info *mtdinfo) mtdinfo 47 drivers/mtd/nand/raw/fsl_upm.c return container_of(mtd_to_nand(mtdinfo), struct fsl_upm_nand, mtdinfo 799 drivers/mtd/nand/raw/s3c2410.c struct mtd_info *mtdinfo = nand_to_mtd(&mtd->chip); mtdinfo 801 drivers/mtd/nand/raw/s3c2410.c mtdinfo->name = set->name; mtdinfo 803 drivers/mtd/nand/raw/s3c2410.c return mtd_device_register(mtdinfo, set->partitions, mtdinfo 175 include/linux/mtd/sh_flctl.h static inline struct sh_flctl *mtd_to_flctl(struct mtd_info *mtdinfo) mtdinfo 177 include/linux/mtd/sh_flctl.h return container_of(mtd_to_nand(mtdinfo), struct sh_flctl, chip);