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

12345

/freebsd-11-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-11-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.c111 static struct semid_kernel *sema; /* semaphore id pool */ variable in typeref:struct:semid_kernel
223 SYSCTL_PROC(_kern_ipc, OID_AUTO, sema,
275 sema = malloc(sizeof(struct semid_kernel) * seminfo.semmni, M_SEM,
283 sema[i].u.sem_base = 0;
284 sema[i].u.sem_perm.mode = 0;
285 sema[i].u.sem_perm.seq = 0;
287 mac_sysvsem_init(&sema[i]);
356 mac_sysvsem_destroy(&sema[i]);
359 free(sema, M_SEM);
557 semakptr = &sema[semid
[all...]
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dsemaphore.h36 #include <sys/sema.h>
44 struct sema sema; member in struct:semaphore
47 #define down(_sem) sema_wait(&(_sem)->sema)
48 #define down_interruptible(_sem) sema_wait(&(_sem)->sema), 0
49 #define down_trylock(_sem) !sema_trywait(&(_sem)->sema)
50 #define up(_sem) sema_post(&(_sem)->sema)
56 memset(&sem->sema, 0, sizeof(sem->sema));
57 sema_init(&sem->sema, va
[all...]
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/
H A Dsema.h33 #include_next <sys/sema.h>
35 typedef struct sema ksema_t;
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaLambda.h21 namespace sema { namespace in namespace:clang
34 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
H A DAnalysisBasedWarnings.h26 namespace sema { namespace in namespace:clang
30 namespace sema { namespace in namespace:clang
100 }} // end namespace clang::sema
/freebsd-11-stable/sys/dev/smartpqi/
H A Dsmartpqi_misc.c132 int os_create_semaphore(const char *name, int value, struct sema *sema) argument
134 sema_init(sema, value, name);
142 int os_destroy_semaphore(struct sema *sema) argument
144 sema_destroy(sema);
152 void inline os_sema_lock(struct sema *sema) argument
154 sema_post(sema);
160 void inline os_sema_unlock(struct sema *sem argument
[all...]
H A Dsmartpqi_prototypes.h219 int os_create_semaphore(const char *, int,struct sema *);
220 int os_destroy_semaphore(struct sema *);
221 void os_sema_lock(struct sema *);
222 void os_sema_unlock(struct sema *);
H A Dsmartpqi_includes.h49 #include <sys/sema.h>
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DCoroutineStmtBuilder.h27 sema::FunctionScopeInfo &Fn;
37 CoroutineStmtBuilder(Sema &S, FunctionDecl &FD, sema::FunctionScopeInfo &Fn,
H A DDelayedDiagnostic.cpp21 using namespace sema;
/freebsd-11-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-11-stable/contrib/llvm-project/lldb/source/Symbol/
H A DCxxModuleHandler.cpp43 /// \param sema The sema that will be using the scopes.
46 /// (except the TUScope which is owned by the sema).
47 static void makeScopes(Sema &sema, DeclContext *ctxt, argument
53 makeScopes(sema, parent, result);
56 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics());
60 result.push_back(sema.TUScope);
65 emulateLookupInCtxt(Sema &sema, llvm::StringRef name, DeclContext *ctxt) { argument
66 IdentifierInfo &ident = sema.getASTContext().Idents.get(name);
69 lookup_result.reset(new LookupResult(sema, DeclarationNam
118 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) argument
[all...]
/freebsd-11-stable/usr.bin/ipcs/
H A Dipc.h68 extern struct semid_kernel *sema;
H A Dipc.c54 struct semid_kernel *sema; variable in typeref:struct:semid_kernel
62 { .n_name = "sema" },
136 "kern.ipc.sema",
169 tsiz = sizeof(sema);
171 &sema, tsiz);
172 kaddr = (u_long)sema;
/freebsd-11-stable/contrib/gcc/
H A Dgthr-win32.h345 void *sema; member in struct:__anon1343
352 void *sema; member in struct:__anon1344
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-11-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-11-stable/contrib/llvm-project/clang/include/clang/Parse/
H A DRAIIObjectsForParser.h46 sema::DelayedDiagnosticPool DiagnosticPool;
92 sema::DelayedDiagnosticPool DiagnosticPool;
108 const sema::DelayedDiagnosticPool *parentPool)
130 sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() {
133 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const {
186 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const {
/freebsd-11-stable/sys/mips/rmi/
H A Dxlr_pcmcia.c44 #include <sys/sema.h>

Completed in 205 milliseconds

12345