Lines Matching defs:mtd
91 // fs_type="yaffs2" partition_type="MTD" location=partition
150 if (strcmp(partition_type, "MTD") == 0) {
152 const MtdPartition* mtd;
153 mtd = mtd_find_partition_by_name(location);
154 if (mtd == NULL) {
155 uiPrintf(state, "%s: no mtd partition named \"%s\"",
160 if (mtd_mount_partition(mtd, mount_point, fs_type, 0 /* rw */) != 0) {
161 uiPrintf(state, "mtd mount of %s failed: %s\n",
268 // fs_type="yaffs2" partition_type="MTD" location=partition fs_size=<bytes> mount_point=<location>
308 if (strcmp(partition_type, "MTD") == 0) {
310 const MtdPartition* mtd = mtd_find_partition_by_name(location);
311 if (mtd == NULL) {
312 printf("%s: no mtd partition named \"%s\"",
317 MtdWriteContext* ctx = mtd_write_partition(mtd);
1066 const MtdPartition* mtd = mtd_find_partition_by_name(partition);
1067 if (mtd == NULL) {
1068 printf("%s: no mtd partition named \"%s\"\n", name, partition);
1073 MtdWriteContext* ctx = mtd_write_partition(mtd);
1075 printf("%s: can't write mtd partition \"%s\"\n",