Lines Matching refs:ostate
105 if (c->ostate > CHAN_OUTPUT_CLOSED || next > CHAN_OUTPUT_CLOSED) in chan_set_ostate()
106 fatal("chan_set_ostate: bad state %d -> %d", c->ostate, next); in chan_set_ostate()
107 debug2("channel %d: output %s -> %s", c->self, ostates[c->ostate], in chan_set_ostate()
109 c->ostate = next; in chan_set_ostate()
159 switch (c->ostate) { in chan_obuf_empty()
166 c->self, c->ostate); in chan_obuf_empty()
212 if (c->ostate != CHAN_OUTPUT_CLOSED || in chan_send_close2()
215 c->self, c->istate, c->ostate); in chan_send_close2()
237 if (c->ostate == CHAN_OUTPUT_CLOSED) { in chan_send_eow2()
261 if (c->ostate == CHAN_OUTPUT_OPEN) in chan_rcvd_ieof()
263 if (c->ostate == CHAN_OUTPUT_WAIT_DRAIN && in chan_rcvd_ieof()
285 switch (c->ostate) { in chan_rcvd_oclose()
313 switch (c->ostate) { in chan_write_failed()
323 c->self, c->ostate); in chan_write_failed()
341 if (c->istate != CHAN_INPUT_CLOSED || c->ostate != CHAN_OUTPUT_CLOSED) in chan_is_dead()
384 c->self, c->istate, c->ostate, c->sock, c->wfd, c->efd, in chan_shutdown_write()
390 c->istate, c->ostate, strerror(errno)); in chan_shutdown_write()
396 c->istate, c->ostate, strerror(errno)); in chan_shutdown_write()
407 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_read()
418 c->istate, c->ostate, strerror(errno)); in chan_shutdown_read()
424 c->istate, c->ostate, strerror(errno)); in chan_shutdown_read()
438 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_extended_read()
443 c->istate, c->ostate, strerror(errno)); in chan_shutdown_extended_read()