| /netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/ |
| H A D | radeon_semaphore.c | 40 struct radeon_semaphore **semaphore) in radeon_semaphore_create() argument 44 *semaphore = kmalloc(sizeof(struct radeon_semaphore), GFP_KERNEL); in radeon_semaphore_create() 45 if (*semaphore == NULL) { in radeon_semaphore_create() 49 &(*semaphore)->sa_bo, 8, 8); in radeon_semaphore_create() 51 kfree(*semaphore); in radeon_semaphore_create() 52 *semaphore = NULL; in radeon_semaphore_create() 55 (*semaphore)->waiters = 0; in radeon_semaphore_create() 56 (*semaphore)->gpu_addr = radeon_sa_bo_gpu_addr((*semaphore)->sa_bo); in radeon_semaphore_create() 58 *((uint64_t *)radeon_sa_bo_cpu_addr((*semaphore)->sa_bo)) = 0; in radeon_semaphore_create() 64 struct radeon_semaphore *semaphore) in radeon_semaphore_emit_signal() argument [all …]
|
| H A D | radeon_test.c | 323 struct radeon_semaphore *semaphore = NULL; in radeon_test_ring_sync() local 326 r = radeon_semaphore_create(rdev, &semaphore); in radeon_test_ring_sync() 337 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync() 349 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync() 368 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore); in radeon_test_ring_sync() 389 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore); in radeon_test_ring_sync() 399 radeon_semaphore_free(rdev, &semaphore, NULL); in radeon_test_ring_sync() 417 struct radeon_semaphore *semaphore = NULL; in radeon_test_ring_sync2() local 421 r = radeon_semaphore_create(rdev, &semaphore); in radeon_test_ring_sync2() 432 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync2() [all …]
|
| H A D | radeon_sync.c | 150 struct radeon_semaphore *semaphore; in radeon_sync_rings() local 169 r = radeon_semaphore_create(rdev, &semaphore); in radeon_sync_rings() 173 sync->semaphores[count++] = semaphore; in radeon_sync_rings() 181 if (!radeon_semaphore_emit_signal(rdev, i, semaphore)) { in radeon_sync_rings() 191 if (!radeon_semaphore_emit_wait(rdev, ring, semaphore)) { in radeon_sync_rings()
|
| H A D | radeon_uvd_v3_1.c | 46 struct radeon_semaphore *semaphore, in uvd_v3_1_semaphore_emit() argument 49 uint64_t addr = semaphore->gpu_addr; in uvd_v3_1_semaphore_emit()
|
| H A D | radeon_uvd_v2_2.c | 79 struct radeon_semaphore *semaphore, in uvd_v2_2_semaphore_emit() argument 82 uint64_t addr = semaphore->gpu_addr; in uvd_v2_2_semaphore_emit()
|
| H A D | radeon_asic.h | 82 struct radeon_semaphore *semaphore, 328 struct radeon_semaphore *semaphore, 334 struct radeon_semaphore *semaphore, 795 struct radeon_semaphore *semaphore, 815 struct radeon_semaphore *semaphore, 949 struct radeon_semaphore *semaphore, 959 struct radeon_semaphore *semaphore, 965 struct radeon_semaphore *semaphore,
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sync/ |
| H A D | semaphore.d | 15 module core.sync.semaphore; 43 import core.sys.darwin.mach.semaphore; in version() 50 import core.sys.posix.semaphore; in version() 371 auto semaphore = new Semaphore; in testWait() local 382 semaphore.wait(); in testWait() 393 assert(!semaphore.tryWait()); in testWait() 396 semaphore.notify(); in testWait() 407 semaphore.notify(); in testWait() 413 assert(!semaphore.tryWait()); in testWait() 414 semaphore.notify(); in testWait() [all …]
|
| /netbsd-src/sys/external/bsd/vchiq/dist/interface/compat/ |
| H A D | vchi_bsd.h | 147 struct semaphore { struct 157 #define DEFINE_SEMAPHORE(name) struct semaphore name argument 160 void _sema_init(struct semaphore *s, int value); 161 void _sema_destroy(struct semaphore *s); 162 void down(struct semaphore *s); 163 int down_interruptible(struct semaphore *s); 164 int down_trylock(struct semaphore *s); 165 void up(struct semaphore *s);
|
| H A D | vchi_bsd.c | 129 struct semaphore *s = arg; in sema_sysinit() 136 _sema_init(struct semaphore *s, int value) in _sema_init() 145 _sema_destroy(struct semaphore *s) in _sema_destroy() 152 down(struct semaphore *s) in down() 167 down_interruptible(struct semaphore *s) in down_interruptible() 190 down_trylock(struct semaphore *s) in down_trylock() 208 up(struct semaphore *s) in up()
|
| /netbsd-src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/ |
| H A D | vchiq_core.h | 271 #define REMOTE_EVENT_SEMA(s,e) ((struct semaphore *)((char *)(s) + (e)->event)) 315 struct semaphore remove_event; 316 struct semaphore bulk_remove_event; 345 struct semaphore quota_event; 419 struct semaphore connect; 435 struct semaphore trigger_event; 438 struct semaphore recycle_event; 441 struct semaphore sync_trigger_event; 444 struct semaphore sync_release_event; 490 struct semaphore slot_available_event; [all …]
|
| H A D | vchiq_util.h | 49 struct semaphore pop; 50 struct semaphore push;
|
| /netbsd-src/sys/external/bsd/drm2/dist/include/drm/ |
| H A D | task_barrier.h | 44 struct semaphore enter_turnstile; 45 struct semaphore exit_turnstile; 48 static inline void task_barrier_signal_turnstile(struct semaphore *turnstile, in task_barrier_signal_turnstile()
|
| /netbsd-src/external/mit/libuv/dist/test/ |
| H A D | benchmark-multi-accept.c | 72 uv_sem_t semaphore; member 231 uv_sem_post(&servers[i].semaphore); in send_listen_handles() 238 uv_sem_wait(&servers[i].semaphore); in send_listen_handles() 268 uv_sem_wait(&ctx->semaphore); in server_cb() 270 uv_sem_post(&ctx->semaphore); in server_cb() 384 ASSERT(0 == uv_sem_init(&ctx->semaphore, 0)); in test_tcp() 414 uv_sem_destroy(&ctx->semaphore); in test_tcp()
|
| /netbsd-src/external/apache2/llvm/dist/libcxx/include/ |
| H A D | semaphore | 2 //===--------------------------- semaphore --------------------------------===// 14 semaphore synopsis 58 # error <semaphore> is not supported on this single threaded system 74 It is a typical Dijkstra semaphore algorithm over atomics, wait and notify 128 __platform_semaphore_base a simple wrapper for the OS semaphore type. That
|
| /netbsd-src/sys/external/bsd/vchiq/dist/interface/vchi/message_drivers/ |
| H A D | message.h | 80 struct semaphore sem; 101 struct semaphore *blocking;
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/ |
| H A D | i915_request.c | 123 i915_sw_fence_fini(&rq->semaphore); in i915_fence_release() 407 i915_sw_fence_signaled(&request->semaphore)) in __i915_request_submit() 541 container_of(fence, typeof(*request), semaphore); in semaphore_notify() 603 i915_sw_fence_init(&rq->semaphore, semaphore_notify); in __i915_request_ctor() 620 i915_sw_fence_fini(&rq->semaphore); in __i915_request_dtor() 707 i915_sw_fence_reinit(&i915_request_get(rq)->semaphore); in __i915_request_create() 967 ret = i915_sw_fence_await_dma_fence(&to->semaphore, in i915_request_await_request() 1329 i915_sw_fence_commit(&rq->semaphore); in __i915_request_queue()
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/std/ |
| H A D | semaphore | 1 // <semaphore> -*- C++ -*- 25 /** @file include/semaphore
|
| /netbsd-src/tests/lib/semaphore/ |
| H A D | Makefile | 9 TESTSDIR= ${TESTSBASE}/lib/semaphore
|
| /netbsd-src/tests/lib/semaphore/pthread/ |
| H A D | Makefile | 5 TESTSDIR= ${TESTSBASE}/lib/semaphore/pthread
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.thread/ |
| H A D | join_detach.d | 2 import core.sync.semaphore;
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/testsuite/libphobos.init_fini/ |
| H A D | thread_join.d | 3 import core.thread, core.sync.semaphore;
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.init_fini/ |
| H A D | thread_join.d | 3 import core.thread, core.sync.semaphore;
|
| /netbsd-src/tests/lib/ |
| H A D | Makefile | 8 libutil libossaudio lua semaphore
|
| /netbsd-src/external/bsd/pkg_install/dist/lib/ |
| H A D | config.h.in | 159 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the 164 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the 169 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/src/lib/ |
| H A D | config.h.in | 157 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the 162 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the 167 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
|