/qemu/tests/qtest/ |
H A D | test-arm-mptimer.c | 43 static void timer_start(int periodic, uint32_t scale) in timer_start() argument 998 static void add_scaler_test(const char *str, bool scale, in add_scaler_test() argument 1002 int *scaler = scale ? &scaled : &nonscaled; in add_scaler_test() 1012 int scale; in main() local 1030 for (scale = 0; scale < 2; scale++) { in main() 1032 scale, test_timer_oneshot); in main() 1034 scale, test_timer_pause); in main() 1036 scale, test_timer_reload); in main() 1038 scale, test_timer_periodic); in main() 1048 scale, test_timer_noload_oneshot); in main() [all …]
|
/qemu/hw/timer/ |
H A D | sifive_pwm.c | 97 uint64_t scale = sifive_pwm_compute_scale(s); in sifive_pwm_set_alarms() local 99 uint64_t pwms = (pwmcount & (PWMCMP_MASK << scale)) >> scale; in sifive_pwm_set_alarms() 103 uint64_t pwmcmp_ticks = pwmcmp << scale; in sifive_pwm_set_alarms() 129 uint64_t scale = sifive_pwm_compute_scale(s); in sifive_pwm_set_alarms() local 130 uint64_t pwms = (pwmcount & (PWMCMP_MASK << scale)) >> scale; in sifive_pwm_set_alarms() 225 uint64_t cur_time, scale; in sifive_pwm_read() local 248 scale = sifive_pwm_compute_scale(s); in sifive_pwm_read() 254 return ((cur_time & PWMCOUNT_MASK) >> scale) & PWMCMP_MASK; in sifive_pwm_read() 277 uint64_t new_offset, scale; in sifive_pwm_write() local 344 scale = sifive_pwm_compute_scale(s); in sifive_pwm_write() [all …]
|
/qemu/fpu/ |
H A D | softfloat.c | 3845 parts_sint_to_float(&p, a, scale, status); in int64_to_float16_scalbn() 3884 if (likely(scale == 0) && can_use_fpu(status)) { in int64_to_float32_scalbn() 3890 parts64_sint_to_float(&p, a, scale, status); in int64_to_float32_scalbn() 3924 if (likely(scale == 0) && can_use_fpu(status)) { in int64_to_float64_scalbn() 3930 parts_sint_to_float(&p, a, scale, status); in int64_to_float64_scalbn() 3963 parts_sint_to_float(&p, a, scale, status); in int64_to_bfloat16_scalbn() 4065 parts_uint_to_float(&p, a, scale, status); in uint64_to_float16_scalbn() 4104 if (likely(scale == 0) && can_use_fpu(status)) { in uint64_to_float32_scalbn() 4110 parts_uint_to_float(&p, a, scale, status); in uint64_to_float32_scalbn() 4150 parts_uint_to_float(&p, a, scale, status); in uint64_to_float64_scalbn() [all …]
|
H A D | softfloat-parts.c.inc | 905 int scale, int frac_size) 910 scale = MIN(MAX(scale, -0x10000), 0x10000); 911 a->exp += scale; 1030 int scale, float_status *s, 1087 if (parts_round_to_int_normal(p, rmode, scale, N - 2)) { 1154 if (parts_round_to_int_normal(p, rmode, scale, N - 2)) { 1271 int scale, float_status *s) 1289 scale = MIN(MAX(scale, -0x10000), 0x10000); 1291 p->exp = DECOMPOSED_BINARY_POINT - shift + scale; 1311 scale = MIN(MAX(scale, -0x10000), 0x10000); [all …]
|
/qemu/target/xtensa/ |
H A D | fpu_helper.c | 259 uint32_t rounding_mode, uint32_t scale) in HELPER() 272 uint32_t rounding_mode, uint32_t scale) in HELPER() 285 uint32_t rounding_mode, uint32_t scale) in HELPER() 293 res = float64_scalbn(v, scale, &fp_status); in HELPER() 307 uint32_t rounding_mode, uint32_t scale) in HELPER() 315 res = float32_scalbn(v, scale, &fp_status); in HELPER() 330 float64 HELPER(itof_d)(CPUXtensaState *env, uint32_t v, uint32_t scale) in HELPER() 333 (int32_t)scale, &env->fp_status); in HELPER() 339 (int32_t)scale, &env->fp_status); in HELPER() 345 (int32_t)scale, &env->fp_status); in HELPER() [all …]
|
H A D | translate.c | 6373 TCGv_i32 scale = tcg_constant_i32(-arg[2].imm); in translate_float_d() local 6376 gen_helper_uitof_d(arg[0].out, tcg_env, arg[1].in, scale); in translate_float_d() 6378 gen_helper_itof_d(arg[0].out, tcg_env, arg[1].in, scale); in translate_float_d() 6385 TCGv_i32 scale = tcg_constant_i32(-arg[2].imm); in translate_float_s() local 6392 gen_helper_itof_s(arg32[0].out, tcg_env, arg[1].in, scale); in translate_float_s() 6401 TCGv_i32 scale = tcg_constant_i32(arg[2].imm); in translate_ftoi_d() local 6405 rounding_mode, scale); in translate_ftoi_d() 6408 rounding_mode, scale); in translate_ftoi_d() 6416 TCGv_i32 scale = tcg_constant_i32(arg[2].imm); in translate_ftoi_s() local 6422 rounding_mode, scale); in translate_ftoi_s() [all …]
|
/qemu/target/hppa/ |
H A D | insns.decode | 71 &ldst t b x disp sp m scale size 173 &ldst disp=0 scale=0 size=0 t=0 179 &ldst disp=0 scale=0 size=0 t=0 185 &ldst disp=0 scale=0 size=0 t=0 190 &ldst disp=0 scale=0 size=0 316 m=%ma2_to_m x=0 scale=0 size=3 319 x=0 scale=0 m=0 322 x=0 scale=0 m=%neg_to_m 325 x=0 scale=0 m=%pos_to_m 346 t=%rm64 m=0 x=0 scale=0 size=2 [all …]
|
H A D | translate.c | 1567 tcg_gen_shli_i64(ofs, cpu_gr[rx], scale); in form_gva() 1593 unsigned rx, int scale, int64_t disp, in do_load_32() argument 1611 unsigned rx, int scale, int64_t disp, in do_load_64() argument 1629 unsigned rx, int scale, int64_t disp, in do_store_32() argument 1665 unsigned rx, int scale, int64_t disp, in do_load() argument 1686 unsigned rx, int scale, int64_t disp, in do_floadw() argument 1711 unsigned rx, int scale, int64_t disp, in do_floadd() argument 1745 unsigned rx, int scale, int64_t disp, in do_fstorew() argument 1765 unsigned rx, int scale, int64_t disp, in do_fstored() argument 3312 assert(a->x == 0 && a->scale == 0); in trans_st() [all …]
|
/qemu/include/block/ |
H A D | aio.h | 536 int scale, int attributes, in aio_timer_new_with_attrs() argument 539 return timer_new_full(&ctx->tlg, type, scale, attributes, cb, opaque); in aio_timer_new_with_attrs() 556 int scale, in aio_timer_new() argument 559 return timer_new_full(&ctx->tlg, type, scale, 0, cb, opaque); in aio_timer_new() 578 int scale, int attributes, in aio_timer_init_with_attrs() argument 581 timer_init_full(ts, &ctx->tlg, type, scale, attributes, cb, opaque); in aio_timer_init_with_attrs() 598 int scale, in aio_timer_init() argument 601 timer_init_full(ts, &ctx->tlg, type, scale, 0, cb, opaque); in aio_timer_init()
|
/qemu/include/qemu/ |
H A D | timer.h | 91 int scale; member 421 int scale, int attributes, 436 static inline void timer_init(QEMUTimer *ts, QEMUClockType type, int scale, in timer_init() argument 439 timer_init_full(ts, NULL, type, scale, 0, cb, opaque); in timer_init() 520 int scale, int attributes, in timer_new_full() argument 524 timer_init_full(ts, timer_list_group, type, scale, attributes, cb, opaque); in timer_new_full() 541 static inline QEMUTimer *timer_new(QEMUClockType type, int scale, in timer_new() argument 544 return timer_new_full(NULL, type, scale, 0, cb, opaque); in timer_new()
|
/qemu/tests/unit/ |
H A D | ptimer-test-stubs.c | 39 int scale, int attributes, in timer_init_full() argument 48 ts->scale = scale; in timer_init_full() 66 ts->expire_time = MAX(expire_time * ts->scale, 0); in timer_mod()
|
/qemu/util/ |
H A D | qemu-timer.c | 361 int scale, int attributes, in timer_init_full() argument 370 ts->scale = scale; in timer_init_full() 483 timer_mod_ns(ts, expire_time * ts->scale); in timer_mod() 488 timer_mod_anticipate_ns(ts, expire_time * ts->scale); in timer_mod_anticipate() 498 return timer_expired_ns(timer_head, current_time * timer_head->scale); in timer_expired()
|
/qemu/target/arm/tcg/ |
H A D | sve.decode | 90 &rprr_gather_load rd pg rn rm esz msz u ff xs scale 92 &rprr_scatter_store rd pg rn rm esz msz xs scale 1140 @rprr_g_load_xs_u esz=2 msz=0 scale=0 1206 @rprr_g_load_xs_u esz=3 msz=0 scale=0 1217 @rprr_g_load_u esz=3 msz=0 scale=0 1276 @rprr_scatter_store xs=0 esz=2 scale=1 1278 @rprr_scatter_store xs=1 esz=2 scale=1 1283 @rprr_scatter_store xs=0 esz=2 scale=0 1285 @rprr_scatter_store xs=1 esz=2 scale=0 1290 @rprr_scatter_store xs=2 esz=3 scale=1 [all …]
|
H A D | a64.decode | 552 &ldst_single rm rn rt p selem index scale 561 &ldst_single scale=0 selem=%ldst_single_selem \ 564 &ldst_single scale=1 selem=%ldst_single_selem \ 567 &ldst_single scale=2 selem=%ldst_single_selem \ 570 &ldst_single scale=3 selem=%ldst_single_selem 583 LD_single_repl 0 q:1 001101 p:1 1 . rm:5 11 . 0 scale:2 rn:5 rt:5 selem=%ldst_single_selem
|
H A D | translate-a64.c | 61 unsigned scale = extract32(x, 0, 3); in uimm_scaled() local 62 return imm << scale; in uimm_scaled() 3849 total = a->selem << a->scale; in trans_ST_single() 3852 mop = finalize_memop_asimd(s, a->scale); in trans_ST_single() 3889 total = a->selem << a->scale; in trans_LD_single() 3892 mop = finalize_memop_asimd(s, a->scale); in trans_LD_single() 3929 total = a->selem << a->scale; in trans_LD_single_repl() 3932 mop = finalize_memop_asimd(s, a->scale); in trans_LD_single_repl() 7835 tcg_shift = tcg_constant_i32(64 - scale); in handle_fpfpcvt() 7993 int scale = extract32(insn, 10, 6); in disas_fp_fixed_conv() local [all …]
|
/qemu/target/sparc/ |
H A D | vis_helper.c | 393 int scale = (gsr >> 3) & 0xf; in helper_fpack16() local 400 int32_t scaled = src << scale; in helper_fpack16() 414 int scale = (gsr >> 3) & 0x1f; in helper_fpack32() local 422 int64_t scaled = (int64_t)src << scale; in helper_fpack32() 436 int scale = (gsr >> 3) & 0x1f; in helper_fpackfix() local 443 int64_t scaled = (int64_t)src << scale; in helper_fpackfix()
|
/qemu/target/hexagon/ |
H A D | fma_emu.h | 34 int scale, float_status *fp_status);
|
H A D | fma_emu.c | 599 float32 internal_fmafx(float32 a, float32 b, float32 c, int scale, in internal_fmafx() argument 622 if ((scale == 0) && (float32_is_zero(a) || float32_is_zero(b))) { in internal_fmafx() 640 if ((scale > 0) && float32_is_denormal(c)) { in internal_fmafx() 654 result.exp += scale; in internal_fmafx()
|
/qemu/hw/display/ |
H A D | xenfb.c | 237 int scale; in xenfb_mouse_event() local 280 scale = surface_width(surface) - 1; in xenfb_mouse_event() 283 scale = surface_height(surface) - 1; in xenfb_mouse_event() 286 scale = 0x8000; in xenfb_mouse_event() 289 xenfb->axis[move->axis] = move->value * scale / 0x7fff; in xenfb_mouse_event()
|
/qemu/target/i386/hvf/ |
H A D | x86_decode.h | 231 uint8_t scale:2; member
|
/qemu/target/arm/ |
H A D | cpu.c | 2060 uint64_t scale = gt_cntfrq_period_ns(cpu); in arm_cpu_realizefn() local 2062 cpu->gt_timer[GTIMER_PHYS] = timer_new(QEMU_CLOCK_VIRTUAL, scale, in arm_cpu_realizefn() 2064 cpu->gt_timer[GTIMER_VIRT] = timer_new(QEMU_CLOCK_VIRTUAL, scale, in arm_cpu_realizefn() 2066 cpu->gt_timer[GTIMER_HYP] = timer_new(QEMU_CLOCK_VIRTUAL, scale, in arm_cpu_realizefn() 2068 cpu->gt_timer[GTIMER_SEC] = timer_new(QEMU_CLOCK_VIRTUAL, scale, in arm_cpu_realizefn() 2070 cpu->gt_timer[GTIMER_HYPVIRT] = timer_new(QEMU_CLOCK_VIRTUAL, scale, in arm_cpu_realizefn()
|
/qemu/ui/ |
H A D | cocoa.m | 500 * We want to scale up (screen.width x screen.height) by either: 503 * With the first scale factor the scale will result in an output height of 505 * space and have black bars left and right) and with the second scale 509 * output on the screen, which is to say the smaller of the two scale 512 * comparing scale factors 1 and 2 we instead calculate and compare those 513 * two scale factors multiplied by (screen.height * screen.width).
|
/qemu/target/i386/ |
H A D | ops_sse.h | 2365 Reg *d, Reg *v, Reg *s, target_ulong a0, unsigned scale) in glue() 2371 + ((target_ulong)(int32_t)s->L(i) << scale); in glue() 2379 Reg *d, Reg *v, Reg *s, target_ulong a0, unsigned scale) in glue() 2385 + ((target_ulong)(int32_t)s->L(i) << scale); in glue() 2393 Reg *d, Reg *v, Reg *s, target_ulong a0, unsigned scale) in glue() 2399 + ((target_ulong)(int64_t)s->Q(i) << scale); in glue() 2411 Reg *d, Reg *v, Reg *s, target_ulong a0, unsigned scale) in glue() 2417 + ((target_ulong)(int64_t)s->Q(i) << scale); in glue()
|
/qemu/target/i386/tcg/ |
H A D | translate.c | 1621 int scale; member 1628 int def_seg, base, index, scale, mod, rm; in gen_lea_modrm_0() local 1634 scale = 0; in gen_lea_modrm_0() 1653 scale = (code >> 6) & 3; in gen_lea_modrm_0() 1745 return (AddressParts){ def_seg, base, index, scale, disp }; in gen_lea_modrm_0() 1754 if (a.scale == 0) { in gen_lea_modrm_1() 1757 tcg_gen_shli_tl(s->A0, cpu_regs[a.index], a.scale); in gen_lea_modrm_1()
|
/qemu/target/hexagon/imported/ |
H A D | float.idef | 41 Q6INSN(F2_sffma_sc,"Rx32+=sfmpy(Rs32,Rt32,Pu4):scale",ATTRIBS(),
|