Searched refs:MtdReadContext (Results 1 – 5 of 5) sorted by relevance
46 typedef struct MtdReadContext MtdReadContext; typedef49 MtdReadContext *mtd_read_partition(const MtdPartition *);50 ssize_t mtd_read_data(MtdReadContext *, char *data, size_t data_len);51 void mtd_read_close(MtdReadContext *);
38 struct MtdReadContext { struct257 MtdReadContext *mtd_read_partition(const MtdPartition *partition) in mtd_read_partition()259 MtdReadContext *ctx = (MtdReadContext*) malloc(sizeof(MtdReadContext)); in mtd_read_partition()328 ssize_t mtd_read_data(MtdReadContext *ctx, char *data, size_t len) in mtd_read_data()361 void mtd_read_close(MtdReadContext *ctx) in mtd_read_close()
78 MtdReadContext *in = mtd_read_partition(partition); in main()
86 MtdReadContext* read = mtd_read_partition(part); in get_bootloader_message_mtd()112 MtdReadContext* read = mtd_read_partition(part); in set_bootloader_message_mtd()
148 MtdReadContext* ctx = NULL; in LoadPartitionContents()