| /freebsd-10-stable/sys/sys/ |
| D | condvar.h | 46 struct cv { struct 52 void cv_init(struct cv *cvp, const char *desc); 53 void cv_destroy(struct cv *cvp); 55 void _cv_wait(struct cv *cvp, struct lock_object *lock); 56 void _cv_wait_unlock(struct cv *cvp, struct lock_object *lock); 57 int _cv_wait_sig(struct cv *cvp, struct lock_object *lock); 58 int _cv_timedwait_sbt(struct cv *cvp, struct lock_object *lock, 60 int _cv_timedwait_sig_sbt(struct cv *cvp, struct lock_object *lock, 63 void cv_signal(struct cv *cvp); 64 void cv_broadcastpri(struct cv *cvp, int pri);
|
| D | tty.h | 98 struct cv t_inwait; /* (t) Input wait queue. */ 99 struct cv t_outwait; /* (t) Output wait queue. */ 100 struct cv t_outserwait; /* (t) Serial output wait queue. */ 101 struct cv t_bgwait; /* (t) Background wait queue. */ 102 struct cv t_dcdwait; /* (t) Carrier Detect wait queue. */ 186 int tty_wait(struct tty *tp, struct cv *cv); 188 int tty_timedwait(struct tty *tp, struct cv *cv, int timo);
|
| /freebsd-10-stable/contrib/llvm/include/llvm/Support/ |
| D | Valgrind.h | 28 const volatile void *cv); 30 const volatile void *cv); 52 #define TsanHappensBefore(cv) \ argument 53 AnnotateHappensBefore(__FILE__, __LINE__, cv) 56 #define TsanHappensAfter(cv) \ argument 57 AnnotateHappensAfter(__FILE__, __LINE__, cv) 67 #define TsanHappensBefore(cv) argument 68 #define TsanHappensAfter(cv) argument
|
| /freebsd-10-stable/contrib/openbsm/bin/auditdistd/ |
| D | synch.h | 138 cv_init(pthread_cond_t *cv) in cv_init() argument 149 error = pthread_cond_init(cv, &attr); in cv_init() 155 cv_wait(pthread_cond_t *cv, pthread_mutex_t *lock) in cv_wait() argument 159 error = pthread_cond_wait(cv, lock); in cv_wait() 163 cv_timedwait(pthread_cond_t *cv, pthread_mutex_t *lock, int timeout) in cv_timedwait() argument 169 cv_wait(cv, lock); in cv_timedwait() 177 error = pthread_cond_timedwait(cv, lock, &ts); in cv_timedwait() 181 error = pthread_cond_timedwait_relative_np(cv, lock, &ts); in cv_timedwait() 189 cv_signal(pthread_cond_t *cv) in cv_signal() argument 193 error = pthread_cond_signal(cv); in cv_signal() [all …]
|
| /freebsd-10-stable/sbin/hastd/ |
| D | synch.h | 138 cv_init(pthread_cond_t *cv) in cv_init() argument 147 error = pthread_cond_init(cv, &attr); in cv_init() 153 cv_wait(pthread_cond_t *cv, pthread_mutex_t *lock) in cv_wait() argument 157 error = pthread_cond_wait(cv, lock); in cv_wait() 161 cv_timedwait(pthread_cond_t *cv, pthread_mutex_t *lock, int timeout) in cv_timedwait() argument 167 cv_wait(cv, lock); in cv_timedwait() 174 error = pthread_cond_timedwait(cv, lock, &ts); in cv_timedwait() 179 cv_signal(pthread_cond_t *cv) in cv_signal() argument 183 error = pthread_cond_signal(cv); in cv_signal() 187 cv_broadcast(pthread_cond_t *cv) in cv_broadcast() argument [all …]
|
| /freebsd-10-stable/sys/cddl/compat/opensolaris/sys/ |
| D | kcondvar.h | 42 typedef struct cv kcondvar_t; 49 #define zfs_cv_init(cv, name, type, arg) do { \ argument 52 for (_name = #cv; *_name != '\0'; _name++) { \ 57 _name = #cv; \ 58 cv_init((cv), _name); \ 60 #define cv_init(cv, name, type, arg) zfs_cv_init(cv, name, type, arg) argument
|
| /freebsd-10-stable/lib/libc/iconv/ |
| D | citrus_iconv.c | 278 struct _citrus_iconv *cv = NULL; in _citrus_iconv_open() local 309 cv = malloc(sizeof(*cv)); in _citrus_iconv_open() 310 if (cv == NULL) { in _citrus_iconv_open() 315 *rcv = cv; in _citrus_iconv_open() 321 free(cv); in _citrus_iconv_open() 332 _citrus_iconv_close(struct _citrus_iconv *cv) in _citrus_iconv_close() argument 335 if (cv) { in _citrus_iconv_close() 336 (*cv->cv_shared->ci_ops->io_uninit_context)(cv); in _citrus_iconv_close() 337 release_shared(cv->cv_shared); in _citrus_iconv_close() 338 free(cv); in _citrus_iconv_close()
|
| D | bsd_iconv.c | 259 struct _citrus_iconv *cv; in __bsd_iconvctl() local 266 cv = (struct _citrus_iconv *)(void *)cd; in __bsd_iconvctl() 277 convname = cv->cv_shared->ci_convname; in __bsd_iconvctl() 289 *i = cv->cv_shared->ci_discard_ilseq ? 1 : 0; in __bsd_iconvctl() 292 cv->cv_shared->ci_discard_ilseq = *i; in __bsd_iconvctl() 295 cv->cv_shared->ci_hooks = hooks; in __bsd_iconvctl() 301 *i = cv->cv_shared->ci_ilseq_invalid ? 1 : 0; in __bsd_iconvctl() 304 cv->cv_shared->ci_ilseq_invalid = *i; in __bsd_iconvctl()
|
| D | citrus_iconv.h | 54 _citrus_iconv_convert(struct _citrus_iconv * __restrict cv, in _citrus_iconv_convert() argument 60 return (*cv->cv_shared->ci_ops->io_convert)(cv, in, inbytes, out, in _citrus_iconv_convert()
|
| /freebsd-10-stable/usr.sbin/pkg/ |
| D | config.c | 216 struct config_value *cv; in config_parse() local 282 cv = malloc(sizeof(struct config_value)); in config_parse() 283 cv->value = in config_parse() 285 STAILQ_INSERT_TAIL(temp_config[i].list, cv, in config_parse() 431 struct config_value *cv; in config_init() local 446 cv = in config_init() 448 cv->value = in config_init() 450 STAILQ_INSERT_TAIL(c[i].list, cv, in config_init() 474 cv = malloc(sizeof(struct config_value)); in config_init() 475 cv->value = strdup("/etc/pkg"); in config_init() [all …]
|
| /freebsd-10-stable/crypto/openssl/crypto/conf/ |
| D | cnf_save.c | 62 static void print_conf(CONF_VALUE *cv); 79 static void print_conf(CONF_VALUE *cv) in print_conf() argument 90 if (cv->name != NULL) in print_conf() 93 printf("[ %s ]\n", cv->section); in print_conf() 94 s = (STACK *) cv->value; in print_conf()
|
| /freebsd-10-stable/lib/libthr/thread/ |
| D | thr_umtx.c | 226 _thr_ucond_init(struct ucond *cv) in _thr_ucond_init() argument 228 bzero(cv, sizeof(struct ucond)); in _thr_ucond_init() 232 _thr_ucond_wait(struct ucond *cv, struct umutex *m, in _thr_ucond_wait() argument 241 return _umtx_op_err(cv, UMTX_OP_CV_WAIT, flags, in _thr_ucond_wait() 246 _thr_ucond_signal(struct ucond *cv) in _thr_ucond_signal() argument 248 if (!cv->c_has_waiters) in _thr_ucond_signal() 250 return _umtx_op_err(cv, UMTX_OP_CV_SIGNAL, 0, NULL, NULL); in _thr_ucond_signal() 254 _thr_ucond_broadcast(struct ucond *cv) in _thr_ucond_broadcast() argument 256 if (!cv->c_has_waiters) in _thr_ucond_broadcast() 258 return _umtx_op_err(cv, UMTX_OP_CV_BROADCAST, 0, NULL, NULL); in _thr_ucond_broadcast()
|
| /freebsd-10-stable/contrib/binutils/bfd/ |
| D | mep-relocs.pl | 103 my ($bits, $left, $right, $ci, $c, $cv); 112 $cv = ord($c) - ord('0'); 113 $cv -= ord('a') - ord('9') - 1 if $cv > 9; 114 $right = $cv unless $right < $cv; 115 $bits = $cv+1 unless $bits > $cv+1;
|
| /freebsd-10-stable/sys/boot/usb/ |
| D | bsd_kernel.c | 119 cv_init(struct cv *cv, const char *desc) in cv_init() argument 121 cv->sleeping = 0; in cv_init() 125 cv_destroy(struct cv *cv) in cv_destroy() argument 131 cv_wait(struct cv *cv, struct mtx *mtx) in cv_wait() argument 133 cv_timedwait(cv, mtx, -1); in cv_wait() 137 cv_timedwait(struct cv *cv, struct mtx *mtx, int timo) in cv_timedwait() argument 142 if (cv->sleeping) in cv_timedwait() 145 cv->sleeping = 1; in cv_timedwait() 147 while (cv->sleeping) { in cv_timedwait() 160 if (cv->sleeping) { in cv_timedwait() [all …]
|
| /freebsd-10-stable/contrib/gdb/gdb/ |
| D | varobj.c | 563 struct vlist *cv; in varobj_get_handle() local 573 cv = *(varobj_table + index); in varobj_get_handle() 574 while ((cv != NULL) && (strcmp (cv->var->obj_name, objname) != 0)) in varobj_get_handle() 575 cv = cv->next; in varobj_get_handle() 577 if (cv == NULL) in varobj_get_handle() 580 return cv->var; in varobj_get_handle() 830 struct varobj **cv; in varobj_list() local 837 cv = *varlist; in varobj_list() 841 *cv = croot->rootvar; in varobj_list() 843 cv++; in varobj_list() [all …]
|
| /freebsd-10-stable/sys/dev/cxgb/ulp/iw_cxgb/ |
| D | iw_cxgb_cm.h | 154 struct cv waitq; 211 iwch_wait(struct cv *cv, struct mtx *lock, int *rpl_done) in iwch_wait() argument 216 cv_wait_unlock(cv, lock); in iwch_wait() 222 iwch_wakeup(struct cv *cv, struct mtx *lock, int *rpl_done) in iwch_wakeup() argument 227 cv_broadcast(cv); in iwch_wakeup()
|
| /freebsd-10-stable/contrib/netbsd-tests/rump/kernspace/ |
| D | thread.c | 73 static kcondvar_t cv; variable 82 cv_signal(&cv); in thethread() 95 cv_init(&cv, "jooei"); in rumptest_thread() 103 cv_wait(&cv, &mtx); in rumptest_thread()
|
| /freebsd-10-stable/sys/kern/ |
| D | kern_condvar.c | 75 cv_init(struct cv *cvp, const char *desc) in cv_init() 87 cv_destroy(struct cv *cvp) in cv_destroy() 107 _cv_wait(struct cv *cvp, struct lock_object *lock) in _cv_wait() 169 _cv_wait_unlock(struct cv *cvp, struct lock_object *lock) in _cv_wait_unlock() 224 _cv_wait_sig(struct cv *cvp, struct lock_object *lock) in _cv_wait_sig() 291 _cv_timedwait_sbt(struct cv *cvp, struct lock_object *lock, sbintime_t sbt, in _cv_timedwait_sbt() 360 _cv_timedwait_sig_sbt(struct cv *cvp, struct lock_object *lock, in _cv_timedwait_sig_sbt() 430 cv_signal(struct cv *cvp) in cv_signal() 457 cv_broadcastpri(struct cv *cvp, int pri) in cv_broadcastpri()
|
| /freebsd-10-stable/lib/libiconv_modules/iconv_std/ |
| D | citrus_iconv_std.c | 420 _citrus_iconv_std_iconv_init_context(struct _citrus_iconv *cv) in _citrus_iconv_std_iconv_init_context() argument 422 const struct _citrus_iconv_std_shared *is = cv->cv_shared->ci_closure; in _citrus_iconv_std_iconv_init_context() 450 cv->cv_closure = (void *)sc; in _citrus_iconv_std_iconv_init_context() 456 _citrus_iconv_std_iconv_uninit_context(struct _citrus_iconv *cv) in _citrus_iconv_std_iconv_uninit_context() argument 459 free(cv->cv_closure); in _citrus_iconv_std_iconv_uninit_context() 463 _citrus_iconv_std_iconv_convert(struct _citrus_iconv * __restrict cv, in _citrus_iconv_std_iconv_convert() argument 468 const struct _citrus_iconv_std_shared *is = cv->cv_shared->ci_closure; in _citrus_iconv_std_iconv_convert() 469 struct _citrus_iconv_std_context *sc = cv->cv_closure; in _citrus_iconv_std_iconv_convert() 522 *inbytes, &szrin, cv->cv_shared->ci_hooks); in _citrus_iconv_std_iconv_convert() 549 !cv->cv_shared->ci_discard_ilseq) && in _citrus_iconv_std_iconv_convert() [all …]
|
| /freebsd-10-stable/sys/cam/ctl/ |
| D | ctl_frontend_iscsi.h | 83 struct cv cs_maintenance_cv; 101 struct cv cs_login_cv; 118 struct cv sessions_cv; 121 struct cv accept_cv;
|
| /freebsd-10-stable/tools/regression/pthread/unwind/ |
| D | cond_wait_cancel.cpp | 12 pthread_cond_t cv; variable 20 pthread_cond_wait(&cv, &mtx); in thr() 32 pthread_cond_init(&cv, NULL); in main()
|
| D | cond_wait_cancel2.cpp | 17 pthread_cond_t cv; variable 24 pthread_cond_wait(&cv, &mtx); in f() 49 pthread_cond_init(&cv, NULL); in main()
|
| /freebsd-10-stable/sys/dev/sound/pcm/ |
| D | sound.h | 415 struct cv cv; member 442 cv_wait(&(x)->cv, (x)->lock); \ 462 if ((x)->cv.cv_waiters != 0) { \ 463 if ((x)->cv.cv_waiters > 1 && snd_verbose > 3) \ 468 (x)->cv.cv_waiters); \ 469 cv_broadcast(&(x)->cv); \ 545 cv_wait(&(x)->cv, (x)->lock); \ 562 if ((x)->cv.cv_waiters != 0) \ 563 cv_broadcast(&(x)->cv); \
|
| /freebsd-10-stable/tools/regression/pthread/cv_cancel1/ |
| D | cv_cancel1.c | 36 pthread_cond_t cv = PTHREAD_COND_INITIALIZER; variable 46 pthread_cond_wait(&cv, &m); in thr_routine() 70 pthread_cond_signal(&cv); in main()
|
| /freebsd-10-stable/contrib/libc++/src/ |
| D | thread.cpp | 173 void notify_all_at_thread_exit(condition_variable* cv, mutex* m); 194 __thread_struct_imp::notify_all_at_thread_exit(condition_variable* cv, mutex* m) in notify_all_at_thread_exit() argument 196 notify_.push_back(pair<condition_variable*, mutex*>(cv, m)); in notify_all_at_thread_exit() 219 __thread_struct::notify_all_at_thread_exit(condition_variable* cv, mutex* m) in notify_all_at_thread_exit() argument 221 __p_->notify_all_at_thread_exit(cv, m); in notify_all_at_thread_exit()
|