Home
last modified time | relevance | path

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

12345

/openbmc/u-boot/include/linux/
H A Diopoll.h27 #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 Dbuild_bug.h12 #define BUILD_BUG_ON_MSG(cond, msg) (0) argument
46 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) argument
H A Dcompiler.h145 #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 Dunified.h62 .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 Dqemu-thread-posix.c162 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 Dqemu-thread-win32.c140 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 Devent.c36 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 Daio-wait.h78 #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 Dut.h25 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 Dtrans_fcmp.c.inc7 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 Dtrans_branch.c.inc36 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/u-boot/post/lib_powerpc/
H A Db.c132 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/u-boot/test/
H A Dut.c15 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/include/qemu/
H A Dthread.h26 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 Dthread-posix.h25 pthread_cond_t cond; member
31 QemuCond cond; member
/openbmc/qemu/scripts/qapi/
H A Dcommon.py238 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)
/openbmc/u-boot/include/
H A Dregmap.h265 #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, \
/openbmc/qemu/target/sparc/
H A Dinsns.decode10 &bcc i a cond cc
11 BPcc 00 a:1 cond:4 001 cc:1 0 - i:s19 &bcc
12 Bicc 00 a:1 cond:4 010 i:s22 &bcc cc=0
13 FBPfcc 00 a:1 cond:4 101 cc:2 - i:s19 &bcc
14 FBfcc 00 a:1 cond:4 110 i:s22 &bcc cc=0
17 BPr 00 a:1 0 cond:3 011 .. - rs1:5 .............. i=%d16
285 Tcc_r 10 0 cond:4 111010 rs1:5 0 cc:1 0000000 rs2:5
291 Tcc_i_v7 10 0 cond:4 111010 rs1:5 1 ------ i:7
295 Tcc_i_v9 10 0 cond:4 111010 rs1:5 1 cc:1 0 000 i:8
298 MOVcc 10 rd:5 101100 1 cond:4 imm:1 cc:1 0 rs2_or_imm:s11
[all …]
/openbmc/qemu/tests/tcg/alpha/
H A DMakefile.target8 ALPHA_TESTS=hello-alpha test-cond test-cmov test-ovf test-cvttq
12 test-cmov: test-cond.c
/openbmc/phosphor-dbus-monitor/src/
H A Dcallback.hpp174 Conditional& cond) : graph(graphEntry), condition(cond) in ConditionalCallback() argument
220 DeferrableCallback(const std::vector<size_t>& graphEntry, Conditional& cond, in DeferrableCallback() argument
222 ConditionalCallback<CallbackAccess>(graphEntry, cond), in DeferrableCallback()
/openbmc/u-boot/lib/bzip2/
H A Dbzlib_private.h101 #define AssertH(cond,errcode) \ argument
102 { if (!(cond)) BZ2_bz__AssertH__fail ( errcode ); }
104 #define AssertD(cond,msg) \ argument
105 { if (!(cond)) { \
111 #define AssertD(cond,msg) /* */ argument
127 #define AssertH(cond,errcode) \ argument
128 { if (!(cond)) bz_internal_error ( errcode ); }
129 #define AssertD(cond,msg) /* */ argument
/openbmc/u-boot/lib/zlib/
H A Dzutil.h102 # define Assert(cond,msg) {if(!(cond)) z_error(msg);} argument
109 # define Assert(cond,msg) argument
/openbmc/openbmc/poky/bitbake/lib/hashserv/
H A Dclient.py20 self.cond = asyncio.Condition()
27 async with self.cond:
28 await self.cond.wait_for(lambda: self.pending or self.done)
38 async with self.cond:
51 async with self.cond:
53 self.cond.notify()
59 async with self.cond:
61 self.cond.notify()
/openbmc/qemu/ui/
H A Dvnc-jobs.c57 QemuCond cond; member
118 qemu_cond_broadcast(&queue->cond); in vnc_job_push()
139 qemu_cond_wait(&queue->cond, &queue->mutex); in vnc_jobs_join()
241 qemu_cond_wait(&queue->cond, &queue->mutex); in vnc_worker_thread_loop()
327 qemu_cond_broadcast(&queue->cond); in vnc_worker_thread_loop()
337 qemu_cond_init(&queue->cond); in vnc_queue_init()
345 qemu_cond_destroy(&queue->cond); in vnc_queue_clear()
/openbmc/qemu/plugins/
H A Dapi.c100 enum qemu_plugin_cond cond, in qemu_plugin_register_vcpu_tb_exec_cond_cb() argument
105 if (cond == QEMU_PLUGIN_COND_NEVER || tb_is_mem_only()) { in qemu_plugin_register_vcpu_tb_exec_cond_cb()
108 if (cond == QEMU_PLUGIN_COND_ALWAYS) { in qemu_plugin_register_vcpu_tb_exec_cond_cb()
113 cond, entry, imm, udata); in qemu_plugin_register_vcpu_tb_exec_cond_cb()
141 enum qemu_plugin_cond cond, in qemu_plugin_register_vcpu_insn_exec_cond_cb() argument
146 if (cond == QEMU_PLUGIN_COND_NEVER || tb_is_mem_only()) { in qemu_plugin_register_vcpu_insn_exec_cond_cb()
149 if (cond == QEMU_PLUGIN_COND_ALWAYS) { in qemu_plugin_register_vcpu_insn_exec_cond_cb()
154 cond, entry, imm, udata); in qemu_plugin_register_vcpu_insn_exec_cond_cb()

12345