Searched refs:sema (Results 1 - 19 of 19) sorted by relevance

/netbsd-6-1-5-RELEASE/external/cddl/osnet/sys/sys/
H A Dsema.h28 * $FreeBSD: src/sys/cddl/compat/opensolaris/sys/sema.h,v 1.1.4.1 2009/08/03 08:13:06 kensmith Exp $
35 #include_next <sys/sema.h>
37 typedef struct sema ksema_t;
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/config/i386/
H A Dgthr-win32.c150 mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
156 CloseHandle ((HANDLE) mutex->sema);
163 WaitForSingleObject (mutex->sema, INFINITE) == WAIT_OBJECT_0)
187 return ReleaseSemaphore (mutex->sema, 1, NULL) ? 0 : 1;
198 mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
215 else if (WaitForSingleObject (mutex->sema, INFINITE) == WAIT_OBJECT_0)
256 return ReleaseSemaphore (mutex->sema, 1, NULL) ? 0 : 1;
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/config/i386/
H A Dgthr-win32.c150 mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
157 WaitForSingleObject (mutex->sema, INFINITE) == WAIT_OBJECT_0)
181 return ReleaseSemaphore (mutex->sema, 1, NULL) ? 0 : 1;
192 mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
209 else if (WaitForSingleObject (mutex->sema, INFINITE) == WAIT_OBJECT_0)
250 return ReleaseSemaphore (mutex->sema, 1, NULL) ? 0 : 1;
/netbsd-6-1-5-RELEASE/sys/kern/
H A Dsysv_sem.c62 struct semid_ds * sema __read_mostly;
113 sema = (void *)v;
114 sem = (void *)((uintptr_t)sema +
122 sema[i]._sem_base = 0;
123 sema[i].sem_perm.mode = 0;
175 old_sema = sema;
180 if (sema[i].sem_perm.mode & SEM_ALLOC)
224 if ((sema[i].sem_perm.mode & SEM_ALLOC) == 0)
226 memcpy(&new_sema[i], &sema[i], sizeof(struct semid_ds));
228 memcpy(new_sema[i]._sem_base, sema[
[all...]
H A Dsysv_ipc.c240 SYSCTL_FILL_SEM(sema[i], semsi->semids[i]);
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/
H A Dgthr-win32.h352 void *sema; member in struct:__anon4654
359 void *sema; member in struct:__anon4655
631 __mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
637 CloseHandle ((HANDLE) __mutex->sema);
648 WaitForSingleObject (__mutex->sema, INFINITE) == WAIT_OBJECT_0)
682 return ReleaseSemaphore (__mutex->sema, 1, NULL) ? 0 : 1;
693 __mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
712 else if (WaitForSingleObject (__mutex->sema, INFINITE) == WAIT_OBJECT_0)
758 return ReleaseSemaphore (__mutex->sema, 1, NULL) ? 0 : 1;
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/
H A Dgthr-win32.h345 void *sema; member in struct:__anon3217
352 void *sema; member in struct:__anon3218
614 mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
625 WaitForSingleObject (mutex->sema, INFINITE) == WAIT_OBJECT_0)
659 return ReleaseSemaphore (mutex->sema, 1, NULL) ? 0 : 1;
670 mutex->sema = CreateSemaphore (NULL, 0, 65535, NULL);
689 else if (WaitForSingleObject (mutex->sema, INFINITE) == WAIT_OBJECT_0)
735 return ReleaseSemaphore (mutex->sema, 1, NULL) ? 0 : 1;
/netbsd-6-1-5-RELEASE/sys/dev/sbus/
H A Disp_sbus.c276 uint16_t sema, mbox; local
279 if (ISP_READ_ISR(isp, &isr, &sema, &mbox) == 0) {
285 isp_intr(isp, isr, sema, mbox);
304 uint16_t sema; local
307 sema = BXR2(sbc, IspVirt2Off(isp, BIU_SEMA));
308 isp_prt(isp, ISP_LOGDEBUG3, "ISR 0x%x SEMA 0x%x", isr, sema);
310 sema &= BIU_SEMA_LOCK;
311 if (isr == 0 && sema == 0) {
315 if ((*semap = sema) != 0) {
/netbsd-6-1-5-RELEASE/sys/dev/ic/
H A Duniversereg.h83 u_int32_t mbox[4], sema[2]; member in struct:universereg
H A Disp_netbsd.c752 uint16_t sema, mbox; local
753 if (ISP_READ_ISR(isp, &isr, &sema, &mbox)) {
754 isp_intr(isp, isr, sema, mbox);
833 uint16_t mbox, sema; local
851 if (ISP_READ_ISR(isp, &isr, &sema, &mbox)) {
852 isp_intr(isp, isr, sema, mbox);
1624 uint16_t sema, mbox; local
1628 if (ISP_READ_ISR(isp, &isr, &sema, &mbox)) {
1629 isp_intr(isp, isr, sema, mbox);
H A Disp.c4865 isp_intr(ispsoftc_t *isp, uint32_t isr, uint16_t sema, uint16_t mbox) argument
4877 if (sema) {
4920 isp_prt(isp, ISP_LOGINFO, "interrupt (ISR=%x SEMA=%x) when not ready", isr, sema);
5007 if (optr == iptr && sema == 0) {
5029 sema = ISP_READ(isp, BIU_SEMA);
5031 if ((sema & 0x3) && (mbox & 0x8000)) {
/netbsd-6-1-5-RELEASE/sys/sys/
H A Dsem.h192 extern struct semid_ds *sema; /* semaphore id pool */
/netbsd-6-1-5-RELEASE/sys/dev/pci/
H A Disp_pci.c846 uint16_t isr, sema; local
852 if (isp_pci_rd_debounced(isp, BIU_SEMA, &sema)) {
857 sema = BXR2(pcs, IspVirt2Off(isp, BIU_SEMA));
859 isp_prt(isp, ISP_LOGDEBUG3, "ISR 0x%x SEMA 0x%x", isr, sema);
861 sema &= BIU_SEMA_LOCK;
862 if (isr == 0 && sema == 0) {
866 if ((*semap = sema) != 0) {
1405 uint16_t sema, mbox; local
1409 if (ISP_READ_ISR(isp, &isr, &sema, &mbox) == 0) {
1414 isp_intr(isp, isr, sema, mbo
[all...]
/netbsd-6-1-5-RELEASE/sys/compat/common/
H A Dsysv_ipc_50.c195 SYSCTL_FILL_SEM(sema[i], semsi->semids[i]);
/netbsd-6-1-5-RELEASE/usr.bin/ipcs/
H A Dipcs.c707 struct semid_ds *sema; local
846 if (kvm_read(kd, symbols[X_SEMA].n_value, &sema,
847 sizeof(sema)) != sizeof(sema))
854 if ((size_t)kvm_read(kd, (u_long)sema, xsema,
857 errx(1, "kvm_read (sema): %s",
/netbsd-6-1-5-RELEASE/external/bsd/llvm/include/
H A DMakefile85 clang/Basic/arm_neon.inc|-gen-arm-neon-sema \
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/include/
H A Dam_defs.h1174 * Actions to take if <sys/sema.h> exists.
1177 # include <sys/sema.h>
/netbsd-6-1-5-RELEASE/sys/dist/ipf/netinet/
H A Dip_compat.h562 # include <sys/sema.h>
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/
H A Dconfigure17065 for ac_header in /sys/sync/queue.h /sys/sync/sema.h

Completed in 248 milliseconds