Searched refs:offset_bytes (Results 1 – 3 of 3) sorted by relevance
1421 size_t offset_bytes; in test_prepare_compress_chunk() 1497 offset_bytes = req.offset * vol.params.logical_block_size; in test_prepare_compress_chunk() 1498 remainder_bytes = vol.params.chunk_size - offset_bytes - user_buffer_iov_len * 2; in test_prepare_compress_chunk() 1503 CU_ASSERT(req.decomp_iov[0].iov_len == offset_bytes); in test_prepare_compress_chunk() 1508 CU_ASSERT(req.decomp_iov[3].iov_base == req.decomp_buf + offset_bytes + user_buffer_iov_len * 2); in test_prepare_compress_chunk() 1514 CU_ASSERT(req.decomp_iov[0].iov_len == offset_bytes); in test_prepare_compress_chunk() 1519 CU_ASSERT(req.decomp_iov[3].iov_base == g_zero_buf + offset_bytes + user_buffer_iov_len * 2); in test_prepare_compress_chunk() 1642 offset_bytes = req.offset * vol.params.logical_block_size; in test_reduce_decompress_chunk() 1643 remainder_bytes = vol.params.chunk_size - offset_bytes - user_buffer_iov_len * 2; in test_reduce_decompress_chunk() 1652 CU_ASSERT(memcmp(req.decomp_iov[0].iov_base + memcmp_offset, req.decomp_buf, offset_bytes) in test_reduce_decompress_chunk() 1279 size_t offset_bytes; test_prepare_compress_chunk() local 1572 size_t offset_bytes; test_reduce_decompress_chunk() local [all...]
1215 _bytes_to_blocks(uint32_t block_size, uint64_t offset_bytes, uint64_t *offset_blocks, in _bytes_to_blocks() argument1223 *offset_blocks = offset_bytes >> shift_cnt; in _bytes_to_blocks()1225 return (offset_bytes - (*offset_blocks << shift_cnt)) | in _bytes_to_blocks()1228 *offset_blocks = offset_bytes / block_size; in _bytes_to_blocks()1230 return (offset_bytes % block_size) | (num_bytes % block_size); in _bytes_to_blocks()
274 uint64_t offset_bytes = bdev_io->u.bdev.offset_blocks * bdev_io->bdev->blocklen; in bdev_aio_unmap() 283 rc = fallocate(fdisk->fd, mode, offset_bytes, length_bytes); in bdev_aio_write_zeros() 255 uint64_t offset_bytes = bdev_io->u.bdev.offset_blocks * bdev_io->bdev->blocklen; bdev_aio_fallocate() local