Home
last modified time | relevance | path

Searched refs:cur_bytes (Results 1 – 12 of 12) sorted by relevance

/openbmc/qemu/block/
H A Dcrypto.c474 uint64_t cur_bytes; /* number of bytes in current iteration */ in block_crypto_co_preadv() local
500 cur_bytes = MIN(bytes, BLOCK_CRYPTO_MAX_IO_SIZE); in block_crypto_co_preadv()
503 qemu_iovec_add(&hd_qiov, cipher_data, cur_bytes); in block_crypto_co_preadv()
506 cur_bytes, &hd_qiov, 0); in block_crypto_co_preadv()
512 cipher_data, cur_bytes, NULL) < 0) { in block_crypto_co_preadv()
517 qemu_iovec_from_buf(qiov, bytes_done, cipher_data, cur_bytes); in block_crypto_co_preadv()
519 bytes -= cur_bytes; in block_crypto_co_preadv()
520 bytes_done += cur_bytes; in block_crypto_co_preadv()
536 uint64_t cur_bytes; /* number of bytes in current iteration */ in block_crypto_co_pwritev() local
564 cur_bytes = MIN(bytes, BLOCK_CRYPTO_MAX_IO_SIZE); in block_crypto_co_pwritev()
[all …]
H A Dcopy-before-write.c271 int64_t cur_bytes; in cbw_co_preadv_snapshot() local
273 req = cbw_snapshot_read_lock(bs, offset, bytes, &cur_bytes, &file); in cbw_co_preadv_snapshot()
278 ret = bdrv_co_preadv_part(file, offset, cur_bytes, in cbw_co_preadv_snapshot()
285 bytes -= cur_bytes; in cbw_co_preadv_snapshot()
286 offset += cur_bytes; in cbw_co_preadv_snapshot()
287 qiov_offset += cur_bytes; in cbw_co_preadv_snapshot()
302 int64_t cur_bytes; in cbw_co_snapshot_block_status() local
305 req = cbw_snapshot_read_lock(bs, offset, bytes, &cur_bytes, &child); in cbw_co_snapshot_block_status()
310 ret = bdrv_co_block_status(child->bs, offset, cur_bytes, pnum, map, file); in cbw_co_snapshot_block_status()
H A Dqcow2.c2393 unsigned int cur_bytes; /* number of bytes in current iteration */ in qcow2_co_preadv_part() local
2400 cur_bytes = MIN(bytes, INT_MAX); in qcow2_co_preadv_part()
2402 cur_bytes = MIN(cur_bytes, in qcow2_co_preadv_part()
2407 ret = qcow2_get_host_offset(bs, offset, &cur_bytes, in qcow2_co_preadv_part()
2419 qemu_iovec_memset(qiov, qiov_offset, 0, cur_bytes); in qcow2_co_preadv_part()
2421 if (!aio && cur_bytes != bytes) { in qcow2_co_preadv_part()
2425 host_offset, offset, cur_bytes, in qcow2_co_preadv_part()
2432 bytes -= cur_bytes; in qcow2_co_preadv_part()
2433 offset += cur_bytes; in qcow2_co_preadv_part()
2434 qiov_offset += cur_bytes; in qcow2_co_preadv_part()
[all …]
H A Dqcow2-cluster.c1406 uint64_t *cur_bytes, QCowL2Meta **m) in handle_dependencies() argument
1410 uint64_t bytes = *cur_bytes; in handle_dependencies()
1451 *cur_bytes = 0; in handle_dependencies()
1467 *cur_bytes = bytes; in handle_dependencies()
1791 uint64_t cur_bytes; in qcow2_alloc_host_offset() local
1801 cur_bytes = 0; in qcow2_alloc_host_offset()
1810 assert(remaining >= cur_bytes); in qcow2_alloc_host_offset()
1812 start += cur_bytes; in qcow2_alloc_host_offset()
1813 remaining -= cur_bytes; in qcow2_alloc_host_offset()
1816 cluster_offset += cur_bytes; in qcow2_alloc_host_offset()
[all …]
H A Dtrace-events80 qcow2_writev_done_part(void *co, int cur_bytes) "co %p cur_bytes %d"
/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_include/
H A Dmisc_support.h25 #define tot_bytes_for_pow2_align(pow2, cur_bytes) ((cur_bytes + (pow2 - 1)) & ~(pow2 - 1)) argument
/openbmc/linux/drivers/target/
H A Dtarget_core_xcopy.c707 u32 cur_bytes = min_t(u64, max_bytes, nolb * src_dev->dev_attrib.block_size); in target_xcopy_do_work() local
708 unsigned short cur_nolb = cur_bytes / src_dev->dev_attrib.block_size; in target_xcopy_do_work()
710 if (cur_bytes != xop->xop_data_bytes) { in target_xcopy_do_work()
718 cur_bytes, in target_xcopy_do_work()
722 xop->xop_data_bytes = cur_bytes; in target_xcopy_do_work()
728 rc = target_xcopy_read_source(ec_cmd, xop, src_dev, src_lba, cur_bytes); in target_xcopy_do_work()
732 src_lba += cur_bytes / src_dev->dev_attrib.block_size; in target_xcopy_do_work()
740 dst_lba, cur_bytes); in target_xcopy_do_work()
744 dst_lba += cur_bytes / dst_dev->dev_attrib.block_size; in target_xcopy_do_work()
748 copied_bytes += cur_bytes; in target_xcopy_do_work()
[all …]
/openbmc/linux/arch/x86/kernel/cpu/resctrl/
H A Dmonitor.c435 u64 cur_bw, bytes, cur_bytes; in mbm_bw_count() local
437 cur_bytes = rr->val; in mbm_bw_count()
438 bytes = cur_bytes - m->prev_bw_bytes; in mbm_bw_count()
439 m->prev_bw_bytes = cur_bytes; in mbm_bw_count()
/openbmc/linux/drivers/block/null_blk/
H A Dnull_blk.h134 atomic_long_t cur_bytes; member
H A Dmain.c1369 if (atomic_long_sub_return(blk_rq_bytes(rq), &nullb->cur_bytes) < 0) { in null_handle_throttled()
1372 if (atomic_long_read(&nullb->cur_bytes) > 0) in null_handle_throttled()
1521 if (atomic_long_read(&nullb->cur_bytes) == mb_per_tick(mbps)) in nullb_bwtimer_fn()
1524 atomic_long_set(&nullb->cur_bytes, mb_per_tick(mbps)); in nullb_bwtimer_fn()
1538 atomic_long_set(&nullb->cur_bytes, mb_per_tick(nullb->dev->mbps)); in nullb_setup_bwtimer()
1846 atomic_long_set(&nullb->cur_bytes, LONG_MAX); in null_del_dev()
/openbmc/linux/fs/udf/
H A Dsuper.c2429 u32 cur_bytes = min_t(u32, bytes, sb->s_blocksize - index); in udf_count_free_bitmap() local
2431 cur_bytes * 8); in udf_count_free_bitmap()
2432 bytes -= cur_bytes; in udf_count_free_bitmap()
/openbmc/linux/fs/btrfs/
H A Dinode.c9620 u64 cur_bytes; in __btrfs_prealloc_file_range() local
9629 cur_bytes = min_t(u64, num_bytes, SZ_256M); in __btrfs_prealloc_file_range()
9630 cur_bytes = max(cur_bytes, min_size); in __btrfs_prealloc_file_range()
9637 cur_bytes = min(cur_bytes, last_alloc); in __btrfs_prealloc_file_range()
9638 ret = btrfs_reserve_extent(root, cur_bytes, cur_bytes, in __btrfs_prealloc_file_range()