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

123

/freebsd-10-stable/lib/libkse/test/
H A Dsem_d.exp3 Got semaphore
4 Got semaphore
5 Got semaphore
6 Got semaphore
7 Got semaphore
8 Got semaphore
9 Got semaphore
10 Got semaphore
11 Got semaphore
12 Got semaphore
[all...]
H A Dsem_d.c42 #include <semaphore.h>
53 fprintf(stderr, "Got semaphore\n");
/freebsd-10-stable/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-10-stable/sys/ofed/include/linux/
H A Dsemaphore.h40 struct semaphore { struct
50 linux_sema_init(struct semaphore *sem, int val)
58 init_MUTEX(struct semaphore *sem)
H A Dfs.h41 #include <linux/semaphore.h>
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dvdev_raidz.h30 #include <sys/semaphore.h>
/freebsd-10-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dbarrier.h39 #include <semaphore.h>
/freebsd-10-stable/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-10-stable/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-10-stable/sys/dev/imcsmb/
H A Dimcsmb_var.h66 * the scheduler is stopped, so just use a simple semaphore.
74 volatile int semaphore; member in struct:imcsmb_pci_softc
H A Dimcsmb_pci.c176 sc->semaphore = 0;
264 * Invoked via smbus_callback() -> imcsmb_callback(); clear the semaphore, and
285 atomic_store_rel_int(&sc->semaphore, 0);
289 * Invoked via smbus_callback() -> imcsmb_callback(); set the semaphore, and
307 /* We don't want to block. Use a simple test-and-set semaphore to
310 if (atomic_cmpset_acq_int(&sc->semaphore, 0, 1) == 0) {
/freebsd-10-stable/contrib/apr/include/arch/unix/
H A Dapr_arch_proc_mutex.h66 #include <semaphore.h>
/freebsd-10-stable/contrib/netbsd-tests/fs/ffs/
H A Dh_ffs_server.c10 #include <semaphore.h>
/freebsd-10-stable/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-10-stable/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-10-stable/contrib/netbsd-tests/lib/librt/
H A Dt_sem.c67 #include <semaphore.h>
143 printf("PID %d waiting for semaphore...\n",
147 printf("PID %d got semaphore\n", getpid());
/freebsd-10-stable/contrib/netbsd-tests/fs/nfs/nfsservice/
H A Drumpnfsd.c34 #include <semaphore.h>
/freebsd-10-stable/lib/libkse/thread/
H A Dthr_sem.c38 #include <semaphore.h>
94 * Initialize the semaphore.
/freebsd-10-stable/contrib/netbsd-tests/fs/common/
H A Dfstest_lfs.c37 #include <semaphore.h>
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/
H A Dt_sem.c95 #include <semaphore.h>
149 printf("Thread %p waiting for semaphore...\n", self);
151 printf("Thread %p got semaphore\n", self);
/freebsd-10-stable/sys/dev/hptmv/
H A DmvSata.h259 MV_OS_SEMAPHORE semaphore; member in struct:mvSataChannel
298 MV_OS_SEMAPHORE semaphore; member in struct:mvSataAdapter

Completed in 332 milliseconds

123