Lines Matching refs:mtd_info

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