Lines Matching refs:mtd_info
29 static inline void free_partition(struct mtd_info *mtd)
35 void release_mtd_partition(struct mtd_info *mtd)
41 static struct mtd_info *allocate_partition(struct mtd_info *parent,
45 struct mtd_info *master = mtd_get_master(parent);
50 struct mtd_info *child;
225 struct mtd_info *mtd = dev_get_drvdata(dev);
236 static int mtd_add_partition_attrs(struct mtd_info *new)
245 int mtd_add_partition(struct mtd_info *parent, const char *name,
248 struct mtd_info *master = mtd_get_master(parent);
252 struct mtd_info *child;
305 static int __mtd_del_partition(struct mtd_info *mtd)
307 struct mtd_info *child, *next;
330 static int __del_mtd_partitions(struct mtd_info *mtd)
332 struct mtd_info *child, *next;
353 int del_mtd_partitions(struct mtd_info *mtd)
355 struct mtd_info *master = mtd_get_master(mtd);
367 int mtd_del_partition(struct mtd_info *mtd, int partno)
369 struct mtd_info *child, *master = mtd_get_master(mtd);
394 int add_mtd_partitions(struct mtd_info *parent,
398 struct mtd_info *child, *master = mtd_get_master(parent);
517 struct mtd_info *master,
576 static int mtd_part_of_parse(struct mtd_info *master,
664 int parse_mtd_partitions(struct mtd_info *master, const char *const *types,
731 uint64_t mtd_get_device_size(const struct mtd_info *mtd)
733 struct mtd_info *master = mtd_get_master((struct mtd_info *)mtd);