| /netbsd-src/sys/kern/ |
| H A D | kern_condvar.c | 64 #define CV_SLEEPQ(cv) ((sleepq_t *)(cv)->cv_opaque) argument 65 #define CV_WMESG(cv) ((const char *)(cv)->cv_opaque[1]) argument 66 #define CV_SET_WMESG(cv, v) (cv)->cv_opaque[1] = __UNCONST(v) argument 68 #define CV_DEBUG_P(cv) (CV_WMESG(cv) != nodebug) argument 93 cv_init(kcondvar_t *cv, const char *wmesg) in cv_init() argument 97 CV_SET_WMESG(cv, wmesg); in cv_init() 98 sleepq_init(CV_SLEEPQ(cv)); in cv_init() 107 cv_destroy(kcondvar_t *cv) in cv_destroy() argument 110 sleepq_destroy(CV_SLEEPQ(cv)); in cv_destroy() 112 KASSERT(cv_is_valid(cv)); in cv_destroy() [all …]
|
| /netbsd-src/sys/rump/librump/rumpkern/ |
| H A D | locks_up.c | 325 #define RUMPCV(cv) (*(struct rumpuser_cv **)(cv)) argument 328 cv_init(kcondvar_t *cv, const char *msg) in cv_init() argument 334 rumpuser_cv_init((struct rumpuser_cv **)cv); in cv_init() 338 cv_destroy(kcondvar_t *cv) in cv_destroy() argument 341 rumpuser_cv_destroy(RUMPCV(cv)); in cv_destroy() 345 cv_wait(kcondvar_t *cv, kmutex_t *mtx) in cv_wait() argument 361 rump_schedlock_cv_wait(RUMPCV(cv)); in cv_wait() 366 cv_wait_sig(kcondvar_t *cv, kmutex_t *mtx) in cv_wait_sig() argument 369 cv_wait(cv, mtx); in cv_wait_sig() 374 cv_timedwait(kcondvar_t *cv, kmutex_t *mtx, int ticks) in cv_timedwait() argument [all …]
|
| H A D | locks.c | 362 #define RUMPCV(cv) (*(struct rumpuser_cv **)(cv)) argument 365 cv_init(kcondvar_t *cv, const char *msg) in cv_init() argument 370 rumpuser_cv_init((struct rumpuser_cv **)cv); in cv_init() 374 cv_destroy(kcondvar_t *cv) in cv_destroy() argument 377 rumpuser_cv_destroy(RUMPCV(cv)); in cv_destroy() 381 docvwait(kcondvar_t *cv, kmutex_t *mtx, struct timespec *ts) in docvwait() argument 398 l->l_sched.info = cv; in docvwait() 401 if (rumpuser_cv_timedwait(RUMPCV(cv), RUMPMTX(mtx), in docvwait() 405 rumpuser_cv_wait(RUMPCV(cv), RUMPMTX(mtx)); in docvwait() 439 cv_wait(kcondvar_t *cv, kmutex_t *mtx) in cv_wait() argument [all …]
|
| /netbsd-src/external/gpl2/lvm2/dist/lib/format_text/ |
| H A D | import_vsn1.c | 58 struct config_value *cv; in _check_version() local 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() 109 struct config_value *cv; in _read_id() local 116 cv = cn->v; in _read_id() 117 if (!cv || !cv->v.str) { in _read_id() 122 if (!id_read_format(id, cv->v.str)) { in _read_id() 299 struct config_value *cv; in _read_segment() local [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-src/external/bsd/unbound/dist/services/ |
| H A D | view.c | 147 struct config_view* cv; in views_apply_cfg() local 156 for(cv = cfg->views; cv; cv = cv->next) { in views_apply_cfg() 158 if(!(v = views_enter_view_name(vs, cv->name))) in views_apply_cfg() 160 v->isfirst = cv->isfirst; in views_apply_cfg() 161 if(cv->local_zones || cv->local_data) { in views_apply_cfg() 167 lz_cfg.local_zones = cv->local_zones; in views_apply_cfg() 168 lz_cfg.local_data = cv->local_data; in views_apply_cfg() 170 cv->local_zones_nodefault; in views_apply_cfg() 180 for(nd = cv->local_zones_nodefault; nd; in views_apply_cfg() 214 cv->local_zones = NULL; in views_apply_cfg() [all …]
|
| /netbsd-src/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-src/lib/librumpuser/ |
| H A D | rumpuser_pth.c | 502 rumpuser_cv_init(struct rumpuser_cv **cv) in rumpuser_cv_init() argument 505 NOFAIL(*cv = malloc(sizeof(struct rumpuser_cv))); in rumpuser_cv_init() 506 NOFAIL_ERRNO(pthread_cond_init(&((*cv)->pthcv), NULL)); in rumpuser_cv_init() 507 (*cv)->nwaiters = 0; in rumpuser_cv_init() 511 rumpuser_cv_destroy(struct rumpuser_cv *cv) in rumpuser_cv_destroy() argument 514 NOFAIL_ERRNO(pthread_cond_destroy(&cv->pthcv)); in rumpuser_cv_destroy() 515 free(cv); in rumpuser_cv_destroy() 557 rumpuser_cv_wait(struct rumpuser_cv *cv, struct rumpuser_mtx *mtx) in rumpuser_cv_wait() argument 561 cv->nwaiters++; in rumpuser_cv_wait() 563 NOFAIL_ERRNO(pthread_cond_wait(&cv->pthcv, &mtx->pthmtx)); in rumpuser_cv_wait() [all …]
|
| H A D | rumpfiber.c | 912 struct rumpuser_cv *cv; in rumpuser_cv_init() local 914 cv = malloc(sizeof(*cv)); in rumpuser_cv_init() 915 memset(cv, 0, sizeof(*cv)); in rumpuser_cv_init() 916 TAILQ_INIT(&cv->waiters); in rumpuser_cv_init() 917 *cvp = cv; in rumpuser_cv_init() 921 rumpuser_cv_destroy(struct rumpuser_cv *cv) in rumpuser_cv_destroy() argument 924 assert(cv->nwaiters == 0); in rumpuser_cv_destroy() 925 free(cv); in rumpuser_cv_destroy() 952 rumpuser_cv_wait(struct rumpuser_cv *cv, struct rumpuser_mtx *mtx) in rumpuser_cv_wait() argument 956 cv->nwaiters++; in rumpuser_cv_wait() [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-src/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-src/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() 333 if (cv->type != CFG_STRING) { in _check_host_filters() 338 if (!strcmp(cv->v.str, cmd->hostname)) { 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() 563 if (cv->type != CFG_STRING) { in _init_dev_cache() 569 if (!dev_cache_add_dir(cv->v.str)) { 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() [all …]
|
| /netbsd-src/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() 115 b = aes_neon_dec1(dec, cv, nrounds); in aes_neon_cbc_dec() [all …]
|
| /netbsd-src/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() 386 _citrus_iconv_close(struct _citrus_iconv *cv) in _citrus_iconv_close() argument 388 if (cv) { in _citrus_iconv_close() 389 (*cv->cv_shared->ci_ops->io_uninit_context)(cv); in _citrus_iconv_close() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ |
| H A D | cipher_aes_hw_s390x.inc | 71 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen); 73 *out = *in ^ adat->plat.s390x.param.kmo_kmf.cv[n]; 92 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16, 93 adat->plat.s390x.param.kmo_kmf.cv, 98 out[n] = in[n] ^ adat->plat.s390x.param.kmo_kmf.cv[n]; 103 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen); 128 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen); 131 *out = adat->plat.s390x.param.kmo_kmf.cv[n] ^ tmp; 132 adat->plat.s390x.param.kmo_kmf.cv[n] = dat->enc ? *out : tmp; 151 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16, [all …]
|
| /netbsd-src/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() 111 b = aes_ssse3_dec1(dec, cv, nrounds); 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() 146 q[0] = aes_sse2_interleave_in(cv ^ _mm_loadu_epi8(in)); 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() [all …]
|
| /netbsd-src/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-src/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-src/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-src/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-src/sys/external/bsd/compiler_rt/dist/lib/asan/ |
| H A D | asan_memory_profile.cc | 36 void ProcessChunk(const AsanChunkView &cv) { in ProcessChunk() argument 37 if (cv.IsAllocated()) { in ProcessChunk() 38 total_allocated_user_size_ += cv.UsedSize(); in ProcessChunk() 40 u32 id = cv.GetAllocStackId(); in ProcessChunk() 42 Insert(id, cv.UsedSize()); in ProcessChunk() 43 } else if (cv.IsQuarantined()) { in ProcessChunk() 44 total_quarantined_user_size_ += cv.UsedSize(); in ProcessChunk()
|