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

12345

/freebsd-13-stable/sys/sys/
H A Dsema.h40 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 Dkern_sema.c47 #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 Dsysv_sem.c119 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 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-13-stable/sys/cddl/compat/opensolaris/sys/
H A Dsema.h33 #include_next <sys/sema.h>
35 typedef struct sema ksema_t;
/freebsd-13-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
H A DDelayedDiagnostic.h46 namespace sema { namespace in namespace:clang
330 inline void Sema::DelayedDiagnostics::add(const sema::DelayedDiagnostic &diag) {
/freebsd-13-stable/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_prototypes.h259 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 Dsmartpqi_includes.h47 #include <sys/sema.h>
/freebsd-13-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-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
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 = std::make_unique<LookupResult>(sema, DeclarationNam
118 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) argument
[all...]
/freebsd-13-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-13-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-13-stable/sys/dev/vmware/vmci/
H A Dvmci_kernel_if.h18 #include <sys/sema.h>
55 typedef struct sema vmci_event;
/freebsd-13-stable/sys/dev/ata/chipsets/
H A Data-cenatek.c42 #include <sys/sema.h>
H A Data-micron.c42 #include <sys/sema.h>
H A Data-cypress.c42 #include <sys/sema.h>
H A Data-netcell.c42 #include <sys/sema.h>
H A Data-cyrix.c42 #include <sys/sema.h>
H A Data-national.c42 #include <sys/sema.h>
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DInternals.h158 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

Completed in 310 milliseconds

12345