/third_party/FreeBSD/sys/dev/usb/ |
H A D | usb_request.h | 34 struct mtx *mtx, uint16_t sel); 36 struct mtx *mtx, uint8_t port, uint16_t sel); 38 struct mtx *mtx, uint8_t *alt_iface_no, 40 usb_error_t usbd_req_get_config(struct usb_device *udev, struct mtx *mtx, 44 usb_error_t usbd_req_get_config_desc(struct usb_device *udev, struct mtx *mtx, [all...] |
H A D | usb_request.c | 336 * "mtx" - if this argument is non-NULL the mutex pointed to by it 382 usbd_do_request_flags(struct usb_device *udev, struct mtx *mtx, in usbd_do_request_flags() argument 435 if ((mtx != NULL) && (mtx != &Giant)) { in usbd_do_request_flags() 436 USB_MTX_UNLOCK(mtx); in usbd_do_request_flags() 437 USB_MTX_ASSERT(mtx, MA_NOTOWNED); in usbd_do_request_flags() 689 if ((mtx != NULL) && (mtx != &Giant)) in usbd_do_request_flags() 690 USB_MTX_LOCK(mtx); in usbd_do_request_flags() 761 usbd_req_reset_port(struct usb_device *udev, struct mtx *mtx, uint8_t port) usbd_req_reset_port() argument 864 usbd_req_warm_reset_port(struct usb_device *udev, struct mtx *mtx, uint8_t port) usbd_req_warm_reset_port() argument 974 usbd_req_get_desc(struct usb_device *udev, struct mtx *mtx, uint16_t *actlen, void *desc, uint16_t min_len, uint16_t max_len, uint16_t id, uint8_t type, uint8_t index, uint8_t retries) usbd_req_get_desc() argument 1063 usbd_req_get_string_any(struct usb_device *udev, struct mtx *mtx, char *buf, uint16_t len, uint8_t string_index) usbd_req_get_string_any() argument 1165 usbd_req_get_string_desc(struct usb_device *udev, struct mtx *mtx, void *sdesc, uint16_t max_len, uint16_t lang_id, uint8_t string_index) usbd_req_get_string_desc() argument 1231 usbd_req_get_config_desc(struct usb_device *udev, struct mtx *mtx, struct usb_config_descriptor *d, uint8_t conf_index) usbd_req_get_config_desc() argument 1301 usbd_req_get_config_desc_full(struct usb_device *udev, struct mtx *mtx, struct usb_config_descriptor **ppcd, uint8_t index) usbd_req_get_config_desc_full() argument 1351 usbd_req_get_device_desc(struct usb_device *udev, struct mtx *mtx, struct usb_device_descriptor *d) usbd_req_get_device_desc() argument 1367 usbd_req_get_alt_interface_no(struct usb_device *udev, struct mtx *mtx, uint8_t *alt_iface_no, uint8_t iface_index) usbd_req_get_alt_interface_no() argument 1393 usbd_req_set_alt_interface_no(struct usb_device *udev, struct mtx *mtx, uint8_t iface_index, uint8_t alt_no) usbd_req_set_alt_interface_no() argument 1431 usbd_req_get_device_status(struct usb_device *udev, struct mtx *mtx, struct usb_status *st) usbd_req_get_device_status() argument 1452 usbd_req_get_hub_descriptor(struct usb_device *udev, struct mtx *mtx, struct usb_hub_descriptor *hd, uint8_t nports) usbd_req_get_hub_descriptor() argument 1474 usbd_req_get_ss_hub_descriptor(struct usb_device *udev, struct mtx *mtx, struct usb_hub_ss_descriptor *hd, uint8_t nports) usbd_req_get_ss_hub_descriptor() argument 1496 usbd_req_get_hub_status(struct usb_device *udev, struct mtx *mtx, struct usb_hub_status *st) usbd_req_get_hub_status() argument 1520 usbd_req_set_address(struct usb_device *udev, struct mtx *mtx, uint16_t addr) usbd_req_set_address() argument 1562 usbd_req_get_port_status(struct usb_device *udev, struct mtx *mtx, struct usb_port_status *ps, uint8_t port) usbd_req_get_port_status() argument 1584 usbd_req_clear_hub_feature(struct usb_device *udev, struct mtx *mtx, uint16_t sel) usbd_req_clear_hub_feature() argument 1605 usbd_req_set_hub_feature(struct usb_device *udev, struct mtx *mtx, uint16_t sel) usbd_req_set_hub_feature() argument 1626 usbd_req_set_hub_u1_timeout(struct usb_device *udev, struct mtx *mtx, uint8_t port, uint8_t timeout) usbd_req_set_hub_u1_timeout() argument 1648 usbd_req_set_hub_u2_timeout(struct usb_device *udev, struct mtx *mtx, uint8_t port, uint8_t timeout) usbd_req_set_hub_u2_timeout() argument 1670 usbd_req_set_hub_depth(struct usb_device *udev, struct mtx *mtx, uint16_t depth) usbd_req_set_hub_depth() argument 1691 usbd_req_clear_port_feature(struct usb_device *udev, struct mtx *mtx, uint8_t port, uint16_t sel) usbd_req_clear_port_feature() argument 1713 usbd_req_set_port_feature(struct usb_device *udev, struct mtx *mtx, uint8_t port, uint16_t sel) usbd_req_set_port_feature() argument 1735 usbd_req_set_protocol(struct usb_device *udev, struct mtx *mtx, uint8_t iface_index, uint16_t report) usbd_req_set_protocol() argument 1764 usbd_req_set_report(struct usb_device *udev, struct mtx *mtx, void *data, uint16_t len, uint8_t iface_index, uint8_t type, uint8_t id) usbd_req_set_report() argument 1792 usbd_req_get_report(struct usb_device *udev, struct mtx *mtx, void *data, uint16_t len, uint8_t iface_index, uint8_t type, uint8_t id) usbd_req_get_report() argument 1820 usbd_req_set_idle(struct usb_device *udev, struct mtx *mtx, uint8_t iface_index, uint8_t duration, uint8_t id) usbd_req_set_idle() argument 1848 usbd_req_get_report_descriptor(struct usb_device *udev, struct mtx *mtx, void *d, uint16_t size, uint8_t iface_index) usbd_req_get_report_descriptor() argument 1878 usbd_req_set_config(struct usb_device *udev, struct mtx *mtx, uint8_t conf) usbd_req_set_config() argument 1903 usbd_req_get_config(struct usb_device *udev, struct mtx *mtx, uint8_t *pconf) usbd_req_get_config() argument 1919 usbd_setup_device_desc(struct usb_device *udev, struct mtx *mtx) usbd_setup_device_desc() argument 2013 usbd_req_re_enumerate(struct usb_device *udev, struct mtx *mtx) usbd_req_re_enumerate() argument 2125 usbd_req_clear_device_feature(struct usb_device *udev, struct mtx *mtx, uint16_t sel) usbd_req_clear_device_feature() argument 2146 usbd_req_set_device_feature(struct usb_device *udev, struct mtx *mtx, uint16_t sel) usbd_req_set_device_feature() argument 2167 usbd_req_reset_tt(struct usb_device *udev, struct mtx *mtx, uint8_t port) usbd_req_reset_tt() argument 2197 usbd_req_clear_tt_buffer(struct usb_device *udev, struct mtx *mtx, uint8_t port, uint8_t addr, uint8_t type, uint8_t endpoint) usbd_req_clear_tt_buffer() argument 2231 usbd_req_set_port_link_state(struct usb_device *udev, struct mtx *mtx, uint8_t port, uint8_t link_state) usbd_req_set_port_link_state() argument 2258 usbd_req_set_lpm_info(struct usb_device *udev, struct mtx *mtx, uint8_t port, uint8_t besl, uint8_t addr, uint8_t rwe) usbd_req_set_lpm_info() argument [all...] |
H A D | usbdi_util.h | 60 usb_error_t usbd_req_get_report(struct usb_device *udev, struct mtx *mtx, 64 struct mtx *mtx, void *d, uint16_t size, 66 usb_error_t usbd_req_get_string_any(struct usb_device *udev, struct mtx *mtx, 68 usb_error_t usbd_req_get_string_desc(struct usb_device *udev, struct mtx *mtx, 71 usb_error_t usbd_req_set_config(struct usb_device *udev, struct mtx *mtx, [all...] |
/third_party/mesa3d/src/util/ |
H A D | simple_mtx.h | 76 simple_mtx_init(simple_mtx_t *mtx, ASSERTED int type) in simple_mtx_init() argument 80 mtx->val = 0; in simple_mtx_init() 82 HG(ANNOTATE_RWLOCK_CREATE(mtx)); in simple_mtx_init() 86 simple_mtx_destroy(ASSERTED simple_mtx_t *mtx) in simple_mtx_destroy() argument 88 HG(ANNOTATE_RWLOCK_DESTROY(mtx)); in simple_mtx_destroy() 90 mtx->val = _SIMPLE_MTX_INVALID_VALUE; in simple_mtx_destroy() 95 simple_mtx_lock(simple_mtx_t *mtx) in simple_mtx_lock() argument 99 c = p_atomic_cmpxchg(&mtx->val, 0, 1); in simple_mtx_lock() 105 c = p_atomic_xchg(&mtx->val, 2); in simple_mtx_lock() 107 futex_wait(&mtx in simple_mtx_lock() 116 simple_mtx_unlock(simple_mtx_t *mtx) simple_mtx_unlock() argument 133 simple_mtx_assert_locked(simple_mtx_t *mtx) simple_mtx_assert_locked() argument 145 simple_mtx_init(simple_mtx_t *mtx, int type) simple_mtx_init() argument 151 simple_mtx_destroy(simple_mtx_t *mtx) simple_mtx_destroy() argument 157 simple_mtx_lock(simple_mtx_t *mtx) simple_mtx_lock() argument 163 simple_mtx_unlock(simple_mtx_t *mtx) simple_mtx_unlock() argument 169 simple_mtx_assert_locked(simple_mtx_t *mtx) simple_mtx_assert_locked() argument [all...] |
H A D | cnd_monotonic.h | 110 u_cnd_monotonic_timedwait(struct u_cnd_monotonic *cond, mtx_t *mtx, const struct timespec *abs_time) in u_cnd_monotonic_timedwait() argument 113 assert(mtx != NULL); in u_cnd_monotonic_timedwait() 120 if (SleepConditionVariableCS(&cond->condvar, mtx, timeout)) in u_cnd_monotonic_timedwait() 124 int rt = pthread_cond_timedwait(&cond->cond, mtx, abs_time); in u_cnd_monotonic_timedwait() 132 u_cnd_monotonic_wait(struct u_cnd_monotonic *cond, mtx_t *mtx) in u_cnd_monotonic_wait() argument 135 assert(mtx != NULL); in u_cnd_monotonic_wait() 138 SleepConditionVariableCS(&cond->condvar, mtx, INFINITE); in u_cnd_monotonic_wait() 141 return (pthread_cond_wait(&cond->cond, mtx) == 0) ? thrd_success : thrd_error; in u_cnd_monotonic_wait()
|
/third_party/musl/libc-test/src/functionalext/thread/ |
H A D | pthread_mutex_ext.c | 23 pthread_mutex_t *mtx = (pthread_mutex_t*)arg; in PthreadClocklockOutRealTime() local 29 TEST(pthread_mutex_clocklock(mtx, CLOCK_REALTIME, &ts) == ETIMEDOUT); in PthreadClocklockOutRealTime() 44 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; in pthread_mutex_clocklock_0010() local 46 TEST(pthread_create(&tid, NULL, PthreadClocklockOutRealTime, (void*)&mtx) == 0); in pthread_mutex_clocklock_0010() 48 TEST(pthread_mutex_lock(&mtx) == 0); in pthread_mutex_clocklock_0010() 51 TEST(pthread_mutex_unlock(&mtx) == 0); in pthread_mutex_clocklock_0010() 60 pthread_mutex_t *mtx = (pthread_mutex_t*)arg; in PthreadClocklockNoOutRealTime() local 65 TEST(pthread_mutex_clocklock(mtx, CLOCK_REALTIME, &ts) == 0); in PthreadClocklockNoOutRealTime() 76 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; in pthread_mutex_clocklock_0020() local 78 TEST(pthread_create(&tid, NULL, PthreadClocklockNoOutRealTime, (void*)&mtx) in pthread_mutex_clocklock_0020() 91 pthread_mutex_t *mtx = (pthread_mutex_t*)arg; PthreadClocklockOutMonoTime() local 112 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_clocklock_0030() local 128 pthread_mutex_t *mtx = (pthread_mutex_t*)arg; PthreadClocklockNoOutMonoTime() local 144 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_clocklock_0040() local 159 pthread_mutex_t *mtx = (pthread_mutex_t*)arg; PthreadClocklockOutRealTime2() local 184 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_clocklock_0050() local 199 pthread_mutex_t *mtx = (pthread_mutex_t*)arg; PthreadClocklockNoOutMonoTime2() local 216 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_clocklock_0060() local 238 pthread_mutex_t *mtx = (pthread_mutex_t*)arg; PthreadTimedlockMonotonicNPOut() local 259 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_timedlock_monotonic_np_0010() local 275 pthread_mutex_t *mtx = (pthread_mutex_t*)arg; PthreadTimedlockMonotonicNPNoOut() local 291 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_timedlock_monotonic_np_0020() local 311 pthread_mutex_t *mtx = (pthread_mutex_t *)NULL; pthread_mutex_timedlock_monotonic_np_0030() local 320 pthread_mutex_t *mtx = (pthread_mutex_t*)arg; PthreadLockTimeoutNPOut() local 342 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_lock_timeout_np_0010() local 358 pthread_mutex_t *mtx = (pthread_mutex_t*)arg; PthreadLockTimeoutNPNoOut() local 375 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_lock_timeout_np_0020() local [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | pthread_cond.c | 37 pthread_mutex_t mtx; in main() local 42 TEST(r, pthread_mutex_init(&mtx, 0), ""); in main() 44 TEST(r, pthread_mutex_lock(&mtx), ""); in main() 45 TEST(r, pthread_create(&td, 0, start_signal, (void *[]){ &cond, &mtx }), ""); in main() 46 TEST(r, pthread_cond_wait(&cond, &mtx), ""); in main() 48 TEST(r, pthread_mutex_unlock(&mtx), ""); in main() 49 TEST(r, pthread_mutex_destroy(&mtx), ""); in main() 53 TEST(r, pthread_mutex_init(&mtx, 0), ""); in main() 55 TEST(r, pthread_mutex_lock(&mtx), ""); in main() 57 TEST(r, pthread_create(&td1, 0, start_wait, (void *[]){ &cond, &mtx, fo in main() [all...] |
H A D | pthread_robust.c | 33 pthread_mutex_t mtx; in f() local 44 TEST(r, pthread_mutex_init(&mtx, &mtx_a), "initializing robust mutex"); in f() 45 TEST(r, pthread_mutex_lock(&mtx), "locking robust mutex"); in f() 46 TEST(r, pthread_mutex_unlock(&mtx), "unlocking robust mutex"); in f() 47 TEST(r, pthread_create(&td, 0, start_lock, &mtx), "failed to create thread"); in f() 49 TESTX(r, pthread_mutex_lock(&mtx), EOWNERDEAD, "locking orphaned robust mutex"); in f() 50 TEST(r, pthread_mutex_unlock(&mtx), "unlocking orphaned robust mutex"); in f() 51 TESTX(r, pthread_mutex_lock(&mtx), ENOTRECOVERABLE, "re-locking orphaned robust mutex"); in f() 52 TEST(r, pthread_mutex_destroy(&mtx), "destroying unrecoverable mutex"); in f() 54 TEST(r, pthread_mutex_init(&mtx, in f() [all...] |
/third_party/mesa3d/src/c11/impl/ |
H A D | threads_posix.c | 115 cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *abs_time) in cnd_timedwait() argument 119 assert(mtx != NULL); in cnd_timedwait() 123 rt = pthread_cond_timedwait(cond, mtx, abs_time); in cnd_timedwait() 131 cnd_wait(cnd_t *cond, mtx_t *mtx) in cnd_wait() argument 133 assert(mtx != NULL); in cnd_wait() 135 return (pthread_cond_wait(cond, mtx) == 0) ? thrd_success : thrd_error; in cnd_wait() 142 mtx_destroy(mtx_t *mtx) in mtx_destroy() argument 144 assert(mtx != NULL); in mtx_destroy() 145 pthread_mutex_destroy(mtx); in mtx_destroy() 176 mtx_init(mtx_t *mtx, in argument 200 mtx_lock(mtx_t *mtx) mtx_lock() argument 208 mtx_timedlock(mtx_t *mtx, const struct timespec *ts) mtx_timedlock() argument 237 mtx_trylock(mtx_t *mtx) mtx_trylock() argument 245 mtx_unlock(mtx_t *mtx) mtx_unlock() argument [all...] |
H A D | threads_win32.c | 221 cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *abs_time) in cnd_timedwait() argument 224 assert(mtx != NULL); in cnd_timedwait() 227 if (SleepConditionVariableCS((PCONDITION_VARIABLE)cond, (PCRITICAL_SECTION)mtx, timeout)) in cnd_timedwait() 234 cnd_wait(cnd_t *cond, mtx_t *mtx) in cnd_wait() argument 237 assert(mtx != NULL); in cnd_wait() 238 SleepConditionVariableCS((PCONDITION_VARIABLE)cond, (PCRITICAL_SECTION)mtx, INFINITE); in cnd_wait() 246 mtx_destroy(mtx_t *mtx) in mtx_destroy() argument 248 assert(mtx); in mtx_destroy() 249 DeleteCriticalSection((PCRITICAL_SECTION)mtx); in mtx_destroy() 254 mtx_init(mtx_t *mtx, in argument 268 mtx_lock(mtx_t *mtx) mtx_lock() argument 277 mtx_timedlock(mtx_t *mtx, const struct timespec *ts) mtx_timedlock() argument 292 mtx_trylock(mtx_t *mtx) mtx_trylock() argument 300 mtx_unlock(mtx_t *mtx) mtx_unlock() argument [all...] |
/third_party/glfw/deps/ |
H A D | tinycthread.c | 56 int mtx_init(mtx_t *mtx, int type) in mtx_init() argument 59 mtx->mAlreadyLocked = FALSE; in mtx_init() 60 mtx->mRecursive = type & mtx_recursive; in mtx_init() 61 InitializeCriticalSection(&mtx->mHandle); in mtx_init() 71 ret = pthread_mutex_init(mtx, &attr); in mtx_init() 77 void mtx_destroy(mtx_t *mtx) in mtx_destroy() argument 80 DeleteCriticalSection(&mtx->mHandle); in mtx_destroy() 82 pthread_mutex_destroy(mtx); in mtx_destroy() 86 int mtx_lock(mtx_t *mtx) in mtx_lock() argument 89 EnterCriticalSection(&mtx in mtx_lock() 101 mtx_timedlock(mtx_t *mtx, const struct timespec *ts) mtx_timedlock() argument 109 mtx_trylock(mtx_t *mtx) mtx_trylock() argument 124 mtx_unlock(mtx_t *mtx) mtx_unlock() argument 237 _cnd_timedwait_win32(cnd_t *cond, mtx_t *mtx, DWORD timeout) _cnd_timedwait_win32() argument 285 cnd_wait(cnd_t *cond, mtx_t *mtx) cnd_wait() argument 294 cnd_timedwait(cnd_t *cond, mtx_t *mtx, const struct timespec *ts) cnd_timedwait() argument [all...] |
H A D | tinycthread.h | 195 * @param mtx A mutex object. 206 int mtx_init(mtx_t *mtx, int type); 209 * @param mtx A mutex object. 211 void mtx_destroy(mtx_t *mtx); 217 * @param mtx A mutex object. 221 int mtx_lock(mtx_t *mtx); 225 int mtx_timedlock(mtx_t *mtx, const struct timespec *ts); 230 * @param mtx A mutex object. 235 int mtx_trylock(mtx_t *mtx); 238 * @param mtx [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/ |
H A D | 4-1.c | 89 static pthread_mutex_t mtx; variable 97 ret = pthread_mutex_trylock(&mtx); in threaded() 110 if ((ret = pthread_mutex_lock(&mtx))) { in threaded() 123 if ((ret = pthread_mutex_unlock(&mtx))) { in threaded() 161 if ((ret = pthread_mutex_init(&mtx, &ma))) { in main() 172 if ((ret = pthread_mutex_lock(&mtx))) { in main() 176 if ((ret = pthread_mutex_lock(&mtx))) { in main() 180 if ((ret = pthread_mutex_unlock(&mtx))) { in main() 204 if ((ret = pthread_mutex_unlock(&mtx))) { in main() 214 ret = pthread_mutex_unlock(&mtx); in main() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
H A D | cnd_signal.c | 19 mtx_t mtx; variable 25 mtx_lock(&mtx); in cnd_timedwaitfirst() 26 res = cnd_timedwait(&cndPut, &mtx, &ts); in cnd_timedwaitfirst() 27 mtx_unlock(&mtx); in cnd_timedwaitfirst() 42 mtx_init(&mtx, 0); in cnd_signal_0100() 47 mtx_lock(&mtx); in cnd_signal_0100() 50 mtx_unlock(&mtx); in cnd_signal_0100() 53 mtx_destroy(&mtx); in cnd_signal_0100()
|
H A D | cnd_wait.c | 20 mtx_t mtx; variable 25 mtx_lock(&mtx); in cnd_waitfirst() 26 res = cnd_wait(&cnd, &mtx); in cnd_waitfirst() 28 mtx_unlock(&mtx); in cnd_waitfirst() 41 mtx_init(&mtx, 0); in cnd_wait_0100() 45 mtx_lock(&mtx); in cnd_wait_0100() 47 mtx_unlock(&mtx); in cnd_wait_0100() 50 mtx_destroy(&mtx); in cnd_wait_0100()
|
H A D | thrd_equal.c | 65 pthread_mutex_t *mtx = (pthread_mutex_t *)arg; in threadfuncA() local 66 pthread_mutex_lock(mtx); in threadfuncA() 72 pthread_mutex_unlock(mtx); in threadfuncA() 99 pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; in thrd_equal_0100() local 100 pthread_mutex_lock(&mtx); in thrd_equal_0100() 101 result = thrd_create(&thr, threadfuncA, (void *)&mtx); in thrd_equal_0100() 102 pthread_mutex_unlock(&mtx); in thrd_equal_0100() 103 pthread_mutex_destroy(&mtx); in thrd_equal_0100()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/ |
H A D | stress.c | 124 pthread_mutex_t *mtx; member 166 ret = pthread_mutex_trylock(td->mtx); in threaded() 194 ret = pthread_mutex_unlock(td->mtx); in threaded() 217 pthread_mutex_t mtx[NSCENAR + 2]; in main() local 274 ret = pthread_mutex_init(&mtx[i], &ma); in main() 292 ret = pthread_mutex_init(&mtx[i], &ma); in main() 301 ret = pthread_mutex_init(&mtx[i + 1], NULL); in main() 316 td.mtx = &mtx[i]; in main() 319 ret = pthread_mutex_lock(td.mtx); in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
H A D | 2-3.c | 82 pthread_mutex_t mtx; member 97 ret = pthread_mutex_trylock(&(data.mtx)); in clnp1() 102 ret = pthread_mutex_unlock(&(data.mtx)); in clnp1() 141 ret = pthread_mutex_unlock(&(data.mtx)); in clnp3() 148 ret = pthread_mutex_unlock(&(data.mtx)); in clnp3() 166 ret = pthread_mutex_lock(&(data.mtx)); in threaded() 184 ret = pthread_cond_wait(&(data.cnd), &(data.mtx)); in threaded() 339 ret = pthread_mutex_init(&(data.mtx), &ma); in main() 374 ret = pthread_mutex_lock(&(data.mtx)); in main() 390 ret = pthread_mutex_unlock(&(data.mtx)); in main() [all...] |
H A D | 2-2.c | 90 pthread_mutex_t mtx; member 188 ret = pthread_mutex_lock(&(td->mtx)); in tf() 199 ret = pthread_cond_wait(&(td->cnd), &(td->mtx)); in tf() 211 ret = pthread_mutex_trylock(&(td->mtx)); in tf() 221 ret = pthread_mutex_unlock(&(td->mtx)); in tf() 243 ret = pthread_mutex_unlock(&(td->mtx)); in tf() 455 ret = pthread_mutex_init(&(td->mtx), &ma); in main() 527 ret = pthread_mutex_lock(&(td->mtx)); in main() 533 ret = pthread_mutex_unlock(&(td->mtx)); in main() 539 ret = pthread_mutex_lock(&(td->mtx)); in main() [all...] |
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
H A D | enc_sse41.c | 202 const VP8Matrix* const mtx) { in DoQuantizeBlock_SSE41() 211 const __m128i iq0 = _mm_loadu_si128((const __m128i*)&mtx->iq_[0]); in DoQuantizeBlock_SSE41() 212 const __m128i iq8 = _mm_loadu_si128((const __m128i*)&mtx->iq_[8]); in DoQuantizeBlock_SSE41() 213 const __m128i q0 = _mm_loadu_si128((const __m128i*)&mtx->q_[0]); in DoQuantizeBlock_SSE41() 214 const __m128i q8 = _mm_loadu_si128((const __m128i*)&mtx->q_[8]); in DoQuantizeBlock_SSE41() 241 const __m128i bias_00 = _mm_loadu_si128((const __m128i*)&mtx->bias_[0]); in DoQuantizeBlock_SSE41() 242 const __m128i bias_04 = _mm_loadu_si128((const __m128i*)&mtx->bias_[4]); in DoQuantizeBlock_SSE41() 243 const __m128i bias_08 = _mm_loadu_si128((const __m128i*)&mtx->bias_[8]); in DoQuantizeBlock_SSE41() 244 const __m128i bias_12 = _mm_loadu_si128((const __m128i*)&mtx->bias_[12]); in DoQuantizeBlock_SSE41() 304 const VP8Matrix* const mtx) { in QuantizeBlock_SSE41() 200 DoQuantizeBlock_SSE41(int16_t in[16], int16_t out[16], const uint16_t* const sharpen, const VP8Matrix* const mtx) DoQuantizeBlock_SSE41() argument 303 QuantizeBlock_SSE41(int16_t in[16], int16_t out[16], const VP8Matrix* const mtx) QuantizeBlock_SSE41() argument 308 QuantizeBlockWHT_SSE41(int16_t in[16], int16_t out[16], const VP8Matrix* const mtx) QuantizeBlockWHT_SSE41() argument 313 Quantize2Blocks_SSE41(int16_t in[32], int16_t out[32], const VP8Matrix* const mtx) Quantize2Blocks_SSE41() argument [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/ |
H A D | 2-1.c | 85 pthread_mutex_t mtx; member 111 td->status = pthread_mutex_trylock(&(td->mtx)); in tf() 116 ret = pthread_mutex_unlock(&(td->mtx)); in tf() 282 ret = pthread_mutex_init(&(td->mtx), &ma); in main() 294 ret = pthread_mutex_trylock(&(td->mtx)); in main() 298 ret = pthread_mutex_trylock(&(td->mtx)); in main() 307 ret = pthread_mutex_unlock(&(td->mtx)); in main() 394 ret = pthread_mutex_unlock(&(td->mtx)); in main() 400 ret = pthread_mutex_unlock(&(td->mtx)); in main() 409 ret = pthread_mutex_destroy(&(td->mtx)); in main() [all...] |
H A D | 4-3.c | 182 pthread_mutex_t mtx[NSCENAR + 2]; in test() local 221 ret = pthread_mutex_init(&mtx[i], &ma[i]); in test() 233 ret = pthread_mutex_init(&mtx[i], &ma[i]); in test() 238 ret = pthread_mutex_init(&mtx[i + 1], NULL); in test() 247 ret = pthread_mutex_trylock(&mtx[count_ope % (NSCENAR + 2)]); in test() 255 ret = pthread_mutex_trylock(&mtx[count_ope % (NSCENAR + 2)]); in test() 261 pthread_mutex_unlock(&mtx in test() 272 ret = pthread_mutex_unlock(&mtx[count_ope % (NSCENAR + 2)]); in test() 280 ret = pthread_mutex_destroy(&mtx[i]); in test() 291 ret = pthread_mutex_destroy(&mtx[ in test() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/ |
H A D | 4-1.c | 48 static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; variable 57 ret = pthread_mutex_lock(&mtx); in threaded() 61 ret = pthread_mutex_unlock(&mtx); in threaded() 103 ret = pthread_mutex_lock(&mtx); in main() 165 ret = pthread_mutex_unlock(&mtx); in main() 177 ret = pthread_mutex_unlock(&mtx); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
H A D | 2-4.c | 62 pthread_mutex_t mtx; member 159 ret = pthread_mutex_lock(&(td->mtx)); in tf() 182 ret = pthread_cond_timedwait(&(td->cnd), &(td->mtx), &ts); in tf() 194 ret = pthread_mutex_trylock(&(td->mtx)); in tf() 204 ret = pthread_mutex_unlock(&(td->mtx)); in tf() 226 ret = pthread_mutex_unlock(&(td->mtx)); in tf() 439 ret = pthread_mutex_init(&(td->mtx), &ma); in main() 511 ret = pthread_mutex_lock(&(td->mtx)); in main() 517 ret = pthread_mutex_unlock(&(td->mtx)); in main() 523 ret = pthread_mutex_lock(&(td->mtx)); in main() [all...] |
H A D | 2-6.c | 52 pthread_mutex_t mtx; member 71 ret = pthread_mutex_trylock(&(data.mtx)); in clnp1() 76 ret = pthread_mutex_unlock(&(data.mtx)); in clnp1() 120 ret = pthread_mutex_unlock(&(data.mtx)); in clnp3() 127 ret = pthread_mutex_unlock(&(data.mtx)); in clnp3() 156 ret = pthread_mutex_lock(&(data.mtx)); in threaded() 173 ret = pthread_cond_timedwait(&(data.cnd), &(data.mtx), &ts); in threaded() 327 ret = pthread_mutex_init(&(data.mtx), &ma); in main() 371 ret = pthread_mutex_lock(&(data.mtx)); in main() 387 ret = pthread_mutex_unlock(&(data.mtx)); in main() [all...] |