Lines Matching full:partitions
17 #include <linux/mtd/partitions.h>
59 printk(KERN_ERR"memory allocation error while creating partitions for \"%s\"\n", in allocate_partition()
82 * concern for showing the same data in multiple partitions. in allocate_partition()
87 * distinguish between the parent and its partitions in sysfs. in allocate_partition()
94 INIT_LIST_HEAD(&child->partitions); in allocate_partition()
276 list_add_tail(&child->part.node, &parent->partitions); in mtd_add_partition()
303 * This function must be called with the partitions mutex locked.
310 list_for_each_entry_safe(child, next, &mtd->partitions, part.node) { in __mtd_del_partition()
335 list_for_each_entry_safe(child, next, &mtd->partitions, part.node) { in __del_mtd_partitions()
358 pr_info("Deleting MTD partitions on \"%s\":\n", mtd->name); in del_mtd_partitions()
373 list_for_each_entry(child, &mtd->partitions, part.node) { in mtd_del_partition()
402 printk(KERN_NOTICE "Creating %d MTD partitions on \"%s\":\n", in add_mtd_partitions()
413 list_add_tail(&child->part.node, &parent->partitions); in add_mtd_partitions()
532 pr_notice("%d %s partitions found on MTD device %s\n", ret, in mtd_part_do_parse()
544 * @compat: compatible string describing partitions in a device tree
546 * MTD parsers can specify supported partitions by providing a table of
589 const char *fixed = "fixed-partitions"; in mtd_part_of_parse()
601 np = of_get_child_by_name(np, "partitions"); in mtd_part_of_parse()
630 * For backward compatibility we have to try the "fixed-partitions" in mtd_part_of_parse()
631 * parser. It supports old DT format with partitions specified as a in mtd_part_of_parse()
651 * parse_mtd_partitions - parse and register MTD partitions
657 * This function tries to find & register partitions on MTD device @master. It
662 * partitions parsed out by the first parser.
666 * o number of found partitions otherwise
688 pr_debug("%s: parsing partitions %s\n", master->name, in parse_mtd_partitions()
701 /* Found partitions! */ in parse_mtd_partitions()