| /openbmc/u-boot/include/linux/ |
| H A D | iopoll.h | 27 #define readx_poll_timeout(op, addr, val, cond, timeout_us) \ argument 32 if (cond) \ 39 (cond) ? 0 : -ETIMEDOUT; \ 43 #define readb_poll_timeout(addr, val, cond, timeout_us) \ argument 44 readx_poll_timeout(readb, addr, val, cond, timeout_us) 46 #define readw_poll_timeout(addr, val, cond, timeout_us) \ argument 47 readx_poll_timeout(readw, addr, val, cond, timeout_us) 49 #define readl_poll_timeout(addr, val, cond, timeout_us) \ argument 50 readx_poll_timeout(readl, addr, val, cond, timeout_us) 52 #define readq_poll_timeout(addr, val, cond, timeout_us) \ argument [all …]
|
| H A D | build_bug.h | 12 #define BUILD_BUG_ON_MSG(cond, msg) (0) argument 46 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) argument
|
| H A D | compiler.h | 145 #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) argument 146 #define __trace_if(cond) \ argument 147 if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ 158 ______r = !!(cond); \ 313 #define smp_cond_acquire(cond) do { \ argument 314 while (!(cond)) \
|
| /openbmc/u-boot/arch/arm/include/asm/ |
| H A D | unified.h | 62 .macro it, cond 64 .macro itt, cond 66 .macro ite, cond 68 .macro ittt, cond 70 .macro itte, cond 72 .macro itet, cond 74 .macro itee, cond 76 .macro itttt, cond 78 .macro ittte, cond 80 .macro ittet, cond [all …]
|
| /openbmc/qemu/util/ |
| H A D | qemu-thread-posix.c | 162 void qemu_cond_init(QemuCond *cond) in qemu_cond_init() argument 177 err = pthread_cond_init(&cond->cond, &attr); in qemu_cond_init() 185 cond->initialized = true; in qemu_cond_init() 188 void qemu_cond_destroy(QemuCond *cond) in qemu_cond_destroy() argument 192 assert(cond->initialized); in qemu_cond_destroy() 193 cond->initialized = false; in qemu_cond_destroy() 194 err = pthread_cond_destroy(&cond->cond); in qemu_cond_destroy() 199 void qemu_cond_signal(QemuCond *cond) in qemu_cond_signal() argument 203 assert(cond->initialized); in qemu_cond_signal() 204 err = pthread_cond_signal(&cond->cond); in qemu_cond_signal() [all …]
|
| H A D | qemu-thread-win32.c | 140 void qemu_cond_init(QemuCond *cond) in qemu_cond_init() argument 142 memset(cond, 0, sizeof(*cond)); in qemu_cond_init() 143 InitializeConditionVariable(&cond->var); in qemu_cond_init() 144 cond->initialized = true; in qemu_cond_init() 147 void qemu_cond_destroy(QemuCond *cond) in qemu_cond_destroy() argument 149 assert(cond->initialized); in qemu_cond_destroy() 150 cond->initialized = false; in qemu_cond_destroy() 151 InitializeConditionVariable(&cond->var); in qemu_cond_destroy() 154 void qemu_cond_signal(QemuCond *cond) in qemu_cond_signal() argument 156 assert(cond->initialized); in qemu_cond_signal() [all …]
|
| H A D | event.c | 36 pthread_cond_init(&ev->cond, NULL); in qemu_event_init() 49 pthread_cond_destroy(&ev->cond); in qemu_event_destroy() 79 pthread_cond_broadcast(&ev->cond); in qemu_event_set() 167 pthread_cond_wait(&ev->cond, &ev->lock); in qemu_event_wait()
|
| /openbmc/qemu/include/block/ |
| H A D | aio-wait.h | 78 #define AIO_WAIT_WHILE_INTERNAL(ctx, cond) ({ \ argument 87 while ((cond)) { \ 94 while ((cond)) { \ 102 #define AIO_WAIT_WHILE(ctx, cond) \ argument 103 AIO_WAIT_WHILE_INTERNAL(ctx, cond) 106 #define AIO_WAIT_WHILE_UNLOCKED(ctx, cond) \ argument 107 AIO_WAIT_WHILE_INTERNAL(ctx, cond)
|
| /openbmc/u-boot/include/test/ |
| H A D | ut.h | 25 const char *func, const char *cond); 38 const char *func, const char *cond, const char *fmt, ...) 43 #define ut_assert(cond) \ argument 44 if (!(cond)) { \ 45 ut_fail(uts, __FILE__, __LINE__, __func__, #cond); \ 50 #define ut_assertf(cond, fmt, args...) \ argument 51 if (!(cond)) { \ 52 ut_failf(uts, __FILE__, __LINE__, __func__, #cond, \ 149 #define ut_assertok(cond) ut_asserteq(0, cond) argument
|
| /openbmc/qemu/target/loongarch/tcg/insn_trans/ |
| H A D | trans_fcmp.c.inc | 7 static uint32_t get_fcmp_flags(DisasContext *ctx, int cond) 11 /*check cond , cond =[0-8,10,12] */ 12 if ((cond > 8) &&(cond != 10) && (cond != 12)) { 16 if (cond & 0x1) { 19 if (cond & 0x2) { 22 if (cond & 0x4) { 25 if (cond & 0x8) {
|
| H A D | trans_branch.c.inc | 36 target_long offs, TCGCond cond) 39 tcg_gen_brcond_tl(cond, src1, src2, l); 46 static bool gen_rr_bc(DisasContext *ctx, arg_rr_offs *a, TCGCond cond) 51 gen_bc(ctx, src1, src2, a->offs, cond); 55 static bool gen_rz_bc(DisasContext *ctx, arg_r_offs *a, TCGCond cond) 60 gen_bc(ctx, src1, src2, a->offs, cond); 64 static bool gen_cz_bc(DisasContext *ctx, arg_c_offs *a, TCGCond cond) 71 gen_bc(ctx, src1, src2, a->offs, cond);
|
| /openbmc/qemu/target/arm/ |
| H A D | syndrome.h | 172 static inline uint32_t syn_cp14_rt_trap(int cv, int cond, int opc1, int opc2, in syn_cp14_rt_trap() argument 178 | (cv << 24) | (cond << 20) | (opc2 << 17) | (opc1 << 14) in syn_cp14_rt_trap() 182 static inline uint32_t syn_cp15_rt_trap(int cv, int cond, int opc1, int opc2, in syn_cp15_rt_trap() argument 188 | (cv << 24) | (cond << 20) | (opc2 << 17) | (opc1 << 14) in syn_cp15_rt_trap() 192 static inline uint32_t syn_cp14_rrt_trap(int cv, int cond, int opc1, int crm, in syn_cp14_rrt_trap() argument 198 | (cv << 24) | (cond << 20) | (opc1 << 16) in syn_cp14_rrt_trap() 202 static inline uint32_t syn_cp15_rrt_trap(int cv, int cond, int opc1, int crm, in syn_cp15_rrt_trap() argument 208 | (cv << 24) | (cond << 20) | (opc1 << 16) in syn_cp15_rrt_trap() 212 static inline uint32_t syn_fp_access_trap(int cv, int cond, bool is_16bit, in syn_fp_access_trap() argument 218 | (cv << 24) | (cond << 20) | coproc; in syn_fp_access_trap() [all …]
|
| /openbmc/u-boot/post/lib_powerpc/ |
| H A D | b.c | 132 int cond; in cpu_post_test_b() local 144 for (cond = 0; cond <= 1 && ret == 0; cond++) in cpu_post_test_b() 149 int cr = cond ? 0x80000000 : 0x00000000; in cpu_post_test_b() 151 (cc == 0 && !cond) || in cpu_post_test_b() 152 (cc == 1 && cond); in cpu_post_test_b()
|
| /openbmc/qemu/chardev/ |
| H A D | char-fd.c | 48 static gboolean fd_chr_read(QIOChannel *chan, GIOCondition cond, void *opaque) in fd_chr_read() argument 90 GIOCondition cond; member 99 return src->cond != 0; in fd_source_prepare() 107 return src->cond != 0; in fd_source_check() 118 if (src->cond) { in fd_source_dispatch() 119 ret = func(NULL, src->cond, user_data); in fd_source_dispatch() 120 src->cond = 0; in fd_source_dispatch() 144 parent->cond |= condition; in child_func() 149 static GSource *fd_chr_add_watch(Chardev *chr, GIOCondition cond) in fd_chr_add_watch() argument 155 g_autoptr(GSource) child = qio_channel_create_watch(s->ioc_out, cond & ~G_IO_IN); in fd_chr_add_watch() [all …]
|
| /openbmc/qemu/scripts/ |
| H A D | minikconf.py | 157 def __init__(self, dest, value, cond=None): argument 160 self.cond = cond 161 if not (self.cond is None): 162 self.cond.add_edges_to(self.dest) 165 if self.cond is None: 168 return "config %s default %s if %s" % (self.dest, value, self.cond) 175 (self.cond is None or self.cond.evaluate()): 191 def __init__(self, dest, cond): argument 193 self.cond = cond 194 self.cond.add_edges_to(self.dest) [all …]
|
| /openbmc/u-boot/test/ |
| H A D | ut.c | 15 const char *func, const char *cond) in ut_fail() argument 18 printf("%s:%d, %s(): %s\n", fname, line, func, cond); in ut_fail() 23 const char *func, const char *cond, const char *fmt, ...) in ut_failf() argument 28 printf("%s:%d, %s(): %s: ", fname, line, func, cond); in ut_failf()
|
| /openbmc/qemu/tcg/arm/ |
| H A D | tcg-target.c.inc | 513 TCGType type, TCGCond cond, int vece) 547 static void tcg_out_b_imm(TCGContext *s, ARMCond cond, int32_t offset) 549 tcg_out32(s, (cond << 28) | INSN_B | 553 static void tcg_out_bl_imm(TCGContext *s, ARMCond cond, int32_t offset) 555 tcg_out32(s, (cond << 28) | 0x0b000000 | 559 static void tcg_out_blx_reg(TCGContext *s, ARMCond cond, TCGReg rn) 561 tcg_out32(s, (cond << 28) | 0x012fff30 | rn); 570 static void tcg_out_dat_reg(TCGContext *s, ARMCond cond, ARMInsn opc, 573 tcg_out32(s, (cond << 28) | (0 << 25) | opc | 577 static void tcg_out_mov_reg(TCGContext *s, ARMCond cond, TCGReg rd, TCGReg rm) [all …]
|
| /openbmc/qemu/include/qemu/ |
| H A D | thread.h | 26 pthread_cond_t cond; member 168 void qemu_cond_init(QemuCond *cond); 169 void qemu_cond_destroy(QemuCond *cond); 176 void qemu_cond_signal(QemuCond *cond); 177 void qemu_cond_broadcast(QemuCond *cond); 178 void TSA_NO_TSA qemu_cond_wait_impl(QemuCond *cond, QemuMutex *mutex, 180 bool qemu_cond_timedwait_impl(QemuCond *cond, QemuMutex *mutex, int ms, 183 static inline void (qemu_cond_wait)(QemuCond *cond, QemuMutex *mutex) 185 qemu_cond_wait(cond, mutex); 189 static inline bool (qemu_cond_timedwait)(QemuCond *cond, QemuMutex *mutex, [all …]
|
| H A D | thread-posix.h | 25 pthread_cond_t cond; member 31 QemuCond cond; member
|
| /openbmc/qemu/scripts/qapi/ |
| H A D | common.py | 238 def gen_if(cond: str) -> str: 239 if not cond: 243 ''', cond=cond) 246 def gen_endif(cond: str) -> str: 247 if not cond: 251 ''', cond=cond)
|
| H A D | expr.py | 267 def _check_if(cond: Union[str, object]) -> None: 268 if isinstance(cond, str): 269 if not re.fullmatch(r'[A-Z][A-Z0-9_]*', cond): 273 % (cond, source)) 276 if not isinstance(cond, dict): 280 check_keys(cond, info, "'if' condition of %s" % source, [], 282 if len(cond) != 1: 287 if 'not' in cond: 288 _check_if(cond['not']) 289 elif 'all' in cond: [all …]
|
| /openbmc/qemu/target/hexagon/ |
| H A D | genptr.c | 466 TCGCond cond, TCGv pred) in gen_write_new_pc_addr() argument 469 if (cond != TCG_COND_ALWAYS) { in gen_write_new_pc_addr() 471 tcg_gen_brcondi_tl(cond, pred, 0, pred_false); in gen_write_new_pc_addr() 484 if (cond != TCG_COND_ALWAYS) { in gen_write_new_pc_addr() 490 TCGCond cond, TCGv pred) in gen_write_new_pc_pcrel() argument 494 gen_write_new_pc_addr(ctx, tcg_constant_tl(dest), cond, pred); in gen_write_new_pc_pcrel() 499 ctx->branch_cond = cond; in gen_write_new_pc_pcrel() 530 static void gen_compare(TCGCond cond, TCGv res, TCGv arg1, TCGv arg2) in gen_compare() argument 535 tcg_gen_movcond_tl(cond, res, arg1, arg2, one, zero); in gen_compare() 581 static inline void gen_comparei(TCGCond cond, TCGv res, TCGv arg1, int arg2) in gen_comparei() argument [all …]
|
| /openbmc/qemu/scripts/tracetool/backend/ |
| H A D | log.py | 31 cond = "trace_event_get_state(%s)" % ("TRACE_" + event.name.upper()) 38 cond=cond,
|
| H A D | syslog.py | 31 cond = "trace_event_get_state(%s)" % ("TRACE_" + event.name.upper()) 38 cond=cond,
|
| /openbmc/u-boot/include/ |
| H A D | regmap.h | 265 #define regmap_read_poll_timeout_test(map, addr, val, cond, sleep_us, \ argument 274 if (cond) \ 285 __ret ?: ((cond) ? 0 : -ETIMEDOUT); \ 288 #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_ms) \ argument 289 regmap_read_poll_timeout_test(map, addr, val, cond, sleep_us, \
|