/freebsd-13-stable/sys/sys/ |
H A D | sema.h | 40 struct sema { struct 48 void sema_init(struct sema *sema, int value, const char *description); 49 void sema_destroy(struct sema *sema); 50 void _sema_post(struct sema *sema, const char *file, int line); 51 void _sema_wait(struct sema *sema, const char *file, int line); 52 int _sema_timedwait(struct sema *sem [all...] |
/freebsd-13-stable/sys/kern/ |
H A D | kern_sema.c | 47 #include <sys/sema.h> 50 sema_init(struct sema *sema, int value, const char *description) argument 55 bzero(sema, sizeof(*sema)); 56 mtx_init(&sema->sema_mtx, description, "sema backing lock", 58 cv_init(&sema->sema_cv, description); 59 sema->sema_value = value; 61 CTR4(KTR_LOCK, "%s(%p, %d, \"%s\")", __func__, sema, valu 65 sema_destroy(struct sema *sema) argument 78 _sema_post(struct sema *sema, const char *file, int line) argument 93 _sema_wait(struct sema *sema, const char *file, int line) argument 111 _sema_timedwait(struct sema *sema, int timo, const char *file, int line) argument 145 _sema_trywait(struct sema *sema, const char *file, int line) argument 170 sema_value(struct sema *sema) argument [all...] |
H A D | sysv_sem.c | 119 static struct semid_kernel *sema; /* semaphore id pool */ variable in typeref:struct:semid_kernel 231 SYSCTL_PROC(_kern_ipc, OID_AUTO, sema, 283 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); 563 semakptr = &sema[semid [all...] |
/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | semaphore.h | 36 #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-13-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | sema.h | 33 #include_next <sys/sema.h> 35 typedef struct sema ksema_t;
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaLambda.h | 21 namespace sema { namespace in namespace:clang 34 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
|
H A D | AnalysisBasedWarnings.h | 26 namespace sema { namespace in namespace:clang 30 namespace sema { namespace in namespace:clang 100 }} // end namespace clang::sema
|
H A D | DelayedDiagnostic.h | 46 namespace sema { namespace in namespace:clang 330 inline void Sema::DelayedDiagnostics::add(const sema::DelayedDiagnostic &diag) {
|
/freebsd-13-stable/sys/dev/smartpqi/ |
H A D | smartpqi_misc.c | 133 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 D | smartpqi_prototypes.h | 259 int os_create_semaphore(const char *, int,struct sema *); 260 int os_destroy_semaphore(struct sema *); 261 void os_sema_lock(struct sema *); 262 void os_sema_unlock(struct sema *);
|
H A D | smartpqi_includes.h | 47 #include <sys/sema.h>
|
/freebsd-13-stable/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 | DelayedDiagnostic.cpp | 21 using namespace sema;
|
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | CxxModuleHandler.cpp | 43 /// \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 = std::make_unique<LookupResult>(sema, DeclarationNam 118 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) argument [all...] |
/freebsd-13-stable/usr.bin/ipcs/ |
H A D | ipc.h | 68 extern struct semid_kernel *sema;
|
H A D | ipc.c | 54 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-13-stable/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) 130 sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() { 133 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const { 186 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const {
|
/freebsd-13-stable/sys/dev/vmware/vmci/ |
H A D | vmci_kernel_if.h | 18 #include <sys/sema.h> 55 typedef struct sema vmci_event;
|
/freebsd-13-stable/sys/dev/ata/chipsets/ |
H A D | ata-cenatek.c | 42 #include <sys/sema.h>
|
H A D | ata-micron.c | 42 #include <sys/sema.h>
|
H A D | ata-cypress.c | 42 #include <sys/sema.h>
|
H A D | ata-netcell.c | 42 #include <sys/sema.h>
|
H A D | ata-cyrix.c | 42 #include <sys/sema.h>
|
H A D | ata-national.c | 42 #include <sys/sema.h>
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | Internals.h | 158 Sema &sema, TransformActions &TA, 162 SemaRef(sema), TA(TA), CapturedDiags(capturedDiags), 157 MigrationPass(ASTContext &Ctx, LangOptions::GCMode OrigGCMode, Sema &sema, TransformActions &TA, const CapturedDiagList &capturedDiags, std::vector<SourceLocation> &ARCMTMacroLocs) argument
|