/openbmc/qemu/ui/ |
H A D | vdagent.c | 141 static void vdagent_send_buf(VDAgentChardev *vd) in vdagent_send_buf() argument 145 while (!buffer_empty(&vd->outbuf)) { in vdagent_send_buf() 146 len = qemu_chr_be_can_write(CHARDEV(vd)); in vdagent_send_buf() 150 if (len > vd->outbuf.offset) { in vdagent_send_buf() 151 len = vd->outbuf.offset; in vdagent_send_buf() 153 qemu_chr_be_write(CHARDEV(vd), vd->outbuf.buffer, len); in vdagent_send_buf() 154 buffer_advance(&vd->outbuf, len); in vdagent_send_buf() 158 static void vdagent_send_msg(VDAgentChardev *vd, VDAgentMessage *msg) in vdagent_send_msg() argument 169 if (vd->outbuf.offset + msgsize > VDAGENT_BUFFER_LIMIT) { in vdagent_send_msg() 180 buffer_reserve(&vd->outbuf, sizeof(chunk) + chunk.size); in vdagent_send_msg() [all …]
|
H A D | vnc.c | 90 vs->vd->num_connecting--; in vnc_set_share_mode() 93 vs->vd->num_shared--; in vnc_set_share_mode() 96 vs->vd->num_exclusive--; in vnc_set_share_mode() 106 vs->vd->num_connecting++; in vnc_set_share_mode() 109 vs->vd->num_shared++; in vnc_set_share_mode() 112 vs->vd->num_exclusive++; in vnc_set_share_mode() 188 static const char *vnc_auth_name(VncDisplay *vd) { in vnc_auth_name() argument 189 switch (vd->auth) { in vnc_auth_name() 207 switch (vd->subauth) { in vnc_auth_name() 235 static VncServerInfo *vnc_server_info_get(VncDisplay *vd) in vnc_server_info_get() argument [all …]
|
/openbmc/linux/lib/vdso/ |
H A D | gettimeofday.c | 35 static inline bool vdso_clocksource_ok(const struct vdso_data *vd) in vdso_clocksource_ok() argument 37 return vd->clock_mode != VDSO_CLOCKMODE_NONE; in vdso_clocksource_ok() 52 const struct vdso_data *vd; in do_hres_timens() local 59 vd = vdns - (clk == CLOCK_MONOTONIC_RAW ? CS_RAW : CS_HRES_COARSE); in do_hres_timens() 60 vd = __arch_get_timens_vdso_data(vd); in do_hres_timens() 62 vd = &vd[CS_HRES_COARSE]; in do_hres_timens() 64 vd = &vd[CS_RAW]; in do_hres_timens() 65 vdso_ts = &vd->basetime[clk]; in do_hres_timens() 68 seq = vdso_read_begin(vd); in do_hres_timens() 70 if (unlikely(!vdso_clocksource_ok(vd))) in do_hres_timens() [all …]
|
/openbmc/qemu/target/arm/tcg/ |
H A D | translate-vfp.c | 325 ((a->vm | a->vn | a->vd) & 0x10)) { in trans_VSEL() 329 rd = a->vd; in trans_VSEL() 451 ((a->vm | a->vd) & 0x10)) { in trans_VRINT() 455 rd = a->vd; in trans_VRINT() 522 rd = a->vd; in trans_VCVT() 1054 vfp_store_reg32(tmp, a->vd); in trans_VLDR_VSTR_hp() 1056 vfp_load_reg32(tmp, a->vd); in trans_VLDR_VSTR_hp() 1085 vfp_store_reg32(tmp, a->vd); in trans_VLDR_VSTR_sp() 1087 vfp_load_reg32(tmp, a->vd); in trans_VLDR_VSTR_sp() 1105 if (!dc_isar_feature(aa32_simd_r32, s) && (a->vd & 0x10)) { in trans_VLDR_VSTR_dp() [all …]
|
H A D | neon-shared.decode | 44 vm=%vm_dp vn=%vn_dp vd=%vd_dp size=%vcadd_size 47 vm=%vm_dp vn=%vn_dp vd=%vd_dp size=%vcadd_size 50 vm=%vm_dp vn=%vn_dp vd=%vd_dp 52 vm=%vm_dp vn=%vn_dp vd=%vd_dp 54 vm=%vm_dp vn=%vn_dp vd=%vd_dp 56 vm=%vm_dp vn=%vn_dp vd=%vd_dp 60 vm=%vm_sp vn=%vn_sp vd=%vd_dp q=0 62 vm=%vm_dp vn=%vn_dp vd=%vd_dp q=1 65 vm=%vm_dp vn=%vn_dp vd=%vd_dp 67 vm=%vm_dp vn=%vn_dp vd=%vd_dp [all …]
|
H A D | crypto_helper.c | 39 static void clear_tail_16(void *vd, uint32_t desc) in clear_tail_16() argument 45 clear_tail(vd, opr_sz, max_sz); in clear_tail_16() 50 void HELPER(crypto_aese)(void *vd, void *vn, void *vm, uint32_t desc) in HELPER() 55 AESState *ad = (AESState *)(vd + i); in HELPER() 76 clear_tail(vd, opr_sz, simd_maxsz(desc)); in HELPER() 79 void HELPER(crypto_aesd)(void *vd, void *vn, void *vm, uint32_t desc) in HELPER() 84 AESState *ad = (AESState *)(vd + i); in HELPER() 101 clear_tail(vd, opr_sz, simd_maxsz(desc)); in HELPER() 104 void HELPER(crypto_aesmc)(void *vd, void *vm, uint32_t desc) in HELPER() 109 AESState *ad = (AESState *)(vd + i); in HELPER() [all …]
|
H A D | vfp.decode | 49 @vfp_dnm_s ................................ vm=%vm_sp vn=%vn_sp vd=%vd_sp 50 @vfp_dnm_d ................................ vm=%vm_dp vn=%vn_dp vd=%vd_dp 52 @vfp_dm_ss ................................ vm=%vm_sp vd=%vd_sp 53 @vfp_dm_dd ................................ vm=%vm_dp vd=%vd_dp 54 @vfp_dm_ds ................................ vm=%vm_sp vd=%vd_dp 55 @vfp_dm_sd ................................ vm=%vm_dp vd=%vd_sp 83 VLDR_VSTR_hp ---- 1101 u:1 .0 l:1 rn:4 .... 1001 imm:8 vd=%vd_sp 84 VLDR_VSTR_sp ---- 1101 u:1 .0 l:1 rn:4 .... 1010 imm:8 vd=%vd_sp 85 VLDR_VSTR_dp ---- 1101 u:1 .0 l:1 rn:4 .... 1011 imm:8 vd=%vd_dp 96 vd=%vd_sp p=0 u=1 [all …]
|
H A D | translate-neon.c | 121 static bool do_neon_ddda(DisasContext *s, int q, int vd, int vn, int vm, in do_neon_ddda() argument 125 if (((vd | vn | vm) & 0x10) && !dc_isar_feature(aa32_simd_r32, s)) { in do_neon_ddda() 134 if (((vd & 1) * 4 | (vn & 1) * 2 | (vm & 1)) & q) { in do_neon_ddda() 143 tcg_gen_gvec_4_ool(vfp_reg_offset(1, vd), in do_neon_ddda() 146 vfp_reg_offset(1, vd), in do_neon_ddda() 151 static bool do_neon_ddda_env(DisasContext *s, int q, int vd, int vn, int vm, in do_neon_ddda_env() argument 155 if (((vd | vn | vm) & 0x10) && !dc_isar_feature(aa32_simd_r32, s)) { in do_neon_ddda_env() 164 if (((vd & 1) * 4 | (vn & 1) * 2 | (vm & 1)) & q) { in do_neon_ddda_env() 173 tcg_gen_gvec_4_ptr(vfp_reg_offset(1, vd), in do_neon_ddda_env() 176 vfp_reg_offset(1, vd), in do_neon_ddda_env() [all …]
|
H A D | vec_helper.c | 179 void HELPER(sve2_sqrdmlah_b)(void *vd, void *vn, void *vm, in HELPER() 183 int8_t *d = vd, *n = vn, *m = vm, *a = va; in HELPER() 190 void HELPER(sve2_sqrdmlsh_b)(void *vd, void *vn, void *vm, in HELPER() 194 int8_t *d = vd, *n = vn, *m = vm, *a = va; in HELPER() 201 void HELPER(sve2_sqdmulh_b)(void *vd, void *vn, void *vm, uint32_t desc) in HELPER() 204 int8_t *d = vd, *n = vn, *m = vm; in HELPER() 211 void HELPER(sve2_sqrdmulh_b)(void *vd, void *vn, void *vm, uint32_t desc) in HELPER() 214 int8_t *d = vd, *n = vn, *m = vm; in HELPER() 250 void HELPER(gvec_qrdmlah_s16)(void *vd, void *vn, void *vm, in HELPER() 254 int16_t *d = vd; in HELPER() [all …]
|
H A D | sve_helper.c | 95 uint32_t HELPER(sve_predtest)(void *vd, void *vg, uint32_t words) in HELPER() 98 uint64_t *d = vd, *g = vg; in HELPER() 120 void HELPER(NAME)(void *vd, void *vn, void *vm, void *vg, uint32_t desc) \ 123 uint64_t *d = vd, *n = vn, *m = vm, *g = vg; \ 167 void HELPER(NAME)(void *vd, void *vn, void *vm, void *vg, uint32_t desc) \ in LOGICAL_PPPP() 176 *(TYPE *)(vd + H(i)) = OP(nn, mm); \ in LOGICAL_PPPP() 185 void HELPER(NAME)(void *vd, void *vn, void *vm, void *vg, uint32_t desc) \ 188 TYPE *d = vd, *n = vn, *m = vm; \ 662 void HELPER(NAME)(void *vd, void *vn, void *vm, void *vg, uint32_t desc) \ in DO_ZPZZ() 673 *(TYPE *)(vd + H(i)) = OP(n0, n1); \ in DO_ZPZZ() [all …]
|
H A D | neon-dp.decode | 40 &3same vm vn vd q size 43 &3same vm=%vm_dp vn=%vn_dp vd=%vd_dp 46 &3same vm=%vm_dp vn=%vn_dp vd=%vd_dp q=0 55 &3same vm=%vm_dp vn=%vn_dp vd=%vd_dp size=%3same_fp_size 57 &3same vm=%vm_dp vn=%vn_dp vd=%vd_dp q=0 size=%3same_fp_size 68 &3same vm=%vm_dp vn=%vn_dp vd=%vd_dp size=0 101 &3same vn=%vm_dp vm=%vn_dp vd=%vd_dp 149 &3same vm=%vm_dp vn=%vn_dp vd=%vd_dp size=0 q=1 189 &2reg_shift vm vd q shift size 198 &2reg_shift vm=%vm_dp vd=%vd_dp size=3 shift=%neon_rshift_i6 [all …]
|
/openbmc/qemu/tests/tcg/s390x/ |
H A D | vxeh2_vcvt.c | 57 S390Vector vd; in main() local 63 vd.d[0] = vd.d[1] = 0; in main() 64 vcfps(&vd, &vs_i32, 2, M4_def, 0); in main() 65 if (1 != vd.f[0] || 1024 != vd.f[2] || 64 != vd.f[1] || -10 != vd.f[3]) { in main() 69 vd.d[0] = vd.d[1] = 0; in main() 70 vcfpl(&vd, &vs_u32, 2, M4_def, 0); in main() 71 if (2 != vd.f[0] || 4096 != vd.f[2] || 32 != vd.f[1] || 8888 != vd.f[3]) { in main() 75 vd.d[0] = vd.d[1] = 0; in main() 76 vcsfp(&vd, &vs_f32, 2, M4_def, 0); in main() 77 if (4 != vd.w[0] || 4 != vd.w[2] || 5 != vd.w[1] || 1 != vd.w[3]) { in main() [all …]
|
H A D | vistr.c | 21 S390Vector vd = {}; in main() local 31 vistr(&vd, &vs16, 1, 0); in main() 32 if (vd.h[0] != 0x1234 || vd.h[1] != 0x0056 || vd.h[2] != 0x7800 || in main() 33 vd.h[3] || vd.h[4] || vd.h[5] || vd.h[6] || vd.h[7]) { in main() 38 vistr(&vd, &vs32, 2, 0); in main() 39 if (vd.w[0] != 0x12340000 || vd.w[1] != 0x78654300 || vd.w[2] || vd.w[3]) { in main()
|
H A D | vxeh2_vlstr.c | 87 S390Vector vd = { .d[0] = 0, .d[1] = 0 }; in main() local 102 vler(&vd, &vs, ES16); in main() 103 vtst(vd, vt_v_er16); in main() 105 vster(&vs, &vd, ES16); in main() 106 vtst(vd, vt_v_er16); in main() 108 vlbr(&vd, &vs, ES16); in main() 109 vtst(vd, vt_v_br16); in main() 111 vstbr(&vs, &vd, ES16); in main() 112 vtst(vd, vt_v_br16); in main() 114 vlebrh(&vd, &ss64, 5); in main() [all …]
|
H A D | vxeh2_vs.c | 70 S390Vector vd = { .d[0] = 0, .d[1] = 0 }; in main() local 77 vsl(&vd, &vs, &vsi); in main() 78 vtst(vd, vt_vsl); in main() 80 vsra(&vd, &vs, &vsi); in main() 81 vtst(vd, vt_vsra); in main() 83 vsrl(&vd, &vs, &vsi); in main() 84 vtst(vd, vt_vsrl); in main() 86 vsld(&vd, &vs, &vsi, 3); in main() 87 vtst(vd, vt_vsld); in main() 89 vsrd(&vd, &vs, &vsi, 15); in main() [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | virt-dma.h | 57 struct virt_dma_desc *vd, unsigned long tx_flags) in vchan_tx_prep() argument 61 dma_async_tx_descriptor_init(&vd->tx, &vc->chan); in vchan_tx_prep() 62 vd->tx.flags = tx_flags; in vchan_tx_prep() 63 vd->tx.tx_submit = vchan_tx_submit; in vchan_tx_prep() 64 vd->tx.desc_free = vchan_tx_desc_free; in vchan_tx_prep() 66 vd->tx_result.result = DMA_TRANS_NOERROR; in vchan_tx_prep() 67 vd->tx_result.residue = 0; in vchan_tx_prep() 70 list_add_tail(&vd->node, &vc->desc_allocated); in vchan_tx_prep() 73 return &vd->tx; in vchan_tx_prep() 94 static inline void vchan_cookie_complete(struct virt_dma_desc *vd) in vchan_cookie_complete() argument [all …]
|
H A D | virt-dma.c | 22 struct virt_dma_desc *vd = to_virt_desc(tx); in vchan_tx_submit() local 29 list_move_tail(&vd->node, &vc->desc_submitted); in vchan_tx_submit() 33 vc, vd, cookie); in vchan_tx_submit() 52 struct virt_dma_desc *vd = to_virt_desc(tx); in vchan_tx_desc_free() local 56 list_del(&vd->node); in vchan_tx_desc_free() 60 vc, vd, vd->tx.cookie); in vchan_tx_desc_free() 61 vc->desc_free(vd); in vchan_tx_desc_free() 69 struct virt_dma_desc *vd; in vchan_find_desc() local 71 list_for_each_entry(vd, &vc->desc_issued, node) in vchan_find_desc() 72 if (vd->tx.cookie == cookie) in vchan_find_desc() [all …]
|
/openbmc/qemu/target/riscv/ |
H A D | vcrypto_helper.c | 218 void HELPER(NAME)(void *vd, void *vs2, CPURISCVState *env, \ 232 round_state.d[0] = *((uint64_t *)vd + H8(i * 2 + 0)); \ 233 round_state.d[1] = *((uint64_t *)vd + H8(i * 2 + 1)); \ 235 *((uint64_t *)vd + H8(i * 2 + 0)) = round_state.d[0]; \ 236 *((uint64_t *)vd + H8(i * 2 + 1)) = round_state.d[1]; \ 240 vext_set_elems_1s(vd, vta, vl * 4, total_elems * 4); \ 244 void HELPER(NAME)(void *vd, void *vs2, CPURISCVState *env, \ 258 round_state.d[0] = *((uint64_t *)vd + H8(i * 2 + 0)); \ 259 round_state.d[1] = *((uint64_t *)vd + H8(i * 2 + 1)); \ 261 *((uint64_t *)vd + H8(i * 2 + 0)) = round_state.d[0]; \ [all …]
|
H A D | vector_internals.h | 143 static void do_##NAME(void *vd, void *vs2, int i) \ 146 *((TD *)vd + HD(i)) = OP(s2); \ 150 void HELPER(NAME)(void *vd, void *v0, void *vs2, \ 166 vext_set_elems_1s(vd, vma, i * ESZ, \ 170 do_##NAME(vd, vs2, i); \ 174 vext_set_elems_1s(vd, vta, vl * ESZ, \ 179 typedef void opivv2_fn(void *vd, void *vs1, void *vs2, int i); 182 static void do_##NAME(void *vd, void *vs1, void *vs2, int i) \ 186 *((TD *)vd + HD(i)) = OP(s2, s1); \ 189 void do_vext_vv(void *vd, void *v0, void *vs1, void *vs2, [all …]
|
/openbmc/linux/include/vdso/ |
H A D | helpers.h | 9 static __always_inline u32 vdso_read_begin(const struct vdso_data *vd) in vdso_read_begin() argument 13 while (unlikely((seq = READ_ONCE(vd->seq)) & 1)) in vdso_read_begin() 20 static __always_inline u32 vdso_read_retry(const struct vdso_data *vd, in vdso_read_retry() argument 26 seq = READ_ONCE(vd->seq); in vdso_read_retry() 30 static __always_inline void vdso_write_begin(struct vdso_data *vd) in vdso_write_begin() argument 37 WRITE_ONCE(vd[CS_HRES_COARSE].seq, vd[CS_HRES_COARSE].seq + 1); in vdso_write_begin() 38 WRITE_ONCE(vd[CS_RAW].seq, vd[CS_RAW].seq + 1); in vdso_write_begin() 42 static __always_inline void vdso_write_end(struct vdso_data *vd) in vdso_write_end() argument 50 WRITE_ONCE(vd[CS_HRES_COARSE].seq, vd[CS_HRES_COARSE].seq + 1); in vdso_write_end() 51 WRITE_ONCE(vd[CS_RAW].seq, vd[CS_RAW].seq + 1); in vdso_write_end()
|
/openbmc/linux/arch/powerpc/kernel/vdso/ |
H A D | vgettimeofday.c | 10 const struct vdso_data *vd) in __c_kernel_clock_gettime() argument 12 return __cvdso_clock_gettime_data(vd, clock, ts); in __c_kernel_clock_gettime() 16 const struct vdso_data *vd) in __c_kernel_clock_getres() argument 18 return __cvdso_clock_getres_data(vd, clock_id, res); in __c_kernel_clock_getres() 22 const struct vdso_data *vd) in __c_kernel_clock_gettime() argument 24 return __cvdso_clock_gettime32_data(vd, clock, ts); in __c_kernel_clock_gettime() 28 const struct vdso_data *vd) in __c_kernel_clock_gettime64() argument 30 return __cvdso_clock_gettime_data(vd, clock, ts); in __c_kernel_clock_gettime64() 34 const struct vdso_data *vd) in __c_kernel_clock_getres() argument 36 return __cvdso_clock_getres_time32_data(vd, clock_id, res); in __c_kernel_clock_getres() [all …]
|
/openbmc/qemu/tcg/loongarch64/ |
H A D | tcg-insn-defs.c.inc | 837 encode_vdj_insn(LoongArchInsn opc, TCGReg vd, TCGReg j) 839 tcg_debug_assert(vd >= 0x20 && vd <= 0x3f); 841 return encode_dj_slots(opc, vd & 0x1f, j); 845 encode_vdjk_insn(LoongArchInsn opc, TCGReg vd, TCGReg j, TCGReg k) 847 tcg_debug_assert(vd >= 0x20 && vd <= 0x3f); 850 return encode_djk_slots(opc, vd & 0x1f, j, k); 854 encode_vdjsk10_insn(LoongArchInsn opc, TCGReg vd, TCGReg j, int32_t sk10) 856 tcg_debug_assert(vd >= 0x20 && vd <= 0x3f); 859 return encode_djk_slots(opc, vd & 0x1f, j, sk10 & 0x3ff); 863 encode_vdjsk11_insn(LoongArchInsn opc, TCGReg vd, TCGReg j, int32_t sk11) [all …]
|
/openbmc/linux/arch/powerpc/include/asm/vdso/ |
H A D | gettimeofday.h | 87 const struct vdso_data *vd) in __arch_get_hw_counter() argument 96 const struct vdso_data *__arch_get_timens_vdso_data(const struct vdso_data *vd) in __arch_get_timens_vdso_data() argument 98 return (void *)vd + PAGE_SIZE; in __arch_get_timens_vdso_data() 102 static inline bool vdso_clocksource_ok(const struct vdso_data *vd) in vdso_clocksource_ok() argument 143 const struct vdso_data *vd); 145 const struct vdso_data *vd); 148 const struct vdso_data *vd); 150 const struct vdso_data *vd); 152 const struct vdso_data *vd); 155 const struct vdso_data *vd); [all …]
|
/openbmc/qemu/target/loongarch/tcg/ |
H A D | vec_helper.c | 19 void HELPER(NAME)(void *vd, void *vj, void *vk, uint32_t desc) \ 22 VReg *Vd = (VReg *)vd; \ 37 void HELPER(vhaddw_q_d)(void *vd, void *vj, void *vk, uint32_t desc) in HELPER() 40 VReg *Vd = (VReg *)vd; in HELPER() 55 void HELPER(vhsubw_q_d)(void *vd, void *vj, void *vk, uint32_t desc) in HELPER() 58 VReg *Vd = (VReg *)vd; in HELPER() 73 void HELPER(vhaddw_qu_du)(void *vd, void *vj, void *vk, uint32_t desc) in HELPER() 76 VReg *Vd = (VReg *)vd; in HELPER() 91 void HELPER(vhsubw_qu_du)(void *vd, void *vj, void *vk, uint32_t desc) in HELPER() 94 VReg *Vd = (VReg *)vd; in HELPER() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | vecemu.c | 266 unsigned int va, vb, vc, vd; in emulate_altivec() local 275 vd = (word >> 21) & 0x1f; in emulate_altivec() 285 vaddfp(&vrs[vd], &vrs[va], &vrs[vb]); in emulate_altivec() 288 vsubfp(&vrs[vd], &vrs[va], &vrs[vb]); in emulate_altivec() 291 vrefp(&vrs[vd], &vrs[vb]); in emulate_altivec() 294 vrsqrtefp(&vrs[vd], &vrs[vb]); in emulate_altivec() 298 vrs[vd].u[i] = eexp2(vrs[vb].u[i]); in emulate_altivec() 302 vrs[vd].u[i] = elog2(vrs[vb].u[i]); in emulate_altivec() 306 vrs[vd].u[i] = rfin(vrs[vb].u[i]); in emulate_altivec() 310 vrs[vd].u[i] = rfiz(vrs[vb].u[i]); in emulate_altivec() [all …]
|