Searched refs:semaphore (Results 1 - 25 of 61) sorted by relevance

123

/freebsd-11.0-release/sys/dev/drm2/radeon/
H A Dradeon_semaphore.c39 struct radeon_semaphore **semaphore)
43 *semaphore = malloc(sizeof(struct radeon_semaphore),
45 if (*semaphore == NULL) {
49 &(*semaphore)->sa_bo, 8, 8, true);
51 free(*semaphore, DRM_MEM_DRIVER);
52 *semaphore = NULL;
55 (*semaphore)->waiters = 0;
56 (*semaphore)->gpu_addr = radeon_sa_bo_gpu_addr((*semaphore)->sa_bo);
57 *((uint64_t*)radeon_sa_bo_cpu_addr((*semaphore)
38 radeon_semaphore_create(struct radeon_device *rdev, struct radeon_semaphore **semaphore) argument
61 radeon_semaphore_emit_signal(struct radeon_device *rdev, int ring, struct radeon_semaphore *semaphore) argument
68 radeon_semaphore_emit_wait(struct radeon_device *rdev, int ring, struct radeon_semaphore *semaphore) argument
76 radeon_semaphore_sync_rings(struct radeon_device *rdev, struct radeon_semaphore *semaphore, int signaler, int waiter) argument
110 radeon_semaphore_free(struct radeon_device *rdev, struct radeon_semaphore **semaphore, struct radeon_fence *fence) argument
[all...]
H A Dradeon_test.c264 struct radeon_semaphore *semaphore = NULL; local
267 r = radeon_semaphore_create(rdev, &semaphore);
269 DRM_ERROR("Failed to create semaphore\n");
278 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore);
285 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore);
297 DRM_ERROR("Fence 1 signaled without waiting for semaphore.\n");
306 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore);
318 DRM_ERROR("Fence 2 signaled without waiting for semaphore.\n");
327 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore);
337 radeon_semaphore_free(rdev, &semaphore, NUL
355 struct radeon_semaphore *semaphore = NULL; local
[all...]
H A Dradeon_ring.c76 r = radeon_semaphore_create(rdev, &ib->semaphore);
110 radeon_semaphore_free(rdev, &ib->semaphore, ib->fence);
158 radeon_semaphore_sync_rings(rdev, ib->semaphore,
163 /* immediately free semaphore when we don't need to sync */
165 radeon_semaphore_free(rdev, &ib->semaphore, NULL);
174 radeon_semaphore_free(rdev, &const_ib->semaphore, NULL);
807 seq_printf(m, "last semaphore signal addr : 0x%016llx\n", ring->last_semaphore_signal_addr);
808 seq_printf(m, "last semaphore wait addr : 0x%016llx\n", ring->last_semaphore_wait_addr);
/freebsd-11.0-release/sys/compat/linuxkpi/common/include/linux/
H A Dsemaphore.h29 * $FreeBSD: releng/11.0/sys/compat/linuxkpi/common/include/linux/semaphore.h 290135 2015-10-29 08:28:39Z hselasky $
42 struct semaphore { struct
52 linux_sema_init(struct semaphore *sem, int val)
60 init_MUTEX(struct semaphore *sem)
H A Dfs.h43 #include <linux/semaphore.h>
/freebsd-11.0-release/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_util.h49 struct semaphore pop;
50 struct semaphore push;
H A Dvchiq_killable.h39 #include <linux/semaphore.h>
43 static inline int __must_check down_interruptible_killable(struct semaphore *sem)
H A Dvchiq_core.h268 struct semaphore *event;
312 struct semaphore remove_event;
313 struct semaphore bulk_remove_event;
342 struct semaphore quota_event;
416 struct semaphore connect;
432 struct semaphore trigger_event;
435 struct semaphore recycle_event;
438 struct semaphore sync_trigger_event;
441 struct semaphore sync_release_event;
487 struct semaphore slot_available_even
[all...]
/freebsd-11.0-release/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dbarrier.h39 #include <semaphore.h>
/freebsd-11.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dvdev_raidz.h30 #include <sys/semaphore.h>
/freebsd-11.0-release/tools/regression/pthread/unwind/
H A Dsem_wait_cancel.cpp6 #include <semaphore.h>
H A Dcond_wait_cancel.cpp6 #include <semaphore.h>
H A Dcond_wait_cancel2.cpp11 #include <semaphore.h>
/freebsd-11.0-release/contrib/gcclibs/libgomp/config/posix/
H A Dsem.h28 /* This is the default POSIX 1003.1b implementation of a semaphore
43 #include <semaphore.h>
/freebsd-11.0-release/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.h235 struct semaphore { struct
243 struct semaphore name; \
250 void _sema_init(struct semaphore *s, int value);
251 void _sema_destroy(struct semaphore *s);
252 void down(struct semaphore *s);
253 int down_interruptible(struct semaphore *s);
254 int down_trylock(struct semaphore *s);
255 void up(struct semaphore *s);
H A Dvchi_bsd.c301 struct semaphore *s = arg;
308 _sema_init(struct semaphore *s, int value)
318 _sema_destroy(struct semaphore *s)
325 down(struct semaphore *s)
340 down_interruptible(struct semaphore *s)
369 down_trylock(struct semaphore *s)
391 up(struct semaphore *s)
/freebsd-11.0-release/contrib/netbsd-tests/fs/ffs/
H A Dh_ffs_server.c10 #include <semaphore.h>
/freebsd-11.0-release/contrib/apr/include/arch/unix/
H A Dapr_arch_proc_mutex.h66 #include <semaphore.h>
/freebsd-11.0-release/sys/contrib/vchiq/interface/vchi/message_drivers/
H A Dmessage.h80 struct semaphore sem;
101 struct semaphore *blocking;
/freebsd-11.0-release/contrib/netbsd-tests/lib/librt/
H A Dt_sem.c67 #include <semaphore.h>
145 printf("PID %d waiting for semaphore...\n",
149 printf("PID %d got semaphore\n", getpid());
/freebsd-11.0-release/contrib/ntp/include/
H A Dntp_worker.h13 # include <semaphore.h>
85 * hold the 'accesslock' semaphore to avoid data races.
87 * The resource management (thread/semaphore
114 /* some systems use a pipe for notification, others a semaphore.
/freebsd-11.0-release/contrib/netbsd-tests/fs/nfs/nfsservice/
H A Drumpnfsd.c34 #include <semaphore.h>
/freebsd-11.0-release/tools/regression/posixsem2/
H A Dsemtest.c6 #include <semaphore.h>
27 printf("testing unnamed process-shared semaphore\n");
61 printf("testing named process-shared semaphore\n");
71 "two sem_open calls for same semaphore do not return same address");
103 printf("testing named process-shared semaphore, O_EXCL cases\n");
119 "two sem_open calls for same semaphore do not return same address");
/freebsd-11.0-release/contrib/netbsd-tests/lib/libpthread/
H A Dt_sem.c94 #include <semaphore.h>
152 printf("Thread %p waiting for semaphore...\n", self);
154 printf("Thread %p got semaphore\n", self);
/freebsd-11.0-release/contrib/netbsd-tests/fs/common/
H A Dfstest_lfs.c37 #include <semaphore.h>

Completed in 122 milliseconds

123