Lines Matching refs:events
24 struct io_u **events; member
66 int i, ret, events; in binject_read_commands() local
69 events = 0; in binject_read_commands()
82 events += ret / sizeof(struct b_user_cmd); in binject_read_commands()
86 if (*err || events) in binject_read_commands()
87 return events; in binject_read_commands()
100 unsigned int i, events; in fio_binject_getevents() local
118 bd->pfds[i].events = POLLIN; in fio_binject_getevents()
139 events = binject_read_commands(td, buf, left, &r); in fio_binject_getevents()
144 left -= events; in fio_binject_getevents()
145 r += events; in fio_binject_getevents()
147 for (i = 0; i < events; i++) { in fio_binject_getevents()
150 bd->events[ev_index] = (struct io_u *) (unsigned long) buc->usr_ptr; in fio_binject_getevents()
239 return bd->events[event]; in fio_binject_event()
382 free(bd->events); in fio_binject_cleanup()
400 bd->events = malloc(td->o.iodepth * sizeof(struct io_u *)); in fio_binject_init()
401 memset(bd->events, 0, td->o.iodepth * sizeof(struct io_u *)); in fio_binject_init()