/qemu/target/i386/tcg/ |
H A D | cc_helper.c | 83 return (src1 & ~CC_C) | (dst * CC_C); in compute_all_adcx() 267 return dst; in helper_cc_compute_c() 270 return compute_c_addb(dst, src1); in helper_cc_compute_c() 272 return compute_c_addw(dst, src1); in helper_cc_compute_c() 274 return compute_c_addl(dst, src1); in helper_cc_compute_c() 284 return compute_c_subb(dst, src1); in helper_cc_compute_c() 286 return compute_c_subw(dst, src1); in helper_cc_compute_c() 288 return compute_c_subl(dst, src1); in helper_cc_compute_c() 298 return compute_c_shlb(dst, src1); in helper_cc_compute_c() 300 return compute_c_shlw(dst, src1); in helper_cc_compute_c() [all …]
|
H A D | cc_helper_template.h.inc | 47 cf = dst < src1; 50 zf = (dst == 0) * CC_Z; 58 return dst < src1; 67 cf = (src3 ? dst <= src1 : dst < src1); 70 zf = (dst == 0) << 6; 79 return src3 ? dst <= src1 : dst < src1; 90 zf = (dst == 0) * CC_Z; 112 zf = (dst == 0) << 6; 133 zf = (dst == 0) * CC_Z; 145 src1 = dst - 1; [all …]
|
/qemu/target/s390x/tcg/ |
H A D | cc_helper.c | 38 if (src == dst) { in cc_calc_ltgt_32() 40 } else if (src < dst) { in cc_calc_ltgt_32() 54 if (src == dst) { in cc_calc_ltgt_64() 70 if (src == dst) { in cc_calc_ltugtu_32() 81 if (src == dst) { in cc_calc_ltugtu_64() 123 return !!dst; in cc_calc_nz() 171 } else if (dst) { in cc_calc_abs_64() 180 return !!dst; in cc_calc_nabs_64() 231 } else if (dst) { in cc_calc_abs_32() 240 return !!dst; in cc_calc_nabs_32() [all …]
|
/qemu/tests/tcg/xtensa/ |
H A D | test_shift.S | 37 .macro slli_ver dst, v, imm 38 mov a2, \dst 54 mov a2, \dst 76 mov a2, \dst 91 sll \dst, \src 98 sll \dst, \src 119 srl \dst, \src 126 srl \dst, \src 149 sra \dst, \src 156 sra \dst, \src [all …]
|
/qemu/tests/unit/ |
H A D | test-clone-visitor.c | 17 UserDefOne *src, *dst; in test_clone_struct() local 26 g_assert(dst); in test_clone_struct() 36 qapi_free_UserDefOne(dst); in test_clone_struct() 90 Empty2 *src, *dst; in test_clone_empty() local 94 g_assert(dst); in test_clone_empty() 96 qapi_free_Empty2(dst); in test_clone_empty() 110 g_assert(dst); in test_clone_complex1() 139 g_assert(dst); in test_clone_complex2() 140 g_assert(dst->alt); in test_clone_complex2() 176 g_assert(dst); in test_clone_complex3() [all …]
|
H A D | test-io-channel-socket.c | 45 setsockopt(((QIOChannelSocket *)dst)->fd, in test_io_channel_set_socket_bufs() 80 g_assert(*dst); in test_io_channel_setup_sync() 148 g_assert(*dst); in test_io_channel_setup_async() 176 QIOChannel *src, *dst, *srv; in test_io_channel() local 202 object_unref(OBJECT(dst)); in test_io_channel() 231 object_unref(OBJECT(dst)); in test_io_channel() 263 object_unref(OBJECT(dst)); in test_io_channel() 294 object_unref(OBJECT(dst)); in test_io_channel() 413 QIOChannel *src, *dst, *srv; in test_io_channel_unix_fd_pass() local 458 qio_channel_readv_full(dst, in test_io_channel_unix_fd_pass() [all …]
|
H A D | test-forward-visitor.c | 59 UserDefOne *dst; in test_forward_any() local 65 g_assert_cmpint(dst->integer, ==, 42); in test_forward_any() 66 g_assert_cmpstr(dst->string, ==, "Hello"); in test_forward_any() 67 g_assert_cmpint(dst->has_enum1, ==, true); in test_forward_any() 69 qapi_free_UserDefOne(dst); in test_forward_any() 134 g_assert_cmpstr(dst, ==, "Hello"); in test_forward_string() 135 g_free(dst); in test_forward_string() 143 g_assert_cmpint(dst->integer, ==, 42); in test_forward_struct() 146 qapi_free_UserDefOne(dst); in test_forward_struct() 174 for (tmp = dst, i = 1; i <= 4; i++) { in test_forward_list() [all …]
|
H A D | io-channel-helpers.c | 27 QIOChannel *dst; member 58 qio_channel_readv_all(data->dst, in test_io_thread_reader() 105 QIOChannel *dst) in qio_channel_test_run_threads() argument 110 test->dst = dst; in qio_channel_test_run_threads() 112 qio_channel_set_blocking(test->dst, blocking, NULL); in qio_channel_test_run_threads() 125 test->dst = test->src = NULL; in qio_channel_test_run_threads() 139 QIOChannel *dst) in qio_channel_test_run_reader() argument 141 test->dst = dst; in qio_channel_test_run_reader() 143 test->dst = NULL; in qio_channel_test_run_reader()
|
/qemu/include/qemu/ |
H A D | bitmap.h | 108 *dst = 0UL; in bitmap_zero() 111 memset(dst, 0, len); in bitmap_zero() 120 memset(dst, 0xff, len); in bitmap_fill() 129 *dst = *src; in bitmap_copy() 132 memcpy(dst, src, len); in bitmap_copy() 140 return (*dst = *src1 & *src2) != 0; in bitmap_and() 149 *dst = *src1 | *src2; in bitmap_or() 151 slow_bitmap_or(dst, src1, src2, nbits); in bitmap_or() 159 *dst = *src1 ^ *src2; in bitmap_xor() 161 slow_bitmap_xor(dst, src1, src2, nbits); in bitmap_xor() [all …]
|
/qemu/hw/block/ |
H A D | xen_blkif.h | 98 dst->operation = src->operation; in blkif_get_x86_32_req() 100 dst->handle = src->handle; in blkif_get_x86_32_req() 101 dst->id = src->id; in blkif_get_x86_32_req() 111 if (n > dst->nr_segments) { in blkif_get_x86_32_req() 112 n = dst->nr_segments; in blkif_get_x86_32_req() 115 dst->seg[i] = src->seg[i]; in blkif_get_x86_32_req() 126 dst->handle = src->handle; in blkif_get_x86_64_req() 127 dst->id = src->id; in blkif_get_x86_64_req() 137 if (n > dst->nr_segments) { in blkif_get_x86_64_req() 138 n = dst->nr_segments; in blkif_get_x86_64_req() [all …]
|
/qemu/util/ |
H A D | bitmap.c | 104 dst[k] = ~src[k]; in slow_bitmap_complement() 132 dst[k] = bitmap1[k] | bitmap2[k]; in slow_bitmap_or() 143 dst[k] = bitmap1[k] ^ bitmap2[k]; in slow_bitmap_xor() 339 *dst = qatomic_xchg(src, 0); in bitmap_copy_and_clear_atomic() 340 dst++; in bitmap_copy_and_clear_atomic() 467 bitmap_copy(dst, src, nbits); in bitmap_copy_with_src_offset() 477 dst++; in bitmap_copy_with_src_offset() 504 dst += BIT_WORD(shift); in bitmap_copy_with_dst_offset() 509 bitmap_copy(dst, src, nbits); in bitmap_copy_with_dst_offset() 516 *dst &= (1ul << shift) - 1; in bitmap_copy_with_dst_offset() [all …]
|
/qemu/tests/tcg/s390x/ |
H A D | mvc.c | 23 : [dst] "a" (dst), in mvc_256() 30 char *src, *dst; in main() local 41 dst = valloc(ALLOC_SIZE); in main() 43 memset(dst, 0x0, ALLOC_SIZE); in main() 47 mprotect(dst + 4096, 4096, PROT_NONE)) { in main() 54 mvc_256(dst + 4096 - 128, src); in main() 61 mvc_256(dst, src + 4096 - 128); in main() 82 if (src[i] != 0xff || dst[i]) { in main() 89 mvc_256(dst + 4096 - 128, src + 4096 - 128); in main() 96 if (dst[i]) { in main() [all …]
|
/qemu/target/cris/ |
H A D | translate_v10.c.inc | 186 t_gen_sext(dst, dst, memsize); 188 t_gen_zext(dst, dst, memsize); 400 cris_alu(dc, CC_OP_BOUND, cpu_R[dc->dst], cpu_R[dc->dst], t, 4); 431 cris_alu(dc, CC_OP_MOVE, cpu_R[dc->dst], cpu_R[dc->dst], t, 4); 448 cris_alu(dc, op, cpu_R[dc->dst], cpu_R[dc->dst], t, 4); 479 cris_alu(dc, CC_OP_MOVE, cpu_R[dc->dst], cpu_R[dc->dst], t0, 4); 491 if (dc->dst & 8) 493 if (dc->dst & 4) 495 if (dc->dst & 2) 497 if (dc->dst & 1) [all …]
|
H A D | op_helper.c | 298 dst = dst & 0x80000000; in helper_evaluate_flags_mcp() 302 if (!src && !dst) { in helper_evaluate_flags_mcp() 311 if (src & dst) { in helper_evaluate_flags_mcp() 314 if (dst | src) { in helper_evaluate_flags_mcp() 328 dst = dst & 0x80000000; in helper_evaluate_flags_alu_4() 341 if (src & dst) { in helper_evaluate_flags_alu_4() 344 if (dst | src) { in helper_evaluate_flags_alu_4() 358 dst = dst & 0x80000000; in helper_evaluate_flags_sub_4() 371 if (src & dst) { in helper_evaluate_flags_sub_4() 374 if (dst | src) { in helper_evaluate_flags_sub_4() [all …]
|
/qemu/target/sparc/ |
H A D | translate.c | 236 tcg_gen_deposit_i64(cpu_fpr[dst / 2], cpu_fpr[dst / 2], t, in gen_store_fpr_F() 249 dst = DFPREG(dst); in gen_store_fpr_D() 270 dst = DFPREG(dst); in gen_store_fpr_Q() 423 tcg_gen_add_tl(dst, dst, gen_carry32()); in gen_op_addc() 477 tcg_gen_sub_tl(dst, dst, gen_carry32()); in gen_op_subc() 563 tcg_gen_ext32s_tl(dst, dst); in gen_op_sdiv() 646 tcg_gen_shli_tl(dst, dst, 1); in gen_op_array16() 652 tcg_gen_shli_tl(dst, dst, 2); in gen_op_array32() 3376 TCGv dst; in trans_UDIV() local 3699 tcg_gen_ext32u_tl(dst, dst); in TRANS() [all …]
|
H A D | helper.c | 135 target_ulong dst, v; in helper_taddcctv() local 142 dst = src1 + src2; in helper_taddcctv() 152 env->cc_N = dst; in helper_taddcctv() 153 env->icc_Z = dst; in helper_taddcctv() 155 env->xcc_Z = dst; in helper_taddcctv() 162 return dst; in helper_taddcctv() 178 dst = src1 - src2; in helper_tsubcctv() 188 env->cc_N = dst; in helper_tsubcctv() 189 env->icc_Z = dst; in helper_tsubcctv() 191 env->xcc_Z = dst; in helper_tsubcctv() [all …]
|
/qemu/hw/intc/ |
H A D | openpic.c | 242 IRQDest *dst; in IRQ_local_pipe() local 246 dst = &opp->dst[n_CPU]; in IRQ_local_pipe() 311 if (dst->raised.priority > dst->ctpr && in IRQ_local_pipe() 312 dst->raised.priority > dst->servicing.priority) { in IRQ_local_pipe() 315 dst->ctpr, dst->servicing.priority, n_CPU); in IRQ_local_pipe() 567 IRQDest *dst; in openpic_gbl_write() local 599 dst = &opp->dst[idx]; in openpic_gbl_write() 603 dst = &opp->dst[idx]; in openpic_gbl_write() 984 dst = &opp->dst[idx]; in openpic_cpu_write_internal() 1004 if (dst->raised.priority <= dst->ctpr) { in openpic_cpu_write_internal() [all …]
|
/qemu/crypto/ |
H A D | xts.c | 91 xts_uint128_xor(dst, src, iv); in xts_tweak_encdec() 93 func(ctx, XTS_BLOCK_SIZE, dst->b, dst->b); in xts_tweak_encdec() 95 xts_uint128_xor(dst, dst, iv); in xts_tweak_encdec() 108 uint8_t *dst, in xts_decrypt() argument 133 xts_uint128 *D = (xts_uint128 *)dst; in xts_decrypt() 143 memcpy(dst, &D, XTS_BLOCK_SIZE); in xts_decrypt() 145 dst += XTS_BLOCK_SIZE; in xts_decrypt() 170 memcpy(dst, &D, XTS_BLOCK_SIZE); in xts_decrypt() 184 uint8_t *dst, in xts_encrypt() argument 221 dst += XTS_BLOCK_SIZE; in xts_encrypt() [all …]
|
/qemu/migration/ |
H A D | xbzrle.c | 24 uint8_t *dst, int dlen) in xbzrle_encode_buffer_avx512() argument 119 memcpy(dst + d, nzrun_start, nzrun_len); in xbzrle_encode_buffer_avx512() 128 d += uleb128_encode_small(dst + d, nzrun_len); in xbzrle_encode_buffer_avx512() 134 memcpy(dst + d, nzrun_start, nzrun_len); in xbzrle_encode_buffer_avx512() 156 uint8_t *dst, int dlen) in xbzrle_encode_buffer() argument 158 return accel_func(old_buf, new_buf, slen, dst, dlen); in xbzrle_encode_buffer() 175 uint8_t *dst, int dlen) in xbzrle_encode_buffer() argument 224 d += uleb128_encode_small(dst + d, zrun_len); in xbzrle_encode_buffer() 263 d += uleb128_encode_small(dst + d, nzrun_len); in xbzrle_encode_buffer() 268 memcpy(dst + d, nzrun_start, nzrun_len); in xbzrle_encode_buffer() [all …]
|
/qemu/target/mips/tcg/sysemu/ |
H A D | mips-semi.c | 175 if (!dst) { in uhi_fstat_cb() 179 memcpy(&s, dst, sizeof(struct gdb_stat)); in uhi_fstat_cb() 180 memset(dst, 0, sizeof(UHIStat)); in uhi_fstat_cb() 182 dst->uhi_st_dev = tswap16(be32_to_cpu(s.gdb_st_dev)); in uhi_fstat_cb() 183 dst->uhi_st_ino = tswap16(be32_to_cpu(s.gdb_st_ino)); in uhi_fstat_cb() 184 dst->uhi_st_mode = tswap32(be32_to_cpu(s.gdb_st_mode)); in uhi_fstat_cb() 186 dst->uhi_st_uid = tswap16(be32_to_cpu(s.gdb_st_uid)); in uhi_fstat_cb() 187 dst->uhi_st_gid = tswap16(be32_to_cpu(s.gdb_st_gid)); in uhi_fstat_cb() 188 dst->uhi_st_rdev = tswap16(be32_to_cpu(s.gdb_st_rdev)); in uhi_fstat_cb() 189 dst->uhi_st_size = tswap64(be64_to_cpu(s.gdb_st_size)); in uhi_fstat_cb() [all …]
|
/qemu/qobject/ |
H A D | block-qdict.c | 29 if (qdict_haskey(dst, key)) { in qdict_copy_default() 45 if (qdict_haskey(dst, key)) { in qdict_set_default_str() 49 qdict_put_str(dst, key, val); in qdict_set_default_str() 169 if (dst) { in qdict_extract_subqdict() 170 *dst = qdict_new(); in qdict_extract_subqdict() 177 if (dst) { in qdict_extract_subqdict() 222 *dst = qlist_new(); in qdict_array_split() 525 return dst; in qdict_crumple() 531 qobject_unref(dst); in qdict_crumple() 554 QObject *dst; in qdict_crumple_for_keyval_qiv() local [all …]
|
/qemu/ui/ |
H A D | egl-helpers.c | 136 void egl_fb_blit(egl_fb *dst, egl_fb *src, bool flip) in egl_fb_blit() argument 146 glViewport(0, 0, dst->width, dst->height); in egl_fb_blit() 163 0, 0, dst->width, dst->height, in egl_fb_blit() 167 void egl_fb_read(DisplaySurface *dst, egl_fb *src) in egl_fb_read() argument 171 glReadPixels(0, 0, surface_width(dst), surface_height(dst), in egl_fb_read() 177 assert(surface_width(dst) == src->width); in egl_fb_read_rect() 178 assert(surface_height(dst) == src->height); in egl_fb_read_rect() 179 assert(surface_format(dst) == PIXMAN_x8r8g8b8); in egl_fb_read_rect() 191 glBindFramebuffer(GL_FRAMEBUFFER_EXT, dst->framebuffer); in egl_texture_blit() 192 glViewport(0, 0, dst->width, dst->height); in egl_texture_blit() [all …]
|
/qemu/linux-user/ |
H A D | thunk.c | 136 *(uint8_t *)dst = *(uint8_t *)src; in thunk_convert() 139 *(uint16_t *)dst = tswap16(*(uint16_t *)src); in thunk_convert() 142 *(uint32_t *)dst = tswap32(*(uint32_t *)src); in thunk_convert() 146 *(uint64_t *)dst = tswap64(*(uint64_t *)src); in thunk_convert() 152 *(uint32_t *)dst = tswap32(*(uint32_t *)src); in thunk_convert() 209 *(uint16_t *)dst = tswap16(val); in thunk_convert() 212 *(uint32_t *)dst = tswap32(val); in thunk_convert() 215 *(uint64_t *)dst = tswap64(val); in thunk_convert() 229 d = dst; in thunk_convert() 252 (*se->convert[to_host])(dst, src); in thunk_convert() [all …]
|
/qemu/hw/display/ |
H A D | cirrus_vga_rop.h | 28 uint8_t *dst = &s->vga.vram_ptr[dstaddr & s->cirrus_addr_mask]; in glue() local 29 *dst = ROP_FN(*dst, src); in glue() 37 uint8_t pixel = ROP_FN(*dst, src); in glue() 39 *dst = pixel; in glue() 46 uint16_t *dst = (uint16_t *) in glue() local 48 *dst = ROP_FN(*dst, src); in glue() 55 uint16_t *dst = (uint16_t *) in glue() local 57 uint16_t pixel = ROP_FN(*dst, src); in glue() 59 *dst = pixel; in glue() 66 uint32_t *dst = (uint32_t *) in glue() local [all …]
|
/qemu/hw/ppc/ |
H A D | spapr_numa.c | 72 static int get_numa_distance(MachineState *ms, int src, int dst) in get_numa_distance() argument 75 int ret = numa_info[src].distance[dst]; in get_numa_distance() 87 if (src == dst) { in get_numa_distance() 97 int src, dst; in spapr_numa_is_symmetrical() local 100 for (dst = src; dst < nb_numa_nodes; dst++) { in spapr_numa_is_symmetrical() 101 if (get_numa_distance(ms, src, dst) != in spapr_numa_is_symmetrical() 102 get_numa_distance(ms, dst, src)) { in spapr_numa_is_symmetrical() 147 int src, dst, i, j; in spapr_numa_define_FORM1_domains() local 161 for (dst = src; dst < nb_numa_nodes; dst++) { in spapr_numa_define_FORM1_domains() 496 int src, dst, i, distance_table_size; in spapr_numa_FORM2_write_rtas_tables() local [all …]
|