/qemu/tests/tcg/i386/ |
H A D | test-i386-fbstp.c | 20 unsigned char out[10]; in main() local 21 memset(out, 0xfe, sizeof out); in main() 22 __asm__ volatile ("fbstp %0" : "=m" (out) : "t" (-0.0L) : "st"); in main() 23 out[9] &= 0x80; in main() 24 if (memcmp(out, "\0\0\0\0\0\0\0\0\0\x80", sizeof out) != 0) { in main() 28 memset(out, 0x12, sizeof out); in main() 29 __asm__ volatile ("fbstp %0" : "=m" (out) : "t" (-0.1L) : "st"); in main() 30 out[9] &= 0x80; in main() 31 if (memcmp(out, "\0\0\0\0\0\0\0\0\0\x80", sizeof out) != 0) { in main() 35 memset(out, 0x1f, sizeof out); in main() [all …]
|
/qemu/audio/ |
H A D | spiceaudio.c | 95 SpiceVoiceOut *out = container_of (hw, SpiceVoiceOut, hw); in line_out_init() local 109 out->active = 0; in line_out_init() 111 out->sin.base.sif = &playback_sif.base; in line_out_init() 112 qemu_spice.add_interface(&out->sin.base); in line_out_init() 114 spice_server_set_playback_rate(&out->sin, settings.freq); in line_out_init() 121 SpiceVoiceOut *out = container_of (hw, SpiceVoiceOut, hw); in line_out_fini() local 123 spice_server_remove_interface (&out->sin.base); in line_out_fini() 128 SpiceVoiceOut *out = container_of(hw, SpiceVoiceOut, hw); in line_out_get_free() local 130 return audio_rate_peek_bytes(&out->rate, &hw->info); in line_out_get_free() 135 SpiceVoiceOut *out = container_of(hw, SpiceVoiceOut, hw); in line_out_get_buffer() local [all …]
|
H A D | mixeng_template.h | 103 struct st_sample *out = dst; in glue() local 107 out->l = glue (conv_, ET) (*in++); in glue() 108 out->r = glue (conv_, ET) (*in++); in glue() 109 out += 1; in glue() 116 struct st_sample *out = dst; in glue() local 120 out->l = glue (conv_, ET) (in[0]); in glue() 121 out->r = out->l; in glue() 122 out += 1; in glue() 131 IN_T *out = (IN_T *) dst; in glue() local 133 *out++ = glue (clip_, ET) (in->l); in glue() [all …]
|
/qemu/tests/unit/ |
H A D | test-crypto-pbkdf.c | 40 const char *out; member 61 .out = "\xcd\xed\xb5\x28\x1b\xb2\xf8\x01" 75 .out = "\x01\xdb\xee\x7f\x4a\x9e\x24\x3e" 89 .out = "\x5c\x08\xeb\x61\xfd\xf7\x1e\x4e" 103 .out = "\xd1\xda\xa7\x86\x15\xf2\x87\xe6" 118 .out = "\x13\x9c\x30\xc0\x96\x6b\xc3\x2b" 133 .out = "\x9c\xca\xd6\xd4\x68\x77\x0c\xd5" 147 .out = "\x6b\x9c\xf2\x6d\x45\x45\x5a\x43" 163 .out = "\x0c\x60\xc8\x0f\x96\x1f\x0e\x71\xf3\xa9" 175 .out = "\xea\x6c\x01\x4d\xc7\x2d\x6f\x8c\xcd\x1e" [all …]
|
H A D | test-crypto-xts.c | 343 uint8_t out[512], Torg[16], T[16]; in test_xts() local 361 T, data->PTLEN, out, data->PTX); in test_xts() 363 g_assert(memcmp(out, data->CTX, data->PTLEN) == 0); in test_xts() 369 T, data->PTLEN, out, data->CTX); in test_xts() 371 g_assert(memcmp(out, data->PTX, data->PTLEN) == 0); in test_xts() 378 uint8_t out[512], Torg[16], T[16]; in test_xts_split() local 397 T, len, out, data->PTX); in test_xts_split() 401 T, len, &out[len], &data->PTX[len]); in test_xts_split() 403 g_assert(memcmp(out, data->CTX, data->PTLEN) == 0); in test_xts_split() 409 T, len, out, data->CTX); in test_xts_split() [all …]
|
/qemu/hw/hyperv/ |
H A D | hv-balloon-page_range_tree.h | 22 uint64_t start, PageRange *out) in page_range_part_before() argument 27 out->start = range->start; in page_range_part_before() 28 if (end > out->start) { in page_range_part_before() 29 out->count = end - out->start; in page_range_part_before() 31 out->count = 0; in page_range_part_before() 38 PageRange *out) in page_range_part_after() argument 43 out->start = MAX(range->start, ends); in page_range_part_after() 44 if (end > out->start) { in page_range_part_after() 45 out->count = end - out->start; in page_range_part_after() 47 out->count = 0; in page_range_part_after() [all …]
|
/qemu/scripts/tracetool/backend/ |
H A D | simple.py | 15 from tracetool import out 32 out('void _simple_%(api)s(%(args)s);', 35 out('') 45 out(' if (%(cond)s) {', 54 out(' trace_event_get_state_dynamic_by_id(%(event_id)s) || \\', 59 out('#include "qemu/osdep.h"', 66 out('void _simple_%(api)s(%(args)s)', 74 … out(' size_t arg%(name)s_len = %(name)s ? MIN(strlen(%(name)s), MAX_TRACE_STRLEN) : 0;', 84 out('', 95 out(' trace_record_write_str(&rec, %(name)s, arg%(name)s_len);', [all …]
|
H A D | dtrace.py | 15 from tracetool import out 47 out('#ifndef SDT_USE_VARIADIC') 48 out('#define SDT_USE_VARIADIC 1') 49 out('#endif') 51 out('#include "%s"' % header, 54 out('#undef SDT_USE_VARIADIC') 59 out('#ifndef QEMU_%(uppername)s_ENABLED', 65 out(' QEMU_%(uppername)s(%(argnames)s);', 71 out(' QEMU_%(uppername)s_ENABLED() || \\',
|
/qemu/scripts/tracetool/format/ |
H A D | ust_events_h.py | 15 from tracetool import out 27 out('/* This file is autogenerated by tracetool, do not edit. */', 62 out('TRACEPOINT_EVENT(', 75 out(' ctf_string(' + n + ', ' + n + ')') 77 out(' ctf_integer_hex('+ t + ', ' + n + ', ' + n + ')') 79 out(' ctf_integer_hex('+ t + ', ' + n + ', ' + n + ')') 82 out(' ctf_integer(' + t + ', ' + n + ', ' + n + ')') 84 out(' ctf_float(' + t + ', ' + n + ', ' + n + ')') 86 out(' ctf_integer_hex(unsigned long, ' + n + ', ' + n + ')') 88 out(' )', [all …]
|
H A D | h.py | 15 from tracetool import out 21 out('/* This file is autogenerated by tracetool, do not edit. */', 30 out('extern TraceEvent %(event)s;', 34 out('extern uint16_t %s;' % e.api(e.QEMU_DSTATE)) 44 out('#define TRACE_%(name)s_ENABLED %(enabled)d', 47 out('#define TRACE_%s_ENABLED %d' % (e.name.upper(), enabled)) 53 out('', 60 out(' false)') 63 out('', 72 out('}') [all …]
|
H A D | c.py | 15 from tracetool import out 24 out('/* This file is autogenerated by tracetool, do not edit. */', 32 out('uint16_t %s;' % e.api(e.QEMU_DSTATE)) 35 out('TraceEvent %(event)s = {', 46 out('TraceEvent *%(group)s_trace_events[] = {', 50 out(' &%(event)s,', event = e.api(e.QEMU_EVENT)) 52 out(' NULL,', 56 out('static void trace_%(group)s_register_events(void)',
|
/qemu/chardev/ |
H A D | char-file.c | 44 HANDLE out; in qmp_chardev_open_file() local 63 out = CreateFile(file->out, accessmode, FILE_SHARE_READ, NULL, flags, in qmp_chardev_open_file() 65 if (out == INVALID_HANDLE_VALUE) { in qmp_chardev_open_file() 66 error_setg(errp, "open %s failed", file->out); in qmp_chardev_open_file() 70 win_chr_set_file(chr, out, false); in qmp_chardev_open_file() 72 int flags, in = -1, out; in qmp_chardev_open_file() local 81 out = qmp_chardev_open_file_source(file->out, flags, errp); in qmp_chardev_open_file() 82 if (out < 0) { in qmp_chardev_open_file() 90 qemu_close(out); in qmp_chardev_open_file() 95 qemu_chr_open_fd(chr, in, out); in qmp_chardev_open_file() [all …]
|
/qemu/target/hexagon/ |
H A D | gen_dectree_import.c | 106 static void gen_iset_table(FILE *out) in gen_iset_table() argument 110 fprintf(out, "iset = {\n"); in gen_iset_table() 112 fprintf(out, "\t\'%s\' : {\n", opcode_names[i]); in gen_iset_table() 113 fprintf(out, "\t\t\'tag\' : \'%s\',\n", opcode_names[i]); in gen_iset_table() 114 fprintf(out, "\t\t\'syntax\' : \'%s\',\n", opcode_syntax[i]); in gen_iset_table() 115 fprintf(out, "\t\t\'enc\' : \'%s\',\n", get_opcode_enc(i)); in gen_iset_table() 116 fprintf(out, "\t\t\'enc_class\' : \'%s\',\n", get_opcode_enc_class(i)); in gen_iset_table() 117 fprintf(out, "\t},\n"); in gen_iset_table() 119 fprintf(out, "};\n\n"); in gen_iset_table() 122 static void gen_tags_list(FILE *out) in gen_tags_list() argument [all …]
|
/qemu/hw/usb/ |
H A D | dev-audio.c | 648 } out; member 667 data = streambuf_get(&s->out.buf, &len); in OBJECT_DECLARE_SIMPLE_TYPE() 672 written = AUD_write(s->out.voice, data, len); in OBJECT_DECLARE_SIMPLE_TYPE() 674 s->out.buf.cons += written; in OBJECT_DECLARE_SIMPLE_TYPE() 686 AUD_set_active_out(s->out.voice, false); in usb_audio_set_output_altset() 691 if (s->out.channels != altset_channels[altset]) { in usb_audio_set_output_altset() 694 streambuf_init(&s->out.buf, s->buffer, s->out.channels); in usb_audio_set_output_altset() 695 AUD_set_active_out(s->out.voice, true); in usb_audio_set_output_altset() 704 s->out.altset = altset; in usb_audio_set_output_altset() 725 data[0] = s->out.vol.mute; in usb_audio_get_control() [all …]
|
/qemu/rust/qemu-api-macros/src/ |
H A D | bits.rs | 38 out: &mut TokenStream, in parse_primary() 61 out.extend(Some(paren(output))); in parse_primary() 72 out.extend(Some(paren(output))); in parse_primary() 85 let next = self.parse_primary(rhs_tok, it, out)?; in parse_primary() 86 out.extend([punct('.'), ident("invert"), paren(TokenStream::new())]); in parse_primary() 107 out: &mut TokenStream, in parse_binop() 112 let mut next = f(self, tok, it, out)?; in parse_binop() 128 out.extend([punct('.'), ident(method), paren(rhs)]); in parse_binop() 138 out: &mut TokenStream, in parse_sub() 140 self.parse_binop(tok, it, out, '-', Self::parse_primary, "difference") in parse_sub() [all …]
|
/qemu/qga/vss-win32/ |
H A D | requester.cpp | 187 goto out; in AddComponents() 195 goto out; in AddComponents() 203 goto out; in AddComponents() 210 goto out; in AddComponents() 219 goto out; in AddComponents() 227 goto out; in AddComponents() 238 goto out; in AddComponents() 247 out: in AddComponents() 335 goto out; in requester_freeze() 341 goto out; in requester_freeze() [all …]
|
H A D | install.cpp | 84 #define chk(status) _chk(hr, status, "Failed to " #status, out) 128 goto out; in GetAdminName() 134 goto out; in GetAdminName() 143 goto out; in GetAdminName() 146 out: in GetAdminName() 165 goto out; in getNameByStringSID() 175 out: in getNameByStringSID() 209 goto out; in QGAProviderFind() 215 out: in QGAProviderFind() 239 out: in QGAProviderRemove() [all …]
|
/qemu/crypto/ |
H A D | afsplit.c | 34 uint8_t *out) in qcrypto_afsplit_xor() argument 38 out[i] = in1[i] ^ in2[i]; in qcrypto_afsplit_xor() 61 g_autofree uint8_t *out = NULL; in qcrypto_afsplit_hash() local 74 &out, &outlen, in qcrypto_afsplit_hash() 80 memcpy(block + (i * digestlen), out, in qcrypto_afsplit_hash() 92 uint8_t *out, in qcrypto_afsplit_encode() argument 99 if (qcrypto_random_bytes(out + (i * blocklen), blocklen, errp) < 0) { in qcrypto_afsplit_encode() 104 out + (i * blocklen), in qcrypto_afsplit_encode() 115 out + (i * blocklen)); in qcrypto_afsplit_encode() 124 uint8_t *out, in qcrypto_afsplit_decode() argument [all …]
|
/qemu/qobject/ |
H A D | json-parser.c | 200 goto out; in parse_string() 206 goto out; in parse_string() 213 goto out; in parse_string() 222 goto out; in parse_string() 233 out: in parse_string() 267 goto out; in parse_pair() 274 goto out; in parse_pair() 280 goto out; in parse_pair() 285 goto out; in parse_pair() 291 goto out; in parse_pair() [all …]
|
/qemu/migration/ |
H A D | multifd-zstd.c | 31 ZSTD_outBuffer out; member 99 goto out; in multifd_zstd_send_prepare() 102 z->out.dst = z->zbuff; in multifd_zstd_send_prepare() 103 z->out.size = z->zbuff_len; in multifd_zstd_send_prepare() 104 z->out.pos = 0; in multifd_zstd_send_prepare() 125 ret = ZSTD_compressStream2(z->zcs, &z->out, &z->in, flush); in multifd_zstd_send_prepare() 127 && (z->out.size > z->out.pos)); in multifd_zstd_send_prepare() 140 p->iov[p->iovs_num].iov_len = z->out.pos; in multifd_zstd_send_prepare() 142 p->next_packet_size = z->out.pos; in multifd_zstd_send_prepare() 144 out: in multifd_zstd_send_prepare() [all …]
|
/qemu/tests/tcg/plugins/ |
H A D | syscall.c | 97 g_autoptr(GString) out = g_string_new(""); in hexdump() 102 g_string_append_printf(out, "%02x ", data->data[index + col]); in hexdump() 104 g_string_append(out, " "); in hexdump() 108 g_string_append(out, " | "); in hexdump() 116 g_string_append_printf(out, "%c", data->data[index + col]); in hexdump() 118 g_string_append(out, "."); in hexdump() 122 g_string_append(out, "\n"); in hexdump() 125 qemu_plugin_outs(out->str); in hexdump() 140 g_autofree gchar *out = g_strdup_printf("syscall #%" PRIi64 "\n", num); in vcpu_syscall() local 141 qemu_plugin_outs(out); in vcpu_syscall() [all …]
|
H A D | mem.c | 81 g_autoptr(GString) out = g_string_new(""); in plugin_exit() 84 g_string_printf(out, "mem accesses: %" PRIu64 "\n", in plugin_exit() 88 g_string_append_printf(out, "io accesses: %" PRIu64 "\n", in plugin_exit() 91 qemu_plugin_outs(out->str); in plugin_exit() 99 g_string_printf(out, "Region Base, Reads, Writes, Seen all\n"); in plugin_exit() 105 g_string_append_printf(out, in plugin_exit() 114 qemu_plugin_outs(out->str); in plugin_exit() 265 g_autoptr(GString) out = g_string_new(""); in print_access() 266 g_string_printf(out, in print_access() 272 g_string_append_printf(out, "0x%02"PRIx8, value.data.u8); in print_access() [all …]
|
/qemu/target/s390x/tcg/ |
H A D | translate.c | 170 static void pc_to_link_info(TCGv_i64 out, DisasContext *s, uint64_t pc) in pc_to_link_info() argument 174 tcg_gen_movi_i64(out, pc); in pc_to_link_info() 180 tcg_gen_deposit_i64(out, out, tcg_constant_i64(pc), 0, 32); in pc_to_link_info() 1007 TCGv_i64 out, out2, in1, in2; member 1184 tcg_gen_abs_i64(o->out, o->in2); in op_abs() 1190 tcg_gen_andi_i64(o->out, o->in2, 0x7fffffffull); in op_absf32() 1196 tcg_gen_andi_i64(o->out, o->in2, 0x7fffffffffffffffull); in op_absf64() 1202 tcg_gen_andi_i64(o->out, o->in1, 0x7fffffffffffffffull); in op_absf128() 1209 tcg_gen_add_i64(o->out, o->in1, o->in2); in op_add() 1216 tcg_gen_add2_i64(o->out, cc_src, o->in1, cc_src, o->in2, cc_src); in op_addu64() [all …]
|
/qemu/util/ |
H A D | range.c | 84 GList *l = in, *out = *rev; in range_inverse_array() local 91 out = append_new_range(out, low, high); in range_inverse_array() 98 out = append_new_range(out, low, MIN(range_lob(r) - 1, high)); in range_inverse_array() 109 out = append_new_range(out, range_upb(r) + 1, in range_inverse_array() 119 out = append_new_range(out, range_upb(r) + 1, high); in range_inverse_array() 122 *rev = out; in range_inverse_array()
|
/qemu/bsd-user/freebsd/ |
H A D | os-sys.c | 275 goto out; in do_freebsd_sysctl_oid() 283 goto out; in do_freebsd_sysctl_oid() 298 goto out; in do_freebsd_sysctl_oid() 307 goto out; in do_freebsd_sysctl_oid() 315 goto out; in do_freebsd_sysctl_oid() 324 goto out; in do_freebsd_sysctl_oid() 347 goto out; in do_freebsd_sysctl_oid() 386 goto out; in do_freebsd_sysctl_oid() 396 goto out; in do_freebsd_sysctl_oid() 469 out: in do_freebsd_sysctl_oid() [all …]
|