Searched refs:state (Results 1 - 25 of 293) sorted by relevance

1234567891011>>

/net/irda/irlan/
H A Dirlan_event.c41 void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state) argument
43 IRDA_DEBUG(2, "%s(), %s\n", __func__ , irlan_state[state]);
48 self->client.state = state;
51 void irlan_next_provider_state(struct irlan_cb *self, IRLAN_STATE state) argument
53 IRDA_DEBUG(2, "%s(), %s\n", __func__ , irlan_state[state]);
58 self->provider.state = state;
H A Dirlan_provider_event.c5 * Description: IrLAN provider state machine)
42 static int (*state[])(struct irlan_cb *self, IRLAN_EVENT event, variable
61 IRDA_ASSERT(*state[ self->provider.state] != NULL, return;);
63 (*state[self->provider.state]) (self, event, skb);
115 if (self->client.state == IRLAN_IDLE) {
123 /* Keep state */
128 /* Keep state */
178 /* Keep state */
[all...]
/net/wimax/
H A Dwimax-internal.h42 * function to check if the state is the right one.
44 * An error value will be returned if the state is not the right
51 if (wimax_dev->state == __WIMAX_ST_NULL)
53 if (wimax_dev->state == WIMAX_ST_DOWN)
55 if (wimax_dev->state == __WIMAX_ST_QUIESCING)
62 void __wimax_state_set(struct wimax_dev *wimax_dev, enum wimax_st state) argument
64 wimax_dev->state = state;
H A Dop-rfkill.c37 * initial state and then every time it changes. See wimax.h:struct
53 * wimax_report_rfkill_sw() Driver reports state change
56 * wimax_report_rfkill_hw() Driver reports state change
79 * @state: New state of the RF Kill switch. %WIMAX_RF_ON radio on,
82 * When the device detects a change in the state of thehardware RF
84 * know that the state has changed so it can be properly propagated.
86 * The WiMAX stack caches the state (the driver doesn't need to). As
88 * change the software state to mirror the hardware state
93 wimax_report_rfkill_hw(struct wimax_dev *wimax_dev, enum wimax_rf_state state) argument
149 wimax_report_rfkill_sw(struct wimax_dev *wimax_dev, enum wimax_rf_state state) argument
206 __wimax_rf_toggle_radio(struct wimax_dev *wimax_dev, enum wimax_rf_state state) argument
301 wimax_rfkill(struct wimax_dev *wimax_dev, enum wimax_rf_state state) argument
[all...]
H A DMakefile9 op-state-get.o \
H A Dop-reset.c73 enum wimax_st state; local
79 state = wimax_dev->state;
82 if (state >= WIMAX_ST_DOWN) {
/net/802/
H A Dgarp.c30 u8 state; member in struct:garp_state_trans
34 [GARP_EVENT_TRANSMIT_PDU] = { .state = GARP_APPLICANT_AA,
36 [GARP_EVENT_R_JOIN_IN] = { .state = GARP_APPLICANT_AA },
37 [GARP_EVENT_R_JOIN_EMPTY] = { .state = GARP_APPLICANT_VA },
38 [GARP_EVENT_R_EMPTY] = { .state = GARP_APPLICANT_VA },
39 [GARP_EVENT_R_LEAVE_IN] = { .state = GARP_APPLICANT_VA },
40 [GARP_EVENT_R_LEAVE_EMPTY] = { .state = GARP_APPLICANT_VP },
41 [GARP_EVENT_REQ_JOIN] = { .state = GARP_APPLICANT_INVALID },
42 [GARP_EVENT_REQ_LEAVE] = { .state = GARP_APPLICANT_LA },
45 [GARP_EVENT_TRANSMIT_PDU] = { .state
316 enum garp_applicant_state state; local
[all...]
/net/core/
H A Dutils.c198 int state = IN6PTON_COLON_1_2 | IN6PTON_XDIGIT | IN6PTON_NULL; local
212 if (!(c & state))
216 if (!(state & IN6PTON_NULL)) {
230 switch (state & IN6PTON_COLON_MASK) {
233 state = IN6PTON_XDIGIT | IN6PTON_DELIM;
235 state |= IN6PTON_NULL;
238 state = IN6PTON_XDIGIT | IN6PTON_COLON_2;
241 state = IN6PTON_XDIGIT;
244 state = IN6PTON_COLON_2;
247 state
[all...]
/net/sctp/
H A Dprimitive.c64 sctp_state_t state; \
69 state = asoc ? asoc->state : SCTP_STATE_CLOSED; \
72 error = sctp_do_sm(net, event_type, subtype, state, ep, asoc, \
/net/rfkill/
H A Dcore.c57 unsigned long state; member in struct:rfkill
119 "Default initial state for all radio types, 0 = radio off");
138 if (rfkill->state & RFKILL_BLOCK_ANY)
204 ev->hard = !!(rfkill->state & RFKILL_BLOCK_HW);
205 ev->soft = !!(rfkill->state & (RFKILL_BLOCK_SW |
247 prev = !!(rfkill->state & RFKILL_BLOCK_HW);
249 rfkill->state |= RFKILL_BLOCK_HW;
251 rfkill->state &= ~RFKILL_BLOCK_HW;
253 any = !!(rfkill->state & RFKILL_BLOCK_ANY);
265 * @blocked: the new software state
664 unsigned long state; local
684 user_state_from_blocked(unsigned long state) argument
708 unsigned long state; local
766 u32 state; local
807 rfkill_suspend(struct device *dev, pm_message_t state) argument
846 u32 state; local
[all...]
/net/ax25/
H A Dax25_ds_subr.c73 if (ax25->state == AX25_STATE_1 || ax25->state == AX25_STATE_2 || skb_peek(&ax25->ack_queue) != NULL)
89 if (ax25o->state == AX25_STATE_1 || ax25o->state == AX25_STATE_2) {
94 if (!(ax25o->condition & AX25_COND_PEER_RX_BUSY) && ax25o->state == AX25_STATE_3) {
99 if (ax25o->state == AX25_STATE_1 || ax25o->state == AX25_STATE_2 || skb_peek(&ax25o->ack_queue) != NULL)
104 if (ax25o->state != AX25_STATE_0)
164 if (ax25->ax25_dev == ax25_dev && (ax25->condition & AX25_COND_DAMA_MODE) && ax25->state > AX25_STATE_1) {
/net/ipv6/
H A Danycast.c420 struct ac6_iter_state *state = ac6_seq_private(seq); local
423 state->idev = NULL;
424 for_each_netdev_rcu(net, state->dev) {
426 idev = __in6_dev_get(state->dev);
432 state->idev = idev;
442 struct ac6_iter_state *state = ac6_seq_private(seq); local
446 if (likely(state->idev != NULL))
447 read_unlock_bh(&state->idev->lock);
449 state->dev = next_net_device_rcu(state
490 struct ac6_iter_state *state = ac6_seq_private(seq); local
502 struct ac6_iter_state *state = ac6_seq_private(seq); local
[all...]
/net/mac80211/
H A Dpm.c92 enum ieee80211_sta_state state; local
94 state = sta->sta_state;
95 for (; state > IEEE80211_STA_NOTEXIST; state--)
97 state, state - 1));
/net/irda/ircomm/
H A Dircomm_event.c5 * Description: IrCOMM layer state machine
80 static int (*state[])(struct ircomm_cb *self, IRCOMM_EVENT event, variable
232 IRDA_DEBUG(4, "%s: state=%s, event=%s\n", __func__ ,
233 ircomm_state[self->state], ircomm_event[event]);
235 return (*state[self->state])(self, event, skb, info);
239 * Function ircomm_next_state (self, state)
241 * Switch state
244 void ircomm_next_state(struct ircomm_cb *self, IRCOMM_STATE state) argument
246 self->state
[all...]
/net/bluetooth/cmtp/
H A Dcmtp.h52 __u16 state; member in struct:cmtp_conninfo
77 unsigned long state; member in struct:cmtp_session
106 unsigned long state; member in struct:cmtp_application
/net/atm/
H A Dproc.c109 static inline void *vcc_walk(struct vcc_state *state, loff_t l) argument
111 return __vcc_walk(&state->sk, state->family, &state->bucket, l) ?
112 state : NULL;
118 struct vcc_state *state; local
120 state = __seq_open_private(file, ops, sizeof(*state));
121 if (state == NULL)
124 state
131 struct vcc_state *state = seq->private; local
147 struct vcc_state *state = seq->private; local
280 struct vcc_state *state = seq->private; local
314 struct vcc_state *state = seq->private; local
349 struct vcc_state *state = seq->private; local
[all...]
/net/rxrpc/
H A Dar-skbuff.c29 switch (call->state) {
31 call->state = RXRPC_CALL_CLIENT_FINAL_ACK;
43 call->state = RXRPC_CALL_SERVER_ACK_REQUEST;
77 ASSERTIFCMP(call->state <= RXRPC_CALL_COMPLETE,
79 ASSERTIFCMP(call->state <= RXRPC_CALL_COMPLETE,
96 * - advance the hard-ACK state of the parent call (done here in case something
H A Dar-output.c109 if (call->state <= RXRPC_CALL_COMPLETE) {
110 call->state = RXRPC_CALL_LOCALLY_ABORTED;
178 call->debug_id, call->user_call_ID, call->state, call->conn);
180 if (call->state >= RXRPC_CALL_COMPLETE) {
187 } else if (call->state != RXRPC_CALL_CLIENT_SEND_REQUEST) {
205 * Allow a kernel service to send data on a call. The call must be in an state
215 _enter("{%d,%s},", call->debug_id, rxrpc_call_states[call->state]);
223 call->debug_id, call->user_call_ID, call->state, call->conn);
225 if (call->state >= RXRPC_CALL_COMPLETE) {
227 } else if (call->state !
[all...]
/net/irda/
H A Dwrapper.c284 switch(rx_buff->state) {
304 rx_buff->state = BEGIN_FRAME;
328 switch(rx_buff->state) {
343 rx_buff->state = OUTSIDE_FRAME;
382 switch(rx_buff->state) {
389 IRDA_WARNING("%s: state not defined\n", __func__);
396 rx_buff->state = LINK_ESCAPE;
412 switch(rx_buff->state) {
425 rx_buff->state = OUTSIDE_FRAME;
440 rx_buff->state
[all...]
/net/bridge/
H A Dbr_stp_timer.c26 if (p->state != BR_STATE_DISABLED &&
55 if (p->state == BR_STATE_DISABLED)
68 if (p->state == BR_STATE_DISABLED)
89 if (p->state == BR_STATE_LISTENING) {
90 p->state = BR_STATE_LEARNING;
93 } else if (p->state == BR_STATE_LEARNING) {
94 p->state = BR_STATE_FORWARDING;
H A Dbr_stp.c34 br_info(p->br, "port %u(%s) entered %s state\n",
36 br_port_state_names[p->state]);
61 if (p->state == BR_STATE_DISABLED ||
110 p->state = BR_STATE_LISTENING;
274 if (p->state != BR_STATE_DISABLED &&
349 if (p->state != BR_STATE_DISABLED &&
384 if (p->state != BR_STATE_DISABLED &&
385 p->state != BR_STATE_BLOCKING) {
386 if (p->state == BR_STATE_FORWARDING ||
387 p->state
[all...]
/net/tipc/
H A Dsocket.c61 (sock->state == SS_DISCONNECTING))
161 socket_state state; local
172 state = SS_UNCONNECTED;
176 state = SS_UNCONNECTED;
181 state = SS_READY;
202 sock->state = state;
213 if (sock->state == SS_READY) {
259 while (sock->state != SS_DISCONNECTING) {
266 if ((sock->state
[all...]
/net/decnet/
H A Ddn_nsp_in.c358 if ((scp->state == DN_CI) || (scp->state == DN_CD)) {
362 scp->state = DN_RUN;
391 if (scp->state == DN_CI) {
392 scp->state = DN_CD;
426 switch (scp->state) {
429 scp->state = DN_RJ;
434 scp->state = DN_DN;
437 scp->state = DN_DIC;
442 if (sk->sk_socket->state !
[all...]
/net/netfilter/
H A Dxt_string.c29 struct ts_state state; local
32 memset(&state, 0, sizeof(struct ts_state));
36 conf->to_offset, conf->config, &state)
/net/x25/
H A Dx25_timer.c101 if (sock_owned_by_user(sk)) /* can currently only occur in state 3 */
104 switch (x25_sk(sk)->state) {
123 * Check for the state of the receive buffer.
135 * by the state machine state.
141 switch (x25->state) {
153 x25->state = X25_STATE_2;
168 if (sock_owned_by_user(sk)) { /* can currently only occur in state 3 */
169 if (x25_sk(sk)->state == X25_STATE_3)

Completed in 356 milliseconds

1234567891011>>