Lines Matching refs:op
131 realloc_fd_sets(struct win32op *op, size_t new_size)
135 assert(new_size >= op->readset_in->fd_count &&
136 new_size >= op->writeset_in->fd_count);
140 if (!(op->readset_in = realloc(op->readset_in, size)))
142 if (!(op->writeset_in = realloc(op->writeset_in, size)))
144 if (!(op->readset_out = realloc(op->readset_out, size)))
146 if (!(op->exset_out = realloc(op->exset_out, size)))
148 if (!(op->writeset_out = realloc(op->writeset_out, size)))
150 op->fd_setsz = new_size;
161 get_event_entry(struct win32op *op, SOCKET s, int create)
165 val = RB_FIND(event_map, &op->event_root, &key);
174 RB_INSERT(event_map, &op->event_root, val);
179 do_fd_set(struct win32op *op, struct event_entry *ent, int read)
182 struct win_fd_set *set = read ? op->readset_in : op->writeset_in;
190 if (set->fd_count == op->fd_setsz) {
191 if (realloc_fd_sets(op, op->fd_setsz*2))
194 set = read ? op->readset_in : op->writeset_in;
205 do_fd_clear(struct win32op *op, struct event_entry *ent, int read)
208 struct win_fd_set *set = read ? op->readset_in : op->writeset_in;
222 ent2 = get_event_entry(op, s2, 0);
273 win32_insert(void *op, struct event *ev)
275 struct win32op *win32op = op;
304 win32_del(void *op, struct event *ev)
306 struct win32op *win32op = op;
350 win32_dispatch(struct event_base *base, void *op,
353 struct win32op *win32op = op;