Searched refs:cond (Results 1 - 21 of 21) sorted by relevance

/haiku/src/system/libnetwork/netresolv/include/isc/
H A Dassertions.h72 #define REQUIRE(cond) \
73 ((void) ((cond) || \
75 #cond, 0), 0)))
76 #define REQUIRE_ERR(cond) \
77 ((void) ((cond) || \
79 #cond, 1), 0)))
81 #define REQUIRE(cond) ((void) (cond))
82 #define REQUIRE_ERR(cond) ((void) (cond))
[all...]
/haiku/src/libs/posix_error_mapper/
H A Dpthread_cond.cpp11 WRAPPER_FUNCTION(int, pthread_cond_destroy, (pthread_cond_t *cond),
12 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_destroy(cond));
16 WRAPPER_FUNCTION(int, pthread_cond_init, (pthread_cond_t *cond,
18 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_init(cond, attr));
22 WRAPPER_FUNCTION(int, pthread_cond_broadcast, (pthread_cond_t *cond),
23 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_broadcast(cond));
27 WRAPPER_FUNCTION(int, pthread_cond_signal, (pthread_cond_t *cond),
28 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_signal(cond));
32 WRAPPER_FUNCTION(int, pthread_cond_timedwait, (pthread_cond_t *cond,
34 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_timedwait(cond, mute
[all...]
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_cond.cpp32 pthread_cond_init(pthread_cond_t* cond, const pthread_condattr_t* _attr) argument
37 cond->flags = 0;
39 cond->flags |= COND_FLAG_SHARED;
42 cond->flags |= COND_FLAG_MONOTONIC;
44 cond->mutex = NULL;
45 cond->waiter_count = 0;
46 cond->lock = 0;
53 pthread_cond_destroy(pthread_cond_t* cond) argument
60 cond_wait(pthread_cond_t* cond, pthread_mutex_t* mutex, uint32 flags, argument
68 if (cond
108 cond_signal(pthread_cond_t* cond, bool broadcast) argument
126 pthread_cond_wait(pthread_cond_t* cond, pthread_mutex_t* _mutex) argument
133 pthread_cond_clockwait(pthread_cond_t* cond, pthread_mutex_t* mutex, clockid_t clock_id, const struct timespec* abstime) argument
158 pthread_cond_timedwait(pthread_cond_t* cond, pthread_mutex_t* mutex, const struct timespec* abstime) argument
168 pthread_cond_broadcast(pthread_cond_t* cond) argument
176 pthread_cond_signal(pthread_cond_t* cond) argument
[all...]
/haiku/src/system/libroot/posix/libstdthreads/
H A Dcnd.c37 cnd_broadcast(cnd_t *cond) argument
40 if (pthread_cond_broadcast(cond) != 0)
46 cnd_destroy(cnd_t *cond) argument
49 (void)pthread_cond_destroy(cond);
53 cnd_init(cnd_t *cond) argument
56 switch (pthread_cond_init(cond, NULL)) {
67 cnd_signal(cnd_t *cond) argument
70 if (pthread_cond_signal(cond) != 0)
76 cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, argument
80 switch (pthread_cond_timedwait(cond, mt
91 cnd_wait(cnd_t *cond, mtx_t *mtx) argument
[all...]
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_debug.h24 # define Dprint(cond, args) /*empty*/
25 # define DprintQ(cond, args, query, size) /*empty*/
29 # define Dprint(cond, args) if (cond) {fprintf args;} else {}
30 # define DprintQ(cond, args, query, size) if (cond) {\
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dsystm.h44 #define KASSERT_FREEBSD(cond,msg) do { \
45 if (!(cond)) \
48 #define KASSERT(cond,msg) KASSERT_FREEBSD(cond,msg)
51 #define KASSERT(cond,msg) KASSERT_FREEBSD(cond,msg)
/haiku/src/system/libnetwork/netresolv/isc/
H A Dassertions.c91 const char *cond, int print_errno)
94 file, line, assertion_type_to_text(type), cond,
90 default_assertion_failed(const char *file, int line, assertion_type type, const char *cond, int print_errno) argument
/haiku/headers/private/firewire/
H A Dfwglue.h19 #define KASSERT(cond,msg) do { \
20 if (!cond) \
/haiku/headers/posix/
H A Dpthread.h138 extern int pthread_cond_destroy(pthread_cond_t *cond);
139 extern int pthread_cond_init(pthread_cond_t *cond,
141 extern int pthread_cond_broadcast(pthread_cond_t *cond);
142 extern int pthread_cond_signal(pthread_cond_t *cond);
143 extern int pthread_cond_clockwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
145 extern int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
147 extern int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/
H A Dif_rtwnreg.h134 const uint8_t cond[RTWN_MAX_CONDITIONS]; member in struct:rtwn_bb_prog
141 const uint8_t cond[RTWN_MAX_CONDITIONS]; member in struct:rtwn_agc_prog
152 const uint8_t cond[RTWN_MAX_CONDITIONS]; member in struct:rtwn_rf_prog
/haiku/src/tests/add-ons/print/ppd/parser/
H A DScanner.h21 BString* Scan(bool (cond)(int ch));
H A DScanner.cpp66 BString* Scanner::Scan(bool (cond)(int ch))
69 while (cond(GetCurrentChar())) {
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/
H A Dr92c_init.c57 r92c_check_condition(struct rtwn_softc *sc, const uint8_t cond[]) argument
63 if (cond[0] == 0)
68 __func__, cond[0], rs->chip, rs->board_type);
84 for (i = 0; i < RTWN_MAX_CONDITIONS && cond[i] != 0; i++)
85 if ((cond[i] & mask) == mask)
134 while (!rtwn_check_condition(sc, bb_prog->cond)) {
171 while (!rtwn_check_condition(sc, agc_prog->cond)) {
204 while (!rtwn_check_condition(sc, prog->cond)) {
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8821a/
H A Dr21a_init.c286 r21a_check_condition(struct rtwn_softc *sc, const uint8_t cond[]) argument
294 __func__, cond[0], rs->ext_pa_5g, rs->ext_lna_5g);
296 if (cond[0] == 0)
313 for (i = 0; i < RTWN_MAX_CONDITIONS && cond[i] != 0; i++)
314 if (cond[i] == mask)
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8812a/
H A Dr12a_init.c66 r12a_check_condition(struct rtwn_softc *sc, const uint8_t cond[]) argument
74 "%d/%d (5 GHz)\n", __func__, cond[0], rs->ext_pa_2g,
77 if (cond[0] == 0)
106 for (i = 0; i < RTWN_MAX_CONDITIONS && cond[i] != 0; i++)
108 if ((cond[i] & mask[j]) == mask[j])
154 while (!rtwn_check_condition(sc, bb_prog->cond)) {
177 while (!rtwn_check_condition(sc, agc_prog->cond)) {
/haiku/src/libs/x86emu/
H A Dops2.c116 int cond = 0; local
123 cond = ACCESS_FLAG(F_OF);
127 cond = !ACCESS_FLAG(F_OF);
131 cond = ACCESS_FLAG(F_CF);
135 cond = !ACCESS_FLAG(F_CF);
139 cond = ACCESS_FLAG(F_ZF);
143 cond = !ACCESS_FLAG(F_ZF);
147 cond = ACCESS_FLAG(F_CF) || ACCESS_FLAG(F_ZF);
151 cond = !(ACCESS_FLAG(F_CF) || ACCESS_FLAG(F_ZF));
155 cond
211 int cond = 0; local
[all...]
/haiku/headers/cpp/std/
H A Dbastring.h55 #define OUTOFRANGE(cond) \
56 do { if (cond) __out_of_range (#cond); } while (0)
57 #define LENGTHERROR(cond) \
58 do { if (cond) __length_error (#cond); } while (0)
63 #define OUTOFRANGE(cond) assert (!(cond))
64 #define LENGTHERROR(cond) assert (!(cond))
[all...]
/haiku/src/kits/shared/
H A DMemoryRingIO.cpp282 Condition cond; local
283 while (!cond(*this)) {
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192e/
H A Dr92e_init.c116 while (!rtwn_check_condition(sc, bb_prog->cond)) {
137 while (!rtwn_check_condition(sc, agc_prog->cond)) {
/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/
H A Dnvme_spec.h77 #define nvme_static_assert(cond, msg) static_assert(cond, msg)
79 #define nvme_static_assert(cond, msg) _Static_assert(cond, msg)
82 #define nvme_static_assert(cond, msg)
/haiku/src/add-ons/kernel/drivers/network/ether/broadcom570x/dev/bce/
H A Dif_bcereg.h396 #define DBRUNIF(cond, args...) \
397 if (cond) { \
402 #define DBENTER(cond) \
403 DBPRINT(sc, (cond), "%s(enter)\n", __FUNCTION__)
406 #define DBEXIT(cond) \
407 DBPRINT(sc, (cond), "%s(exit)\n", __FUNCTION__)
410 #define DBPUSH(cond) \
412 bce_debug |= cond;
477 #define DBRUNIF(cond, args...)
478 #define DBENTER(cond)
[all...]

Completed in 378 milliseconds