Lines Matching defs:mtd
45 // fs_type="yaffs2" partition_type="MTD" location=partition
81 if (strcmp(partition_type, "MTD") == 0) {
83 const MtdPartition* mtd;
84 mtd = mtd_find_partition_by_name(location);
85 if (mtd == NULL) {
86 fprintf(stderr, "%s: no mtd partition named \"%s\"",
91 if (mtd_mount_partition(mtd, mount_point, fs_type, 0 /* rw */) != 0) {
92 fprintf(stderr, "mtd mount of %s failed: %s\n",
179 // fs_type="yaffs2" partition_type="MTD" location=partition
207 if (strcmp(partition_type, "MTD") == 0) {
209 const MtdPartition* mtd = mtd_find_partition_by_name(location);
210 if (mtd == NULL) {
211 fprintf(stderr, "%s: no mtd partition named \"%s\"",
216 MtdWriteContext* ctx = mtd_write_partition(mtd);
684 const MtdPartition* mtd = mtd_find_partition_by_name(partition);
685 if (mtd == NULL) {
686 fprintf(stderr, "%s: no mtd partition named \"%s\"\n", name, partition);
691 MtdWriteContext* ctx = mtd_write_partition(mtd);
693 fprintf(stderr, "%s: can't write mtd partition \"%s\"\n",