/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/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/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...] |
event_var.h | 65 #define EV_WAKEUP(ev) { \ 66 selnotify(&(ev)->ev_sel, 0, 0); \ 67 if ((ev)->ev_wanted) { \ 68 (ev)->ev_wanted = 0; \ 69 wakeup((void *)(ev)); \ 71 if ((ev)->ev_async) { \ 73 psignal((ev)->ev_io, SIGIO); \
|
/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/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...] |
event_var.h | 66 #define EV_WAKEUP(ev) { \ 67 selnotify(&(ev)->ev_sel, 0, 0); \ 68 if ((ev)->ev_wanted) { \ 69 (ev)->ev_wanted = 0; \ 70 wakeup((void *)(ev)); \ 72 if ((ev)->ev_async) \ 73 psignal((ev)->ev_io, SIGIO); \
|
/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...] |
event_var.h | 66 #define EV_WAKEUP(ev) { \ 67 selnotify(&(ev)->ev_sel, 0, 0); \ 68 if ((ev)->ev_wanted) { \ 69 (ev)->ev_wanted = 0; \ 70 wakeup((void *)(ev)); \ 72 if ((ev)->ev_async) { \ 74 psignal((ev)->ev_io, SIGIO); \
|
/src/sys/dev/wscons/ |
wsevent.c | 140 #define EVARRAY(ev, idx) (&(ev)->q[(idx)]) 158 wsevent_init(struct wseventvar *ev, struct proc *p) 161 if (ev->q != NULL) { 174 ev->version = wsevent_default_version; 176 ev->version = WSEVENT_VERSION; 178 ev->get = ev->put = 0; 179 ev->q = kmem_alloc(WSEVENT_QSIZE * sizeof(*ev->q), KM_SLEEP) 302 struct wseventvar *ev = kn->kn_hook; local in function:filt_wseventrdetach 313 struct wseventvar *ev = kn->kn_hook; local in function:filt_wseventread 383 struct wseventvar *ev; local in function:wsevent_intr [all...] |
/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...] |
setvar.c | 86 struct efi_var_ioc ev; local in function:prefix_bootorder 93 ev = get_variable(fd, targetorder, 109 datasize = ev.datasize + n * sizeof(*data); 111 memcpy(data + n, ev.data, ev.datasize); 113 // free(ev.data); /* XXX: ??? */ 115 ev.data = data; 116 ev.datasize = datasize; 118 rv = set_variable(fd, &ev); 119 free(ev.data) 129 struct efi_var_ioc ev; local in function:remove_bootorder 176 struct efi_var_ioc ev; local in function:set_bootorder 205 struct efi_var_ioc ev; local in function:delete_variable 234 struct efi_var_ioc ev; local in function:del_bootorder_dups 274 struct efi_var_ioc ev; local in function:set_bootnext 311 struct efi_var_ioc ev; local in function:set_timeout 348 struct efi_var_ioc ev; local in function:set_active [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...] |
getvars.c | 92 return memcmp(&y->ev.vendor, &x->ev.vendor, sizeof(x->ev.vendor)); 98 save_variable(efi_var_ioc_t *ev, void *vp) 107 efi_var_cpy(&elm->v.ev, ev); 119 choose_variable(efi_var_ioc_t *ev, void *vp) 124 args->name = ucs2_to_utf8(ev->name, ev->namesize, NULL, NULL); 172 free_efi_var_ioc(efi_var_ioc_t *ev) [all...] |
/src/sys/kern/ |
subr_evcnt.c | 149 evcnt_attach_static(struct evcnt *ev) 155 __func__, ev->ev_group, ev->ev_name); 157 len = strlen(ev->ev_group); 160 panic("evcnt_attach_static: group length (%s)", ev->ev_group); 162 ev->ev_grouplen = len; 164 len = strlen(ev->ev_name); 167 panic("evcnt_attach_static: name length (%s)", ev->ev_name); 169 ev->ev_namelen = len; 172 TAILQ_INSERT_TAIL(&allevents, ev, ev_list) 250 const struct evcnt *ev; local in function:sysctl_doevcnt [all...] |
/src/sys/dev/acpi/ |
acpi_event.c | 63 struct acpi_event *ev; local in function:acpi_event_create 68 ev = kmem_alloc(sizeof(*ev), KM_SLEEP); 69 ev->ev_dev = dev; 70 ev->ev_method = NULL; 71 ev->ev_method_evt = false; 72 ev->ev_data = data; 73 ev->ev_intrcookie = NULL; 77 AcpiGetHandle(handle, namebuf, &ev->ev_method); 79 if (ev->ev_method == NULL && ACPI_SUCCESS(AcpiGetHandle(handle, "_EVT", &ev->ev_method)) 98 struct acpi_event *ev; local in function:acpi_event_gpio_resource_cb 137 struct acpi_event *ev; local in function:acpi_event_create_int 161 struct acpi_event * const ev = priv; local in function:acpi_event_invoke [all...] |
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);
|
/src/sys/arch/mvme68k/mvme68k/ |
isr.h | 52 struct evcnt *ev) 55 m68k_intr_establish(func, arg, ev, 0, ipl, isrpri, 0); 60 struct evcnt *ev) 63 m68k_intr_establish(func, arg, ev, vec, ipl, 0, 0);
|
/src/lib/libedit/ |
history.c | 115 #define HNEXT(h, ev) (*(h)->h_next)((h)->h_ref, ev) 116 #define HFIRST(h, ev) (*(h)->h_first)((h)->h_ref, ev) 117 #define HPREV(h, ev) (*(h)->h_prev)((h)->h_ref, ev) 118 #define HLAST(h, ev) (*(h)->h_last)((h)->h_ref, ev) 119 #define HCURR(h, ev) (*(h)->h_curr)((h)->h_ref, ev) [all...] |
/src/sys/uvm/ |
uvm_pdpolicy_impl.h | 42 #define PDPOL_EVCNT_INCR(ev) pdpol_evcnt_##ev.ev_count++
|
/src/sys/arch/next68k/next68k/ |
isr.h | 49 struct evcnt *ev) 52 m68k_intr_establish(func, arg, ev, 0, ipl, isrpri, 0);
|
/src/sys/external/bsd/drm2/dist/drm/amd/amdkfd/ |
kfd_events.c | 100 struct kfd_event *ev) 118 id = idr_alloc(&p->event_idr, ev, 0, p->signal_mapped_size / 8, 123 ev->event_id = id; 158 struct kfd_event *ev; local in function:lookup_signaled_event_by_partial_id 176 for (ev = NULL; id < KFD_SIGNAL_EVENT_LIMIT && !ev; id += 1U << bits) { 180 ev = idr_find(&p->event_idr, id); 183 return ev; 188 struct kfd_event *ev) 201 ret = allocate_event_notification_slot(p, ev); 262 struct kfd_event *ev; local in function:destroy_events 333 struct kfd_event *ev = kzalloc(sizeof(*ev), GFP_KERNEL); local in function:kfd_event_create 377 struct kfd_event *ev; local in function:kfd_event_destroy 414 struct kfd_event *ev; local in function:kfd_set_event 438 struct kfd_event *ev; local in function:kfd_reset_event 471 struct kfd_event *ev = NULL; local in function:kfd_signal_event_interrupt 552 struct kfd_event *ev = lookup_event_by_id(p, event_id); local in function:init_event_waiter_get_status 566 struct kfd_event *ev = waiter->event; local in function:init_event_waiter_add_to_waitlist 839 struct kfd_event *ev; local in function:lookup_events_by_type_and_signal 982 struct kfd_event *ev; local in function:kfd_signal_vm_fault_event 1021 struct kfd_event *ev; local in function:kfd_signal_reset_event [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/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/tests/lib/libpthread/ |
t_compat_cancel.c | 63 struct kevent100 ev; local in function:cancelpoint_compat100_kevent 65 memset(&ev, 0, sizeof(ev)); 66 ev.ident = SIGUSR1; 67 ev.filter = EVFILT_SIGNAL; 68 ev.flags = EV_ADD|EV_ENABLE; 69 ev.fflags = 0; 70 ev.data = 0; 71 ev.udata = 0; 74 RL(__kevent50(kq, &ev, 1, NULL, 1, &(const struct timespec){0,0})) 132 struct kevent100 ev; local in function:cancelpoint_compat50_kevent [all...] |