Lines Matching refs:mtd_info
28 static inline void free_partition(struct mtd_info *mtd)
34 static struct mtd_info *allocate_partition(struct mtd_info *parent,
38 struct mtd_info *master = mtd_get_master(parent);
43 struct mtd_info *child;
218 struct mtd_info *mtd = dev_get_drvdata(dev);
230 static int mtd_add_partition_attrs(struct mtd_info *new)
239 int mtd_add_partition(struct mtd_info *parent, const char *name,
242 struct mtd_info *master = mtd_get_master(parent);
246 struct mtd_info *child;
299 static int __mtd_del_partition(struct mtd_info *mtd)
301 struct mtd_info *child, *next;
326 static int __del_mtd_partitions(struct mtd_info *mtd)
328 struct mtd_info *child, *next;
352 int del_mtd_partitions(struct mtd_info *mtd)
354 struct mtd_info *master = mtd_get_master(mtd);
366 int mtd_del_partition(struct mtd_info *mtd, int partno)
368 struct mtd_info *child, *master = mtd_get_master(mtd);
393 int add_mtd_partitions(struct mtd_info *parent,
397 struct mtd_info *child, *master = mtd_get_master(parent);
516 struct mtd_info *master,
575 static int mtd_part_of_parse(struct mtd_info *master,
645 int parse_mtd_partitions(struct mtd_info *master, const char *const *types,
712 uint64_t mtd_get_device_size(const struct mtd_info *mtd)
714 struct mtd_info *master = mtd_get_master((struct mtd_info *)mtd);