Lines Matching refs:state
80 * Note that there is no lock to protect the timer mblk state. The reason
81 * is that the timer state can only be changed by a thread holding the
103 int state;
111 state = sctp_tb->sctp_tb_state;
113 if (state == SCTP_TB_RUNNING) {
119 } else if (state != SCTP_TB_IDLE) {
120 ASSERT(state != SCTP_TB_TO_BE_FREED);
121 if (state == SCTP_TB_CANCELLED) {
126 if (state == SCTP_TB_RESCHED) {
244 int state;
252 state = sctp_tb->sctp_tb_state;
254 dprint(5, ("sctp_timer_free %p state %d\n", (void *)mp, state));
256 if (state == SCTP_TB_RUNNING) {
264 } else if (state != SCTP_TB_IDLE) {
265 ASSERT(state != SCTP_TB_TO_BE_FREED);
280 int state;
287 state = sctp_tb->sctp_tb_state;
289 dprint(5, ("sctp_timer_stop %p %d\n", (void *)mp, state));
291 if (state == SCTP_TB_RUNNING) {
299 } else if (state == SCTP_TB_RESCHED) {
315 int state;
323 state = sctp_tb->sctp_tb_state;
324 if (state != SCTP_TB_RUNNING) {
325 ASSERT(state != SCTP_TB_IDLE);
326 if (state == SCTP_TB_TO_BE_FREED) {
334 if (state == SCTP_TB_CANCELLED) {
339 if (state == SCTP_TB_RESCHED) {
421 /* Only send heartbeats in the established state */
445 * reachable now. If it is OK, the state will become
556 * is not sent, it will not affect the state of the