Home
last modified time | relevance | path

Searched refs:cv (Results 1 – 25 of 225) sorted by relevance

123456789

/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_os.h561 return _InterlockedCompareExchange8_acq(p, sv, cv) == cv;
566 return _InterlockedCompareExchange8_rel(p, sv, cv) == cv;
571 return _InterlockedCompareExchange16_acq(p, sv, cv) == cv;
576 return _InterlockedCompareExchange16_rel(p, sv, cv) == cv;
581 return _InterlockedCompareExchange_acq((volatile long *)p, sv, cv) == cv;
586 return _InterlockedCompareExchange_rel((volatile long *)p, sv, cv) == cv;
591 return _InterlockedCompareExchange64_acq(p, sv, cv) == cv;
596 return _InterlockedCompareExchange64_rel(p, sv, cv) == cv;
601 return _InterlockedCompareExchangePointer(p, sv, cv) == cv;
673 __kmp_compare_and_store8((p), (cv), (sv))
[all …]
H A Dz_Windows_NT_util.cpp175 cv->waiters_count_ = 0; in __kmp_win32_cond_init()
177 cv->release_count_ = 0; in __kmp_win32_cond_init()
195 memset(cv, '\0', sizeof(*cv)); in __kmp_win32_cond_destroy()
211 cv->waiters_count_++; in __kmp_win32_cond_wait()
253 cv->release_count_ = cv->waiters_count_; in __kmp_win32_cond_wait()
269 cv->waiters_count_--; in __kmp_win32_cond_wait()
270 cv->release_count_--; in __kmp_win32_cond_wait()
278 ResetEvent(cv->event_); in __kmp_win32_cond_wait()
285 if (cv->waiters_count_ > 0) { in __kmp_win32_cond_broadcast()
286 SetEvent(cv->event_); in __kmp_win32_cond_broadcast()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoXCV.td66 def CV_FF1 : CVBitManipR<0b0100001, "cv.ff1">;
67 def CV_FL1 : CVBitManipR<0b0100010, "cv.fl1">;
68 def CV_CLB : CVBitManipR<0b0100011, "cv.clb">;
69 def CV_CNT : CVBitManipR<0b0100100, "cv.cnt">;
152 def : InstAlias<"cv.muls $rd1, $rs1, $rs2",
154 def : InstAlias<"cv.mulhhs $rd1, $rs1, $rs2",
158 def : InstAlias<"cv.mulu $rd1, $rs1, $rs2",
642 "cv.sb", "$rs2, $cvrr">;
645 "cv.sh", "$rs2, $cvrr">;
648 "cv.sw", "$rs2, $cvrr">;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/BLAKE3/
H A Dblake3_portable.c58 state[0] = cv[0]; in compress_pre()
59 state[1] = cv[1]; in compress_pre()
60 state[2] = cv[2]; in compress_pre()
61 state[3] = cv[3]; in compress_pre()
62 state[4] = cv[4]; in compress_pre()
63 state[5] = cv[5]; in compress_pre()
64 state[6] = cv[6]; in compress_pre()
65 state[7] = cv[7]; in compress_pre()
90 cv[0] = state[0] ^ state[8]; in blake3_compress_in_place_portable()
129 uint32_t cv[8]; in hash_one_portable() local
[all …]
H A Dblake3_dispatch.c137 void blake3_compress_in_place(uint32_t cv[8], in blake3_compress_in_place()
146 blake3_compress_in_place_avx512(cv, block, block_len, counter, flags); in blake3_compress_in_place()
152 blake3_compress_in_place_sse41(cv, block, block_len, counter, flags); in blake3_compress_in_place()
158 blake3_compress_in_place_sse2(cv, block, block_len, counter, flags); in blake3_compress_in_place()
163 blake3_compress_in_place_portable(cv, block, block_len, counter, flags); in blake3_compress_in_place()
166 void blake3_compress_xof(const uint32_t cv[8], in blake3_compress_xof()
175 blake3_compress_xof_avx512(cv, block, block_len, counter, flags, out); in blake3_compress_xof()
181 blake3_compress_xof_sse41(cv, block, block_len, counter, flags, out); in blake3_compress_xof()
187 blake3_compress_xof_sse2(cv, block, block_len, counter, flags, out); in blake3_compress_xof()
192 blake3_compress_xof_portable(cv, block, block_len, counter, flags, out); in blake3_compress_xof()
H A Dblake3_impl.h187 void blake3_compress_in_place(uint32_t cv[8],
193 void blake3_compress_xof(const uint32_t cv[8],
210 void blake3_compress_in_place_portable(uint32_t cv[8],
216 void blake3_compress_xof_portable(const uint32_t cv[8],
231 void blake3_compress_in_place_sse2(uint32_t cv[8],
236 void blake3_compress_xof_sse2(const uint32_t cv[8],
249 void blake3_compress_in_place_sse41(uint32_t cv[8],
254 void blake3_compress_xof_sse41(const uint32_t cv[8],
275 void blake3_compress_in_place_avx512(uint32_t cv[8],
281 void blake3_compress_xof_avx512(const uint32_t cv[8],
/freebsd/sys/contrib/openzfs/module/icp/algs/blake3/
H A Dblake3_generic.c87 state[0] = cv[0]; in compress_pre()
88 state[1] = cv[1]; in compress_pre()
89 state[2] = cv[2]; in compress_pre()
90 state[3] = cv[3]; in compress_pre()
91 state[4] = cv[4]; in compress_pre()
92 state[5] = cv[5]; in compress_pre()
93 state[6] = cv[6]; in compress_pre()
94 state[7] = cv[7]; in compress_pre()
119 cv[0] = state[0] ^ state[8]; in blake3_compress_in_place_generic()
133 uint32_t cv[8]; in hash_one_generic() local
[all …]
H A Dblake3_impl.c40 extern void ASMABI zfs_blake3_compress_in_place_sse2(uint32_t cv[8],
44 extern void ASMABI zfs_blake3_compress_xof_sse2(const uint32_t cv[8],
53 static void blake3_compress_in_place_sse2(uint32_t cv[8], in blake3_compress_in_place_sse2()
57 zfs_blake3_compress_in_place_sse2(cv, block, block_len, counter, in blake3_compress_in_place_sse2()
62 static void blake3_compress_xof_sse2(const uint32_t cv[8], in blake3_compress_xof_sse2()
66 zfs_blake3_compress_xof_sse2(cv, block, block_len, counter, flags, in blake3_compress_xof_sse2()
117 static void blake3_compress_in_place_sse41(uint32_t cv[8], in blake3_compress_in_place_sse41()
121 zfs_blake3_compress_in_place_sse41(cv, block, block_len, counter, in blake3_compress_in_place_sse41()
126 static void blake3_compress_xof_sse41(const uint32_t cv[8], in blake3_compress_xof_sse41()
213 static void blake3_compress_in_place_avx512(uint32_t cv[8], in blake3_compress_in_place_avx512()
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dspl_condvar.h48 struct cv { struct
53 void cv_init(struct cv *cvp, const char *desc);
54 void cv_destroy(struct cv *cvp);
56 void _cv_wait(struct cv *cvp, struct lock_object *lock);
57 void _cv_wait_unlock(struct cv *cvp, struct lock_object *lock);
58 int _cv_wait_sig(struct cv *cvp, struct lock_object *lock);
59 int _cv_timedwait_sbt(struct cv *cvp, struct lock_object *lock,
61 int _cv_timedwait_sig_sbt(struct cv *cvp, struct lock_object *lock,
64 void cv_signal(struct cv *cvp);
65 void cv_broadcastpri(struct cv *cvp, int pri);
H A Dcondvar.h84 typedef struct cv kcondvar_t;
92 #define zfs_cv_init(cv, name, type, arg) do { \ argument
95 for (_name = #cv; *_name != '\0'; _name++) { \
100 _name = #cv; \
101 cv_init((cv), _name); \
103 #define cv_init(cv, name, type, arg) zfs_cv_init(cv, name, type, arg) argument
/freebsd/contrib/unbound/services/
H A Dview.c147 struct config_view* cv; in views_apply_cfg() local
156 for(cv = cfg->views; cv; cv = cv->next) { 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()
215 cv->local_data = NULL; in views_apply_cfg()
[all …]
/freebsd/sys/sys/
H A Dcondvar.h38 struct cv { struct
48 void cv_init(struct cv *cvp, const char *desc);
49 void cv_destroy(struct cv *cvp);
51 void _cv_wait(struct cv *cvp, struct lock_object *lock);
52 void _cv_wait_unlock(struct cv *cvp, struct lock_object *lock);
53 int _cv_wait_sig(struct cv *cvp, struct lock_object *lock);
54 int _cv_timedwait_sbt(struct cv *cvp, struct lock_object *lock,
56 int _cv_timedwait_sig_sbt(struct cv *cvp, struct lock_object *lock,
59 void cv_signal(struct cv *cvp);
60 void cv_broadcastpri(struct cv *cvp, int pri);
H A Dtty.h99 struct cv t_inwait; /* (t) Input wait queue. */
100 struct cv t_outwait; /* (t) Output wait queue. */
101 struct cv t_outserwait; /* (t) Serial output wait queue. */
102 struct cv t_bgwait; /* (t) Background wait queue. */
103 struct cv t_dcdwait; /* (t) Carrier Detect wait queue. */
193 int tty_wait(struct tty *tp, struct cv *cv);
195 int tty_timedwait(struct tty *tp, struct cv *cv, int timo);
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dsynch.h138 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()
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()
197 cv_broadcast(pthread_cond_t *cv) in cv_broadcast() argument
[all …]
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Dkcondvar.h40 typedef struct cv kcondvar_t;
47 #define zfs_cv_init(cv, name, type, arg) do { \ argument
50 for (_name = #cv; *_name != '\0'; _name++) { \
55 _name = #cv; \
56 cv_init((cv), _name); \
58 #define cv_init(cv, name, type, arg) zfs_cv_init(cv, name, type, arg) argument
/freebsd/sbin/hastd/
H A Dsynch.h138 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) __requires_exclusive(*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
168 cv_wait(cv, lock); in cv_timedwait()
175 error = pthread_cond_timedwait(cv, lock, &ts); in cv_timedwait()
180 cv_signal(pthread_cond_t *cv) in cv_signal() argument
184 error = pthread_cond_signal(cv); in cv_signal()
188 cv_broadcast(pthread_cond_t *cv) in cv_broadcast() argument
[all …]
/freebsd/usr.sbin/pkg/
H A Dconfig.c222 struct config_value *cv; in config_parse() local
293 cv = malloc(sizeof(struct config_value)); in config_parse()
294 cv->value = in config_parse()
460 struct config_value *cv; in config_init() local
474 cv = in config_init()
476 cv->value = in config_init()
478 STAILQ_INSERT_TAIL(c[i].list, cv, in config_init()
501 cv = malloc(sizeof(struct config_value)); in config_init()
502 cv->value = strdup("/etc/pkg"); in config_init()
504 cv = malloc(sizeof(struct config_value)); in config_init()
[all …]
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_hw_s390x.inc71 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;
151 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16,
152 adat->plat.s390x.param.kmo_kmf.cv,
[all …]
/freebsd/lib/libc/iconv/
H A Dcitrus_iconv.c281 struct _citrus_iconv *cv = NULL; in _citrus_iconv_open() local
329 cv = malloc(sizeof(*cv)); in _citrus_iconv_open()
330 if (cv == NULL) { in _citrus_iconv_open()
335 *rcv = cv; in _citrus_iconv_open()
341 free(cv); in _citrus_iconv_open()
352 _citrus_iconv_close(struct _citrus_iconv *cv) in _citrus_iconv_close() argument
355 if (cv) { in _citrus_iconv_close()
356 (*cv->cv_shared->ci_ops->io_uninit_context)(cv); in _citrus_iconv_close()
357 release_shared(cv->cv_shared); in _citrus_iconv_close()
358 free(cv); in _citrus_iconv_close()
H A Dbsd_iconv.c251 struct _citrus_iconv *cv; in __bsd_iconvctl() local
258 cv = (struct _citrus_iconv *)(void *)cd; in __bsd_iconvctl()
269 convname = cv->cv_shared->ci_convname; in __bsd_iconvctl()
281 *i = cv->cv_shared->ci_discard_ilseq ? 1 : 0; in __bsd_iconvctl()
284 cv->cv_shared->ci_discard_ilseq = *i; in __bsd_iconvctl()
287 cv->cv_shared->ci_hooks = hooks; in __bsd_iconvctl()
293 *i = cv->cv_shared->ci_ilseq_invalid ? 1 : 0; in __bsd_iconvctl()
296 cv->cv_shared->ci_ilseq_invalid = *i; in __bsd_iconvctl()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_memory_profile.cpp34 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()
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzfs_context.h330 extern void cv_destroy(kcondvar_t *cv);
336 extern void cv_signal(kcondvar_t *cv);
337 extern void cv_broadcast(kcondvar_t *cv);
339 #define cv_timedwait_io(cv, mp, at) cv_timedwait(cv, mp, at)
340 #define cv_timedwait_idle(cv, mp, at) cv_timedwait(cv, mp, at)
341 #define cv_timedwait_sig(cv, mp, at) cv_timedwait(cv, mp, at)
342 #define cv_wait_io(cv, mp) cv_wait(cv, mp)
343 #define cv_wait_idle(cv, mp) cv_wait(cv, mp)
344 #define cv_wait_io_sig(cv, mp) cv_wait_sig(cv, mp)
346 cv_timedwait_hires(cv, mp, t, r, f)
[all …]
/freebsd/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.c137 cv_init(&c->cv, "VCHI completion cv"); in init_completion()
145 cv_destroy(&c->cv); in destroy_completion()
157 cv_signal(&c->cv); in complete()
173 cv_broadcast(&c->cv); in complete_all()
209 cv_wait(&c->cv, &c->lock); in wait_for_completion()
273 res = cv_wait_sig(&c->cv, &c->lock); in wait_for_completion_interruptible()
312 cv_init(&s->cv, "sema cv"); in _sema_init()
320 cv_destroy(&s->cv); in _sema_destroy()
330 cv_wait(&s->cv, &s->mtx); in down()
349 ret = cv_wait_sig(&s->cv, &s->mtx); in down_interruptible()
[all …]
/freebsd/lib/libthr/thread/
H A Dthr_umtx.c237 _thr_ucond_init(struct ucond *cv) in _thr_ucond_init() argument
240 bzero(cv, sizeof(struct ucond)); in _thr_ucond_init()
244 _thr_ucond_wait(struct ucond *cv, struct umutex *m, in _thr_ucond_wait() argument
255 return (_umtx_op_err(cv, UMTX_OP_CV_WAIT, flags, m, in _thr_ucond_wait()
260 _thr_ucond_signal(struct ucond *cv) in _thr_ucond_signal() argument
263 if (!cv->c_has_waiters) in _thr_ucond_signal()
265 return (_umtx_op_err(cv, UMTX_OP_CV_SIGNAL, 0, NULL, NULL)); in _thr_ucond_signal()
269 _thr_ucond_broadcast(struct ucond *cv) in _thr_ucond_broadcast() argument
272 if (!cv->c_has_waiters) in _thr_ucond_broadcast()
274 return (_umtx_op_err(cv, UMTX_OP_CV_BROADCAST, 0, NULL, NULL)); in _thr_ucond_broadcast()
/freebsd/contrib/netbsd-tests/rump/kernspace/
H A Dthread.c73 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()

123456789