Searched refs:oblk (Results 1 – 5 of 5) sorted by relevance
/freebsd/usr.bin/mkuzip/ |
H A D | mkuzip.c | 154 struct mkuz_blk *iblk, *oblk; in main() local 327 iblk = oblk = NULL; in main() 336 oblk = mkuz_fqueue_deq_when(cvp->results, cmp_blkno, &io); in main() 337 assert(oblk->info.blkno == (unsigned)io); in main() 338 oblk->info.offset = offset; in main() 340 if (cfs.en_dedup != 0 && oblk->info.len > 0) { in main() 341 chit = mkuz_blkcache_regblock(cfs.fdw, oblk); in main() 355 oblk->info.len = 0; in main() 357 if (oblk->info.len > 0 && write(cfs.fdw, oblk->data, in main() 358 oblk->info.len) < 0) { in main() [all …]
|
H A D | mkuz_conveyor.c | 59 struct mkuz_blk *oblk, *iblk; in cworker() local 78 oblk = mkuz_blk_ctor(0); in cworker() 80 oblk = mkuz_blk_ctor(cfp->cbound_blksz); in cworker() 81 cfp->handler->f_compress(c_ctx, iblk, oblk); in cworker() 83 compute_digest(oblk); in cworker() 86 oblk->info.blkno = iblk->info.blkno; in cworker() 87 mkuz_fqueue_enq(cvp->results, oblk); in cworker()
|
H A D | mkuz_lzma.c | 77 mkuz_lzma_compress(void *p, const struct mkuz_blk *iblk, struct mkuz_blk *oblk) in mkuz_lzma_compress() argument 94 ulp->strm.next_out = oblk->data; in mkuz_lzma_compress() 95 ulp->strm.avail_out = oblk->alen; in mkuz_lzma_compress() 102 (oblk->alen - ulp->strm.avail_out)); in mkuz_lzma_compress() 108 oblk->info.len = oblk->alen - ulp->strm.avail_out; in mkuz_lzma_compress()
|
H A D | mkuz_zlib.c | 66 mkuz_zlib_compress(void *p, const struct mkuz_blk *iblk, struct mkuz_blk *oblk) in mkuz_zlib_compress() argument 73 destlen_z = oblk->alen; in mkuz_zlib_compress() 74 if (compress2(oblk->data, &destlen_z, iblk->data, iblk->info.len, in mkuz_zlib_compress() 80 oblk->info.len = (uint32_t)destlen_z; in mkuz_zlib_compress()
|
H A D | mkuz_zstd.c | 79 mkuz_zstd_compress(void *p, const struct mkuz_blk *iblk, struct mkuz_blk *oblk) in mkuz_zstd_compress() argument 86 rc = ZSTD_compress2(cctx, oblk->data, oblk->alen, iblk->data, in mkuz_zstd_compress() 92 oblk->info.len = rc; in mkuz_zstd_compress()
|