Lines Matching refs:ctx
190 MtdReadContext* ctx = NULL; in LoadPartitionContents() local
207 ctx = mtd_read_partition(mtd); in LoadPartitionContents()
208 if (ctx == NULL) { in LoadPartitionContents()
242 read = mtd_read_data(ctx, p, next); in LoadPartitionContents()
287 mtd_read_close(ctx); in LoadPartitionContents()
396 MtdWriteContext* ctx = mtd_write_partition(mtd); in WriteToPartition() local
397 if (ctx == NULL) { in WriteToPartition()
403 size_t written = mtd_write_data(ctx, (char*)data, len); in WriteToPartition()
407 mtd_write_close(ctx); in WriteToPartition()
411 if (mtd_erase_blocks(ctx, -1) < 0) { in WriteToPartition()
413 mtd_write_close(ctx); in WriteToPartition()
417 if (mtd_write_close(ctx)) { in WriteToPartition()
823 SHA_CTX ctx; in GenerateTarget() local
966 SHA_init(&ctx); in GenerateTarget()
973 patch, 0, sink, token, &ctx); in GenerateTarget()
977 patch, sink, token, &ctx, bonus_data); in GenerateTarget()
1004 const uint8_t* current_target_sha1 = SHA_final(&ctx); in GenerateTarget()