/freebsd-10-stable/sys/sys/ |
H A D | sema.h | 38 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 D | kern_sema.c | 45 #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 D | sysv_sem.c | 110 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 D | semaphore.h | 34 #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 D | sema.h | 33 #include_next <sys/sema.h> 35 typedef struct sema ksema_t;
|
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Sema/ |
H A D | SemaLambda.h | 33 ArrayRef<sema::FunctionScopeInfo*> FunctionScopes,
|
H A D | AnalysisBasedWarnings.h | 27 namespace sema { namespace in namespace:clang 31 namespace sema { namespace in namespace:clang 101 }} // end namespace clang::sema
|
H A D | DelayedDiagnostic.h | 28 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 D | gthr-win32.c | 150 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 D | ipc.h | 66 extern struct semid_kernel *sema;
|
H A D | ipc.c | 51 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 D | DelayedDiagnostic.cpp | 20 using namespace sema;
|
H A D | SemaStmtAttr.cpp | 25 using namespace sema;
|
H A D | AnalysisBasedWarnings.cpp | 982 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 D | gthr-win32.h | 345 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 D | RAIIObjectsForParser.h | 46 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 D | ata-cenatek.c | 40 #include <sys/sema.h>
|
H A D | ata-micron.c | 40 #include <sys/sema.h>
|
H A D | ata-cypress.c | 40 #include <sys/sema.h>
|
H A D | ata-netcell.c | 40 #include <sys/sema.h>
|
H A D | ata-cyrix.c | 40 #include <sys/sema.h>
|
H A D | ata-national.c | 40 #include <sys/sema.h>
|
/freebsd-10-stable/sys/mips/rmi/ |
H A D | xlr_pcmcia.c | 44 #include <sys/sema.h>
|
/freebsd-10-stable/sys/mips/sibyte/ |
H A D | ata_zbbus.c | 35 #include <sys/sema.h>
|
/freebsd-10-stable/contrib/llvm/tools/clang/lib/ARCMigrate/ |
H A D | Internals.h | 154 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
|