Lines Matching full:partitions
17 #include <linux/mtd/partitions.h>
52 printk(KERN_ERR"memory allocation error while creating partitions for \"%s\"\n", in allocate_partition()
75 * concern for showing the same data in multiple partitions. in allocate_partition()
80 * distinguish between the parent and its partitions in sysfs. in allocate_partition()
87 INIT_LIST_HEAD(&child->partitions); in allocate_partition()
270 list_add_tail(&child->part.node, &parent->partitions); in mtd_add_partition()
297 * This function must be called with the partitions mutex locked.
304 list_for_each_entry_safe(child, next, &mtd->partitions, part.node) { in __mtd_del_partition()
332 list_for_each_entry_safe(child, next, &mtd->partitions, part.node) { in __del_mtd_partitions()
357 pr_info("Deleting MTD partitions on \"%s\":\n", mtd->name); in del_mtd_partitions()
372 list_for_each_entry(child, &mtd->partitions, part.node) { in mtd_del_partition()
401 printk(KERN_NOTICE "Creating %d MTD partitions on \"%s\":\n", in add_mtd_partitions()
412 list_add_tail(&child->part.node, &parent->partitions); in add_mtd_partitions()
527 pr_notice("%d %s partitions found on MTD device %s\n", ret, in mtd_part_do_parse()
539 * @compat: compatible string describing partitions in a device tree
541 * MTD parsers can specify supported partitions by providing a table of
582 const char *fixed = "fixed-partitions"; in mtd_part_of_parse()
589 np = of_get_child_by_name(np, "partitions"); in mtd_part_of_parse()
607 * For backward compatibility we have to try the "fixed-partitions" in mtd_part_of_parse()
608 * parser. It supports old DT format with partitions specified as a in mtd_part_of_parse()
628 * parse_mtd_partitions - parse and register MTD partitions
634 * This function tries to find & register partitions on MTD device @master. It
639 * partitions parsed out by the first parser.
643 * o number of found partitions otherwise
665 pr_debug("%s: parsing partitions %s\n", master->name, in parse_mtd_partitions()
678 /* Found partitions! */ in parse_mtd_partitions()