Home
last modified time | relevance | path

Searched full:u64 (Results 1 – 25 of 72) sorted by relevance

123

/qemu/tests/unit/
H A Dtest-opts-visitor.c100 uint64List *u64; in test_value() local
115 for (u64 = f->userdef->u64; u64 != NULL; u64 = u64->next) { in test_value()
116 g_assert(u64->value < 64); in test_value()
117 bitval = 1ull << u64->value; in test_value()
159 g_assert(f->userdef->u64->next == NULL); in expect_zero()
160 g_assert(f->userdef->u64->value == 0); in expect_zero()
169 g_assert(f->userdef->u64->next == NULL); in expect_u64_max()
170 g_assert(f->userdef->u64->value == UINT64_MAX); in expect_u64_max()
282 * going to be recomposed using the lists called "i64", "u64" and "u16", in main()
293 * Both "i64" and "u64" have some (distinct) single-element ranges in main()
[all …]
/qemu/rust/hw/timer/hpet/src/
H A Ddevice.rs36 const HPET_REG_SPACE_LEN: u64 = 0x400; // 1024 bytes
50 const HPET_CLK_PERIOD: u64 = 10; // 10 ns
51 const FS_PER_NS: u64 = 1000000; // 1000000 femtoseconds == 1 ns
54 const HPET_CAP_REV_ID_VALUE: u64 = 0x1;
63 const HPET_CAP_VENDER_ID_VALUE: u64 = 0x8086;
73 const HPET_CFG_WRITE_MASK: u64 = 0x003;
77 const HPET_TN_CFG_WRITE_MASK: u64 = 0x7f4e;
93 const HPET_TN_CFG_INT_ROUTE_MASK: u64 = 0x3e00;
103 #[repr(u64)]
116 #[repr(u64)]
[all …]
H A Dfw_cfg.rs17 pub address: u64,
59 pub(crate) fn update_hpet_cfg(hpet_id: usize, timer_block_id: u32, address: u64) { in update_hpet_cfg() argument
/qemu/qobject/
H A Dqnum.c46 qn->u.u64 = value; in qnum_from_uint()
79 if (qn->u.u64 > INT64_MAX) { in qnum_get_try_int()
82 *val = qn->u.u64; in qnum_get_try_int()
119 *val = qn->u.u64; in qnum_get_try_uint()
152 return qn->u.u64; in qnum_get_double()
166 return g_strdup_printf("%" PRIu64, qn->u.u64); in qnum_to_string()
180 * equal independently of whether the QNum's kind is i64 or u64.
198 return num_x->u.i64 >= 0 && num_x->u.i64 == num_y->u.u64; in qnum_is_equal()
209 return num_x->u.u64 == num_y->u.u64; in qnum_is_equal()
/qemu/hw/remote/
H A Dmessage.c103 ret.data.u64 = UINT64_MAX; in process_config_write()
109 ret.size = sizeof(ret.data.u64); in process_config_write()
127 ret.data.u64 = UINT64_MAX; in process_config_read()
129 ret.data.u64 = pci_default_read_config(dev, conf->addr, conf->len); in process_config_read()
133 ret.size = sizeof(ret.data.u64); in process_config_read()
153 ret.data.u64 = UINT64_MAX; in process_bar_write()
165 ret.data.u64 = -1; in process_bar_write()
170 ret.size = sizeof(ret.data.u64); in process_bar_write()
206 ret.data.u64 = le64_to_cpu(val); in process_bar_read()
207 ret.size = sizeof(ret.data.u64); in process_bar_read()
/qemu/pc-bios/s390-ccw/
H A Ds390-time.h4 static inline u64 get_clock(void) in get_clock()
6 u64 r; in get_clock()
12 static inline u64 get_time_ms(void) in get_time_ms()
18 static inline u64 get_time_seconds(void) in get_time_seconds()
/qemu/scripts/
H A Duserfaultfd-wrlat.py35 BPF_HASH(ev_start, u32, u64);
36 BPF_HISTOGRAM(ev_delta_hist, u64);
43 u64 ts = bpf_ktime_get_ns();
53 u64 ts = bpf_ktime_get_ns();
54 u64 *tsp;
58 u64 delta = ts - (*tsp);
/qemu/hw/net/
H A Dvmxnet3.h30 #define u64 uint64_t macro
77 u64 TSOPktsTxOK; /* TSO pkts post-segmentation */
78 u64 TSOBytesTxOK;
79 u64 ucastPktsTxOK;
80 u64 ucastBytesTxOK;
81 u64 mcastPktsTxOK;
82 u64 mcastBytesTxOK;
83 u64 bcastPktsTxOK;
84 u64 bcastBytesTxOK;
85 u64 pktsTxError;
[all …]
/qemu/tests/qemu-iotests/
H A Dqcow2_format.py81 'u64': 'Q'
95 - c-type (one of 'u8', 'u16', 'u32', 'u64')
144 ('u64', '{:#x}', 'bitmap_directory_size'),
145 ('u64', '{:#x}', 'bitmap_directory_offset')
179 ('u64', '{:#x}', 'bitmap_table_offset'),
225 ('u64', '{}', 'entry'),
374 ('u64', '{:#x}', 'backing_file_offset'),
377 ('u64', '{}', 'size'),
380 ('u64', '{:#x}', 'l1_table_offset'),
381 ('u64', '{:#x}', 'refcount_table_offset'),
[all …]
/qemu/rust/qemu-api/src/
H A Dmemory.rs43 unsafe extern "C" fn memory_region_ops_read_cb<T, F: for<'a> FnCall<(&'a T, hwaddr, u32), u64>>( in memory_region_ops_read_cb()
47 ) -> u64 { in memory_region_ops_read_cb() argument
51 unsafe extern "C" fn memory_region_ops_write_cb<T, F: for<'a> FnCall<(&'a T, hwaddr, u64, u32)>>( in memory_region_ops_write_cb() argument
54 data: u64, in memory_region_ops_write_cb() argument
62 pub const fn read<F: for<'a> FnCall<(&'a T, hwaddr, u32), u64>>(mut self, _f: &F) -> Self { in read()
68 pub const fn write<F: for<'a> FnCall<(&'a T, hwaddr, u64, u32)>>(mut self, _f: &F) -> Self { in write() argument
153 size: u64, in do_init_io() argument
173 size: u64, in init_io() argument
H A Dtimer.rs89 pub fn modify(&self, expire_time: u64) { in modify() argument
114 pub fn get_ns(&self) -> u64 { in get_ns() argument
117 (unsafe { qemu_clock_get_ns(self.id) }) as u64 in get_ns()
125 pub const NANOSECONDS_PER_SECOND: u64 = 1000000000;
/qemu/target/ppc/
H A Darch_dump.c177 vmxregset->avr[i].u64[0] = bswap64(avr->u64[1]); in ppc_write_elf_vmxregset()
178 vmxregset->avr[i].u64[1] = bswap64(avr->u64[0]); in ppc_write_elf_vmxregset()
180 vmxregset->avr[i].u64[0] = avr->u64[0]; in ppc_write_elf_vmxregset()
181 vmxregset->avr[i].u64[1] = avr->u64[1]; in ppc_write_elf_vmxregset()
H A Dint_helper.c499 uint64_t res = b->u64[0] ^ b->u64[1]; in helper_VPRTYBQ()
1115 ppc_vsr_t tmp = { .u64 = {0, 0} }; in VMUL()
1174 high = a->u64[i]; in helper_VDIVEUD()
1176 if (unlikely(!b->u64[i])) { in helper_VDIVEUD()
1177 t->u64[i] = a->u64[i]; /* Undefined behavior */ in helper_VDIVEUD()
1179 divu128(&low, &high, b->u64[i]); in helper_VDIVEUD()
1180 t->u64[i] = low; in helper_VDIVEUD()
1299 ppc_vsr_t tmp = { .u64 = { 0, 0 } }; \
1343 ppc_vsr_t tmp = { .u64 = { 0, 0 } }; \
1393 ppc_avr_t result = { .u64 = { 0, 0 } }; in helper_vbpermd()
[all …]
H A Dcpu.c60 env->vscr_sat.u64[0] = vscr & (1u << VSCR_SAT); in ppc_store_vscr()
61 env->vscr_sat.u64[1] = 0; in ppc_store_vscr()
68 uint32_t sat = (env->vscr_sat.u64[0] | env->vscr_sat.u64[1]) != 0; in ppc_get_vscr()
/qemu/qapi/
H A Dstring-input-visitor.c40 uint64_t u64; member
267 siv->rangeNext.u64 = start; in try_parse_uint64_list_entry()
268 siv->rangeEnd.u64 = end; in try_parse_uint64_list_entry()
298 assert(siv->rangeNext.u64 <= siv->rangeEnd.u64); in parse_type_uint64()
299 *obj = siv->rangeNext.u64++; in parse_type_uint64()
301 if (siv->rangeNext.u64 > siv->rangeEnd.u64 || *obj == UINT64_MAX) { in parse_type_uint64()
/qemu/hw/virtio/
H A Dvhost-user.c179 uint64_t u64; member
214 uint64_t u64; member
360 return msg_reply.payload.u64 ? -EIO : 0; in process_message_reply()
868 msg->hdr.size = sizeof(msg->payload.u64); in vhost_user_add_remove_regions()
869 msg->payload.u64 = 0; /* OK */ in vhost_user_add_remove_regions()
991 msg.hdr.size = sizeof(msg.payload.u64); in vhost_user_set_mem_table_postcopy()
992 msg.payload.u64 = 0; /* OK */ in vhost_user_set_mem_table_postcopy()
1078 static int vhost_user_get_u64(struct vhost_dev *dev, int request, uint64_t *u64) in vhost_user_get_u64() argument
1106 if (msg.hdr.size != sizeof(msg.payload.u64)) { in vhost_user_get_u64()
1111 *u64 = msg.payload.u64; in vhost_user_get_u64()
[all …]
/qemu/tests/qtest/
H A Dvhost-user-test.c122 uint64_t u64; member
372 msg.size = sizeof(m.payload.u64); in chr_read()
375 msg.payload.u64 = 0; in chr_read()
378 msg.payload.u64 = s->vu_ops->get_features(s); in chr_read()
422 qos_printf("set_protocol_features: 0x%"PRIx64 "\n", msg.payload.u64); in chr_read()
501 msg.size = sizeof(m.payload.u64); in chr_read()
502 msg.payload.u64 = s->queues; in chr_read()
1060 g_assert(msg->payload.u64 & (0x1ULL << VHOST_USER_F_PROTOCOL_FEATURES)); in vu_net_set_features()
1072 msg->size = sizeof(m.payload.u64); in vu_net_get_protocol_features()
1073 msg->payload.u64 = 1 << VHOST_USER_PROTOCOL_F_LOG_SHMFD; in vu_net_get_protocol_features()
[all …]
/qemu/subprojects/libvhost-user/
H A Dlibvhost-user.c498 /* Set reply payload.u64 and clear request flags and fd_num */
502 vmsg->size = sizeof(vmsg->payload.u64); in vmsg_set_reply_u64()
503 vmsg->payload.u64 = val; in vmsg_set_reply_u64()
702 result = msg_reply.payload.u64 == 0; in vu_process_message_reply()
774 vmsg->payload.u64 = in vu_get_features_exec()
789 vmsg->payload.u64 |= dev->iface->get_features(dev); in vu_get_features_exec()
792 vmsg->size = sizeof(vmsg->payload.u64); in vu_get_features_exec()
795 DPRINT("Sending back to guest u64: 0x%016"PRIx64"\n", vmsg->payload.u64); in vu_get_features_exec()
813 DPRINT("u64: 0x%016"PRIx64"\n", vmsg->payload.u64); in vu_set_features_exec()
815 dev->features = vmsg->payload.u64; in vu_set_features_exec()
[all …]
/qemu/linux-user/
H A Dfd-trans.c515 uint64_t *u64; in host_to_target_data_bridge_nlattr() local
575 u64 = NLA_DATA(nlattr); in host_to_target_data_bridge_nlattr()
576 *u64 = tswap64(*u64); in host_to_target_data_bridge_nlattr()
601 uint64_t *u64; in host_to_target_slave_data_bridge_nlattr() local
649 u64 = NLA_DATA(nlattr); in host_to_target_slave_data_bridge_nlattr()
650 *u64 = tswap64(*u64); in host_to_target_slave_data_bridge_nlattr()
784 uint64_t *u64; in host_to_target_data_inet6_nlattr() local
819 u64 = NLA_DATA(nlattr); in host_to_target_data_inet6_nlattr()
820 for (i = 0; i < (nlattr->nla_len - NLA_HDRLEN) / sizeof(*u64); in host_to_target_data_inet6_nlattr()
822 u64[i] = tswap64(u64[i]); in host_to_target_data_inet6_nlattr()
[all …]
/qemu/docs/interop/
H A Dvhost-user.rst95 | u64 |
98 :u64: a 64-bit unsigned integer
291 | u64 | size | offset |
294 :u64: a 64-bit integer contains vring index and flags
365 uint64_t u64;
1064 :reply payload: ``u64``
1074 :request payload: ``u64``
1086 :reply payload: ``u64``
1102 :request payload: ``u64``
1165 :request payload: u64
[all …]
H A Dvhost-user-gpu.rst147 :modifier: ``u64``, the DMABUF modifiers
170 uint64_t u64;
195 :reply payload: ``u64``
201 :request payload: ``u64``
/qemu/hw/net/rocker/
H A Drocker_hw.h233 ROCKER_TLV_RX_FRAG_ADDR, /* u64 */
282 ROCKER_TLV_TX_FRAG_ATTR_ADDR, /* u64 */
299 ROCKER_TLV_OF_DPA_COOKIE, /* u64 */
382 ROCKER_TLV_OF_DPA_FLOW_STAT_RX_PKTS, /* u64 */
383 ROCKER_TLV_OF_DPA_FLOW_STAT_TX_PKTS, /* u64 */
/qemu/tests/tcg/multiarch/
H A Dtest-plugin-mem-access.c87 DEFINE_STORE(u64, uint64_t, 0xf123456789abcdef)
88 DEFINE_LOAD(u64, uint64_t, 0xf123456789abcdef)
131 DEFINE_ATOMIC_OP(u64, uint64_t, 0xf123456789abcdef)
/qemu/include/hw/remote/
H A Dmpqemu-link.h23 #define MPQEMU_MSG_HDR_SIZE offsetof(MPQemuMsg, data.u64)
82 uint64_t u64; member
/qemu/linux-user/ppc/
H A Dsignal.c272 __put_user(avr->u64[PPC_VEC_HI], &vreg->u64[0]); in save_user_regs()
273 __put_user(avr->u64[PPC_VEC_LO], &vreg->u64[1]); in save_user_regs()
381 __get_user(avr->u64[PPC_VEC_HI], &vreg->u64[0]); in restore_user_regs()
382 __get_user(avr->u64[PPC_VEC_LO], &vreg->u64[1]); in restore_user_regs()

123