Lines Matching refs:ev
328 #define NEWCONNSOCK(ev) ((isc__socket_t *)(ev)->newsocket)
1798 isc_socketevent_t *ev = (isc_socketevent_t *)event;
1800 INSIST(ISC_LIST_EMPTY(ev->bufferlist));
1802 (ev->destroy)(event);
1810 isc_socketevent_t *ev;
1812 ev = (isc_socketevent_t *)isc_event_allocate(mctx, sender,
1814 sizeof(*ev));
1816 if (ev == NULL)
1819 ev->result = ISC_R_UNSET;
1820 ISC_LINK_INIT(ev, ev_link);
1821 ISC_LIST_INIT(ev->bufferlist);
1822 ev->region.base = NULL;
1823 ev->n = 0;
1824 ev->offset = 0;
1825 ev->attributes = 0;
1826 ev->destroy = ev->ev_destroy;
1827 ev->ev_destroy = destroy_socketevent;
1828 ev->dscp = 0;
1830 return (ev);
3327 isc_socketevent_t *ev;
3333 ev = ISC_LIST_HEAD(sock->recv_list);
3334 if (ev == NULL)
3338 ev, ev->ev_sender);
3339 sender = ev->ev_sender;
3361 isc_socketevent_t *ev;
3367 ev = ISC_LIST_HEAD(sock->send_list);
3368 if (ev == NULL)
3372 ev, ev->ev_sender);
3373 sender = ev->ev_sender;
3398 isc_socket_newconnev_t *ev;
3406 ev = ISC_LIST_HEAD(sock->accept_list);
3407 if (ev == NULL)
3418 isc_task_send(ev->ev_sender, (isc_event_t **)&iev);
3424 isc_socket_connev_t *ev;
3428 ev = ISC_LIST_HEAD(sock->connect_list);
3429 INSIST(ev != NULL); /* XXX */
3438 isc_task_send(ev->ev_sender, (isc_event_t **)&iev);
3525 internal_accept(isc_task_t *me, isc_event_t *ev) {
3538 sock = ev->ev_sender;
3787 internal_recv(isc_task_t *me, isc_event_t *ev) {
3791 INSIST(ev->ev_type == ISC_SOCKEVENT_INTR);
3793 sock = ev->ev_sender;
3799 "internal_recv: task %p got event %p", me, ev);
3852 internal_send(isc_task_t *me, isc_event_t *ev) {
3856 INSIST(ev->ev_type == ISC_SOCKEVENT_INTW);
3861 sock = (isc__socket_t *)ev->ev_sender;
3867 "internal_send: task %p got event %p", me, ev);
3907 internal_fdwatch_write(isc_task_t *me, isc_event_t *ev) {
3911 INSIST(ev->ev_type == ISC_SOCKEVENT_INTW);
3916 sock = (isc__socket_t *)ev->ev_sender;
3922 "internal_fdwatch_write: task %p got event %p", me, ev);
3948 internal_fdwatch_read(isc_task_t *me, isc_event_t *ev) {
3952 INSIST(ev->ev_type == ISC_SOCKEVENT_INTR);
3957 sock = (isc__socket_t *)ev->ev_sender;
3963 "internal_fdwatch_read: task %p got event %p", me, ev);
6008 internal_connect(isc_task_t *me, isc_event_t *ev) {
6018 INSIST(ev->ev_type == ISC_SOCKEVENT_INTW);
6020 sock = ev->ev_sender;