Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 42) sorted by relevance

12

/illumos-kvm-cmd/tcg/arm/
H A Dtcg-target.c359 tcg_out8(s, (cond << 4) | 0x0a); in tcg_out_b_noaddr()
363 tcg_out8(s, (cond << 4) | 0x0a); in tcg_out_b_noaddr()
394 tcg_out_dat_reg(s, cond, ARITH_MOV, in tcg_out_dat_reg2()
845 tcg_out_b(s, cond, val); in tcg_out_goto()
850 if (cond == COND_AL) { in tcg_out_goto()
869 tcg_out_bl(s, cond, val); in tcg_out_call()
874 if (cond == COND_AL) { in tcg_out_call()
891 tcg_out_blx(s, cond, arg); in tcg_out_callr()
895 tcg_out_bx(s, cond, arg); in tcg_out_callr()
905 else if (cond == COND_AL) { in tcg_out_goto_label()
[all …]
/illumos-kvm-cmd/
H A Dqemu-thread.c93 void qemu_cond_init(QemuCond *cond) in qemu_cond_init() argument
97 err = pthread_cond_init(&cond->cond, NULL); in qemu_cond_init()
102 void qemu_cond_destroy(QemuCond *cond) in qemu_cond_destroy() argument
106 err = pthread_cond_destroy(&cond->cond); in qemu_cond_destroy()
111 void qemu_cond_signal(QemuCond *cond) in qemu_cond_signal() argument
115 err = pthread_cond_signal(&cond->cond); in qemu_cond_signal()
120 void qemu_cond_broadcast(QemuCond *cond) in qemu_cond_broadcast() argument
124 err = pthread_cond_broadcast(&cond->cond); in qemu_cond_broadcast()
129 void qemu_cond_wait(QemuCond *cond, QemuMutex *mutex) in qemu_cond_wait() argument
133 err = pthread_cond_wait(&cond->cond, &mutex->lock); in qemu_cond_wait()
[all …]
H A Dqemu-thread.h11 pthread_cond_t cond; member
29 void qemu_cond_init(QemuCond *cond);
30 void qemu_cond_destroy(QemuCond *cond);
31 void qemu_cond_signal(QemuCond *cond);
32 void qemu_cond_broadcast(QemuCond *cond);
33 void qemu_cond_wait(QemuCond *cond, QemuMutex *mutex);
34 int qemu_cond_timedwait(QemuCond *cond, QemuMutex *mutex, uint64_t msecs);
H A Dsparc-dis.c1327 #define cond(bop, top, mask, flags) \ macro
1335 cond ("b", "ta", CONDA, F_UNBR),
1339 cond ("bcc", "tcc", CONDCC, F_CONDBR),
1340 cond ("bcs", "tcs", CONDCS, F_CONDBR),
1341 cond ("be", "te", CONDE, F_CONDBR),
1343 cond ("bg", "tg", CONDG, F_CONDBR),
1348 cond ("bl", "tl", CONDL, F_CONDBR),
1353 cond ("bn", "tn", CONDN, F_CONDBR),
1362 #undef cond
1450 …{ opcode, F3(2, 0x2c, 1)|MCOND(cond,1)|XCC, F3(~2, ~0x2c, ~1)|MCOND(~cond,~1)|(1<<11), "Z,I,d"…
[all …]
H A Dposix-aio-compat.c65 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable
102 static int cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, in cond_timedwait() argument
105 int ret = pthread_cond_timedwait(cond, mutex, ts); in cond_timedwait()
110 static void cond_signal(pthread_cond_t *cond) in cond_signal() argument
112 int ret = pthread_cond_signal(cond); in cond_signal()
326 ret = cond_timedwait(&cond, &lock, &ts); in aio_thread()
395 cond_signal(&cond); in qemu_paio_submit()
/illumos-kvm-cmd/tests/alpha/
H A DMakefile10 TESTS=test-cond test-cmov
17 test-cond: test-cond.o crt.o
20 test-cmov.o: test-cond.c
/illumos-kvm-cmd/ui/
H A Dvnc-jobs-async.c52 QemuCond cond; member
111 qemu_cond_broadcast(&queue->cond); in vnc_job_push()
155 qemu_cond_wait(&queue->cond, &queue->mutex); in vnc_jobs_join()
198 qemu_cond_wait(&queue->cond, &queue->mutex); in vnc_worker_thread_loop()
272 qemu_cond_broadcast(&queue->cond); in vnc_worker_thread_loop()
281 qemu_cond_init(&queue->cond); in vnc_queue_init()
289 qemu_cond_destroy(&queue->cond); in vnc_queue_clear()
334 qemu_cond_broadcast(&queue->cond); in vnc_stop_worker_thread()
/illumos-kvm-cmd/audio/
H A Daudio_pt_int.c45 err = pthread_cond_init (&p->cond, NULL); in audio_pt_init()
76 err2 = pthread_cond_destroy (&p->cond); in audio_pt_init()
96 err = pthread_cond_destroy (&p->cond); in audio_pt_fini()
138 err = pthread_cond_wait (&p->cond, &p->mutex); in audio_pt_wait()
155 err = pthread_cond_signal (&p->cond); in audio_pt_unlock_and_signal()
H A Daudio_pt_int.h9 pthread_cond_t cond; member
H A Daudio.c124 int audio_bug (const char *funcname, int cond) in audio_bug() argument
126 if (cond) { in audio_bug()
159 return cond; in audio_bug()
184 int cond; in audio_calloc() local
188 cond = !nmemb || !size; in audio_calloc()
189 cond |= nmemb < 0; in audio_calloc()
190 cond |= len < size; in audio_calloc()
192 if (audio_bug ("audio_calloc", cond)) { in audio_calloc()
/illumos-kvm-cmd/hw/
H A Dmac_dbdma.c219 int cond; in conditional_interrupt() local
238 cond = (status & sel_mask) == (sel_value & sel_mask); in conditional_interrupt()
242 if (cond) in conditional_interrupt()
246 if (!cond) in conditional_interrupt()
258 int cond; in conditional_wait() local
276 cond = (status & sel_mask) == (sel_value & sel_mask); in conditional_wait()
280 if (cond) in conditional_wait()
284 if (!cond) in conditional_wait()
317 int cond; in conditional_branch() local
343 if (cond) in conditional_branch()
[all …]
H A Dvirtio-9p.h134 #define BUG_ON(cond) assert(!(cond)) argument
H A Dlsi53c895a.c1326 int cond; in lsi_execute_script() local
1338 cond = jmp = (insn & (1 << 19)) != 0; in lsi_execute_script()
1339 if (cond == jmp && (insn & (1 << 21))) { in lsi_execute_script()
1341 cond = s->carry != 0; in lsi_execute_script()
1343 if (cond == jmp && (insn & (1 << 17))) { in lsi_execute_script()
1348 cond = (s->sstat1 & PHASE_MASK) == ((insn >> 24) & 7); in lsi_execute_script()
1350 if (cond == jmp && (insn & (1 << 18))) { in lsi_execute_script()
1356 cond = (s->sfbr & mask) == (insn & mask); in lsi_execute_script()
1358 if (cond == jmp) { in lsi_execute_script()
/illumos-kvm-cmd/tcg/sparc/
H A Dtcg-target.c523 static void tcg_out_brcond_i32(TCGContext *s, TCGCond cond, in tcg_out_brcond_i32() argument
533 static void tcg_out_brcond_i64(TCGContext *s, TCGCond cond, in tcg_out_brcond_i64() argument
552 switch (cond) { in tcg_out_brcond2_i32()
574 cc = INSN_COND(tcg_cond_to_bcond[cond], 0); in tcg_out_brcond2_i32()
596 switch (cond) { in tcg_out_setcond_i32()
603 cond = (cond == TCG_COND_EQ ? TCG_COND_LEU : TCG_COND_LTU); in tcg_out_setcond_i32()
613 cond = tcg_swap_cond(cond); in tcg_out_setcond_i32()
625 | INSN_RS1(tcg_cond_to_bcond[cond]) in tcg_out_setcond_i32()
638 if (cond == TCG_COND_LTU) { in tcg_out_setcond_i32()
652 | INSN_RS1(tcg_cond_to_bcond[cond]) in tcg_out_setcond_i64()
[all …]
/illumos-kvm-cmd/target-sparc/
H A Dtranslate.c1092 save_npc(dc, cond); in save_state()
1136 switch (cond) { in gen_cond()
1208 switch (cond) { in gen_fcond()
1292 if (cond == 0x0) { in do_branch()
1301 } else if (cond == 0x8) { in do_branch()
1333 if (cond == 0x0) { in do_fbranch()
1342 } else if (cond == 0x8) { in do_fbranch()
1354 gen_fcond(r_cond, cc, cond); in do_fbranch()
1986 int cond; in disas_sparc_insn() local
2652 int cond; in disas_sparc_insn() local
[all …]
/illumos-kvm-cmd/scripts/
H A Dcheckpatch.pl1529 $cond =~ s/\n./\n /g;
1653 my ($s, $c) = ($stat, $cond);
2270 my ($s, $c) = ($stat, $cond);
2501 my ($cond, $block) = @{$chunk};
2520 if (statement_lines($cond) > 1) {
2553 my ($cond, $block) = @{$chunks[0]};
2555 if (defined $cond) {
2558 if (statement_lines($cond) > 1) {
2573 if (defined $cond) {
2715 if (defined $cond) {
[all …]
/illumos-kvm-cmd/tcg/hppa/
H A Dtcg-target.c748 static void tcg_out_brcond(TCGContext *s, int cond, TCGArg c1, in tcg_out_brcond() argument
758 pacond = tcg_cond_to_cmp_cond[tcg_swap_cond(cond)]; in tcg_out_brcond()
794 static void tcg_out_comclr(TCGContext *s, int cond, TCGArg ret, in tcg_out_comclr() argument
803 pacond = tcg_cond_to_cmp_cond[tcg_swap_cond(cond)]; in tcg_out_comclr()
820 switch (cond) { in tcg_out_brcond2()
824 tcg_out_brcond(s, cond, ah, bh, bhconst, label_index); in tcg_out_brcond2()
828 tcg_out_brcond(s, cond, ah, bh, bhconst, label_index); in tcg_out_brcond2()
830 tcg_out_brcond(s, tcg_unsigned_cond(cond), in tcg_out_brcond2()
855 switch (cond) { in tcg_out_setcond2()
858 tcg_out_setcond(s, cond, scratch, al, bl, blconst); in tcg_out_setcond2()
[all …]
/illumos-kvm-cmd/tcg/ppc/
H A Dtcg-target.c996 switch (cond) { in tcg_out_cmp()
1081 TCGCond cond = args[4]; in tcg_out_cr7eq_from_cond() local
1092 }, *b = &bits[cond]; in tcg_out_cr7eq_from_cond()
1094 switch (cond) { in tcg_out_cr7eq_from_cond()
1097 op = (cond == TCG_COND_EQ) ? CRAND : CRNAND; in tcg_out_cr7eq_from_cond()
1098 tcg_out_cmp (s, cond, args[0], args[2], const_args[2], 6); in tcg_out_cr7eq_from_cond()
1127 switch (cond) { in tcg_out_setcond()
1213 tcg_out_cmp (s, cond, arg1, arg2, const_arg2, 7); in tcg_out_setcond()
1246 static void tcg_out_brcond (TCGContext *s, TCGCond cond, in tcg_out_brcond() argument
1250 tcg_out_cmp (s, cond, arg1, arg2, const_arg2, 7); in tcg_out_brcond()
[all …]
/illumos-kvm-cmd/tcg/
H A Dtcg-op.h627 static inline void tcg_gen_brcond_i32(TCGCond cond, TCGv_i32 arg1, in tcg_gen_brcond_i32() argument
637 tcg_gen_brcond_i32(cond, arg1, t0, label_index); in tcg_gen_brcondi_i32()
641 static inline void tcg_gen_setcond_i32(TCGCond cond, TCGv_i32 ret, in tcg_gen_setcond_i32() argument
644 tcg_gen_op4i_i32(INDEX_op_setcond_i32, ret, arg1, arg2, cond); in tcg_gen_setcond_i32()
651 tcg_gen_setcond_i32(cond, ret, arg1, t0); in tcg_gen_setcondi_i32()
971 static inline void tcg_gen_brcond_i64(TCGCond cond, TCGv_i64 arg1, in tcg_gen_brcond_i64() argument
976 TCGV_HIGH(arg2), cond, label_index); in tcg_gen_brcond_i64()
979 static inline void tcg_gen_setcond_i64(TCGCond cond, TCGv_i64 ret, in tcg_gen_setcond_i64() argument
984 TCGV_LOW(arg2), TCGV_HIGH(arg2), cond); in tcg_gen_setcond_i64()
1391 tcg_gen_brcond_i64(cond, arg1, t0, label_index); in tcg_gen_brcondi_i64()
[all …]
/illumos-kvm-cmd/target-alpha/
H A Dtranslate.c416 tcg_gen_brcondi_i64(cond, cmp, 0, lab_true); in gen_bcond_internal()
443 tcg_gen_brcondi_i64(cond, cmp, 0, lab_true); in gen_bcond_internal()
470 return gen_bcond_internal(ctx, cond, cmp_tmp, disp); in gen_bcond()
479 switch (cond) { in gen_fold_mzero()
513 return gen_bcond(ctx, cond, ra, disp, 0); in gen_fbcond()
517 gen_fold_mzero(cond, cmp_tmp, cpu_fir[ra]); in gen_fbcond()
518 return gen_bcond_internal(ctx, cond, cmp_tmp, disp); in gen_fbcond()
521 static void gen_cmov(TCGCond cond, int ra, int rb, int rc, in gen_cmov() argument
524 TCGCond inv_cond = tcg_invert_cond(cond); in gen_cmov()
567 gen_fold_mzero(cond, cmp_tmp, cpu_fir[ra]); in gen_fcmov()
[all …]
/illumos-kvm-cmd/tcg/mips/
H A Dtcg-target.c505 static void tcg_out_brcond(TCGContext *s, TCGCond cond, int arg1, in tcg_out_brcond() argument
510 switch (cond) { in tcg_out_brcond()
563 static void tcg_out_brcond2(TCGContext *s, TCGCond cond, int arg1, in tcg_out_brcond2() argument
568 switch(cond) { in tcg_out_brcond2()
599 switch(cond) { in tcg_out_brcond2()
626 static void tcg_out_setcond(TCGContext *s, TCGCond cond, int ret, in tcg_out_setcond() argument
629 switch (cond) { in tcg_out_setcond()
686 static void tcg_out_setcond2(TCGContext *s, TCGCond cond, int ret, in tcg_out_setcond2() argument
689 switch (cond) { in tcg_out_setcond2()
723 switch(cond) { in tcg_out_setcond2()
/illumos-kvm-cmd/target-cris/
H A Dtranslate_v10.c278 LOG_DIS("b%s %d\n", cc_name(dc->cond), imm); in dec10_quick_imm()
281 cris_prepare_cc_branch(dc, imm, dc->cond); in dec10_quick_imm()
477 int cond = dc->dst; in dec10_reg_scc() local
479 LOG_DIS("s%s $r%u\n", cc_name(cond), dc->src); in dec10_reg_scc()
481 if (cond != CC_A) in dec10_reg_scc()
485 gen_tst_cc (dc, cpu_R[dc->src], cond); in dec10_reg_scc()
1134 LOG_DIS("bcc_m: b%s %x\n", cc_name(dc->cond), dc->pc + simm); in dec10_ind()
1135 cris_prepare_cc_branch(dc, simm, dc->cond); in dec10_ind()
1162 dc->cond = dc->dst = EXTRACT_FIELD(dc->ir, 12, 15); in crisv10_decoder()
H A Dtranslate.c101 unsigned int cond; member
946 switch (cond) { in gen_tst_cc()
1134 int offset, int cond) in cris_prepare_cc_branch() argument
1142 gen_tst_cc (dc, env_btaken, cond); in cris_prepare_cc_branch()
1377 uint32_t cond = dc->op2; in dec_bccq() local
1564 int cond = dc->op2; in dec_scc_r() local
1567 cc_name(cond), dc->op1); in dec_scc_r()
1569 if (cond != CC_A) in dec_scc_r()
1573 gen_tst_cc (dc, cpu_R[dc->op1], cond); in dec_scc_r()
2855 uint32_t cond = dc->op2; in dec_bcc_im() local
[all …]
/illumos-kvm-cmd/tcg/ppc64/
H A Dtcg-target.c976 static void tcg_out_cmp (TCGContext *s, int cond, TCGArg arg1, TCGArg arg2, in tcg_out_cmp() argument
982 switch (cond) { in tcg_out_cmp()
1049 static void tcg_out_setcond (TCGContext *s, TCGType type, TCGCond cond, in tcg_out_setcond() argument
1055 switch (cond) { in tcg_out_setcond()
1148 tcg_out_cmp (s, cond, arg1, arg2, const_arg2, 7, type == TCG_TYPE_I64); in tcg_out_setcond()
1181 static void tcg_out_brcond (TCGContext *s, TCGCond cond, in tcg_out_brcond() argument
1185 tcg_out_cmp (s, cond, arg1, arg2, const_arg2, 7, arch64); in tcg_out_brcond()
1186 tcg_out_bc (s, tcg_to_bc[cond], label_index); in tcg_out_brcond()
/illumos-kvm-cmd/tcg/i386/
H A Dtcg-target.c775 static void tcg_out_brcond32(TCGContext *s, TCGCond cond, in tcg_out_brcond32() argument
780 tcg_out_jxx(s, tcg_cond_to_jcc[cond], label_index, small); in tcg_out_brcond32()
784 static void tcg_out_brcond64(TCGContext *s, TCGCond cond, in tcg_out_brcond64() argument
789 tcg_out_jxx(s, tcg_cond_to_jcc[cond], label_index, small); in tcg_out_brcond64()
875 static void tcg_out_setcond32(TCGContext *s, TCGCond cond, TCGArg dest, in tcg_out_setcond32() argument
879 tcg_out_modrm(s, OPC_SETCC | tcg_cond_to_jcc[cond], 0, dest); in tcg_out_setcond32()
884 static void tcg_out_setcond64(TCGContext *s, TCGCond cond, TCGArg dest, in tcg_out_setcond64() argument
888 tcg_out_modrm(s, OPC_SETCC | tcg_cond_to_jcc[cond], 0, dest); in tcg_out_setcond64()

Completed in 91 milliseconds

12