/freebsd/sys/kern/ |
H A D | kern_sema.c | 47 sema_init(struct sema *sema, int value, const char *description) in sema_init() argument 52 bzero(sema, sizeof(*sema)); in sema_init() 53 mtx_init(&sema->sema_mtx, description, "sema backing lock", in sema_init() 55 cv_init(&sema->sema_cv, description); in sema_init() 56 sema->sema_value = value; in sema_init() 58 CTR4(KTR_LOCK, "%s(%p, %d, \"%s\")", __func__, sema, value, description); in sema_init() 62 sema_destroy(struct sema *sema) in sema_destroy() argument 65 CTR3(KTR_LOCK, "%s(%p) \"%s\"", __func__, sema, in sema_destroy() 66 cv_wmesg(&sema->sema_cv)); in sema_destroy() 68 KASSERT((sema->sema_waiters == 0), ("%s(): waiters\n", __func__)); in sema_destroy() [all …]
|
H A D | sysv_sem.c | 116 static struct semid_kernel *sema; /* semaphore id pool */ variable 228 SYSCTL_PROC(_kern_ipc, OID_AUTO, sema, 280 sema = malloc(sizeof(struct semid_kernel) * seminfo.semmni, M_SEM, in seminit() 288 sema[i].u.__sem_base = 0; in seminit() 289 sema[i].u.sem_perm.mode = 0; in seminit() 290 sema[i].u.sem_perm.seq = 0; in seminit() 292 mac_sysvsem_init(&sema[i]); in seminit() 361 mac_sysvsem_destroy(&sema[i]); in semunload() 364 free(sema, M_SEM); in semunload() 560 semakptr = &sema[semidx]; in sem_remove() [all …]
|
/freebsd/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 *sema, int timo, const char *file, int 52 int _sema_trywait(struct sema *sema, const char *file, int line); 53 int sema_value(struct sema *sema); 55 #define sema_post(sema) _sema_post((sema), LOCK_FILE, LOCK_LINE) argument 56 #define sema_wait(sema) _sema_wait((sema), LOCK_FILE, LOCK_LINE) argument [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | semaphore.h | 42 struct sema sema; member 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)); in linux_sema_init() 55 sema_init(&sem->sema, val, "lnxsema"); in linux_sema_init() 62 memset(&sem->sema, 0, sizeof(sem->sema)); in init_MUTEX() 63 sema_init(&sem->sema, 1, "lnxsema"); in init_MUTEX()
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_misc.c | 133 os_create_semaphore(const char *name, int value, struct sema *sema) in os_create_semaphore() argument 135 sema_init(sema, value, name); in os_create_semaphore() 143 os_destroy_semaphore(struct sema *sema) in os_destroy_semaphore() argument 145 sema_destroy(sema); in os_destroy_semaphore() 153 os_sema_lock(struct sema *sema) in os_sema_lock() argument 155 sema_post(sema); in os_sema_lock() 162 os_sema_unlock(struct sema *sema) in os_sema_unlock() argument 164 sema_wait(sema); in os_sema_unlock()
|
H A D | smartpqi_prototypes.h | 285 int os_create_semaphore(const char *, int,struct sema *); 286 int os_destroy_semaphore(struct sema *); 287 void os_sema_lock(struct sema *); 288 void os_sema_unlock(struct sema *);
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | CxxModuleHandler.cpp | 54 static void makeScopes(Sema &sema, DeclContext *ctxt, in makeScopes() argument 60 makeScopes(sema, parent, result); in makeScopes() 63 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics()); in makeScopes() 67 result.push_back(sema.TUScope); in makeScopes() 72 emulateLookupInCtxt(Sema &sema, llvm::StringRef name, DeclContext *ctxt) { in emulateLookupInCtxt() argument 73 IdentifierInfo &ident = sema.getASTContext().Idents.get(name); in emulateLookupInCtxt() 76 lookup_result = std::make_unique<LookupResult>(sema, DeclarationName(&ident), in emulateLookupInCtxt() 84 makeScopes(sema, ctxt, scopes); in emulateLookupInCtxt() 87 sema.LookupName(*lookup_result, scopes.back()); in emulateLookupInCtxt() 125 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) { in getEqualLocalDeclContext() argument [all …]
|
/freebsd/sys/dev/qat/qat_api/qat_utils/src/ |
H A D | QatUtilsSemaphore.c | 17 qatUtilsSemaphoreInit(struct sema **pSid, uint32_t start_value) in qatUtilsSemaphoreInit() 22 *pSid = malloc(sizeof(struct sema), M_QAT, M_WAITOK); in qatUtilsSemaphoreInit() 42 qatUtilsSemaphoreWait(struct sema **pSid, int32_t timeout) in qatUtilsSemaphoreWait() 81 qatUtilsSemaphoreTryWait(struct sema **pSid) in qatUtilsSemaphoreTryWait() 98 qatUtilsSemaphorePost(struct sema **pSid) in qatUtilsSemaphorePost() 107 qatUtilsSemaphoreDestroy(struct sema **pSid) in qatUtilsSemaphoreDestroy()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | AbstractBasicWriter.h | 165 void writeFixedPointSemantics(const llvm::FixedPointSemantics &sema) { in writeFixedPointSemantics() argument 166 asImpl().writeUInt32(sema.getWidth()); in writeFixedPointSemantics() 167 asImpl().writeUInt32(sema.getScale()); in writeFixedPointSemantics() 168 asImpl().writeUInt32(sema.isSigned() | sema.isSaturated() << 1 | in writeFixedPointSemantics() 169 sema.hasUnsignedPadding() << 2); in writeFixedPointSemantics()
|
/freebsd/sys/dev/qat/qat_api/qat_utils/include/ |
H A D | qat_utils.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/usr.bin/ipcs/ |
H A D | ipc.c | 51 struct semid_kernel *sema; variable 166 tsiz = sizeof(sema); in kget() 168 &sema, tsiz); in kget() 169 kaddr = (u_long)sema; in kget()
|
H A D | ipc.h | 66 extern struct semid_kernel *sema;
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | sema.h | 31 #include_next <sys/sema.h> 33 typedef struct sema ksema_t;
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaLambda.h | 22 namespace sema { 35 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
|
H A D | SemaRISCV.h | 50 std::unique_ptr<sema::RISCVIntrinsicManager> IntrinsicManager; 53 std::unique_ptr<sema::RISCVIntrinsicManager>
|
H A D | AnalysisBasedWarnings.h | 26 namespace sema { 30 namespace sema {
|
H A D | Sema.h | 232 namespace sema { 721 sema::LambdaScopeInfo *PushLambdaScope(); 739 void operator()(sema::FunctionScopeInfo *Scope) const; 743 std::unique_ptr<sema::FunctionScopeInfo, PoppedFunctionScopeDeleter>; 754 PopFunctionScopeInfo(const sema::AnalysisBasedWarnings::Policy *WP = nullptr, 758 sema::FunctionScopeInfo *getEnclosingFunction() const; 773 sema::BlockScopeInfo *getCurBlock(); 778 sema::LambdaScopeInfo *getEnclosingLambda() const; 784 sema::LambdaScopeInfo * 788 sema::LambdaScopeInfo *getCurGenericLambda(); [all …]
|
H A D | RISCVIntrinsicManager.h | 24 namespace sema {
|
/freebsd/contrib/llvm-project/clang/include/clang/Parse/ |
H A D | RAIIObjectsForParser.h | 46 sema::DelayedDiagnosticPool DiagnosticPool; 92 sema::DelayedDiagnosticPool DiagnosticPool; 108 const sema::DelayedDiagnosticPool *parentPool) in ParsingDeclRAIIObject() 130 sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() { in getDelayedDiagnosticPool() 133 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const { in getDelayedDiagnosticPool() 186 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const { in getDelayedDiagnosticPool()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | CoroutineStmtBuilder.h | 27 sema::FunctionScopeInfo &Fn; 37 CoroutineStmtBuilder(Sema &S, FunctionDecl &FD, sema::FunctionScopeInfo &Fn,
|
H A D | AnalysisBasedWarnings.cpp | 669 sema::FunctionScopeInfo *FSI) { in CheckFallThroughForBody() 1374 const sema::FunctionScopeInfo *CurFn, in diagnoseRepeatedUseOfWeak() 1377 typedef sema::FunctionScopeInfo::WeakObjectProfileTy WeakObjectProfileTy; in diagnoseRepeatedUseOfWeak() 1378 typedef sema::FunctionScopeInfo::WeakObjectUseMap WeakObjectUseMap; in diagnoseRepeatedUseOfWeak() 1379 typedef sema::FunctionScopeInfo::WeakUseVector WeakUseVector; in diagnoseRepeatedUseOfWeak() 1459 if (isa<sema::BlockScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak() 1461 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak() 2405 sema::AnalysisBasedWarnings::Policy::Policy() { in Policy() 2423 class sema::AnalysisBasedWarnings::InterProceduralData { 2434 sema::AnalysisBasedWarnings::AnalysisBasedWarnings(Sema &s) in AnalysisBasedWarnings() [all …]
|
H A D | CheckExprLifetime.h | 19 namespace clang::sema {
|
/freebsd/sys/dev/mana/ |
H A D | hw_channel.h | 208 struct sema sema; member
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | Internals.h | 157 MigrationPass(ASTContext &Ctx, LangOptions::GCMode OrigGCMode, Sema &sema, in MigrationPass() argument 160 : Ctx(Ctx), OrigGCMode(OrigGCMode), SemaRef(sema), TA(TA), in MigrationPass()
|
/freebsd/contrib/llvm-project/libcxx/modules/std/ |
H A D | semaphore.cppm |
|