Lines Matching refs:ostate
102 if (c->ostate > CHAN_OUTPUT_CLOSED || next > CHAN_OUTPUT_CLOSED) in chan_set_ostate()
103 fatal("chan_set_ostate: bad state %d -> %d", c->ostate, next); in chan_set_ostate()
104 debug2("channel %d: output %s -> %s", c->self, ostates[c->ostate], in chan_set_ostate()
106 c->ostate = next; in chan_set_ostate()
182 switch (c->ostate) { in chan_rcvd_ieof1()
191 c->self, c->ostate); in chan_rcvd_ieof1()
199 switch (c->ostate) { in chan_write_failed1()
212 c->self, c->ostate); in chan_write_failed1()
225 switch (c->ostate) { in chan_obuf_empty()
234 c->self, c->ostate); in chan_obuf_empty()
259 switch (c->ostate) { in chan_send_oclose1()
269 c->self, c->ostate); in chan_send_oclose1()
293 switch (c->ostate) { in chan_rcvd_close2()
331 if (c->ostate == CHAN_OUTPUT_OPEN) in chan_rcvd_eof2()
338 switch (c->ostate) { in chan_write_failed2()
348 c->self, c->ostate); in chan_write_failed2()
373 if (c->ostate != CHAN_OUTPUT_CLOSED || in chan_send_close2()
376 c->self, c->istate, c->ostate); in chan_send_close2()
390 if (c->ostate == CHAN_OUTPUT_CLOSED) { in chan_send_eow2()
413 if (c->ostate == CHAN_OUTPUT_WAIT_DRAIN && in chan_rcvd_ieof()
448 if (c->istate != CHAN_INPUT_CLOSED || c->ostate != CHAN_OUTPUT_CLOSED) in chan_is_dead()
523 c->self, c->sock, c->istate, c->ostate, in chan_shutdown_read()