Home
last modified time | relevance | path

Searched refs:log_size (Results 1 – 16 of 16) sorted by relevance

/openbmc/u-boot/lib/
H A Dtpm-v2.c180 if (elog->log_position + event_size > elog->log_size) { in tcg2_log_append_check()
182 elog->log_position, event_size, elog->log_size); in tcg2_log_append_check()
200 u32 log_size; in tcg2_log_init() local
232 log_size = offsetof(struct tcg_pcr_event, event) + event_size; in tcg2_log_init()
234 if (log_size > elog->log_size) { in tcg2_log_init()
235 printf("%s: log too large: %u > %u\n", __func__, log_size, in tcg2_log_init()
236 elog->log_size); in tcg2_log_init()
274 elog->log_position = log_size; in tcg2_log_init()
296 while (log_position + offset < elog->log_size) { in tcg2_replay_eventlog()
316 if (log_position + pos + sizeof(u16) >= elog->log_size) in tcg2_replay_eventlog()
[all …]
/openbmc/qemu/hw/virtio/
H A Dvhost.c100 assert(end / VHOST_LOG_CHUNK < dev->log_size); in vhost_dev_sync_region()
101 assert(start / VHOST_LOG_CHUNK < dev->log_size); in vhost_dev_sync_region()
291 uint64_t log_size = 0; in vhost_get_log_size() local
297 log_size = MAX(log_size, last / VHOST_LOG_CHUNK + 1); in vhost_get_log_size()
299 return log_size; in vhost_get_log_size()
408 if (dev->log_size && sync) { in vhost_log_put()
409 vhost_log_sync_range(dev, 0, dev->log_size * VHOST_LOG_CHUNK - 1); in vhost_log_put()
426 dev->log_size = 0; in vhost_log_put()
451 dev->log_size = size; in vhost_dev_log_resize()
624 uint64_t log_size; in vhost_commit() local
[all …]
H A Dvirtio-qmp.c798 status->vhost_dev->log_size = hdev->log_size; in qmp_x_query_virtio_status()
H A Dvirtio-hmp-cmds.c173 s->vhost_dev->log_size); in hmp_virtio_status()
/openbmc/qemu/block/
H A Dvhdx.c1518 uint32_t log_size) in vhdx_create_new_headers() argument
1533 hdr->log_length = log_size; in vhdx_create_new_headers()
1797 uint32_t log_size, bool use_zero_blocks, in vhdx_create_new_region_table() argument
1845 rt_bat->file_offset = ROUND_UP(VHDX_HEADER_SECTION_END + log_size, MiB); in vhdx_create_new_region_table()
1920 uint32_t log_size; in vhdx_co_create() local
1941 log_size = DEFAULT_LOG_SIZE; in vhdx_co_create()
1943 if (vhdx_opts->log_size > UINT32_MAX) { in vhdx_co_create()
1947 log_size = vhdx_opts->log_size; in vhdx_co_create()
1949 if (log_size < MiB || (log_size % MiB) != 0) { in vhdx_co_create()
2043 ret = vhdx_create_new_headers(blk, image_size, log_size); in vhdx_co_create()
[all …]
/openbmc/qemu/subprojects/libvduse/
H A Dlibvduse.c988 size_t log_size = dev->num_queues * vduse_vq_log_size(VIRTQUEUE_MAX_SIZE); in vduse_dev_stop_dataplane() local
995 memset(dev->log, 0, log_size); in vduse_dev_stop_dataplane()
1113 size_t log_size = dev->num_queues * vduse_vq_log_size(VIRTQUEUE_MAX_SIZE); in vduse_set_reconnect_log_file() local
1117 dev->log = log = vduse_log_get(filename, log_size); in vduse_set_reconnect_log_file()
1356 size_t log_size = dev->num_queues * vduse_vq_log_size(VIRTQUEUE_MAX_SIZE); in vduse_dev_destroy() local
1360 munmap(dev->log, log_size); in vduse_dev_destroy()
/openbmc/qemu/tests/qtest/
H A Dpnv-xive2-test.c26 uint64_t vsd, size, log_size; in set_table() local
55 log_size = ctzl(XIVE_VST_SIZE) - 12; in set_table()
57 vsd = ((uint64_t) VSD_MODE_EXCLUSIVE) << 62 | addr | log_size; in set_table()
H A Dvhost-user-test.c730 guint64 log_size = 0; in get_log_size() local
737 log_size = MAX(log_size, last / (8 * VHOST_LOG_PAGE) + 1); in get_log_size()
740 return log_size; in get_log_size()
/openbmc/qemu/include/hw/virtio/
H A Dvhost.h127 uint64_t log_size; member
/openbmc/qemu/subprojects/libvhost-user/
H A Dlibvhost-user.h406 uint64_t log_size; member
H A Dlibvhost-user.c738 assert(dev->log_size > ((address + length - 1) / VHOST_LOG_PAGE / 8)); in vu_log_write()
846 if (munmap(dev->log_table, dev->log_size) != 0) { in vu_close_log()
1167 munmap(dev->log_table, dev->log_size); in vu_set_log_base_exec()
1170 dev->log_size = log_mmap_size; in vu_set_log_base_exec()
/openbmc/u-boot/include/
H A Dtpm-v2.h499 u32 log_size; member
/openbmc/qemu/hw/nvme/
H A Dctrl.c5243 uint32_t log_size, trans_len; in nvme_fdp_confs() local
5265 log_size = sizeof(NvmeFdpConfsHdr) + fdp_descr_size; in nvme_fdp_confs()
5267 if (off >= log_size) { in nvme_fdp_confs()
5271 trans_len = MIN(log_size - off, buf_len); in nvme_fdp_confs()
5273 buf = g_malloc0(log_size); in nvme_fdp_confs()
5279 log->size = cpu_to_le32(log_size); in nvme_fdp_confs()
5319 uint32_t log_size, trans_len; in nvme_fdp_ruh_usage() local
5332 log_size = sizeof(NvmeRuhuLog) + endgrp->fdp.nruh * sizeof(NvmeRuhuDescr); in nvme_fdp_ruh_usage()
5334 if (off >= log_size) { in nvme_fdp_ruh_usage()
5338 trans_len = MIN(log_size - off, buf_len); in nvme_fdp_ruh_usage()
[all …]
/openbmc/u-boot/common/
H A Dbootm.c616 elog.log_size = 0; in bootm_measure()
/openbmc/qemu/qapi/
H A Dvirtio.json98 # @log-size: vhost_dev log_size
/openbmc/qemu/docs/system/
H A Dqemu-block-drivers.rst.inc369 .. option:: log_size