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

12345

/freebsd-current/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-current/sys/kern/
H A Dkern_sema.c44 #include <sys/sema.h>
47 sema_init(struct sema *sema, int value, const char *description) argument
52 bzero(sema, sizeof(*sema));
53 mtx_init(&sema->sema_mtx, description, "sema backing lock",
55 cv_init(&sema->sema_cv, description);
56 sema->sema_value = value;
58 CTR4(KTR_LOCK, "%s(%p, %d, \"%s\")", __func__, sema, valu
62 sema_destroy(struct sema *sema) argument
75 _sema_post(struct sema *sema, const char *file, int line) argument
90 _sema_wait(struct sema *sema, const char *file, int line) argument
108 _sema_timedwait(struct sema *sema, int timo, const char *file, int line) argument
142 _sema_trywait(struct sema *sema, const char *file, int line) argument
167 sema_value(struct sema *sema) argument
[all...]
H A Dsysv_sem.c117 static struct semid_kernel *sema; /* semaphore id pool */ variable in typeref:struct:semid_kernel
229 SYSCTL_PROC(_kern_ipc, OID_AUTO, sema,
281 sema = malloc(sizeof(struct semid_kernel) * seminfo.semmni, M_SEM,
289 sema[i].u.__sem_base = 0;
290 sema[i].u.sem_perm.mode = 0;
291 sema[i].u.sem_perm.seq = 0;
293 mac_sysvsem_init(&sema[i]);
362 mac_sysvsem_destroy(&sema[i]);
365 free(sema, M_SEM);
561 semakptr = &sema[semid
[all...]
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dsemaphore.h34 #include <sys/sema.h>
42 struct sema sema; member in struct:semaphore
45 #define down(_sem) sema_wait(&(_sem)->sema)
46 #define down_interruptible(_sem) sema_wait(&(_sem)->sema), 0
47 #define down_trylock(_sem) !sema_trywait(&(_sem)->sema)
48 #define up(_sem) sema_post(&(_sem)->sema)
54 memset(&sem->sema, 0, sizeof(sem->sema));
55 sema_init(&sem->sema, va
[all...]
/freebsd-current/sys/cddl/compat/opensolaris/sys/
H A Dsema.h31 #include_next <sys/sema.h>
33 typedef struct sema ksema_t;
/freebsd-current/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaLambda.h22 namespace sema { namespace in namespace:clang
35 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
H A DRISCVIntrinsicManager.h24 namespace sema { namespace in namespace:clang
38 } // end namespace sema
H A DAnalysisBasedWarnings.h26 namespace sema { namespace in namespace:clang
30 namespace sema { namespace in namespace:clang
107 } // namespace sema
/freebsd-current/contrib/llvm-project/libcxx/modules/std/
H A Dsemaphore.inc12 // [thread.sema.cnt], class template counting_semaphore
/freebsd-current/sys/dev/qat/qat_api/qat_utils/src/
H A DQatUtilsSemaphore.c7 #include <sys/sema.h>
17 qatUtilsSemaphoreInit(struct sema **pSid, uint32_t start_value)
22 *pSid = malloc(sizeof(struct sema), M_QAT, M_WAITOK);
24 sema_init(*pSid, start_value, "qat sema");
42 qatUtilsSemaphoreWait(struct sema **pSid, int32_t timeout)
81 qatUtilsSemaphoreTryWait(struct sema **pSid)
98 qatUtilsSemaphorePost(struct sema **pSid)
107 qatUtilsSemaphoreDestroy(struct sema **pSid)
/freebsd-current/sys/dev/smartpqi/
H A Dsmartpqi_misc.c133 os_create_semaphore(const char *name, int value, struct sema *sema) argument
135 sema_init(sema, value, name);
143 os_destroy_semaphore(struct sema *sema) argument
145 sema_destroy(sema);
153 os_sema_lock(struct sema *sema) argument
155 sema_post(sema);
162 os_sema_unlock(struct sema *sem argument
[all...]
H A Dsmartpqi_includes.h46 #include <sys/sema.h>
/freebsd-current/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-current/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp50 /// \param sema The sema that will be using the scopes.
53 /// (except the TUScope which is owned by the sema).
54 static void makeScopes(Sema &sema, DeclContext *ctxt, argument
60 makeScopes(sema, parent, result);
63 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics());
67 result.push_back(sema.TUScope);
72 emulateLookupInCtxt(Sema &sema, llvm::StringRef name, DeclContext *ctxt) { argument
73 IdentifierInfo &ident = sema.getASTContext().Idents.get(name);
76 lookup_result = std::make_unique<LookupResult>(sema, DeclarationNam
125 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) argument
[all...]
/freebsd-current/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
59 { .n_name = "sema" },
133 "kern.ipc.sema",
166 tsiz = sizeof(sema);
168 &sema, tsiz);
169 kaddr = (u_long)sema;
/freebsd-current/sys/dev/mana/
H A Dhw_channel.h35 #include <sys/sema.h>
208 struct sema sema; member in struct:hw_channel_context
/freebsd-current/contrib/llvm-project/clang/include/clang/AST/
H A DAbstractBasicWriter.h165 void writeFixedPointSemantics(const llvm::FixedPointSemantics &sema) { argument
166 asImpl().writeUInt32(sema.getWidth());
167 asImpl().writeUInt32(sema.getScale());
168 asImpl().writeUInt32(sema.isSigned() | sema.isSaturated() << 1 |
169 sema.hasUnsignedPadding() << 2);
/freebsd-current/sys/dev/qat/qat_api/qat_utils/include/
H A Dqat_utils.h14 #include <sys/sema.h>
402 CpaStatus qatUtilsSemaphoreInit(struct sema **pSid, uint32_t start_value);
420 CpaStatus qatUtilsSemaphoreDestroy(struct sema **pSid);
440 CpaStatus qatUtilsSemaphoreWait(struct sema **pSid, int32_t timeout);
457 CpaStatus qatUtilsSemaphoreTryWait(struct sema **semaphore);
473 CpaStatus qatUtilsSemaphorePost(struct sema **pSid);
/freebsd-current/sys/dev/vmware/vmci/
H A Dvmci_kernel_if.h16 #include <sys/sema.h>
54 typedef struct sema vmci_event;
/freebsd-current/sys/dev/ata/chipsets/
H A Data-cenatek.c39 #include <sys/sema.h>
H A Data-micron.c39 #include <sys/sema.h>
/freebsd-current/contrib/llvm-project/clang/include/clang/Testing/
H A DTestAST.h84 Sema &sema() { return Clang->getSema(); } function in class:clang::TestAST
/freebsd-current/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 {

Completed in 456 milliseconds

12345