Lines Matching refs:ostate
94 if (c->ostate > CHAN_OUTPUT_CLOSED || next > CHAN_OUTPUT_CLOSED) in chan_set_ostate()
95 fatal("chan_set_ostate: bad state %d -> %d", c->ostate, next); in chan_set_ostate()
96 debug("channel %d: output %s -> %s", c->self, ostates[c->ostate], in chan_set_ostate()
98 c->ostate = next; in chan_set_ostate()
174 switch (c->ostate) { in chan_rcvd_ieof1()
183 c->self, c->ostate); in chan_rcvd_ieof1()
191 switch (c->ostate) { in chan_write_failed1()
204 c->self, c->ostate); in chan_write_failed1()
217 switch (c->ostate) { in chan_obuf_empty()
226 c->self, c->ostate); in chan_obuf_empty()
251 switch (c->ostate) { in chan_send_oclose1()
261 c->self, c->ostate); in chan_send_oclose1()
282 switch (c->ostate) { in chan_rcvd_close2()
318 if (c->ostate == CHAN_OUTPUT_OPEN) in chan_rcvd_eof2()
325 switch (c->ostate) { in chan_write_failed2()
335 c->self, c->ostate); in chan_write_failed2()
360 if (c->ostate != CHAN_OUTPUT_CLOSED || in chan_send_close2()
363 c->self, c->istate, c->ostate); in chan_send_close2()
377 if (c->ostate == CHAN_OUTPUT_CLOSED) { in chan_send_eow2()
398 if (c->ostate == CHAN_OUTPUT_WAIT_DRAIN && in chan_rcvd_ieof()
433 if (c->istate != CHAN_INPUT_CLOSED || c->ostate != CHAN_OUTPUT_CLOSED) in chan_is_dead()
504 c->self, c->sock, c->istate, c->ostate, in chan_shutdown_read()