Home
last modified time | relevance | path

Searched refs:lck (Results 1 – 10 of 10) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl36.c75 struct flock64 lck = { in fn_ofd_w() local
86 lck.l_type = F_WRLCK; in fn_ofd_w()
87 my_fcntl(fd, F_OFD_SETLKW, &lck); in fn_ofd_w()
92 lck.l_type = F_UNLCK; in fn_ofd_w()
93 my_fcntl(fd, F_OFD_SETLKW, &lck); in fn_ofd_w()
115 struct flock lck = { in fn_posix_w() local
125 lck.l_type = F_WRLCK; in fn_posix_w()
126 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w()
131 lck.l_type = F_UNLCK; in fn_posix_w()
132 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w()
[all …]
Dfcntl_common.h24 static int my_fcntl(int fd, int cmd, void *lck) in my_fcntl() argument
26 return SAFE_FCNTL(fd, cmd, lck); in my_fcntl()
29 static int my_fcntl(int fd, int cmd, void *lck) in my_fcntl() argument
31 int ret = tst_syscall(__NR_fcntl64, fd, cmd, lck); in my_fcntl()
Dfcntl34.c57 struct flock64 lck = { in thread_fn_01() local
64 lck.l_type = F_WRLCK; in thread_fn_01()
65 my_fcntl(fd, F_OFD_SETLKW, &lck); in thread_fn_01()
70 lck.l_type = F_UNLCK; in thread_fn_01()
71 my_fcntl(fd, F_OFD_SETLKW, &lck); in thread_fn_01()
/third_party/alsa-utils/alsactl/
Dlock.c36 struct flock lck; in state_lock_() local
44 lck.l_type = lock ? F_WRLCK : F_UNLCK; in state_lock_()
45 lck.l_whence = SEEK_SET; in state_lock_()
46 lck.l_start = 0; in state_lock_()
47 lck.l_len = 11; in state_lock_()
48 lck.l_pid = 0; in state_lock_()
97 if (fcntl(fd, F_SETLK, &lck) < 0) { in state_lock_()
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/
Dgstcuvidloader.c52 CUresult (CUDAAPI * CuvidCtxLockDestroy) (CUvideoctxlock lck);
53 CUresult (CUDAAPI * CuvidCtxLock) (CUvideoctxlock lck,
55 CUresult (CUDAAPI * CuvidCtxUnlock) (CUvideoctxlock lck,
151 CuvidCtxLockDestroy (CUvideoctxlock lck) in CuvidCtxLockDestroy() argument
155 return gst_cuvid_vtable.CuvidCtxLockDestroy (lck); in CuvidCtxLockDestroy()
159 CuvidCtxLock (CUvideoctxlock lck, unsigned int reserved_flags) in CuvidCtxLock() argument
163 return gst_cuvid_vtable.CuvidCtxLock (lck, reserved_flags); in CuvidCtxLock()
167 CuvidCtxUnlock (CUvideoctxlock lck, unsigned int reserved_flags) in CuvidCtxUnlock() argument
171 return gst_cuvid_vtable.CuvidCtxUnlock (lck, reserved_flags); in CuvidCtxUnlock()
Dgstcuvidloader.h41 CUresult CUDAAPI CuvidCtxLockDestroy (CUvideoctxlock lck);
43 CUresult CUDAAPI CuvidCtxLock (CUvideoctxlock lck,
46 CUresult CUDAAPI CuvidCtxUnlock (CUvideoctxlock lck,
Dcuviddec.h971 extern CUresult CUDAAPI cuvidCtxLockDestroy(CUvideoctxlock lck);
977 extern CUresult CUDAAPI cuvidCtxLock(CUvideoctxlock lck, unsigned int reserved_flags);
983 extern CUresult CUDAAPI cuvidCtxUnlock(CUvideoctxlock lck, unsigned int reserved_flags);
/third_party/openssl/crypto/asn1/
Dtasn_utl.c71 CRYPTO_REF_COUNT *lck; in ossl_asn1_do_lock() local
81 lck = offset2ptr(*pval, aux->ref_offset); in ossl_asn1_do_lock()
86 *lck = ret = 1; in ossl_asn1_do_lock()
94 if (!CRYPTO_UP_REF(lck, &ret, *lock)) in ossl_asn1_do_lock()
98 if (!CRYPTO_DOWN_REF(lck, &ret, *lock)) in ossl_asn1_do_lock()
/third_party/openssl/ssl/
Dssl_sess.c25 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck);
790 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck) in remove_session_lock() argument
796 if (lck) { in remove_session_lock()
807 if (lck) in remove_session_lock()
/third_party/mindspore/patches/
D0003-implement-mindir-module-and-support-nnrt-delegate.patch5346 + std::lock_guard<std::mutex> lck(mutex);
5368 + std::lock_guard<std::mutex> lck(mutex);
5389 + std::lock_guard<std::mutex> lck(mutex);
5406 + std::lock_guard<std::mutex> lck(mutex);
5426 + std::lock_guard<std::mutex> lck(mutex);