Lines Matching defs:state
109 lacp_actor_partner_state_set_active_lacp(lacp_actor_partner_state state)
111 return (state | LACP_ACTOR_PARTNER_STATE_LACP_ACTIVITY);
115 lacp_actor_partner_state_set_passive_lacp(lacp_actor_partner_state state)
117 return (state &= ~LACP_ACTOR_PARTNER_STATE_LACP_ACTIVITY);
121 lacp_actor_partner_state_active_lacp(lacp_actor_partner_state state)
123 return ((state & LACP_ACTOR_PARTNER_STATE_LACP_ACTIVITY) != 0);
127 lacp_actor_partner_state_set_short_timeout(lacp_actor_partner_state state)
129 return (state | LACP_ACTOR_PARTNER_STATE_LACP_TIMEOUT);
133 lacp_actor_partner_state_set_long_timeout(lacp_actor_partner_state state)
135 return (state &= ~LACP_ACTOR_PARTNER_STATE_LACP_TIMEOUT);
139 lacp_actor_partner_state_short_timeout(lacp_actor_partner_state state)
141 return ((state & LACP_ACTOR_PARTNER_STATE_LACP_TIMEOUT) != 0);
145 lacp_actor_partner_state_set_aggregatable(lacp_actor_partner_state state)
147 return (state | LACP_ACTOR_PARTNER_STATE_AGGREGATION);
151 lacp_actor_partner_state_set_individual(lacp_actor_partner_state state)
153 return (state &= ~LACP_ACTOR_PARTNER_STATE_AGGREGATION);
157 lacp_actor_partner_state_aggregatable(lacp_actor_partner_state state)
159 return ((state & LACP_ACTOR_PARTNER_STATE_AGGREGATION) != 0);
163 lacp_actor_partner_state_set_in_sync(lacp_actor_partner_state state)
165 return (state | LACP_ACTOR_PARTNER_STATE_SYNCHRONIZATION);
169 lacp_actor_partner_state_set_out_of_sync(lacp_actor_partner_state state)
171 return (state &= ~LACP_ACTOR_PARTNER_STATE_SYNCHRONIZATION);
175 lacp_actor_partner_state_in_sync(lacp_actor_partner_state state)
177 return ((state & LACP_ACTOR_PARTNER_STATE_SYNCHRONIZATION) != 0);
181 lacp_actor_partner_state_set_collecting(lacp_actor_partner_state state)
183 return (state | LACP_ACTOR_PARTNER_STATE_COLLECTING);
187 lacp_actor_partner_state_set_not_collecting(lacp_actor_partner_state state)
189 return (state &= ~LACP_ACTOR_PARTNER_STATE_COLLECTING);
193 lacp_actor_partner_state_collecting(lacp_actor_partner_state state)
195 return ((state & LACP_ACTOR_PARTNER_STATE_COLLECTING) != 0);
199 lacp_actor_partner_state_set_distributing(lacp_actor_partner_state state)
201 return (state | LACP_ACTOR_PARTNER_STATE_DISTRIBUTING);
205 lacp_actor_partner_state_set_not_distributing(lacp_actor_partner_state state)
207 return (state &= ~LACP_ACTOR_PARTNER_STATE_DISTRIBUTING);
211 lacp_actor_partner_state_distributing(lacp_actor_partner_state state)
213 return ((state & LACP_ACTOR_PARTNER_STATE_DISTRIBUTING) != 0);
217 lacp_actor_partner_state_set_defaulted(lacp_actor_partner_state state)
219 return (state | LACP_ACTOR_PARTNER_STATE_DEFAULTED);
223 lacp_actor_partner_state_set_not_defaulted(lacp_actor_partner_state state)
225 return (state &= ~LACP_ACTOR_PARTNER_STATE_DEFAULTED);
229 lacp_actor_partner_state_defaulted(lacp_actor_partner_state state)
231 return ((state & LACP_ACTOR_PARTNER_STATE_DEFAULTED) != 0);
235 lacp_actor_partner_state_set_expired(lacp_actor_partner_state state)
237 return (state | LACP_ACTOR_PARTNER_STATE_EXPIRED);
241 lacp_actor_partner_state_set_not_expired(lacp_actor_partner_state state)
243 return (state &= ~LACP_ACTOR_PARTNER_STATE_EXPIRED);
247 lacp_actor_partner_state_expired(lacp_actor_partner_state state)
249 return ((state & LACP_ACTOR_PARTNER_STATE_EXPIRED) != 0);