Home
last modified time | relevance | path

Searched refs:MtdWriteContext (Results 1 – 7 of 7) sorted by relevance

/bootable/recovery/mtdutils/
Dmtdutils.h47 typedef struct MtdWriteContext MtdWriteContext; typedef
53 MtdWriteContext *mtd_write_partition(const MtdPartition *);
54 ssize_t mtd_write_data(MtdWriteContext *, const char *data, size_t data_len);
55 off_t mtd_erase_blocks(MtdWriteContext *, int blocks); /* 0 ok, -1 for all */
56 int mtd_write_close(MtdWriteContext *);
Dmtdutils.c45 struct MtdWriteContext { struct
368 MtdWriteContext *mtd_write_partition(const MtdPartition *partition) in mtd_write_partition()
370 MtdWriteContext *ctx = (MtdWriteContext*) malloc(sizeof(MtdWriteContext)); in mtd_write_partition()
397 static void add_bad_block_offset(MtdWriteContext *ctx, off_t pos) { in add_bad_block_offset()
406 static int write_block(MtdWriteContext *ctx, const char *data) in write_block()
478 ssize_t mtd_write_data(MtdWriteContext *ctx, const char *data, size_t len) in mtd_write_data()
507 off_t mtd_erase_blocks(MtdWriteContext *ctx, int blocks) in mtd_erase_blocks()
551 int mtd_write_close(MtdWriteContext *ctx) in mtd_write_close()
Dflash_image.c56 MtdWriteContext *write; in main()
98 MtdWriteContext *out = mtd_write_partition(partition); in main()
/bootable/recovery/
Dbootloader.cpp122 MtdWriteContext *write = mtd_write_partition(part); in set_bootloader_message_mtd()
Droots.cpp199 MtdWriteContext *write = mtd_write_partition(partition); in format_volume()
/bootable/recovery/updater/
Dinstall.c317 MtdWriteContext* ctx = mtd_write_partition(mtd); in FormatFn()
1034 int r = mtd_write_data((MtdWriteContext*)ctx, (const char *)data, data_len); in write_raw_image_cb()
1073 MtdWriteContext* ctx = mtd_write_partition(mtd); in WriteRawImageFn()
/bootable/recovery/applypatch/
Dapplypatch.c386 MtdWriteContext* ctx = mtd_write_partition(mtd); in WriteToPartition()