Lines Matching defs:partition
49 /* Read an image file and write it to a flash partition. */
58 fprintf(stderr, "usage: %s partition file.img\n", argv[0]);
63 const MtdPartition *partition = mtd_find_partition_by_name(argv[1]);
64 if (partition == NULL) die("can't find %s partition", argv[1]);
66 // If the first part of the file matches the partition, skip writing
75 MtdReadContext *in = mtd_read_partition(partition);
95 MtdWriteContext *out = mtd_write_partition(partition);
114 out = mtd_write_partition(partition);
122 if (mtd_partition_info(partition, NULL, &block_size, NULL))