Searched refs:ctx (Results 1 – 4 of 4) sorted by relevance
/build/tools/applypatch/ |
D | applypatch.c | 162 MtdReadContext* ctx = mtd_read_partition(mtd); in LoadMTDContents() local 163 if (ctx == NULL) { in LoadMTDContents() 185 read = mtd_read_data(ctx, p, next); in LoadMTDContents() 222 mtd_read_close(ctx); in LoadMTDContents() 313 MtdWriteContext* ctx = mtd_write_partition(mtd); in WriteToMTDPartition() local 314 if (ctx == NULL) { in WriteToMTDPartition() 320 size_t written = mtd_write_data(ctx, (char*)data, len); in WriteToMTDPartition() 324 mtd_write_close(ctx); in WriteToMTDPartition() 328 if (mtd_erase_blocks(ctx, -1) < 0) { in WriteToMTDPartition() 330 mtd_write_close(ctx); in WriteToMTDPartition() [all …]
|
D | applypatch.h | 52 SinkFn sink, void* token, SHA_CTX* ctx); 60 SinkFn sink, void* token, SHA_CTX* ctx);
|
D | imgpatch.c | 40 SinkFn sink, void* token, SHA_CTX* ctx) { in ApplyImagePatch() argument 89 sink, token, ctx); in ApplyImagePatch() 182 SHA_update(ctx, gzip+64, gzip_header_len); in ApplyImagePatch() 215 SHA_update(ctx, temp_data, have); in ApplyImagePatch() 221 SHA_update(ctx, gzip+64+gzip_header_len, 8); in ApplyImagePatch() 242 SHA_update(ctx, temp, data_len); in ApplyImagePatch() 351 SHA_update(ctx, temp_data, have); in ApplyImagePatch()
|
D | bspatch.c | 87 SinkFn sink, void* token, SHA_CTX* ctx) { in ApplyBSDiffPatch() argument 100 if (ctx) { in ApplyBSDiffPatch() 101 SHA_update(ctx, new_data, new_size); in ApplyBSDiffPatch()
|