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

1234

/freebsd-10-stable/sys/sys/
H A Dsema.h38 struct sema { struct
46 void sema_init(struct sema *sema, int value, const char *description);
47 void sema_destroy(struct sema *sema);
48 void _sema_post(struct sema *sema, const char *file, int line);
49 void _sema_wait(struct sema *sema, const char *file, int line);
50 int _sema_timedwait(struct sema *sem
[all...]
/freebsd-10-stable/sys/kern/
H A Dkern_sema.c45 #include <sys/sema.h>
48 sema_init(struct sema *sema, int value, const char *description) argument
53 bzero(sema, sizeof(*sema));
54 mtx_init(&sema->sema_mtx, description, "sema backing lock",
56 cv_init(&sema->sema_cv, description);
57 sema->sema_value = value;
59 CTR4(KTR_LOCK, "%s(%p, %d, \"%s\")", __func__, sema, valu
63 sema_destroy(struct sema *sema) argument
76 _sema_post(struct sema *sema, const char *file, int line) argument
91 _sema_wait(struct sema *sema, const char *file, int line) argument
109 _sema_timedwait(struct sema *sema, int timo, const char *file, int line) argument
143 _sema_trywait(struct sema *sema, const char *file, int line) argument
168 sema_value(struct sema *sema) argument
[all...]
H A Dsysv_sem.c110 static struct semid_kernel *sema; /* semaphore id pool */ variable in typeref:struct:semid_kernel
222 SYSCTL_PROC(_kern_ipc, OID_AUTO, sema,
284 sema = malloc(sizeof(struct semid_kernel) * seminfo.semmni, M_SEM,
291 sema[i].u.sem_base = 0;
292 sema[i].u.sem_perm.mode = 0;
293 sema[i].u.sem_perm.seq = 0;
295 mac_sysvsem_init(&sema[i]);
364 mac_sysvsem_destroy(&sema[i]);
367 free(sema, M_SEM);
564 semakptr = &sema[semid
[all...]
/freebsd-10-stable/sys/ofed/include/linux/
H A Dsemaphore.h34 #include <sys/sema.h>
41 struct sema sema; member in struct:semaphore
44 #define down(_sem) sema_wait(&(_sem)->sema)
45 #define down_interruptible(_sem) sema_wait(&(_sem)->sema), 0
46 #define down_trylock(_sem) !sema_trywait(&(_sem)->sema)
47 #define up(_sem) sema_post(&(_sem)->sema)
53 memset(&sem->sema, 0, sizeof(sem->sema));
54 sema_init(&sem->sema, va
[all...]
/freebsd-10-stable/sys/cddl/compat/opensolaris/sys/
H A Dsema.h33 #include_next <sys/sema.h>
35 typedef struct sema ksema_t;
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Sema/
H A DSemaLambda.h33 ArrayRef<sema::FunctionScopeInfo*> FunctionScopes,
H A DAnalysisBasedWarnings.h27 namespace sema { namespace in namespace:clang
31 namespace sema { namespace in namespace:clang
101 }} // end namespace clang::sema
H A DDelayedDiagnostic.h28 namespace sema { namespace in namespace:clang
276 inline void Sema::DelayedDiagnostics::add(const sema::DelayedDiagnostic &diag) {
/freebsd-10-stable/contrib/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;
/freebsd-10-stable/usr.bin/ipcs/
H A Dipc.h66 extern struct semid_kernel *sema;
H A Dipc.c51 struct semid_kernel *sema; variable in typeref:struct:semid_kernel
60 {"sema"},
134 "kern.ipc.sema",
167 tsiz = sizeof(sema);
169 &sema, tsiz);
170 kaddr = (u_long)sema;
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Sema/
H A DDelayedDiagnostic.cpp20 using namespace sema;
H A DSemaStmtAttr.cpp25 using namespace sema;
H A DAnalysisBasedWarnings.cpp982 sema::FunctionScopeInfo::WeakObjectUseMap::const_iterator>
1026 const sema::FunctionScopeInfo *CurFn,
1029 typedef sema::FunctionScopeInfo::WeakObjectProfileTy WeakObjectProfileTy;
1030 typedef sema::FunctionScopeInfo::WeakObjectUseMap WeakObjectUseMap;
1031 typedef sema::FunctionScopeInfo::WeakUseVector WeakUseVector;
1105 if (isa<sema::BlockScopeInfo>(CurFn))
1107 else if (isa<sema::LambdaScopeInfo>(CurFn))
1550 clang::sema::AnalysisBasedWarnings::Policy::Policy() {
1557 clang::sema::AnalysisBasedWarnings::AnalysisBasedWarnings(Sema &s)
1580 static void flushDiagnostics(Sema &S, sema
[all...]
/freebsd-10-stable/contrib/gcc/
H A Dgthr-win32.h345 void *sema; member in struct:__anon1163
352 void *sema; member in struct:__anon1164
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;
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Parse/
H A DRAIIObjectsForParser.h46 sema::DelayedDiagnosticPool DiagnosticPool;
86 sema::DelayedDiagnosticPool DiagnosticPool;
102 const sema::DelayedDiagnosticPool *parentPool)
124 sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() {
127 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const {
180 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const {
/freebsd-10-stable/sys/dev/ata/chipsets/
H A Data-cenatek.c40 #include <sys/sema.h>
H A Data-micron.c40 #include <sys/sema.h>
H A Data-cypress.c40 #include <sys/sema.h>
H A Data-netcell.c40 #include <sys/sema.h>
H A Data-cyrix.c40 #include <sys/sema.h>
H A Data-national.c40 #include <sys/sema.h>
/freebsd-10-stable/sys/mips/rmi/
H A Dxlr_pcmcia.c44 #include <sys/sema.h>
/freebsd-10-stable/sys/mips/sibyte/
H A Data_zbbus.c35 #include <sys/sema.h>
/freebsd-10-stable/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DInternals.h154 Sema &sema, TransformActions &TA,
158 SemaRef(sema), TA(TA), CapturedDiags(capturedDiags),
153 MigrationPass(ASTContext &Ctx, LangOptions::GCMode OrigGCMode, Sema &sema, TransformActions &TA, const CapturedDiagList &capturedDiags, std::vector<SourceLocation> &ARCMTMacroLocs) argument

Completed in 128 milliseconds

1234