Home
last modified time | relevance | path

Searched refs:u (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/qemu/hw/ufs/
H A Dufs.c259 if ((u->reg.is & UFS_INTR_MASK) & u->reg.ie) { in ufs_irq_check()
313 u->reg.hcs = FIELD_DP32(u->reg.hcs, HCS, DP, 1); in ufs_process_uiccmd()
320 u->reg.is = FIELD_DP32(u->reg.is, IS, UHES, 1); in ufs_process_uiccmd()
325 u->reg.is = FIELD_DP32(u->reg.is, IS, UHXS, 1); in ufs_process_uiccmd()
333 u->reg.is = FIELD_DP32(u->reg.is, IS, UCCS, 1); in ufs_process_uiccmd()
1171 memory_region_init_io(&u->iomem, OBJECT(u), &ufs_mmio_ops, u, "ufs", in ufs_init_pci()
1182 u->req_list[i].hc = u; in ufs_init_state()
1200 memset(&u->reg, 0, sizeof(u->reg)); in ufs_init_hc()
1229 u->device_desc.queue_depth = u->params.nutrs; in ufs_init_hc()
1247 memset(&u->attributes, 0, sizeof(u->attributes)); in ufs_init_hc()
[all …]
/qemu/tests/avocado/acpi-bits/bits-tests/
H A Dsmbios.py2174 u = self.u
205 u = self.u
256 u = self.u
299 u = self.u
384 u = self.u
407 u = self.u
504 u = self.u
551 u = self.u
583 u = self.u
677 u = self.u
[all …]
/qemu/replay/
H A Dreplay-input.c30 key = evt->u.key.data; in replay_save_input_event()
48 btn = evt->u.btn.data; in replay_save_input_event()
53 move = evt->u.rel.data; in replay_save_input_event()
58 move = evt->u.abs.data; in replay_save_input_event()
63 mtt = evt->u.mtt.data; in replay_save_input_event()
90 evt.u.key.data = &key; in replay_read_input_event()
95 evt.u.key.data->key->u.number.data = replay_get_qword(); in replay_read_input_event()
99 evt.u.key.data->key->u.qcode.data = (QKeyCode)replay_get_dword(); in replay_read_input_event()
108 evt.u.btn.data = &btn; in replay_read_input_event()
113 evt.u.rel.data = &rel; in replay_read_input_event()
[all …]
/qemu/hw/usb/
H A Ddesc.c276 d->u.cap.u.usb2_ext.bmAttributes_2 = 0; in usb_desc_cap_usb2_ext()
277 d->u.cap.u.usb2_ext.bmAttributes_3 = 0; in usb_desc_cap_usb2_ext()
278 d->u.cap.u.usb2_ext.bmAttributes_4 = 0; in usb_desc_cap_usb2_ext()
296 d->u.cap.u.super.bmAttributes = 0; in usb_desc_cap_super()
297 d->u.cap.u.super.wSpeedsSupported_lo = 0; in usb_desc_cap_super()
298 d->u.cap.u.super.wSpeedsSupported_hi = 0; in usb_desc_cap_super()
299 d->u.cap.u.super.bFunctionalitySupport = 0; in usb_desc_cap_super()
300 d->u.cap.u.super.bU1DevExitLat = 0x0a; in usb_desc_cap_super()
301 d->u.cap.u.super.wU2DevExitLat_lo = 0x20; in usb_desc_cap_super()
302 d->u.cap.u.super.wU2DevExitLat_hi = 0; in usb_desc_cap_super()
[all …]
/qemu/qobject/
H A Dqnum.c30 qn->u.i64 = value; in qnum_from_int()
46 qn->u.u64 = value; in qnum_from_uint()
62 qn->u.dbl = value; in qnum_from_double()
76 *val = qn->u.i64; in qnum_get_try_int()
82 *val = qn->u.u64; in qnum_get_try_int()
117 *val = qn->u.i64; in qnum_get_try_uint()
120 *val = qn->u.u64; in qnum_get_try_uint()
198 return num_x->u.i64 == num_y->u.i64; in qnum_is_equal()
202 return num_x->u.i64 >= 0 && num_x->u.i64 == num_y->u.u64; in qnum_is_equal()
213 return num_x->u.u64 == num_y->u.u64; in qnum_is_equal()
[all …]
/qemu/tests/tcg/i386/
H A Dtest-i386-snan-convert.c16 union { float f; uint32_t u; } u = { .f = x }; in issignaling_f() local
17 return (u.u & 0x7fffffff) > 0x7f800000 && (u.u & 0x400000) == 0; in issignaling_f()
22 union { double d; uint64_t u; } u = { .d = x }; in issignaling_d() local
23 return (((u.u & UINT64_C(0x7fffffffffffffff)) > in issignaling_d()
25 (u.u & UINT64_C(0x8000000000000)) == 0); in issignaling_d()
33 } u = { .ld = x }; in issignaling_ld() local
34 return ((u.s.sign_exp & 0x7fff) == 0x7fff && in issignaling_ld()
35 (u.s.sig >> 63) != 0 && in issignaling_ld()
36 (u.s.sig & UINT64_C(0x4000000000000000)) == 0); in issignaling_ld()
H A Dtest-i386-fxam.c6 union u { union
11 volatile union u ld_pseudo_m16382 = { .s = { UINT64_C(1) << 63, 0 } };
12 volatile union u ld_pseudo_nm16382 = { .s = { UINT64_C(1) << 63, 0x8000 } };
13 volatile union u ld_invalid_1 = { .s = { 1, 1234 } };
14 volatile union u ld_invalid_2 = { .s = { 0, 1234 } };
15 volatile union u ld_invalid_3 = { .s = { 0, 0x7fff } };
16 volatile union u ld_invalid_4 = { .s = { (UINT64_C(1) << 63) - 1, 0x7fff } };
17 volatile union u ld_invalid_n1 = { .s = { 1, 0x8123 } };
18 volatile union u ld_invalid_n2 = { .s = { 0, 0x8123 } };
19 volatile union u ld_invalid_n3 = { .s = { 0, 0xffff } };
[all …]
/qemu/target/i386/kvm/
H A Dhyperv.c63 switch (exit->u.synic.msr) { in kvm_hv_handle_exit()
86 uint16_t code = exit->u.hcall.input & 0xffff; in kvm_hv_handle_exit()
88 uint64_t in_param = exit->u.hcall.params[0]; in kvm_hv_handle_exit()
89 uint64_t out_param = exit->u.hcall.params[1]; in kvm_hv_handle_exit()
99 exit->u.hcall.result = in kvm_hv_handle_exit()
103 exit->u.hcall.result = in kvm_hv_handle_exit()
107 exit->u.hcall.result = in kvm_hv_handle_exit()
121 switch (exit->u.syndbg.msr) { in kvm_hv_handle_exit()
123 uint64_t control = exit->u.syndbg.control; in kvm_hv_handle_exit()
129 exit->u.syndbg.status = in kvm_hv_handle_exit()
[all …]
/qemu/tests/unit/
H A Dtest-clone-visitor.c45 b_src->u.b = true; in test_clone_alternate()
48 s_src->u.e = ENUM_ONE_VALUE1; in test_clone_alternate()
53 g_assert_cmpint(b_dst->u.b, ==, b_src->u.b); in test_clone_alternate()
57 g_assert_cmpint(s_dst->u.e, ==, s_src->u.e); in test_clone_alternate()
107 src->u.value1.boolean = true; in test_clone_complex1()
134 src->alt->u.udfu.u.value3.intb = 99; in test_clone_complex2()
135 src->alt->u.udfu.u.value3.has_a_b = true; in test_clone_complex2()
136 src->alt->u.udfu.u.value3.a_b = true; in test_clone_complex2()
145 g_assert_cmpint(dst->alt->u.udfu.u.value3.intb, ==, 99); in test_clone_complex2()
146 g_assert_cmpint(dst->alt->u.udfu.u.value3.has_a_b, ==, true); in test_clone_complex2()
[all …]
H A Dtest-util-sockets.c102 g_free(addr.u.fd.str); in test_socket_fd_pass_name_good()
132 g_free(addr.u.fd.str); in test_socket_fd_pass_name_bad()
149 addr.u.fd.str = g_strdup("myfd"); in test_socket_fd_pass_name_nomon()
159 g_free(addr.u.fd.str); in test_socket_fd_pass_name_nomon()
181 g_free(addr.u.fd.str); in test_socket_fd_pass_num_good()
205 g_free(addr.u.fd.str); in test_socket_fd_pass_num_bad()
228 g_free(addr.u.fd.str); in test_socket_fd_pass_num_nocli()
313 addr.u.q_unix.abstract = true; in test_socket_unix_abstract()
315 addr.u.q_unix.tight = false; in test_socket_unix_abstract()
329 unlink(addr.u.q_unix.path); in test_socket_unix_abstract()
[all …]
/qemu/hw/9pfs/
H A Dtrace-events8 …, uint8_t id, int32_t fid, int32_t afid, char* uname, char* aname) "tag %u id %u fid %d afid %d un…
9 …nt8_t id, uint8_t type, uint32_t version, uint64_t path) "tag %u id %u type %u version %u path %"P…
13 …e, uint32_t uid, uint32_t gid) "tag %d id %d getattr={result_mask %"PRId64" mode %u uid %u gid %u}"
17 …8_t type, uint32_t version, uint64_t path, int iounit) "tag %u id %u qid={type %u version %u path …
19 …type, uint32_t version, uint64_t path, int32_t iounit) "tag %u id %u qid={type %u version %u path …
29 …8_t type, uint32_t version, uint64_t path, int iounit) "tag %u id %u qid={type %u version %u path …
31 …8_t id, uint8_t type, uint32_t version, uint64_t path) "tag %u id %u qid={type %u version %u path …
37 …8_t id, uint8_t type, uint32_t version, uint64_t path) "tag %u id %u qid={type %u version %u path …
42 …t id, int32_t fid, char* name, int mode, uint32_t gid) "tag %u id %u fid %d name %s mode %d gid %u"
43 …int8_t type, uint32_t version, uint64_t path, int err) "tag %u id %u qid={type %u version %u path …
[all …]
/qemu/util/
H A Dint128.c47 hi = u.hi; in divrem128()
48 lo = u.lo; in divrem128()
56 lo = u.lo; in divrem128()
57 tmp = u.hi; in divrem128()
61 lo = u.lo; in divrem128()
75 || (hi == u.hi && lo > u.lo)) { in divrem128()
82 u.hi -= hi + (u.lo < lo); in divrem128()
83 u.lo -= lo; in divrem128()
84 return u; in divrem128()
155 r.u = a.u / b.u; in int128_divu()
[all …]
/qemu/hw/virtio/
H A Dvhost-user.c167 } u; member
814 u->shadow_regions[u->num_shadow_regions].guest_phys_addr = in send_add_regions()
816 u->shadow_regions[u->num_shadow_regions].userspace_addr = in send_add_regions()
818 u->shadow_regions[u->num_shadow_regions].memory_size = in send_add_regions()
909 memset(&(u->region_rb[u->region_rb_len]), '\0', in vhost_user_set_mem_table_postcopy()
911 memset(&(u->region_rb_offset[u->region_rb_len]), '\0', in vhost_user_set_mem_table_postcopy()
1883 u->backend_src = qio_channel_add_watch_source(u->backend_ioc, in vhost_setup_backend_channel()
1958 if (!u) { in vhost_user_postcopy_waker()
2149 u->user = vus; in vhost_user_backend_init()
2150 u->dev = dev; in vhost_user_backend_init()
[all …]
/qemu/hw/input/
H A Dvirtio-input-hid.c283 .u.ids = {
297 .u.bitmap = {
340 .u.ids = {
350 .u.bitmap = {
365 .u.ids = {
375 .u.bitmap = {
434 .u.ids = {
444 .u.bitmap = {
471 .u.ids = {
481 .u.bitmap = {
[all …]
/qemu/hw/i386/kvm/
H A Dtrace-events6 xenstore_error(unsigned int id, unsigned int tx_id, const char *err) "req %u tx %u err %s"
7 xenstore_read(unsigned int tx_id, const char *path) "tx %u path %s"
8 xenstore_write(unsigned int tx_id, const char *path) "tx %u path %s"
9 xenstore_mkdir(unsigned int tx_id, const char *path) "tx %u path %s"
10 xenstore_directory(unsigned int tx_id, const char *path) "tx %u path %s"
11 …directory_part(unsigned int tx_id, const char *path, unsigned int offset) "tx %u path %s offset %u"
12 xenstore_transaction_start(unsigned int new_tx) "new_tx %u"
14 xenstore_rm(unsigned int tx_id, const char *path) "tx %u path %s"
15 xenstore_get_perms(unsigned int tx_id, const char *path) "tx %u path %s"
16 xenstore_set_perms(unsigned int tx_id, const char *path) "tx %u path %s"
[all …]
/qemu/backends/tpm/
H A Dtpm_emulator.c205 loc.u.req.loc = locty_number; in tpm_emulator_set_locality()
213 loc.u.resp.tpm_result = be32_to_cpu(loc.u.resp.tpm_result); in tpm_emulator_set_locality()
214 if (loc.u.resp.tpm_result != 0) { in tpm_emulator_set_locality()
321 sizeof(pls.u.req), sizeof(pls.u.resp)) < 0) { in tpm_emulator_lock_storage()
327 pls.u.resp.tpm_result = be32_to_cpu(pls.u.resp.tpm_result); in tpm_emulator_lock_storage()
328 if (pls.u.resp.tpm_result != 0) { in tpm_emulator_lock_storage()
352 sizeof(psbs.u.req), sizeof(psbs.u.resp)) < 0) { in tpm_emulator_set_buffer_size()
358 psbs.u.resp.tpm_result = be32_to_cpu(psbs.u.resp.tpm_result); in tpm_emulator_set_buffer_size()
383 .u.req.init_flags = 0, in tpm_emulator_startup_tpm_resume()
703 pgs.u.req.offset = 0; in tpm_emulator_get_state_blob()
[all …]
/qemu/include/libdecnumber/
H A DdecNumberLocal.h118 u0=u & 0xffff; u1=u>>16; \
272 if ((u)>=pow) {(u)-=pow; *(c)+=8;} \
274 if ((u)>=pow) {(u)-=pow; *(c)+=4;} \
277 if ((u)>=pow) {(u)-=pow; *(c)+=2;} \
279 if ((u)>=pow) {(u)-=pow; *(c)+=1;} \
416 #define ISCOEFFZERO(u) (UINTAT((u)+DECPMAX-4)==0 \ argument
420 && (UINTAT((u)+DECPMAX-8)+UINTAT((u)+DECPMAX-12) \
424 && (UINTAT((u)+DECPMAX-8) +UINTAT((u)+DECPMAX-12) \
425 +UINTAT((u)+DECPMAX-16)+UINTAT((u)+DECPMAX-20) \
426 +UINTAT((u)+DECPMAX-24)+UINTAT((u)+DECPMAX-28) \
[all …]
/qemu/hw/xen/
H A Dxen_pt_config_init.c603 .u.w.read = xen_pt_word_reg_read,
614 .u.w.read = xen_pt_word_reg_read,
625 .u.w.read = xen_pt_word_reg_read,
626 .u.w.write = xen_pt_cmd_reg_write,
636 .u.b.read = xen_pt_byte_reg_read,
717 .u.dw.read = xen_pt_bar_reg_read,
726 .u.dw.read = xen_pt_bar_reg_read,
735 .u.dw.read = xen_pt_bar_reg_read,
744 .u.dw.read = xen_pt_bar_reg_read,
753 .u.dw.read = xen_pt_bar_reg_read,
[all …]
/qemu/hw/misc/
H A Dtrace-events152 …index, uint32_t old_value, uint32_t new_value) "%s pwm[%u] Update Freq: old_freq: %u, new_freq: %u"
153 …index, uint32_t old_value, uint32_t new_value) "%s pwm[%u] Update Duty: old_duty: %u, new_duty: %u"
182 …ider, uint32_t new_divider) "RCC: Mux %d factor changed: multiplier (%u -> %u), divider (%u -> %u)"
183 …rc(uint32_t mux_id, uint32_t old_src, uint32_t new_src) "RCC: Mux %d source changed: from %u to %u"
185 … uint32_t old_multiplier, uint32_t new_multiplier) "RCC: PLL %u: vco_multiplier changed (%u -> %u)"
186 stm32l4x5_rcc_pll_channel_enable(uint32_t pll_id, uint32_t channel_id) "RCC: PLL %u, channel %u ena…
187 stm32l4x5_rcc_pll_channel_disable(uint32_t pll_id, uint32_t channel_id) "RCC: PLL %u, channel %u di…
188 …, uint32_t old_divider, uint32_t new_divider) "RCC: PLL %u, channel %u: divider changed (%u -> %u)"
306 via1_rtc_internal_set_alt(int alt, int sector, int offset) "alt=0x%02x sector=%u offset=%u"
313 via1_rtc_cmd_pram_sect_read(int sector, int offset, int addr, int value) "sector=%u offset=%u addr=…
[all …]
/qemu/crypto/
H A Dxts.c32 uint64_t u[2]; member
39 D->u[0] = S1->u[0] ^ S2->u[0]; in xts_uint128_xor()
40 D->u[1] = S1->u[1] ^ S2->u[1]; in xts_uint128_xor()
45 cpu_to_le64s(&v->u[0]); in xts_uint128_cpu_to_les()
46 cpu_to_le64s(&v->u[1]); in xts_uint128_cpu_to_les()
61 tt = I->u[0] >> 63; in xts_mult_x()
62 I->u[0] <<= 1; in xts_mult_x()
64 if (I->u[1] >> 63) { in xts_mult_x()
65 I->u[0] ^= 0x87; in xts_mult_x()
67 I->u[1] <<= 1; in xts_mult_x()
[all …]
/qemu/hw/timer/
H A Dtrace-events58 …64_t addr, uint32_t value, unsigned size) "timer %u read addr 0x%" PRIx64 " data 0x%" PRIx32 " siz…
59 …64_t addr, uint32_t value, unsigned size) "timer %u write addr 0x%" PRIx64 " data 0x%" PRIx32 " si…
60 nrf51_timer_set_count(uint8_t timer_id, uint8_t counter_id, uint32_t value) "timer %u counter %u co…
63 bcm2835_systmr_timer_expired(unsigned id) "timer #%u expired"
64 bcm2835_systmr_irq_ack(unsigned id) "timer #%u acked"
70 avr_timer16_read(uint8_t addr, uint8_t value) "timer16 read addr:%u value:%u"
71 avr_timer16_read_ifr(uint8_t value) "timer16 read addr:ifr value:%u"
72 avr_timer16_read_imsk(uint8_t value) "timer16 read addr:imsk value:%u"
73 avr_timer16_write(uint8_t addr, uint8_t value) "timer16 write addr:%u value:%u"
75 avr_timer16_interrupt_count(uint8_t cnt) "count: %u"
[all …]
/qemu/hw/audio/
H A Dtrace-events12 es1370_frame_count_rd(int ch, uint32_t curr, uint32_t size) "ch=%d CURR_CT=%u BUF_SIZE=%u"
13 es1370_frame_count_wr(int ch, uint32_t curr, uint32_t size) "ch=%d CURR_CT=%u BUF_SIZE=%u"
15 es1370_sample_count_rd(int ch, uint32_t curr, uint32_t num) "ch=%d CURR_SAMP_CT=%u SAMP_CT=%u"
16 es1370_sample_count_wr(int ch, uint32_t curr, uint32_t num) "ch=%d CURR_SAMP_CT=%u SAMP_CT=%u"
17 …ch, uint32_t freq, const char *fmt, const char *mode, uint32_t shift) "ch=%d fmt=%u:%s:%s shift=%u"
18 …num, uint32_t leftover, bool irq) "ch=%d CURR_CT=%u BUF_SIZE=%u CURR_SAMP_CT=%u SAMP_CT=%u leftove…
33 asc_read_fifo(const char fifo, int reg, unsigned size, uint64_t value) "fifo %c reg=0x%03x size=%u
34 asc_read_reg(int reg, unsigned size, uint64_t value) "reg=0x%03x size=%u value=0x%"PRIx64
35 …nst char fifo, int reg, unsigned size, uint64_t value) "fifo %c reg=0x%03x size=%u value=0x%"PRIx64
38 asc_write_reg(int reg, unsigned size, uint64_t value) "reg=0x%03x size=%u value=0x%"PRIx64
[all …]
/qemu/tests/qtest/
H A Dtpm-emu.c149 qio_channel_read(ioc, (char *)&init.u.req, sizeof(init.u.req), in tpm_emu_ctrl_thread()
151 init.u.resp.tpm_result = 0; in tpm_emu_ctrl_thread()
152 qio_channel_write(ioc, (char *)&init.u.resp, sizeof(init.u.resp), in tpm_emu_ctrl_thread()
170 qio_channel_read(ioc, (char *)&sbs.u.req, sizeof(sbs.u.req), in tpm_emu_ctrl_thread()
172 sbs.u.resp.buffersize = sbs.u.req.buffersize ?: cpu_to_be32(4096); in tpm_emu_ctrl_thread()
173 sbs.u.resp.tpm_result = 0; in tpm_emu_ctrl_thread()
174 sbs.u.resp.minsize = cpu_to_be32(128); in tpm_emu_ctrl_thread()
176 qio_channel_write(ioc, (char *)&sbs.u.resp, sizeof(sbs.u.resp), in tpm_emu_ctrl_thread()
184 g_assert_cmpint(loc.u.req.loc, ==, 0); in tpm_emu_ctrl_thread()
185 loc.u.resp.tpm_result = 0; in tpm_emu_ctrl_thread()
[all …]
/qemu/target/arm/
H A Dcpu.c2108 u = FIELD_DP32(u, MVFR0, FPSP, 0); in arm_cpu_realizefn()
2109 u = FIELD_DP32(u, MVFR0, FPDP, 0); in arm_cpu_realizefn()
2111 u = FIELD_DP32(u, MVFR0, FPSQRT, 0); in arm_cpu_realizefn()
2120 u = FIELD_DP32(u, MVFR1, FPFTZ, 0); in arm_cpu_realizefn()
2121 u = FIELD_DP32(u, MVFR1, FPDNAN, 0); in arm_cpu_realizefn()
2122 u = FIELD_DP32(u, MVFR1, FPHP, 0); in arm_cpu_realizefn()
2129 u = FIELD_DP32(u, MVFR2, FPMISC, 0); in arm_cpu_realizefn()
2160 u = FIELD_DP32(u, ID_ISAR5, AES, 0); in arm_cpu_realizefn()
2163 u = FIELD_DP32(u, ID_ISAR5, RDM, 0); in arm_cpu_realizefn()
2168 u = FIELD_DP32(u, ID_ISAR6, DP, 0); in arm_cpu_realizefn()
[all …]
/qemu/net/
H A Dtrace-events12 …et_info(const char *sta, uint32_t vnet_hdr, int size) ": %s pkt->vnet_hdr_len = %u, pkt->size = %d"
21 …uint32_t ack, int hdlen, int pdlen, int offset, int flags) "%s: seq/ack= %u/%u hdlen= %d pdlen= %d…
24 … *dst, uint32_t seq, uint32_t ack, uint32_t flag) "%s: src/dst: %s/%s p: seq/ack=%u/%u flags=0x%x"
25 colo_filter_rewriter_conn_offset(uint32_t offset) ": offset=%u"
28 …ress_space_id(void *v, unsigned vq_group, unsigned asid_num) "vhost_vdpa: %p vq_group: %u asid: %u"
29 …lass, uint8_t cmd, int data_num, int data_size) "vdpa state: %p class: %u cmd: %u sg_num: %d size:…
30 …md_retval(void *s, uint8_t class, uint8_t cmd, int r) "vdpa state: %p class: %u cmd: %u retval: %d"

12345678910>>...22