Lines Matching defs:state
79 enum mcast_state state;
111 enum mcast_group_state state;
147 static const char *get_state_string(enum mcast_group_state state)
149 switch (state) {
306 group->state = MCAST_IDLE;
446 if (group->state != MCAST_IDLE &&
504 if (group->func[slave].state != MCAST_MEMBER && join_state) {
505 group->func[slave].state = MCAST_MEMBER;
518 group->func[slave].state = MCAST_NOT_MEMBER;
526 if (group->func[slave].state != MCAST_MEMBER)
548 if (group->state == MCAST_JOIN_SENT) {
566 } else if (group->state == MCAST_LEAVE_SENT) {
569 group->state = MCAST_IDLE;
575 mcg_warn_group(group, "invalid state %s\n", get_state_string(group->state));
576 group->state = MCAST_IDLE;
627 group->prev_state = group->state;
634 group->state = group->prev_state;
636 group->state = MCAST_JOIN_SENT;
660 if (group->state == MCAST_RESP_READY) {
669 group->state = group->prev_state;
704 group->state = MCAST_IDLE;
709 while (!list_empty(&group->pending_list) && group->state == MCAST_IDLE) {
725 if (group->state == MCAST_IDLE) {
729 group->prev_state = group->state;
731 group->state = group->prev_state;
734 group->state = MCAST_LEAVE_SENT;
738 if (!list_empty(&group->pending_list) && group->state == MCAST_IDLE)
787 if (!list_empty(&group->pending_list) && group->state != MCAST_IDLE)
848 group->state = MCAST_IDLE;
910 group->prev_state = group->state;
911 group->state = MCAST_RESP_READY;
1001 if (group->state == MCAST_IDLE)
1002 sprintf(state_str, "%s", get_state_string(group->state));
1005 get_state_string(group->state),
1021 if (group->func[f].state == MCAST_MEMBER)
1175 (group->state == MCAST_JOIN_SENT ||
1176 group->state == MCAST_LEAVE_SENT)) {
1179 group->state = MCAST_IDLE;