Lines Matching refs:mtd
29 struct mtd_info *mtd; member
34 struct mtd_info *mtd; member
59 if (subdev->mtd) in sa1100_destroy_subdev()
60 map_destroy(subdev->mtd); in sa1100_destroy_subdev()
115 subdev->mtd = do_map_probe(subdev->plat->map_name, &subdev->map); in sa1100_probe_subdev()
116 if (subdev->mtd == NULL) { in sa1100_probe_subdev()
120 subdev->mtd->owner = THIS_MODULE; in sa1100_probe_subdev()
123 phys, (unsigned)(subdev->mtd->size >> 20), in sa1100_probe_subdev()
138 if (info->mtd) { in sa1100_destroy()
139 mtd_device_unregister(info->mtd); in sa1100_destroy()
140 if (info->mtd != info->subdev[0].mtd) in sa1100_destroy()
141 mtd_concat_destroy(info->mtd); in sa1100_destroy()
222 info->mtd = info->subdev[0].mtd; in sa1100_setup_mtd()
230 cdev[i] = info->subdev[i].mtd; in sa1100_setup_mtd()
232 info->mtd = mtd_concat_create(cdev, info->num_subdev, in sa1100_setup_mtd()
234 if (info->mtd == NULL) in sa1100_setup_mtd()
267 mtd_device_parse_register(info->mtd, part_probes, NULL, plat->parts, in sa1100_mtd_probe()