/netbsd/sys/kern/ |
H A D | kern_condvar.c | 61 #define CV_SLEEPQ(cv) ((sleepq_t *)(cv)->cv_opaque) argument 62 #define CV_WMESG(cv) ((const char *)(cv)->cv_opaque[1]) argument 63 #define CV_SET_WMESG(cv, v) (cv)->cv_opaque[1] = __UNCONST(v) argument 65 #define CV_DEBUG_P(cv) (CV_WMESG(cv) != nodebug) argument 132 sq = CV_SLEEPQ(cv); in cv_enter() 134 sleepq_enqueue(sq, cv, CV_WMESG(cv), &cv_syncobj, catch_p); in cv_enter() 460 cv_wakeup_one(cv); in cv_signal() 488 sq = CV_SLEEPQ(cv); in cv_wakeup_one() 515 cv_wakeup_all(cv); in cv_broadcast() 533 sq = CV_SLEEPQ(cv); in cv_wakeup_all() [all …]
|
/netbsd/sys/rump/librump/rumpkern/ |
H A D | locks_up.c | 325 #define RUMPCV(cv) (*(struct rumpuser_cv **)(cv)) argument 338 cv_destroy(kcondvar_t *cv) in cv_destroy() argument 341 rumpuser_cv_destroy(RUMPCV(cv)); in cv_destroy() 369 cv_wait(cv, mtx); in cv_wait_sig() 387 cv_wait(cv, mtx); in cv_timedwait() 409 cv_signal(kcondvar_t *cv) in cv_signal() argument 413 rumpuser_cv_signal(RUMPCV(cv)); in cv_signal() 417 cv_broadcast(kcondvar_t *cv) in cv_broadcast() argument 425 cv_has_waiters(kcondvar_t *cv) in cv_has_waiters() argument 436 cv_is_valid(kcondvar_t *cv) in cv_is_valid() argument [all …]
|
H A D | locks.c | 362 #define RUMPCV(cv) (*(struct rumpuser_cv **)(cv)) argument 374 cv_destroy(kcondvar_t *cv) in cv_destroy() argument 398 l->l_sched.info = cv; in docvwait() 444 (void) docvwait(cv, mtx, NULL); in cv_wait() 464 rv = cv_wait_sig(cv, mtx); in cv_timedwait() 468 rv = docvwait(cv, mtx, &ts); in cv_timedwait() 476 cv_signal(kcondvar_t *cv) in cv_signal() argument 483 cv_broadcast(kcondvar_t *cv) in cv_broadcast() argument 490 cv_has_waiters(kcondvar_t *cv) in cv_has_waiters() argument 500 cv_is_valid(kcondvar_t *cv) in cv_is_valid() argument [all …]
|
/netbsd/external/gpl2/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()
|
/netbsd/external/bsd/unbound/dist/services/ |
H A D | view.c | 146 struct config_view* cv; in views_apply_cfg() local 155 for(cv = cfg->views; cv; cv = cv->next) { in views_apply_cfg() 159 v->isfirst = cv->isfirst; in views_apply_cfg() 160 if(cv->local_zones || cv->local_data) { in views_apply_cfg() 166 lz_cfg.local_zones = cv->local_zones; in views_apply_cfg() 167 lz_cfg.local_data = cv->local_data; in views_apply_cfg() 169 cv->local_zones_nodefault; in views_apply_cfg() 179 for(nd = cv->local_zones_nodefault; nd; in views_apply_cfg() 213 cv->local_zones = NULL; in views_apply_cfg() 214 cv->local_data = NULL; in views_apply_cfg() [all …]
|
/netbsd/external/gpl2/lvm2/dist/lib/filters/ |
H A D | filter_netbsd.c | 150 struct config_value *cv; in _scan_dev() local 198 for (cv = cn->v; cv; cv = cv->next) { in _scan_dev() 199 if (cv->type != CFG_STRING) { in _scan_dev() 206 name = cv->v.str; in _scan_dev() 207 cv = cv->next; in _scan_dev() 208 if (!cv || cv->type != CFG_INT) { in _scan_dev() 215 if (!cv->v.i) { in _scan_dev() 225 cv->v.i; in _scan_dev() 227 cv->v.i; in _scan_dev()
|
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()
|
/netbsd/lib/librumpuser/ |
H A D | rumpuser_pth.c | 502 rumpuser_cv_init(struct rumpuser_cv **cv) in rumpuser_cv_init() argument 507 (*cv)->nwaiters = 0; in rumpuser_cv_init() 515 free(cv); in rumpuser_cv_destroy() 561 cv->nwaiters++; in rumpuser_cv_wait() 565 cv->nwaiters--; in rumpuser_cv_wait() 572 cv->nwaiters++; in rumpuser_cv_wait_nowrap() 576 cv->nwaiters--; in rumpuser_cv_wait_nowrap() 595 cv->nwaiters++; in rumpuser_cv_timedwait() 607 cv->nwaiters--; in rumpuser_cv_timedwait() 613 rumpuser_cv_signal(struct rumpuser_cv *cv) in rumpuser_cv_signal() argument [all …]
|
H A D | rumpfiber.c | 914 cv = malloc(sizeof(*cv)); in rumpuser_cv_init() 915 memset(cv, 0, sizeof(*cv)); in rumpuser_cv_init() 917 *cvp = cv; in rumpuser_cv_init() 925 free(cv); in rumpuser_cv_destroy() 956 cv->nwaiters++; in rumpuser_cv_wait() 958 wait(&cv->waiters, 0); in rumpuser_cv_wait() 960 cv->nwaiters--; in rumpuser_cv_wait() 967 cv->nwaiters++; in rumpuser_cv_wait_nowrap() 971 cv->nwaiters--; in rumpuser_cv_wait_nowrap() 981 cv->nwaiters++; in rumpuser_cv_timedwait() [all …]
|
H A D | rumpuser_pth_dummy.c | 242 rumpuser_cv_init(struct rumpuser_cv **cv) in rumpuser_cv_init() argument 249 rumpuser_cv_destroy(struct rumpuser_cv *cv) in rumpuser_cv_destroy() argument 256 rumpuser_cv_wait(struct rumpuser_cv *cv, struct rumpuser_mtx *mtx) in rumpuser_cv_wait() argument 263 rumpuser_cv_wait_nowrap(struct rumpuser_cv *cv, struct rumpuser_mtx *mtx) in rumpuser_cv_wait_nowrap() argument 270 rumpuser_cv_timedwait(struct rumpuser_cv *cv, struct rumpuser_mtx *mtx, in rumpuser_cv_timedwait() argument 286 rumpuser_cv_signal(struct rumpuser_cv *cv) in rumpuser_cv_signal() argument 293 rumpuser_cv_broadcast(struct rumpuser_cv *cv) in rumpuser_cv_broadcast() argument 300 rumpuser_cv_has_waiters(struct rumpuser_cv *cv, int *rvp) in rumpuser_cv_has_waiters() argument
|
/netbsd/tests/usr.bin/xlint/lint1/ |
H A D | op_colon.c | 19 const volatile int *cv) in test_merge_qualifiers() argument 28 sink(cond ? p : cv); in test_merge_qualifiers() 37 sink(cond ? c : cv); in test_merge_qualifiers() 46 sink(cond ? v : cv); in test_merge_qualifiers() 49 sink(cond ? cv : p); in test_merge_qualifiers() 51 sink(cond ? cv : c); in test_merge_qualifiers() 53 sink(cond ? cv : v); in test_merge_qualifiers() 55 sink(cond ? cv : cv); in test_merge_qualifiers()
|
/netbsd/sys/crypto/aes/arch/arm/ |
H A D | aes_neon_subr.c | 86 uint8x16_t cv; in aes_neon_cbc_enc() local 90 cv = loadblock(iv); in aes_neon_cbc_enc() 92 cv ^= loadblock(in); in aes_neon_cbc_enc() 93 cv = aes_neon_enc1(enc, cv, nrounds); in aes_neon_cbc_enc() 94 storeblock(out, cv); in aes_neon_cbc_enc() 96 storeblock(iv, cv); in aes_neon_cbc_enc() 104 uint8x16_t iv0, cv, b; in aes_neon_cbc_dec() local 110 cv = loadblock(in + nbytes - 16); in aes_neon_cbc_dec() 111 storeblock(iv, cv); in aes_neon_cbc_dec() 118 cv = loadblock(in + nbytes - 16); in aes_neon_cbc_dec() [all …]
|
/netbsd/external/gpl2/lvm2/dist/lib/commands/ |
H A D | toolcontext.c | 321 struct config_value *cv; in _check_host_filters() local 332 for (cv = cn->v; cv; cv = cv->next) { in _check_host_filters() 546 struct config_value *cv; in _init_dev_cache() local 562 for (cv = cn->v; cv; cv = cv->next) { in _init_dev_cache() 571 cv->v.str); in _init_dev_cache() 579 for (cv = cn->v; cv; cv = cv->next) { in _init_dev_cache() 756 struct config_value *cv; in _init_formats() local 760 for (cv = cn->v; cv; cv = cv->next) { in _init_formats() 918 struct config_value *cv; in _init_segtypes() local 922 for (cv = cn->v; cv; cv = cv->next) { in _init_segtypes() [all …]
|
/netbsd/lib/libc/citrus/ |
H A D | citrus_iconv.h | 53 _citrus_iconv_convert(struct _citrus_iconv * __restrict cv, in _citrus_iconv_convert() argument 61 _DIAGASSERT(cv && cv->cv_shared && cv->cv_shared->ci_ops && in _citrus_iconv_convert() 62 cv->cv_shared->ci_ops->io_convert); in _citrus_iconv_convert() 65 return (*cv->cv_shared->ci_ops->io_convert)(cv, in, inbytes, out, in _citrus_iconv_convert()
|
H A D | citrus_iconv.c | 336 struct _citrus_iconv *cv; in _citrus_iconv_open() local 363 cv = malloc(sizeof(*cv)); in _citrus_iconv_open() 364 if (cv == NULL) { in _citrus_iconv_open() 369 cv->cv_shared = ci; in _citrus_iconv_open() 370 ret = (*ci->ci_ops->io_init_context)(cv); in _citrus_iconv_open() 373 free(cv); in _citrus_iconv_open() 376 *rcv = cv; in _citrus_iconv_open() 388 if (cv) { in _citrus_iconv_close() 389 (*cv->cv_shared->ci_ops->io_uninit_context)(cv); in _citrus_iconv_close() 390 release_shared(cv->cv_shared); in _citrus_iconv_close() [all …]
|
/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ |
H A D | cipher_aes_hw_s390x.inc | 72 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen); 74 *out = *in ^ adat->plat.s390x.param.kmo_kmf.cv[n]; 93 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16, 94 adat->plat.s390x.param.kmo_kmf.cv, 99 out[n] = in[n] ^ adat->plat.s390x.param.kmo_kmf.cv[n]; 104 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen); 130 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen); 133 *out = adat->plat.s390x.param.kmo_kmf.cv[n] ^ tmp; 153 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16, 154 adat->plat.s390x.param.kmo_kmf.cv, [all …]
|
/netbsd/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/ |
H A D | condition_variable.cc | 83 notifier(condition_variable& cv, unique_lock<mutex>& l) in notifier() 84 : cv(&cv), mx(l.release()) in notifier() 93 cv->notify_all(); in ~notifier() 96 condition_variable* cv; member 125 notify_all_at_thread_exit(condition_variable& cv, unique_lock<mutex> l) in notify_all_at_thread_exit() argument 127 (void) new notifier{cv, l}; in notify_all_at_thread_exit()
|
/netbsd/sys/crypto/aes/arch/x86/ |
H A D | aes_ssse3_subr.c | 83 __m128i cv; in aes_ssse3_cbc_enc() local 87 cv = loadblock(iv); in aes_ssse3_cbc_enc() 89 cv ^= loadblock(in); in aes_ssse3_cbc_enc() 90 cv = aes_ssse3_enc1(enc, cv, nrounds); in aes_ssse3_cbc_enc() 91 storeblock(out, cv); in aes_ssse3_cbc_enc() 93 storeblock(iv, cv); in aes_ssse3_cbc_enc() 101 __m128i iv0, cv, b; in aes_ssse3_cbc_dec() local 107 cv = loadblock(in + nbytes - 16); in aes_ssse3_cbc_dec() 108 storeblock(iv, cv); in aes_ssse3_cbc_dec() 114 cv = loadblock(in + nbytes - 16); in aes_ssse3_cbc_dec() [all …]
|
H A D | aes_sse2_subr.c | 133 __m128i cv; in aes_sse2_cbc_enc() local 142 cv = _mm_loadu_epi8(iv); in aes_sse2_cbc_enc() 154 cv = aes_sse2_interleave_out(q[0]); in aes_sse2_cbc_enc() 155 _mm_storeu_epi8(out, cv); in aes_sse2_cbc_enc() 159 _mm_storeu_epi8(iv, cv); in aes_sse2_cbc_enc() 173 __m128i cv, iv, w; in aes_sse2_cbc_dec() local 185 cv = _mm_loadu_epi8(in + nbytes - 16); in aes_sse2_cbc_dec() 188 _mm_storeu_epi8(ivp, cv); in aes_sse2_cbc_dec() 198 q[n - 1] = aes_sse2_interleave_in(cv); in aes_sse2_cbc_dec() 238 q[3] = aes_sse2_interleave_in(cv); in aes_sse2_cbc_dec() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/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()
|
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/clk/ |
H A D | nouveau_nvkm_subdev_clk_nv04.c | 58 int cv = device->bios->version.chip; in nv04_clk_pll_prog() local 60 if (cv == 0x30 || cv == 0x31 || cv == 0x35 || cv == 0x36 || in nv04_clk_pll_prog() 61 cv >= 0x40) { in nv04_clk_pll_prog()
|
/netbsd/sys/external/bsd/drm2/linux/ |
H A D | linux_wait_bit.c | 49 kcondvar_t cv; member 63 cv_init(&waitbittab[i].ent.cv, "waitbit"); in linux_wait_bit_init() 75 cv_destroy(&waitbittab[i].ent.cv); in linux_wait_bit_fini() 121 cv_broadcast(&wbe->cv); in clear_and_wake_up_bit() 145 cv_wait(&wbe->cv, &wbe->lock); in wait_on_bit() 147 error = cv_wait_sig(&wbe->cv, &wbe->lock); in wait_on_bit() 196 error = cv_timedwait(&wbe->cv, &wbe->lock, in wait_on_bit_timeout() 199 error = cv_timedwait_sig(&wbe->cv, &wbe->lock, in wait_on_bit_timeout()
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/asan/ |
H A D | asan_memory_profile.cc | 34 void ProcessChunk(const AsanChunkView &cv) { in ProcessChunk() argument 35 if (cv.IsAllocated()) { in ProcessChunk() 36 total_allocated_user_size_ += cv.UsedSize(); in ProcessChunk() 38 u32 id = cv.GetAllocStackId(); in ProcessChunk() 40 Insert(id, cv.UsedSize()); in ProcessChunk() 41 } else if (cv.IsQuarantined()) { in ProcessChunk() 42 total_quarantined_user_size_ += cv.UsedSize(); in ProcessChunk()
|