/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/ |
nouveau_nvkm_core_event.c | 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 #include <core/event.h> 31 nvkm_event_put(struct nvkm_event *event, u32 types, int index) 33 assert_spin_locked(&event->refs_lock); 36 if (--event->refs[index * event->types_nr + type] == 0) { 37 if (event->func->fini) 38 event->func->fini(event, 1 << type, index); 44 nvkm_event_get(struct nvkm_event *event, u32 types, int index [all...] |
nouveau_nvkm_core_notify.c | 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 30 #include <core/event.h> 36 nvkm_event_put(notify->event, notify->types, notify->index); 42 struct nvkm_event *event = notify->event; local in function:nvkm_notify_put 44 if (likely(event) && 46 spin_lock_irqsave(&event->refs_lock, flags); 48 spin_unlock_irqrestore(&event->refs_lock, flags); 58 nvkm_event_get(notify->event, notify->types, notify->index); 64 struct nvkm_event *event = notify->event local in function:nvkm_notify_get 77 struct nvkm_event *event = notify->event; local in function:nvkm_notify_func 98 struct nvkm_event *event = notify->event; local in function:nvkm_notify_send [all...] |
/src/sbin/devpubd/hooks/ |
01-makedev | 8 event="$1" 11 case $event in
|
/src/tests/kernel/kqueue/ |
t_oneshot.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 33 #include <sys/event.h> 53 struct kevent event[1]; local in function:ATF_TC_BODY 58 EV_SET(&event[0], 1, EVFILT_TIMER, EV_ADD | EV_ONESHOT, 0, 1, MY_UDATA); 60 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0); 61 memset(event, 0, sizeof(event)); 62 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, NULL) == 1); 63 ATF_REQUIRE(event[0].ident == 1); 64 ATF_REQUIRE(event[0].data == 1) [all...] |
t_proc1.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 43 #include <sys/event.h> 100 struct kevent event[1]; local in function:ATF_TC_BODY 116 event[0].ident = (uintptr_t)pid; 117 event[0].filter = EVFILT_PROC; 118 event[0].flags = EV_ADD | EV_ENABLE; 119 event[0].fflags = NOTE_EXIT | NOTE_FORK | NOTE_EXEC; /* | NOTE_TRACK;*/ 122 RL(kevent(kq, event, 1, NULL, 0, NULL)); 126 RL(kevent(kq, NULL, 0, event, 1, NULL)); 127 printf("%ld:", (long)event[0].ident) [all...] |
t_proc4.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 32 #include <sys/event.h> 87 struct kevent event; local in function:ATF_TC_BODY 93 EV_SET(&event, getpid(), EVFILT_PROC, EV_ADD, 96 ATF_REQUIRE(kevent(kq, &event, 1, NULL, 0, NULL) == 0); 112 memset(&event, 0, sizeof(event)); 113 rv = kevent(kq, NULL, 0, &event, 1, NULL); 116 if (event.fflags & NOTE_CHILD) { 119 } else if (event.fflags & NOTE_EXIT) [all...] |
t_timer.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 33 #include <sys/event.h> 88 struct kevent event[2]; local in function:ATF_TC_BODY 95 EV_SET(&event[0], 1, EVFILT_TIMER, EV_ADD, 0, TIME1, NULL); 96 EV_SET(&event[1], 2, EVFILT_TIMER, EV_ADD | EV_ONESHOT, 0, TIME2, NULL); 98 ATF_REQUIRE(kevent(kq, event, 2, NULL, 0, NULL) == 0); 102 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, NULL) == 1); 103 ATF_REQUIRE(event[0].filter == EVFILT_TIMER); 104 ATF_REQUIRE(event[0].ident == 1 || 105 event[0].ident == 2) 165 struct kevent event[1]; local in function:ATF_TC_BODY 195 struct kevent event[1]; local in function:ATF_TC_BODY 277 struct kevent event[1]; local in function:ATF_TC_BODY 312 struct kevent event[1]; local in function:do_test_timer_units [all...] |
t_empty.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 32 #include <sys/event.h> 53 struct kevent event; local in function:test_empty 60 EV_SET(&event, writefd, EVFILT_EMPTY, EV_ADD, 0, 0, NULL); 61 ATF_REQUIRE(kevent(kq, &event, 1, NULL, 0, NULL) == 0); 64 memset(&event, 0, sizeof(event)); 65 ATF_REQUIRE(kevent(kq, NULL, 0, &event, 1, &ts) == 1); 66 ATF_REQUIRE(event.ident == (uintptr_t)writefd); 67 ATF_REQUIRE(event.filter == EVFILT_EMPTY) [all...] |
/src/sys/external/isc/libsodium/dist/test/default/ |
pre.js.inc | 16 var event = new Event('test-output'); 17 event.data = x; 18 window.dispatchEvent(event);
|
/src/tests/kernel/kqueue/read/ |
t_pipe.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 53 struct kevent event[1]; local in function:ATF_TC_BODY 61 EV_SET(&event[0], fds[0], EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 62 RL(kevent(kq, event, 1, NULL, 0, NULL)); 68 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 70 "%" PRId64 "\n", n, event[0].flags, event[0].fflags, event[0].data); 72 RL(n = read(fds[0], buffer, event[0].data)) [all...] |
t_fifo.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 76 struct kevent event[1]; local in function:ATF_TC_BODY 95 EV_SET(&event[0], rfd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 96 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0); 99 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0); 105 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 1); 106 ATF_REQUIRE(event[0].ident == (uintptr_t)rfd); 107 ATF_REQUIRE(event[0].filter == EVFILT_READ); 108 ATF_REQUIRE((event[0].flags & EV_EOF) == 0) [all...] |
t_ttypty.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 56 struct kevent event[1]; local in function:h_check 101 EV_SET(&event[0], acurrent, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 102 RL(kevent(kq, event, 1, NULL, 0, NULL)); 104 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 107 "data: %" PRId64 "\n", n, event[0].filter, event[0].flags, 108 event[0].fflags, event[0].data) 148 struct kevent event[1]; local in function:ATF_TC_BODY [all...] |
t_file2.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 57 struct kevent event[1]; local in function:ATF_TC_BODY 68 EV_SET(&event[0], fd1, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 69 RL(kevent(kq, event, 1, NULL, 0, NULL));
|
/src/regress/sys/kern/kqueue/vnode/ |
vnode.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 33 #include <sys/event.h> 49 struct kevent event[2]; local in function:main 75 EV_SET(&event[i], fd, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR, 81 EV_SET(&event[i], fd, EVFILT_READ, EV_ADD | EV_ENABLE, 0, NULL, NULL); 86 n = kevent(kq, event, i, NULL, 0, NULL); 97 n = kevent(kq, NULL, 0, event, 1, &timeout); 112 event[0].filter, event[0].flags, event[0].fflags) [all...] |
/src/tests/kernel/kqueue/write/ |
t_pipe.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 58 struct kevent event[1]; local in function:ATF_TC_BODY 66 EV_SET(&event[0], fds[1], EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0); 67 ATF_REQUIRE_EQ_MSG((n = kevent(kq, event, 1, NULL, 0, NULL)), 81 struct kevent event[1]; local in function:ATF_TC_BODY 91 EV_SET(&event[0], fds[1], EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0); 92 RL(kevent(kq, event, 1, NULL, 0, NULL)); 103 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 106 "%" PRId64 "\n", n, event[0].flags, event[0].fflags, event[0].data) 123 struct kevent event[1]; local in function:ATF_TC_BODY [all...] |
t_ttypty.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 57 struct kevent event[1]; local in function:h_check 86 EV_SET(&event[0], acurrent, EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0); 87 RL(kevent(kq, event, 1, NULL, 0, NULL)); 89 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 92 "%" PRId64 "\n", n, event[0].filter, event[0].flags, event[0].fflags, 93 event[0].data) [all...] |
t_fifo.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 76 struct kevent event[1]; local in function:ATF_TC_BODY 95 EV_SET(&event[0], wfd, EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0); 96 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0); 99 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 1); 100 ATF_REQUIRE(event[0].ident == (uintptr_t)wfd); 101 ATF_REQUIRE(event[0].filter == EVFILT_WRITE); 114 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0); 124 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0) [all...] |
/src/sys/dev/qbus/ |
qduser.h | 21 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 161 * EVENT QUEUE DEFINITIONS 164 * most of the event queue definitions are found in "qevent.h". But a 167 /* The event queue header */ 171 struct _vs_eventqueue header; /* event queue ring handling */ 198 * These are the macros to be used for loading and extracting from the event 200 * if the event queue is non-empty ( ISEMPTY(eq) == FALSE ), and that the 201 * driver will only load the event queue after checking that it is not full 202 * ( ISFULL(eq) == FALSE ). ("eq" is a pointer to the event queue header.) 204 * Before an event access session for a particular event, the macro user [all...] |
/src/sys/arch/vax/include/ |
qduser.h | 21 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 94 #include "../include/qevent.h" /* include event struct defs */ 168 * EVENT QUEUE DEFINITIONS 171 * most of the event queue definitions are found in "qevent.h". But a 174 /* The event queue header */ 178 struct _vs_eventqueue header; /* event queue ring handling */ 205 * These are the macros to be used for loading and extracting from the event 207 * if the event queue is non-empty ( ISEMPTY(eq) == FALSE ), and that the 208 * driver will only load the event queue after checking that it is not full 209 * ( ISFULL(eq) == FALSE ). ("eq" is a pointer to the event queue header. [all...] |
/src/sys/arch/dreamcast/dreamcast/ |
sysasic.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 64 /* per-event */ 96 sysasic_intr_establish(int event, int ipl, int irl, int (*ih_fun)(void *), 109 KDASSERT(event >= 0 && event <= SYSASIC_EVENT_MAX); 144 /* check if the event handler is already installed */ 146 if ((sysasic_intrhand[i].syh_hndmap[SYSASIC_EVENT_INTR_MAP(event)] & 147 SYSASIC_EVENT_INTR_BIT(event)) != 0) 148 panic("sysasic_intr_establish: event %d already installed irq %d", 149 event, SYSASIC_IRQ_INDEX_TO_IRQ(i)) 173 int event; local in function:sysasic_intr_disestablish 208 int event; local in function:sysasic_intr_enable [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
amdgpu_pmu.c | 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 51 static int amdgpu_perf_event_init(struct perf_event *event) 53 struct hw_perf_event *hwc = &event->hw; 55 /* test the event attr type check for PMU enumeration */ 56 if (event->attr.type != event->pmu->type) 60 hwc->config = event->attr.config; 66 static void amdgpu_perf_start(struct perf_event *event, int flags) 68 struct hw_perf_event *hwc = &event->hw; 69 struct amdgpu_pmu_entry *pe = container_of(event->pmu [all...] |
/src/sys/sys/ |
selinfo.h | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 51 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 67 #include <sys/event.h> /* for struct klist */
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/ |
tsan_test_util_posix.cc | 192 struct Event { 219 Event(Type type, const void *ptr = 0, uptr arg = 0, uptr arg2 = 0) 239 atomic_uintptr_t event; // Event* member in struct:ScopedThread::Impl 242 void send(Event *ev); 243 void HandleEvent(Event *ev); 246 void ScopedThread::Impl::HandleEvent(Event *ev) { 252 case Event::READ: 253 case Event::WRITE: { 255 if (ev->type == Event::READ) 380 Event event(Event::SHUTDOWN); local in function:ScopedThread::~ScopedThread 397 Event event(is_write ? Event::WRITE : Event::READ, addr, size); local in function:ScopedThread::Access 406 Event event(Event::VPTR_UPDATE, vptr.loc(), (uptr)new_val.loc()); local in function:ScopedThread::VptrUpdate 413 Event event(Event::CALL, (void*)((uintptr_t)pc)); local in function:ScopedThread::Call 418 Event event(Event::RETURN); local in function:ScopedThread::Return 423 Event event(Event::MUTEX_CREATE, &m); local in function:ScopedThread::Create 428 Event event(Event::MUTEX_DESTROY, &m); local in function:ScopedThread::Destroy 433 Event event(Event::MUTEX_LOCK, &m); local in function:ScopedThread::Lock 438 Event event(Event::MUTEX_TRYLOCK, &m); local in function:ScopedThread::TryLock 444 Event event(Event::MUTEX_UNLOCK, &m); local in function:ScopedThread::Unlock 449 Event event(Event::MUTEX_READLOCK, &m); local in function:ScopedThread::ReadLock 454 Event event(Event::MUTEX_TRYREADLOCK, &m); local in function:ScopedThread::TryReadLock 460 Event event(Event::MUTEX_READUNLOCK, &m); local in function:ScopedThread::ReadUnlock 466 Event event(Event::MEMCPY, dst, (uptr)src, size); local in function:ScopedThread::Memcpy 474 Event event(Event::MEMSET, dst, val, size); local in function:ScopedThread::Memset [all...] |
/src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
exynos4412-ppmu-common.dtsi | 14 event-name = "ppmu-event3-dmc0"; 24 event-name = "ppmu-event3-dmc1"; 34 event-name = "ppmu-event3-leftbus"; 44 event-name = "ppmu-event3-rightbus";
|
/src/sys/dev/raidframe/ |
rf_revent.c | 29 * revent.c -- reconstruction event handling code 77 /* returns the next reconstruction event, blocking the calling thread 79 * or will return an event if it is not */ 86 RF_ReconEvent_t *event; local in function:rf_GetNextReconEvent 155 event = rctrl->eventQueue; 156 rctrl->eventQueue = event->next; 157 event->next = NULL; 163 return (event); 165 /* enqueues a reconstruction event on the indicated queue */ 171 RF_ReconEvent_t *event = GetReconEventDesc(raidPtr, col, arg, type) local in function:rf_CauseReconEvent 210 RF_ReconEvent_t *event; local in function:rf_DrainReconEventQueue [all...] |