Lines Matching full:partitions
28 #include <linux/mtd/partitions.h>
71 list_for_each_entry(slave, &master->partitions, node) { in mtd_partitions_used()
152 printf("No partitions allowed after a fill-up\n"); in mtd_parse_partition()
189 * describing the partitions (with the "mtdparts" command syntax) and creates
194 * @parent: MTD device which contains the partitions
195 * @_mtdparts: Pointer to a string describing the partitions with "mtdparts"
197 * @_parts: Allocated array containing the partitions, must be freed by the
213 /* First, iterate over the partitions until we know their number */ in mtd_parse_partitions()
223 /* Allocate an array of partitions to give back to the caller */ in mtd_parse_partitions()
226 printf("Not enough space to save partitions meta-data\n"); in mtd_parse_partitions()
265 * mtd_free_parsed_partitions - Free dynamically allocated partitions
271 * @parts: Array containing the partitions that will be freed.
538 list_for_each_entry_safe(slave, next, &master->partitions, node) { in do_del_mtd_partitions()
562 debug("Deleting MTD partitions on \"%s\":\n", master->name); in del_mtd_partitions()
582 printk(KERN_ERR"memory allocation error while creating partitions for \"%s\"\n", in allocate_partition()
605 * to have the same data be in two different partitions. in allocate_partition()
669 INIT_LIST_HEAD(&slave->partitions); in allocate_partition()
811 list_for_each_entry(p, &master->partitions, node) { in mtd_add_partition()
821 list_add_tail(&new->node, &master->partitions); in mtd_add_partition()
840 list_for_each_entry_safe(slave, next, &master->partitions, node) in mtd_del_partition()
874 debug("Creating %d MTD partitions on \"%s\":\n", nbparts, master->name); in add_mtd_partitions()
882 list_add_tail(&slave->node, &master->partitions); in add_mtd_partitions()
943 * parse_mtd_partitions - parse MTD partitions
946 * @pparts: array of partitions found is returned here
954 * partitions parsed out by the first parser.
958 * o zero if no partitions were found
959 * o a positive number of found partitions, in which case on exit @pparts will
981 printk(KERN_NOTICE "%d %s partitions found on MTD device %s\n", in parse_mtd_partitions()