/src/sys/arch/ia64/stand/efi/libefi/ |
delay.c | 38 static EFI_EVENT ev = 0; local in function:delay 41 if (!ev) { 42 if (BS->CreateEvent(EVT_TIMER, TPL_APPLICATION, 0, 0, &ev) 47 BS->SetTimer(ev, TimerRelative, usecs * 10); 48 BS->WaitForEvent(1, &ev, &junk);
|
/src/sys/dev/wscons/ |
wsevent_50.c | 131 const struct wscons_event *ev = &events[i]; local in function:wsevent_copyout_events50 135 ev50.type = ev->type; 136 ev50.value = ev->value; 137 timespec_to_timespec50(&ev->time, &ev50.time);
|
/src/games/trek/ |
schedule.c | 149 int ev; local in function:xsched 152 ev = ev1; 153 when = -Param.eventdly[ev] * Param.time * log(franf()) / factor; 154 return (schedule(ev, when, x, y, z)); 168 int ev; local in function:xresched 172 ev = ev1; 174 when = -Param.eventdly[ev] * Param.time * log(franf()) / factor;
|
events.c | 67 struct event *ev = NULL; local in function:events 104 ev = e; 108 e = ev; 213 e = ev;
|
/src/sys/dev/acpi/ |
acpi_ged.c | 79 acpi_ged_register_event(void *priv, struct acpi_event *ev, struct acpi_irq *irq) 85 acpi_ged_intr, ev, device_xname(dev)); 90 acpi_event_set_intrcookie(ev, ih); 96 struct acpi_event * const ev = priv; local in function:acpi_ged_intr 98 acpi_event_notify(ev);
|
plgpio_acpi.c | 142 plgpio_acpi_register_event(void *priv, struct acpi_event *ev, ACPI_RESOURCE_GPIO *gpio) 161 asc->sc_event[pin] = ev; 219 struct acpi_event * const ev = asc->sc_event[pin]; local in function:plgpio_acpi_intr 220 KASSERT(ev != NULL); 222 acpi_event_notify(ev);
|
/src/sbin/efi/ |
efiio.h | 55 efi_var_ioc_t ev; member in struct:efi_var 60 efi_var_init(efi_var_ioc_t *ev, const char *name, 65 memset(ev, 0, sizeof(*ev)); 66 ev->name = utf8_to_ucs2(name, isz, NULL, &ev->namesize); 67 ev->attrib = attrib; 68 memcpy(&ev->vendor, vendor, sizeof(ev->vendor)); 76 int (*)(struct efi_var_ioc *ev, void *), void *) [all...] |
efiio.c | 72 set_variable(int fd, struct efi_var_ioc *ev) 75 return ioctl(fd, EFIIOC_VAR_SET, ev); 79 get_variable_core(int fd, struct efi_var_ioc *ev) 82 if (xioctl(fd, EFIIOC_VAR_GET, ev) == -1) 85 ev->data = emalloc(ev->datasize); 86 xioctl(fd, EFIIOC_VAR_GET, ev); 94 struct efi_var_ioc ev; local in function:get_variable 96 efi_var_init(&ev, name, vendor, attrib); 97 get_variable_core(fd, &ev); 134 struct efi_var_ioc ev; local in function:get_variable_info [all...] |
/src/sys/arch/amiga/dev/ |
event.c | 68 ev_init(register struct evvar *ev) 71 ev->ev_get = ev->ev_put = 0; 72 ev->ev_q = malloc((u_long)EV_QSIZE * sizeof(struct firm_event), 74 selinit(&ev->ev_sel); 81 ev_fini(register struct evvar *ev) 84 seldestroy(&ev->ev_sel); 85 free(ev->ev_q, M_DEVBUF); 93 ev_read(register struct evvar *ev, struct uio *uio, int flags) 103 while (ev->ev_get == ev->ev_put) 166 struct evvar *ev = kn->kn_hook; local in function:filt_evrdetach 177 struct evvar *ev = kn->kn_hook; local in function:filt_evread [all...] |
/src/sys/arch/atari/dev/ |
event.c | 70 ev_init(register struct evvar *ev) 73 ev->ev_get = ev->ev_put = 0; 74 ev->ev_q = kmem_zalloc(EV_Q_ALLOCSIZE, KM_SLEEP); 75 selinit(&ev->ev_sel); 82 ev_fini(register struct evvar *ev) 85 seldestroy(&ev->ev_sel); 86 kmem_free(ev->ev_q, EV_Q_ALLOCSIZE); 94 ev_read(register struct evvar *ev, struct uio *uio, int flags) 104 while (ev->ev_get == ev->ev_put) 166 struct evvar *ev = kn->kn_hook; local in function:filt_evrdetach 177 struct evvar *ev = kn->kn_hook; local in function:filt_evread [all...] |
/src/sys/arch/x68k/dev/ |
event.c | 68 ev_init(struct evvar *ev, const char *name, kmutex_t *mtx) 71 ev->ev_get = ev->ev_put = 0; 72 ev->ev_q = kmem_zalloc((size_t)EV_QSIZE * sizeof(struct firm_event), 74 selinit(&ev->ev_sel); 75 ev->ev_lock = mtx; 76 cv_init(&ev->ev_cv, name); 83 ev_fini(struct evvar *ev) 86 cv_destroy(&ev->ev_cv); 87 seldestroy(&ev->ev_sel) 189 struct evvar *ev = kn->kn_hook; local in function:filt_evrdetach 199 struct evvar *ev = kn->kn_hook; local in function:filt_evread [all...] |
/src/sys/dev/sun/ |
event.c | 68 ev_init(struct evvar *ev) 71 ev->ev_get = ev->ev_put = 0; 72 ev->ev_q = malloc((u_long)EV_QSIZE * sizeof(struct firm_event), 74 selinit(&ev->ev_sel); 81 ev_fini(struct evvar *ev) 84 seldestroy(&ev->ev_sel); 85 free(ev->ev_q, M_DEVBUF); 93 ev_read(struct evvar *ev, struct uio *uio, int flags) 103 while (ev->ev_get == ev->ev_put) 172 struct evvar *ev = kn->kn_hook; local in function:filt_evrdetach 183 struct evvar *ev = kn->kn_hook; local in function:filt_evread [all...] |
/src/tests/lib/libc/sys/ |
t_kevent.c | 61 struct kevent ev; local in function:ATF_TC_BODY 65 EV_SET(&ev, 1, EVFILT_TIMER, EV_ADD|EV_ENABLE, 0, 1, 0); 66 ATF_REQUIRE(kevent(kq, &ev, 1, NULL, 0, NULL) != -1); 67 ATF_REQUIRE(kevent(kq, NULL, 0, &ev, 1, NULL) == 1); 84 struct kevent ev; local in function:ATF_TC_BODY 127 EV_SET(&ev, 1, EVFILT_TIMER, EV_ADD|EV_ENABLE, 0, 1, 0); 128 ATF_CHECK(kevent(kq, &ev, 1, NULL, 0, NULL) != -1); 153 struct kevent ev; local in function:ATF_TC_BODY 167 EV_SET(&ev, fd, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR, 171 ATF_REQUIRE(kevent(kq, &ev, 1, NULL, 0, NULL) == -1) 188 struct kevent ev, rev; local in function:ATF_TC_BODY [all...] |
/src/usr.bin/m4/lib/ |
strtonum.c | 45 } ev[4] = { local in function:strtonum 52 ev[0].err = errno; 66 *errstrp = ev[error].errstr; 67 errno = ev[error].err;
|
/src/bin/csh/ |
hist.c | 94 HistEvent ev; local in function:loadhist 95 history(hi, &ev, H_ENTER, h); 109 HistEvent ev; local in function:enthist 110 history(hi, &ev, H_ENTER, h);
|
/src/sys/arch/ia64/stand/common/ |
environment.c | 44 static void env_discard(struct env_var *ev); 54 struct env_var *ev; local in function:env_getenv 56 for (ev = environ; ev != NULL; ev = ev->ev_next) 57 if (!strcmp(ev->ev_name, name)) 59 return(ev); 74 struct env_var *ev, *curr, *last; local in function:env_setenv 76 if ((ev = env_getenv(name)) != NULL) 145 struct env_var *ev; local in function:getenv 182 struct env_var *ev; local in function:unsetenv [all...] |
/src/usr.sbin/tpctl/ |
tp.c | 115 struct wscons_event ev; local in function:tp_flush 119 while (read(tp->fd, &ev, sizeof(ev)) == sizeof(ev)) { 120 switch (ev.type) { 143 struct wscons_event ev; local in function:tp_get 150 if ((res = read(tp->fd, &ev, sizeof(ev))) < 0) { 155 if (res != sizeof(ev)) { 159 switch (ev.type) [all...] |
/src/usr.bin/tail/ |
forward.c | 93 struct kevent ev[2]; local in function:forward 200 memset(ev, 0, sizeof(ev)); 202 EV_SET(&ev[n], fileno(fp), EVFILT_VNODE, 207 EV_SET(&ev[n], fileno(fp), EVFILT_READ, 211 if (kevent(kq, ev, n, NULL, 0, NULL) == -1) { 221 if (kevent(kq, NULL, 0, ev, 1, NULL) == -1) 224 if (ev[0].filter == EVFILT_VNODE) { 227 } else if (ev[0].data < 0) {
|
/src/lib/libedit/TEST/ |
tc1.c | 133 HistEvent ev; local in function:main 143 history(hist, &ev, H_SETSIZE, 100); 217 if (history(hist, &ev, H_SET, lastevent) == -1) 218 err(1, "%d: %s", lastevent, ev.str); 219 history(hist, &ev, H_ADD , buf); 221 history(hist, &ev, H_ENTER, buf); 222 lastevent = ev.num; 226 history(hist, &ev, continuation ? H_APPEND : H_ENTER, buf); 249 for (rv = history(hist, &ev, H_LAST); rv != -1; 250 rv = history(hist, &ev, H_PREV) [all...] |
/src/lib/libedit/ |
hist.c | 171 HistEventW ev; local in function:hist_command 212 return history_w(el->el_history.ref, &ev, H_SETSIZE, num); 215 return history_w(el->el_history.ref, &ev, H_SETUNIQUE, num); 247 HistEventW ev; local in function:hist_convert 248 if ((*(el)->el_history.fun)((el)->el_history.ref, &ev, fn, arg) == -1) 250 return ct_decode_string((const char *)(const void *)ev.str,
|
hist.h | 52 HistEventW ev; /* Event cookie */ member in struct:el_history_t 56 ((((*(el)->el_history.fun) ((el)->el_history.ref, &(el)->el_history.ev, \ 57 fn, arg)) == -1) ? NULL : (el)->el_history.ev.str)
|
/src/sys/arch/arm/s3c2xx0/ |
s3c2xx0_intr.h | 202 struct evcnt ev; member in struct:s3c2xx0_intr_dispatch
|
/src/usr.bin/flock/ |
flock.c | 260 struct sigevent ev; local in function:main 269 memset(&ev, 0, sizeof(ev)); 270 ev.sigev_notify = SIGEV_SIGNAL; 271 ev.sigev_signo = SIGALRM; 273 if (timer_create(CLOCK_REALTIME, &ev, &tm) == -1)
|
/src/usr.sbin/btpand/ |
channel.c | 155 channel_start(int fd, short ev, void *arg) 184 channel_read(int fd, short ev, void *arg) 282 static struct event ev; local in function:channel_timeout 290 evtimer_set(&ev, channel_watchdog, &ev); 291 channel_watchdog(0, 0, &ev); 296 channel_watchdog(int fd, short ev, void *arg)
|
/src/usr.sbin/bthcid/ |
client.c | 56 struct event ev; member in struct:client 66 struct event ev; member in struct:item 138 process_control(int sock, short ev, void *arg) 169 event_set(&cl->ev, fd, EV_READ | EV_PERSIST, process_client, cl); 170 if (event_add(&cl->ev, NULL) < 0) { 183 process_client(int sock, short ev, void *arg) 212 evtimer_del(&item->ev); 236 evtimer_set(&item->ev, process_item, item); 248 if (evtimer_add(&item->ev, &tv) < 0) { 293 evtimer_set(&item->ev, process_item, item) [all...] |