/qemu/qapi/ |
H A D | qapi-visit-core.c | 4 * Copyright (C) 2012-2016 Red Hat, Inc. 11 * See the COPYING.LIB file in the top-level directory. 16 #include "qapi/compat-policy.h" 20 #include "qapi/visitor-impl.h" 23 /* Zero-initialization must result in default policy */ 27 void visit_complete(Visitor *v, void *opaque) in visit_complete() argument 29 assert(v->type != VISITOR_OUTPUT || v->complete); in visit_complete() 30 trace_visit_complete(v, opaque); in visit_complete() 31 if (v->complete) { in visit_complete() 32 v->complete(v, opaque); in visit_complete() [all …]
|
H A D | qapi-forward-visitor.c | 7 * See the COPYING.LIB file in the top-level directory. 12 #include "qapi/compat-policy.h" 14 #include "qapi/forward-visitor.h" 15 #include "qapi/visitor-impl.h" 37 static ForwardFieldVisitor *to_ffv(Visitor *v) in to_ffv() argument 39 return container_of(v, ForwardFieldVisitor, visitor); in to_ffv() 42 static bool forward_field_translate_name(ForwardFieldVisitor *v, const char **name, in forward_field_translate_name() argument 45 if (v->depth) { in forward_field_translate_name() 48 if (g_str_equal(*name, v->from)) { in forward_field_translate_name() 49 *name = v->to; in forward_field_translate_name() [all …]
|
H A D | qapi-clone-visitor.c | 7 * See the COPYING file in the top-level directory. 12 #include "qapi/clone-visitor.h" 13 #include "qapi/visitor-impl.h" 22 static QapiCloneVisitor *to_qcv(Visitor *v) in to_qcv() argument 24 return container_of(v, QapiCloneVisitor, visitor); in to_qcv() 27 static bool qapi_clone_start_struct(Visitor *v, const char *name, void **obj, in qapi_clone_start_struct() argument 30 QapiCloneVisitor *qcv = to_qcv(v); in qapi_clone_start_struct() 33 assert(qcv->depth); in qapi_clone_start_struct() 41 qcv->depth++; in qapi_clone_start_struct() 45 static void qapi_clone_end(Visitor *v, void **obj) in qapi_clone_end() argument [all …]
|
H A D | qapi-dealloc-visitor.c | 4 * Copyright (C) 2012-2016 Red Hat, Inc. 11 * See the COPYING.LIB file in the top-level directory. 16 #include "qapi/dealloc-visitor.h" 18 #include "qapi/visitor-impl.h" 25 static bool qapi_dealloc_start_struct(Visitor *v, const char *name, void **obj, in qapi_dealloc_start_struct() argument 31 static void qapi_dealloc_end_struct(Visitor *v, void **obj) in qapi_dealloc_end_struct() argument 38 static void qapi_dealloc_end_alternate(Visitor *v, void **obj) in qapi_dealloc_end_alternate() argument 45 static bool qapi_dealloc_start_list(Visitor *v, const char *name, in qapi_dealloc_start_list() argument 52 static GenericList *qapi_dealloc_next_list(Visitor *v, GenericList *tail, in qapi_dealloc_next_list() argument 55 GenericList *next = tail->next; in qapi_dealloc_next_list() [all …]
|
H A D | qobject-output-visitor.c | 4 * Copyright (C) 2012-2016 Red Hat, Inc. 11 * See the COPYING.LIB file in the top-level directory. 16 #include "qapi/compat-policy.h" 17 #include "qapi/qobject-output-visitor.h" 18 #include "qapi/visitor-impl.h" 46 static QObjectOutputVisitor *to_qov(Visitor *v) in to_qov() argument 48 return container_of(v, QObjectOutputVisitor, visitor); in to_qov() 57 assert(qov->root); in qobject_output_push_obj() 59 e->value = value; in qobject_output_push_obj() 60 e->qapi = qapi; in qobject_output_push_obj() [all …]
|
H A D | qobject-input-visitor.c | 4 * Copyright (C) 2012-2017 Red Hat, Inc. 11 * See the COPYING.LIB file in the top-level directory. 17 #include "qapi/compat-policy.h" 19 #include "qapi/qobject-input-visitor.h" 20 #include "qapi/visitor-impl.h" 59 static QObjectInputVisitor *to_qiv(Visitor *v) in to_qiv() argument 61 return container_of(v, QObjectInputVisitor, visitor); in to_qiv() 67 * @qiv->stack. 69 * If @n is positive, return the full name of the @n-th container 72 * The returned string is valid until the next full_name_nth(@v) or [all …]
|
H A D | trace-events | 3 # qapi-visit-core.c 4 visit_free(void *v) "v=%p" 5 visit_complete(void *v, void *opaque) "v=%p opaque=%p" 7 visit_start_struct(void *v, const char *name, void *obj, size_t size) "v=%p name=%s obj=%p size=%zu" 8 visit_check_struct(void *v) "v=%p" 9 visit_end_struct(void *v, void *obj) "v=%p obj=%p" 11 visit_start_list(void *v, const char *name, void *obj, size_t size) "v=%p name=%s obj=%p size=%zu" 12 visit_next_list(void *v, void *tail, size_t size) "v=%p tail=%p size=%zu" 13 visit_check_list(void *v) "v=%p" 14 visit_end_list(void *v, void *obj) "v=%p obj=%p" [all …]
|
H A D | string-output-visitor.c | 4 * Copyright Red Hat, Inc. 2012-2016 9 * See the COPYING.LIB file in the top-level directory. 15 #include "qapi/string-output-visitor.h" 16 #include "qapi/visitor-impl.h" 71 static StringOutputVisitor *to_sov(Visitor *v) in to_sov() argument 73 return container_of(v, StringOutputVisitor, visitor); in to_sov() 78 switch (sov->list_mode) { in string_output_set() 80 sov->list_mode = LM_IN_PROGRESS; in string_output_set() 83 if (sov->string) { in string_output_set() 84 g_string_free(sov->string, true); in string_output_set() [all …]
|
H A D | string-input-visitor.c | 4 * Copyright Red Hat, Inc. 2012-2016 10 * See the COPYING.LIB file in the top-level directory. 15 #include "qapi/string-input-visitor.h" 16 #include "qapi/visitor-impl.h" 58 static StringInputVisitor *to_siv(Visitor *v) in to_siv() argument 60 return container_of(v, StringInputVisitor, visitor); in to_siv() 63 static bool start_list(Visitor *v, const char *name, GenericList **list, in start_list() argument 66 StringInputVisitor *siv = to_siv(v); in start_list() 68 assert(siv->lm == LM_NONE); in start_list() 69 siv->list = list; in start_list() [all …]
|
/qemu/tests/unit/ |
H A D | test-string-input-visitor.c | 2 * String Input Visitor unit-tests. 7 * Paolo Bonzini <pbonzini@redhat.com> (based on test-qobject-input-visitor) 10 * See the COPYING file in the top-level directory. 16 #include "qapi/string-input-visitor.h" 17 #include "test-qapi-visit.h" 20 Visitor *v; member 26 if (data->v) { in visitor_input_teardown() 27 visit_free(data->v); in visitor_input_teardown() 28 data->v = NULL; in visitor_input_teardown() 41 data->v = string_input_visitor_new(string); in visitor_input_test_init() [all …]
|
H A D | test-qobject-input-visitor.c | 2 * QObject Input Visitor unit-tests. 4 * Copyright (C) 2011-2016 Red Hat Inc. 11 * See the COPYING file in the top-level directory. 17 #include "qapi/qapi-visit-introspect.h" 18 #include "qapi/qobject-input-visitor.h" 19 #include "test-qapi-visit.h" 26 #include "test-qapi-introspect.h" 27 #include "qapi/qapi-introspect.h" 37 qobject_unref(data->obj); in visitor_input_teardown() 38 data->obj = NULL; in visitor_input_teardown() [all …]
|
H A D | test-keyval.c | 10 * See the COPYING file in the top-level directory. 19 #include "qapi/qobject-input-visitor.h" 20 #include "test-qapi-visit.h" 50 /* Invalid non-empty key (qemu_opts_parse() doesn't care) */ in test_keyval_parse() 59 params = g_strdup_printf("k.%s=v", long_key); in test_keyval_parse() 71 params = g_strdup_printf("k.%s=v", long_key + 1); in test_keyval_parse() 74 g_assert_cmpstr(qdict_get_try_str(qdict, long_key + 1), ==, "v"); in test_keyval_parse() 83 g_assert_cmpstr(qdict_get_try_str(sub_qdict, long_key + 1), ==, "v"); in test_keyval_parse() 143 /* Anti-social ID is left to caller (qemu_opts_parse() rejects it) */ in test_keyval_parse() 324 Visitor *v; in test_keyval_visit_bool() local [all …]
|
/qemu/host/include/i386/host/ |
H A D | bufferiszero.c.inc | 2 * SPDX-License-Identifier: GPL-2.0-or-later 19 __m128i v = *(__m128i_u *)(buf); 20 __m128i w = *(__m128i_u *)(buf + len - 16); 21 /* Align head/tail to 16-byte boundaries. */ 23 const __m128i *e = QEMU_ALIGN_PTR_DOWN(buf + len - 1, 16); 27 v |= e[-1]; w |= e[-2]; 28 SSE_REASSOC_BARRIER(v, w); 29 v |= e[-3]; w |= e[-4]; 30 SSE_REASSOC_BARRIER(v, w); 31 v |= e[-5]; w |= e[-6]; [all …]
|
/qemu/audio/ |
H A D | pwaudio.c | 8 * SPDX-License-Identifier: GPL-2.0-or-later 14 #include "qemu/error-report.h" 16 #include <spa/param/audio/format-utils.h> 26 #define RINGBUFFER_MASK (RINGBUFFER_SIZE - 1) 61 PWVoice v; member 66 PWVoice v; member 69 #define PW_VOICE_IN(v) ((PWVoiceIn *)v) argument 70 #define PW_VOICE_OUT(v) ((PWVoiceOut *)v) argument 75 PWVoice *v = (PWVoice *) data; in stream_destroy() local 76 spa_hook_remove(&v->stream_listener); in stream_destroy() [all …]
|
/qemu/tests/tcg/xtensa/ |
H A D | test_shift.S | 5 .macro test_shift prefix, dst, src, v, imm 6 \prefix\()_set \dst, \src, \v, \imm 7 \prefix\()_ver \dst, \v, \imm 10 .macro test_shift_sd prefix, v, imm 11 test_shift \prefix, a3, a2, \v, \imm 12 test_shift \prefix, a2, a2, \v, \imm 15 .macro tests_imm_shift prefix, v argument 16 test_shift_sd \prefix, \v, 1 17 test_shift_sd \prefix, \v, 2 18 test_shift_sd \prefix, \v, 7 [all …]
|
/qemu/target/i386/tcg/ |
H A D | decode-new.c.inc | 2 * New-style decoder for i386 instructions 25 * table-driven code using the same operand type (X86_TYPE_*) and 30 * ------------- 32 * The manual lists d64 ("cannot encode 32-bit size in 64-bit mode") and f64 33 * ("cannot encode 16-bit or 32-bit size in 64-bit mode") as modifiers of the 34 * "v" or "z" sizes. The decoder simply makes them separate operand sizes. 39 * the segment/selector part. The size of the offset is given by s->dflag 40 * and the instructions are illegal in 64-bit mode, so the choice of "Ip" 44 * ------------- 46 * For memory-only operands, if the emitter functions wants to rely on [all …]
|
/qemu/include/qemu/ |
H A D | bswap.h | 39 #define be_bswap(v, size) (v) argument 40 #define le_bswap(v, size) glue(__builtin_bswap, size)(v) argument 41 #define be_bswap24(v) (v) argument 42 #define le_bswap24(v) bswap24(v) argument 43 #define be_bswaps(v, size) argument 47 #define le_bswap(v, size) (v) argument 48 #define be_bswap24(v) bswap24(v) argument 49 #define le_bswap24(v) (v) argument 50 #define be_bswap(v, size) glue(__builtin_bswap, size)(v) argument 51 #define le_bswaps(v, size) argument [all …]
|
/qemu/target/xtensa/ |
H A D | fpu_helper.c | 2 * Copyright (c) 2011 - 2019, Max Filippov, Open Source and Linux Lab. 31 #include "exec/helper-proto.h" 32 #include "qemu/host-utils.h" 62 &env->fp_status); in xtensa_use_first_nan() 64 &env->fp_status); in xtensa_use_first_nan() 67 void HELPER(wur_fpu2k_fcr)(CPUXtensaState *env, uint32_t v) in HELPER() 76 env->uregs[FCR] = v & 0xfffff07f; in HELPER() 77 set_float_rounding_mode(rounding_mode[v & 3], &env->fp_status); in HELPER() 80 void HELPER(wur_fpu_fcr)(CPUXtensaState *env, uint32_t v) in HELPER() 89 if (v & 0xfffff000) { in HELPER() [all …]
|
/qemu/hw/virtio/ |
H A D | vdpa-dev.c | 9 * Largely based on the "vhost-user-blk-pci.c" and "vhost-user-blk.c" 14 * See the COPYING.LIB file in the top-level directory. 20 #include "qemu/error-report.h" 22 #include "hw/qdev-core.h" 23 #include "hw/qdev-properties.h" 24 #include "hw/qdev-properties-system.h" 27 #include "hw/virtio/virtio-bus.h" 28 #include "hw/virtio/vdpa-dev.h" 41 uint32_t val = (uint32_t)-1; in vhost_vdpa_device_get_u32() 44 error_setg(errp, "vhost-vdpa-device: cmd 0x%lx failed: %s", in vhost_vdpa_device_get_u32() [all …]
|
/qemu/tests/tcg/s390x/ |
H A D | vxeh2_vs.c | 2 * vxeh2_vs: vector-enhancements facility 2 vector shift 15 : [v1] "=v" (v1->v) in vsl() 16 : [v2] "v" (v2->v) in vsl() 17 , [v3] "v" (v3->v)); in vsl() 23 : [v1] "=v" (v1->v) in vsra() 24 : [v2] "v" (v2->v) in vsra() 25 , [v3] "v" (v3->v)); in vsra() 31 : [v1] "=v" (v1->v) in vsrl() 32 : [v2] "v" (v2->v) in vsrl() 33 , [v3] "v" (v3->v)); in vsrl() [all …]
|
/qemu/tcg/s390x/ |
H A D | tcg-target-con-set.h | 1 /* SPDX-License-Identifier: MIT */ 3 * Define S390 target-specific constraint sets. 10 * tcg-target-con-str.h; the constraint combination is inclusive or. 19 C_O0_I2(v, r) 22 C_O1_I1(v, r) 23 C_O1_I1(v, v) 24 C_O1_I1(v, vr) 38 C_O1_I2(v, v, r) 39 C_O1_I2(v, v, v) 40 C_O1_I3(v, v, v, v) [all …]
|
/qemu/tcg/riscv/ |
H A D | tcg-target-con-set.h | 1 /* SPDX-License-Identifier: MIT */ 3 * Define RISC-V target-specific constraint sets. 10 * tcg-target-con-str.h; the constraint combination is inclusive or. 21 C_O0_I2(v, r) 22 C_O1_I1(v, r) 23 C_O1_I1(v, v) 24 C_O1_I2(v, v, r) 25 C_O1_I2(v, v, v) 26 C_O1_I2(v, vK, v) 27 C_O1_I2(v, v, vK) [all …]
|
/qemu/hw/display/ |
H A D | vga-helpers.h | 28 ((uint32_t *)d)[0] = (-((font_data >> 7)) & xorcol) ^ bgcol; in vga_draw_glyph_line() 29 ((uint32_t *)d)[1] = (-((font_data >> 6) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 30 ((uint32_t *)d)[2] = (-((font_data >> 5) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 31 ((uint32_t *)d)[3] = (-((font_data >> 4) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 32 ((uint32_t *)d)[4] = (-((font_data >> 3) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 33 ((uint32_t *)d)[5] = (-((font_data >> 2) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 34 ((uint32_t *)d)[6] = (-((font_data >> 1) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 35 ((uint32_t *)d)[7] = (-((font_data >> 0) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line() 50 } while (--h); in vga_draw_glyph8() 68 } while (--h); in vga_draw_glyph16() [all …]
|
/qemu/target/s390x/tcg/ |
H A D | vec.h | 2 * QEMU TCG support -- s390x vector utilitites 10 * See the COPYING file in the top-level directory. 30 * B: [ 0][ 1][ 2][ 3][ 4][ 5][ 6][ 7] - [ 8][ 9][10][11][12][13][14][15] 31 * HW: [ 0][ 1][ 2][ 3] - [ 4][ 5][ 6][ 7] 32 * W: [ 0][ 1] - [ 2][ 3] 33 * DW: [ 0] - [ 1] 36 * B: [ 7][ 6][ 5][ 4][ 3][ 2][ 1][ 0] - [15][14][13][12][11][10][ 9][ 8] 37 * HW: [ 3][ 2][ 1][ 0] - [ 7][ 6][ 5][ 4] 38 * W: [ 1][ 0] - [ 3][ 2] 39 * DW: [ 0] - [ 1] [all …]
|
/qemu/pc-bios/ |
HD | openbios-ppc | ... i-cache-sets d-cache-block-size i-cache-block-size tlb- ... |