/dragonfly/sys/sys/ |
H A D | condvar.h | 9 struct cv { struct 16 void cv_destroy(struct cv *); 24 #define cv_wait(cv, lock) \ argument 25 _cv_timedwait((cv), (lock), 0, 0) 26 #define cv_wait_sig(cv, lock) \ argument 33 #define cv_mtx_wait(cv, mtx) \ argument 42 #define cv_signal(cv) \ argument 43 _cv_signal((cv), 0) 44 #define cv_broadcast(cv) \ argument 45 _cv_signal((cv), 1) [all …]
|
/dragonfly/lib/libthread_xu/thread/ |
H A D | thr_cond.c | 156 pthread_cond_t cv; in _pthread_cond_destroy() local 176 cv = *cond; in _pthread_cond_destroy() 188 __free(cv); in _pthread_cond_destroy() 208 pthread_cond_t cv; in cond_cancel_handler() local 210 cv = *info->cond; in cond_cancel_handler() 237 pthread_cond_t cv; in cond_wait_common() local 253 cv = *cond; in cond_wait_common() 287 cv->c_clockid); in cond_wait_common() 292 cv->c_clockid); in cond_wait_common() 365 pthread_cond_t cv; in cond_signal_common() local [all …]
|
/dragonfly/contrib/lvm2/dist/lib/format_text/ |
H A D | import_vsn1.c | 68 cv = cn->v; in _check_version() 69 if (!cv || cv->type != CFG_STRING || strcmp(cv->v.str, CONTENTS_VALUE)) { in _check_version() 82 cv = cn->v; in _check_version() 83 if (!cv || cv->type != CFG_INT || cv->v.i != FORMAT_VERSION_VALUE) { in _check_version() 116 cv = cn->v; in _read_id() 117 if (!cv || !cv->v.str) { in _read_id() 325 if (!cv || !cv->v.str) { in _read_segment() 390 for (cv = cn->v, s = 0; cv && s < seg->area_count; s++, cv = cv->next) { in text_import_areas() 424 cv = cv->next; in text_import_areas() 520 if (!cv || !cv->v.str) { in _read_lvnames() [all …]
|
H A D | tags.c | 49 int read_tags(struct dm_pool *mem, struct dm_list *tags, struct config_value *cv) in read_tags() argument 51 if (cv->type == CFG_EMPTY_ARRAY) in read_tags() 54 while (cv) { in read_tags() 55 if (cv->type != CFG_STRING) { in read_tags() 60 if (!str_list_add(mem, tags, dm_pool_strdup(mem, cv->v.str))) in read_tags() 63 cv = cv->next; in read_tags()
|
H A D | flags.c | 140 int read_flags(uint32_t *status, int type, struct config_value *cv) in read_flags() argument 149 if (cv->type == CFG_EMPTY_ARRAY) in read_flags() 152 while (cv) { in read_flags() 153 if (cv->type != CFG_STRING) { in read_flags() 159 if (!strcmp(flags[f].description, cv->v.str)) { in read_flags() 164 if (type == VG_FLAGS && !strcmp(cv->v.str, "PARTIAL")) { in read_flags() 174 log_error("Unknown status flag '%s'.", cv->v.str); in read_flags() 178 cv = cv->next; in read_flags()
|
/dragonfly/contrib/lvm2/dist/lib/filters/ |
H A D | filter.c | 182 struct config_value *cv; in _scan_proc_dev() local 264 for (cv = cn->v; cv; cv = cv->next) { in _scan_proc_dev() 265 if (cv->type != CFG_STRING) { in _scan_proc_dev() 272 dev_len = strlen(cv->v.str); in _scan_proc_dev() 273 name = cv->v.str; in _scan_proc_dev() 274 cv = cv->next; in _scan_proc_dev() 275 if (!cv || cv->type != CFG_INT) { in _scan_proc_dev() 283 if (!cv->v.i) { in _scan_proc_dev() 294 _max_partitions_by_major[line_maj] = cv->v.i; in _scan_proc_dev()
|
H A D | filter_netbsd.c | 149 struct config_value *cv; in _scan_dev() local 197 for (cv = cn->v; cv; cv = cv->next) { in _scan_dev() 198 if (cv->type != CFG_STRING) { in _scan_dev() 205 name = cv->v.str; in _scan_dev() 206 cv = cv->next; in _scan_dev() 207 if (!cv || cv->type != CFG_INT) { in _scan_dev() 214 if (!cv->v.i) { in _scan_dev()
|
H A D | filter-persistent.c | 71 struct config_value *cv; in _read_array() local 83 for (cv = cn->v; cv; cv = cv->next) { in _read_array() 84 if (cv->type != CFG_STRING) { in _read_array() 90 if (!dm_hash_insert(pf->devices, cv->v.str, data)) in _read_array() 92 cv->v.str); in _read_array() 94 dev_cache_get(cv->v.str, NULL); in _read_array()
|
/dragonfly/contrib/lvm2/dist/lib/commands/ |
H A D | toolcontext.c | 322 struct config_value *cv; in _check_host_filters() local 333 for (cv = cn->v; cv; cv = cv->next) { in _check_host_filters() 547 struct config_value *cv; in _init_dev_cache() local 563 for (cv = cn->v; cv; cv = cv->next) { in _init_dev_cache() 572 cv->v.str); in _init_dev_cache() 580 for (cv = cn->v; cv; cv = cv->next) { in _init_dev_cache() 757 struct config_value *cv; in _init_formats() local 761 for (cv = cn->v; cv; cv = cv->next) { in _init_formats() 919 struct config_value *cv; in _init_segtypes() local 923 for (cv = cn->v; cv; cv = cv->next) { in _init_segtypes() [all …]
|
/dragonfly/lib/libc/citrus/ |
H A D | citrus_iconv.c | 280 struct _citrus_iconv *cv = NULL; in _citrus_iconv_open() local 319 cv = malloc(sizeof(*cv)); in _citrus_iconv_open() 320 if (cv == NULL) { in _citrus_iconv_open() 325 *rcv = cv; in _citrus_iconv_open() 331 free(cv); in _citrus_iconv_open() 342 _citrus_iconv_close(struct _citrus_iconv *cv) in _citrus_iconv_close() argument 345 if (cv) { in _citrus_iconv_close() 346 (*cv->cv_shared->ci_ops->io_uninit_context)(cv); in _citrus_iconv_close() 347 release_shared(cv->cv_shared); in _citrus_iconv_close() 348 free(cv); in _citrus_iconv_close()
|
H A 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()
|
/dragonfly/contrib/gcc-8.0/libstdc++-v3/src/c++11/ |
H A D | condition_variable.cc | 108 notifier(condition_variable& cv, unique_lock<mutex>& l) in notifier() 109 : cv(&cv), mx(l.release()) in notifier() 118 cv->notify_all(); in ~notifier() 121 condition_variable* cv; member 150 notify_all_at_thread_exit(condition_variable& cv, unique_lock<mutex> l) in notify_all_at_thread_exit() argument 152 (void) new notifier{cv, l}; in notify_all_at_thread_exit()
|
/dragonfly/sys/kern/ |
H A D | kern_condvar.c | 7 cv_init(struct cv *c, const char *desc) in cv_init() 15 cv_destroy(struct cv *c) in cv_destroy() 21 _cv_timedwait(struct cv *c, struct lock *lk, int timo, int wakesig) in _cv_timedwait() 50 _cv_mtx_timedwait(struct cv *c, struct mtx *mtx, int timo, int wakesig) in _cv_mtx_timedwait() 76 _cv_signal(struct cv *c, int broadcast) in _cv_signal() 93 cv_has_waiters(const struct cv *c) in cv_has_waiters()
|
/dragonfly/lib/libc/iconv/ |
H A D | iconv.c | 262 struct _citrus_iconv *cv; in iconvctl() local 268 cv = (struct _citrus_iconv *)(void *)cd; in iconvctl() 279 convname = cv->cv_shared->ci_convname; in iconvctl() 294 *i = cv->cv_shared->ci_discard_ilseq ? 1 : 0; in iconvctl() 297 cv->cv_shared->ci_discard_ilseq = *i; in iconvctl() 300 cv->cv_shared->ci_hooks = hooks; in iconvctl() 306 *i = cv->cv_shared->ci_ilseq_invalid ? 1 : 0; in iconvctl() 309 cv->cv_shared->ci_ilseq_invalid = *i; in iconvctl()
|
/dragonfly/lib/i18n_module/iconv_std/ |
H A D | citrus_iconv_std.c | 420 _citrus_iconv_std_iconv_init_context(struct _citrus_iconv *cv) in _citrus_iconv_std_iconv_init_context() argument 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 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() 552 if (cv->cv_shared->ci_ilseq_invalid != 0) { in _citrus_iconv_std_iconv_convert() 559 !cv->cv_shared->ci_discard_ilseq) && in _citrus_iconv_std_iconv_convert() 563 &szrout, cv->cv_shared->ci_hooks); in _citrus_iconv_std_iconv_convert() [all …]
|
/dragonfly/sys/netproto/802_11/wlan/ |
H A D | ieee80211_dragonfly.c | 200 wlan_cv_init(struct cv *cv, const char *desc) 202 cv->cv_desc = desc; 207 wlan_cv_timedwait(struct cv *cv, int ticks) 211 ++cv->cv_waiters; 212 error = wlan_serialize_sleep(cv, 0, cv->cv_desc, ticks); 217 wlan_cv_wait(struct cv *cv) 219 ++cv->cv_waiters; 220 wlan_serialize_sleep(cv, 0, cv->cv_desc, 0); 224 wlan_cv_signal(struct cv *cv, int broadcast) 229 wakeup(cv); [all …]
|
/dragonfly/sys/dev/sound/pcm/ |
H A D | sound.h | 424 struct cv cv; member 451 cv_wait(&(x)->cv, (x)->lock); \ 471 if ((x)->cv.cv_waiters != 0) { \ 472 if ((x)->cv.cv_waiters > 1 && snd_verbose > 3) \ 477 (x)->cv.cv_waiters); \ 478 cv_broadcast(&(x)->cv); \ 554 cv_wait(&(x)->cv, (x)->lock); \ 571 if ((x)->cv.cv_waiters != 0) \ 572 cv_broadcast(&(x)->cv); \
|
/dragonfly/contrib/tcsh-6/ |
H A D | ed.screen.c | 518 char *cap, *scap, *cv; in EchoTC() local 553 cv = strsave(short2str(*v)); in EchoTC() 554 cleanup_push(cv, xfree); in EchoTC() 555 if (strcmp(cv, "tabs") == 0) { in EchoTC() 565 else if (strcmp(cv, "xn") == 0) { in EchoTC() 586 else if (strcmp(cv, "rows") == 0 || strcmp(cv, "lines") == 0 || in EchoTC() 587 strcmp(cv, "li") == 0) { in EchoTC() 591 else if (strcmp(cv, "cols") == 0 || strcmp(cv, "co") == 0) { in EchoTC() 601 if (strcmp(t->name, cv) == 0) { in EchoTC() 606 scap = tgetstr(cv, &area); in EchoTC() [all …]
|
/dragonfly/lib/i18n_module/iconv_none/ |
H A D | citrus_iconv_none.c | 83 _citrus_iconv_none_iconv_init_context(struct _citrus_iconv *cv) in _citrus_iconv_none_iconv_init_context() argument 86 cv->cv_closure = NULL; in _citrus_iconv_none_iconv_init_context() 92 _citrus_iconv_none_iconv_uninit_context(struct _citrus_iconv *cv __unused) in _citrus_iconv_none_iconv_uninit_context()
|
/dragonfly/sbin/hammer2/ |
H A D | cmd_info.c | 390 uint32_t cv; in h2pfs_check() local 438 cv = hammer2_icrc32(&media, bytes); in h2pfs_check() 439 if (bref->check.iscsi32.value != cv) { in h2pfs_check() 443 cv); in h2pfs_check() 458 cv = hammer2_icrc32(&media, bytes); in h2pfs_check() 459 if (bref->check.freemap.icrc32 != cv) { in h2pfs_check() 463 cv); in h2pfs_check()
|
/dragonfly/sbin/fsck_hammer2/ |
H A D | reconstruct.c | 409 uint32_t cv; in modify_check() local 457 cv = hammer2_icrc32(media, media_bytes); in modify_check() 458 if (bscan->check.iscsi32.value != cv) { in modify_check() 460 bscan->check.iscsi32.value = cv; in modify_check() 490 cv = hammer2_icrc32(media, media_bytes); in modify_check() 491 if (bscan->check.freemap.icrc32 != cv) { in modify_check() 493 bscan->check.freemap.icrc32 = cv; in modify_check()
|
/dragonfly/usr.sbin/pciconf/ |
H A D | pciconf.c | 641 struct pci_vendor_info *cv; in load_vendors() local 655 cv = NULL; in load_vendors() 682 if ((cv = malloc(sizeof(struct pci_vendor_info))) == NULL) { in load_vendors() 687 if ((cv->desc = strdup(str)) == NULL) { in load_vendors() 688 free(cv); in load_vendors() 693 cv->id = id; in load_vendors() 694 TAILQ_INIT(&cv->devs); in load_vendors() 695 TAILQ_INSERT_TAIL(&pci_vendors, cv, link); in load_vendors() 703 if (cv == NULL) { in load_vendors() 719 TAILQ_INSERT_TAIL(&cv->devs, cd, link); in load_vendors()
|
/dragonfly/contrib/file/src/ |
H A D | readcdf.c | 74 static const struct cv { struct 96 cdf_clsid_to_mime(const uint64_t clsid[2], const struct cv *cv) in cdf_clsid_to_mime() argument 99 for (i = 0; cv[i].mime != NULL; i++) { in cdf_clsid_to_mime() 100 if (clsid[0] == cv[i].clsid[0] && clsid[1] == cv[i].clsid[1]) in cdf_clsid_to_mime() 101 return cv[i].mime; in cdf_clsid_to_mime()
|
/dragonfly/sys/bus/u4b/ |
H A D | usb_process.h | 52 struct cv up_cv; 53 struct cv up_drain;
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | varobj.c | 793 struct vlist *cv; in varobj_get_handle() local 804 while ((cv != NULL) && (strcmp (cv->var->obj_name, objname) != 0)) in varobj_get_handle() 805 cv = cv->next; in varobj_get_handle() 807 if (cv == NULL) in varobj_get_handle() 810 return cv->var; in varobj_get_handle() 2294 cv = cv->next; in install_variable() 2296 if (cv != NULL) in install_variable() 2341 prev = cv; in uninstall_variable() 2342 cv = cv->next; in uninstall_variable() 2348 if (cv == NULL) in uninstall_variable() [all …]
|