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