Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 25 of 200) sorted by relevance

12345678

/netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_semaphore.c40 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 Dradeon_test.c323 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 Dradeon_sync.c150 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 Dradeon_uvd_v3_1.c46 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 Dradeon_uvd_v2_2.c79 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 Dradeon_asic.h82 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 Dsemaphore.d15 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 Dvchi_bsd.h147 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 Dvchi_bsd.c129 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 Dvchiq_core.h271 #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 Dvchiq_util.h49 struct semaphore pop;
50 struct semaphore push;
/netbsd-src/sys/external/bsd/drm2/dist/include/drm/
H A Dtask_barrier.h44 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 Dbenchmark-multi-accept.c72 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 Dsemaphore2 //===--------------------------- 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 Dmessage.h80 struct semaphore sem;
101 struct semaphore *blocking;
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/
H A Di915_request.c123 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 Dsemaphore1 // <semaphore> -*- C++ -*-
25 /** @file include/semaphore
/netbsd-src/tests/lib/semaphore/
H A DMakefile9 TESTSDIR= ${TESTSBASE}/lib/semaphore
/netbsd-src/tests/lib/semaphore/pthread/
H A DMakefile5 TESTSDIR= ${TESTSBASE}/lib/semaphore/pthread
/netbsd-src/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.thread/
H A Djoin_detach.d2 import core.sync.semaphore;
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/testsuite/libphobos.init_fini/
H A Dthread_join.d3 import core.thread, core.sync.semaphore;
/netbsd-src/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.init_fini/
H A Dthread_join.d3 import core.thread, core.sync.semaphore;
/netbsd-src/tests/lib/
H A DMakefile8 libutil libossaudio lua semaphore
/netbsd-src/external/bsd/pkg_install/dist/lib/
H A Dconfig.h.in159 <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 Dconfig.h.in157 <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

12345678