/net/802/ |
D | garp.c | 28 u8 state; member 32 [GARP_EVENT_TRANSMIT_PDU] = { .state = GARP_APPLICANT_AA, 34 [GARP_EVENT_R_JOIN_IN] = { .state = GARP_APPLICANT_AA }, 35 [GARP_EVENT_R_JOIN_EMPTY] = { .state = GARP_APPLICANT_VA }, 36 [GARP_EVENT_R_EMPTY] = { .state = GARP_APPLICANT_VA }, 37 [GARP_EVENT_R_LEAVE_IN] = { .state = GARP_APPLICANT_VA }, 38 [GARP_EVENT_R_LEAVE_EMPTY] = { .state = GARP_APPLICANT_VP }, 39 [GARP_EVENT_REQ_JOIN] = { .state = GARP_APPLICANT_INVALID }, 40 [GARP_EVENT_REQ_LEAVE] = { .state = GARP_APPLICANT_LA }, 43 [GARP_EVENT_TRANSMIT_PDU] = { .state = GARP_APPLICANT_QA, [all …]
|
/net/wimax/ |
D | op-rfkill.c | 97 enum wimax_rf_state state) in wimax_report_rfkill_hw() argument 104 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); in wimax_report_rfkill_hw() 105 BUG_ON(state == WIMAX_RF_QUERY); in wimax_report_rfkill_hw() 106 BUG_ON(state != WIMAX_RF_ON && state != WIMAX_RF_OFF); in wimax_report_rfkill_hw() 113 if (state != wimax_dev->rf_hw) { in wimax_report_rfkill_hw() 114 wimax_dev->rf_hw = state; in wimax_report_rfkill_hw() 115 rfkill_state = state == WIMAX_RF_ON ? in wimax_report_rfkill_hw() 129 wimax_dev, state, result); in wimax_report_rfkill_hw() 154 enum wimax_rf_state state) in wimax_report_rfkill_sw() argument 160 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); in wimax_report_rfkill_sw() [all …]
|
D | wimax-internal.h | 51 if (wimax_dev->state == __WIMAX_ST_NULL) in wimax_dev_is_ready() 53 if (wimax_dev->state == WIMAX_ST_DOWN) in wimax_dev_is_ready() 55 if (wimax_dev->state == __WIMAX_ST_QUIESCING) in wimax_dev_is_ready() 62 void __wimax_state_set(struct wimax_dev *wimax_dev, enum wimax_st state) in __wimax_state_set() argument 64 wimax_dev->state = state; in __wimax_state_set()
|
/net/rfkill/ |
D | rfkill.c | 59 enum rfkill_state state) in rfkill_led_trigger() argument 65 if (state != RFKILL_STATE_UNBLOCKED) in rfkill_led_trigger() 76 rfkill_led_trigger(rfkill, rfkill->state); in rfkill_led_trigger_activate() 92 oldstate = rfkill->state; in update_rfkill_state() 93 rfkill->state = newstate; in update_rfkill_state() 127 enum rfkill_state state, in rfkill_toggle_radio() argument 136 oldstate = rfkill->state; in rfkill_toggle_radio() 140 rfkill->state = newstate; in rfkill_toggle_radio() 142 switch (state) { in rfkill_toggle_radio() 146 state = RFKILL_STATE_SOFT_BLOCKED; in rfkill_toggle_radio() [all …]
|
D | rfkill-input.c | 118 enum rfkill_state state; in __rfkill_handle_normal_op() local 121 state = (s) ? RFKILL_STATE_UNBLOCKED : in __rfkill_handle_normal_op() 124 state = rfkill_get_global_state(type); in __rfkill_handle_normal_op() 127 state = rfkill_state_complement(state); in __rfkill_handle_normal_op() 129 rfkill_switch_all(type, state); in __rfkill_handle_normal_op() 135 enum rfkill_state state; in __rfkill_handle_normal_op() local 137 state = rfkill_get_global_state(type); in __rfkill_handle_normal_op() 139 state = rfkill_state_complement(state); in __rfkill_handle_normal_op() 141 rfkill_switch_all(type, state); in __rfkill_handle_normal_op() 283 static void rfkill_schedule_evsw_rfkillall(int state) in rfkill_schedule_evsw_rfkillall() argument [all …]
|
/net/core/ |
D | utils.c | 176 int state = IN6PTON_COLON_1_2 | IN6PTON_XDIGIT | IN6PTON_NULL; in in6_pton() local 190 if (!(c & state)) in in6_pton() 194 if (!(state & IN6PTON_NULL)) { in in6_pton() 208 switch (state & IN6PTON_COLON_MASK) { in in6_pton() 211 state = IN6PTON_XDIGIT | IN6PTON_DELIM; in in6_pton() 213 state |= IN6PTON_NULL; in in6_pton() 216 state = IN6PTON_XDIGIT | IN6PTON_COLON_2; in in6_pton() 219 state = IN6PTON_XDIGIT; in in6_pton() 222 state = IN6PTON_COLON_2; in in6_pton() 225 state = 0; in in6_pton() [all …]
|
/net/irda/irlan/ |
D | irlan_event.c | 41 void irlan_next_client_state(struct irlan_cb *self, IRLAN_STATE state) in irlan_next_client_state() argument 43 IRDA_DEBUG(2, "%s(), %s\n", __func__ , irlan_state[state]); in irlan_next_client_state() 48 self->client.state = state; in irlan_next_client_state() 51 void irlan_next_provider_state(struct irlan_cb *self, IRLAN_STATE state) in irlan_next_provider_state() argument 53 IRDA_DEBUG(2, "%s(), %s\n", __func__ , irlan_state[state]); in irlan_next_provider_state() 58 self->provider.state = state; in irlan_next_provider_state()
|
/net/tipc/ |
D | socket.c | 190 socket_state state; in tipc_create() local 205 state = SS_UNCONNECTED; in tipc_create() 209 state = SS_UNCONNECTED; in tipc_create() 214 state = SS_READY; in tipc_create() 238 sock->state = state; in tipc_create() 247 if (sock->state == SS_READY) { in tipc_create() 297 while (sock->state != SS_DISCONNECTING) { in release() 305 if ((sock->state == SS_CONNECTING) || in release() 306 (sock->state == SS_CONNECTED)) { in release() 307 sock->state = SS_DISCONNECTING; in release() [all …]
|
/net/ipv6/ |
D | anycast.c | 430 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_get_first() local 433 state->idev = NULL; in ac6_get_first() 434 for_each_netdev(net, state->dev) { in ac6_get_first() 436 idev = in6_dev_get(state->dev); in ac6_get_first() 442 state->idev = idev; in ac6_get_first() 453 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_get_next() local 457 if (likely(state->idev != NULL)) { in ac6_get_next() 458 read_unlock_bh(&state->idev->lock); in ac6_get_next() 459 in6_dev_put(state->idev); in ac6_get_next() 461 state->dev = next_net_device(state->dev); in ac6_get_next() [all …]
|
/net/llc/ |
D | llc_conn.c | 31 static int llc_find_offset(int state, int ev_type); 120 sk->sk_socket->state = SS_UNCONNECTED; in llc_conn_state_process() 150 if (!llc_data_accept_state(llc->state)) in llc_conn_state_process() 159 sk->sk_socket->state = SS_UNCONNECTED; in llc_conn_state_process() 162 sk->sk_socket->state = SS_CONNECTED; in llc_conn_state_process() 171 sk->sk_socket->state = SS_UNCONNECTED; in llc_conn_state_process() 385 if (llc->state > NBR_CONN_STATES) in llc_conn_service() 392 llc->state = trans->next_state; in llc_conn_service() 393 if (!llc_data_accept_state(llc->state)) in llc_conn_service() 417 &llc_conn_state_table[llc->state - 1]; in llc_qualify_conn_ev() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 61 __be16 state; /* state info */ member 265 s->state = htons(cp->state); in ip_vs_sync_conn() 326 unsigned flags, state; in ip_vs_process_message() local 347 state = ntohs(s->state); in ip_vs_process_message() 355 if (state >= pp->num_states) { in ip_vs_process_message() 357 pp->name, state); in ip_vs_process_message() 363 if (state > 0) { in ip_vs_process_message() 365 state); in ip_vs_process_message() 366 state = 0; in ip_vs_process_message() 396 if (state != IP_VS_TCP_S_ESTABLISHED) in ip_vs_process_message() [all …]
|
/net/bluetooth/rfcomm/ |
D | core.c | 252 BT_DBG("dlc %p state %ld", d, d->state); in rfcomm_dlc_timeout() 261 BT_DBG("dlc %p state %ld timeout %ld", d, d->state, timeout); in rfcomm_dlc_set_timer() 269 BT_DBG("dlc %p state %ld", d, d->state); in rfcomm_dlc_clear_timer() 279 d->state = BT_OPEN; in rfcomm_dlc_clear_state() 361 d, d->state, batostr(src), batostr(dst), channel); in __rfcomm_dlc_open() 366 if (d->state != BT_OPEN && d->state != BT_CLOSED) in __rfcomm_dlc_open() 388 d->state = BT_CONFIG; in __rfcomm_dlc_open() 396 if (s->state == BT_CONNECTED) { in __rfcomm_dlc_open() 427 d, d->state, d->dlci, err, s); in __rfcomm_dlc_close() 429 switch (d->state) { in __rfcomm_dlc_close() [all …]
|
/net/atm/ |
D | proc.c | 107 static inline void *vcc_walk(struct vcc_state *state, loff_t l) in vcc_walk() argument 109 return __vcc_walk(&state->sk, state->family, &state->bucket, l) ? in vcc_walk() 110 state : NULL; in vcc_walk() 116 struct vcc_state *state; in __vcc_seq_open() local 118 state = __seq_open_private(file, ops, sizeof(*state)); in __vcc_seq_open() 119 if (state == NULL) in __vcc_seq_open() 122 state->family = family; in __vcc_seq_open() 129 struct vcc_state *state = seq->private; in vcc_seq_start() local 133 state->sk = SEQ_START_TOKEN; in vcc_seq_start() 134 return left ? vcc_walk(state, left) : SEQ_START_TOKEN; in vcc_seq_start() [all …]
|
/net/ax25/ |
D | ax25_ds_subr.c | 74 …if (ax25->state == AX25_STATE_1 || ax25->state == AX25_STATE_2 || skb_peek(&ax25->ack_queue) != NU… in ax25_ds_enquiry_response() 90 if (ax25o->state == AX25_STATE_1 || ax25o->state == AX25_STATE_2) { in ax25_ds_enquiry_response() 95 if (!(ax25o->condition & AX25_COND_PEER_RX_BUSY) && ax25o->state == AX25_STATE_3) { in ax25_ds_enquiry_response() 100 …if (ax25o->state == AX25_STATE_1 || ax25o->state == AX25_STATE_2 || skb_peek(&ax25o->ack_queue) !=… in ax25_ds_enquiry_response() 105 if (ax25o->state != AX25_STATE_0) in ax25_ds_enquiry_response() 166 …if (ax25->ax25_dev == ax25_dev && (ax25->condition & AX25_COND_DAMA_MODE) && ax25->state > AX25_ST… in ax25_check_dama_slave()
|
D | ax25_std_in.c | 71 ax25->state = AX25_STATE_3; in ax25_std_state1_machine() 192 ax25->state = AX25_STATE_1; in ax25_std_state3_machine() 208 ax25->state = AX25_STATE_1; in ax25_std_state3_machine() 215 ax25->state = AX25_STATE_1; in ax25_std_state3_machine() 255 ax25->state = AX25_STATE_1; in ax25_std_state3_machine() 293 ax25->state = AX25_STATE_3; in ax25_std_state4_machine() 320 ax25->state = AX25_STATE_3; in ax25_std_state4_machine() 326 ax25->state = AX25_STATE_1; in ax25_std_state4_machine() 336 ax25->state = AX25_STATE_1; in ax25_std_state4_machine() 349 ax25->state = AX25_STATE_3; in ax25_std_state4_machine() [all …]
|
/net/decnet/ |
D | dn_nsp_in.c | 351 if ((scp->state == DN_CI) || (scp->state == DN_CD)) { in dn_nsp_conn_conf() 355 scp->state = DN_RUN; in dn_nsp_conn_conf() 384 if (scp->state == DN_CI) { in dn_nsp_conn_ack() 385 scp->state = DN_CD; in dn_nsp_conn_ack() 419 switch(scp->state) { in dn_nsp_disc_init() 422 scp->state = DN_RJ; in dn_nsp_disc_init() 427 scp->state = DN_DN; in dn_nsp_disc_init() 430 scp->state = DN_DIC; in dn_nsp_disc_init() 435 if (sk->sk_socket->state != SS_UNCONNECTED) in dn_nsp_disc_init() 436 sk->sk_socket->state = SS_DISCONNECTING; in dn_nsp_disc_init() [all …]
|
D | af_decnet.c | 497 scp->state = DN_O; /* Open */ in dn_alloc_sock() 578 switch(scp->state) { in dn_destroy_timer() 582 scp->state = DN_CN; in dn_destroy_timer() 588 scp->state = DN_DRC; in dn_destroy_timer() 620 if (sk->sk_socket->state != SS_UNCONNECTED) in dn_destroy_sock() 621 sk->sk_socket->state = SS_DISCONNECTING; in dn_destroy_sock() 626 switch(scp->state) { in dn_destroy_sock() 634 scp->state = DN_DR; in dn_destroy_sock() 637 scp->state = DN_DI; in dn_destroy_sock() 827 if (scp->state != DN_CR) in dn_confirm_accept() [all …]
|
/net/rxrpc/ |
D | ar-output.c | 107 if (call->state <= RXRPC_CALL_COMPLETE) { in rxrpc_send_abort() 108 call->state = RXRPC_CALL_LOCALLY_ABORTED; in rxrpc_send_abort() 176 call->debug_id, call->user_call_ID, call->state, call->conn); in rxrpc_client_sendmsg() 178 if (call->state >= RXRPC_CALL_COMPLETE) { in rxrpc_client_sendmsg() 185 } else if (call->state != RXRPC_CALL_CLIENT_SEND_REQUEST) { in rxrpc_client_sendmsg() 213 _enter("{%d,%s},", call->debug_id, rxrpc_call_states[call->state]); in rxrpc_kernel_send_data() 221 call->debug_id, call->user_call_ID, call->state, call->conn); in rxrpc_kernel_send_data() 223 if (call->state >= RXRPC_CALL_COMPLETE) { in rxrpc_kernel_send_data() 225 } else if (call->state != RXRPC_CALL_CLIENT_SEND_REQUEST && in rxrpc_kernel_send_data() 226 call->state != RXRPC_CALL_SERVER_ACK_REQUEST && in rxrpc_kernel_send_data() [all …]
|
D | ar-call.c | 86 call->state = RXRPC_CALL_CLIENT_SEND_REQUEST; in rxrpc_alloc_call() 268 candidate->state = RXRPC_CALL_SERVER_ACCEPTING; in rxrpc_incoming_call() 270 candidate->state = RXRPC_CALL_SERVER_SECURING; in rxrpc_incoming_call() 279 _debug("extant call [%d]", call->state); in rxrpc_incoming_call() 283 switch (call->state) { in rxrpc_incoming_call() 301 call->debug_id, rxrpc_call_states[call->state]); in rxrpc_incoming_call() 303 if (call->state >= RXRPC_CALL_COMPLETE) { in rxrpc_incoming_call() 489 if (call->state < RXRPC_CALL_COMPLETE && in rxrpc_release_call() 490 call->state != RXRPC_CALL_CLIENT_FINAL_ACK) { in rxrpc_release_call() 491 _debug("+++ ABORTING STATE %d +++\n", call->state); in rxrpc_release_call() [all …]
|
D | ar-input.c | 62 ASSERTCMP(call->state, >=, RXRPC_CALL_COMPLETE); in rxrpc_queue_rcv_skb() 156 if (call->state > RXRPC_CALL_COMPLETE) in rxrpc_fast_process_data() 241 if (call->state < RXRPC_CALL_COMPLETE && in rxrpc_fast_process_data() 277 if (call->state < RXRPC_CALL_DEAD) in rxrpc_fast_process_data() 292 switch (call->state) { in rxrpc_assume_implicit_ackall() 294 call->state = RXRPC_CALL_CLIENT_RECV_REPLY; in rxrpc_assume_implicit_ackall() 367 if (call->state < RXRPC_CALL_COMPLETE) { in rxrpc_fast_process_packet() 368 call->state = RXRPC_CALL_REMOTELY_ABORTED; in rxrpc_fast_process_packet() 382 switch (call->state) { in rxrpc_fast_process_packet() 384 call->state = RXRPC_CALL_SERVER_BUSY; in rxrpc_fast_process_packet() [all …]
|
/net/ipv4/ |
D | igmp.c | 2289 struct igmp_mc_iter_state *state = igmp_mc_seq_private(seq); in igmp_mc_get_first() local 2291 state->in_dev = NULL; in igmp_mc_get_first() 2292 for_each_netdev(net, state->dev) { in igmp_mc_get_first() 2294 in_dev = in_dev_get(state->dev); in igmp_mc_get_first() 2300 state->in_dev = in_dev; in igmp_mc_get_first() 2311 struct igmp_mc_iter_state *state = igmp_mc_seq_private(seq); in igmp_mc_get_next() local 2314 if (likely(state->in_dev != NULL)) { in igmp_mc_get_next() 2315 read_unlock(&state->in_dev->mc_list_lock); in igmp_mc_get_next() 2316 in_dev_put(state->in_dev); in igmp_mc_get_next() 2318 state->dev = next_net_device(state->dev); in igmp_mc_get_next() [all …]
|
/net/netfilter/ |
D | nf_conntrack_proto_tcp.c | 298 enum tcp_conntrack state; in tcp_print_conntrack() local 301 state = ct->proto.tcp.state; in tcp_print_conntrack() 304 return seq_printf(s, "%s ", tcp_conntrack_names[state]); in tcp_print_conntrack() 368 struct ip_ct_tcp_state *state) in tcp_options() argument 381 state->td_scale = in tcp_options() 382 state->flags = 0; in tcp_options() 403 state->flags |= IP_CT_TCP_FLAG_SACK_PERM; in tcp_options() 406 state->td_scale = *(u_int8_t *)ptr; in tcp_options() 408 if (state->td_scale > 14) { in tcp_options() 410 state->td_scale = 14; in tcp_options() [all …]
|
/net/irda/ |
D | wrapper.c | 284 switch(rx_buff->state) { in async_unwrap_bof() 304 rx_buff->state = BEGIN_FRAME; in async_unwrap_bof() 328 switch(rx_buff->state) { in async_unwrap_eof() 343 rx_buff->state = OUTSIDE_FRAME; in async_unwrap_eof() 382 switch(rx_buff->state) { in async_unwrap_ce() 396 rx_buff->state = LINK_ESCAPE; in async_unwrap_ce() 412 switch(rx_buff->state) { in async_unwrap_other() 425 rx_buff->state = OUTSIDE_FRAME; in async_unwrap_other() 440 rx_buff->state = INSIDE_FRAME; in async_unwrap_other() 444 rx_buff->state = OUTSIDE_FRAME; in async_unwrap_other() [all …]
|
/net/irda/ircomm/ |
D | ircomm_event.c | 80 static int (*state[])(struct ircomm_cb *self, IRCOMM_EVENT event, variable 233 ircomm_state[self->state], ircomm_event[event]); in ircomm_do_event() 235 return (*state[self->state])(self, event, skb, info); in ircomm_do_event() 244 void ircomm_next_state(struct ircomm_cb *self, IRCOMM_STATE state) in ircomm_next_state() argument 246 self->state = state; in ircomm_next_state() 249 ircomm_state[self->state], self->service_type); in ircomm_next_state()
|
/net/bridge/ |
D | br_stp.c | 36 br_port_state_names[p->state]); in br_log_state() 62 if (p->state == BR_STATE_DISABLED || in br_should_become_root_port() 250 if (p->state != BR_STATE_DISABLED && in br_designated_port_selection() 321 if (p->state != BR_STATE_DISABLED && in br_config_bpdu_generation() 356 if (p->state != BR_STATE_DISABLED && in br_make_blocking() 357 p->state != BR_STATE_BLOCKING) { in br_make_blocking() 358 if (p->state == BR_STATE_FORWARDING || in br_make_blocking() 359 p->state == BR_STATE_LEARNING) in br_make_blocking() 362 p->state = BR_STATE_BLOCKING; in br_make_blocking() 373 if (p->state != BR_STATE_BLOCKING) in br_make_forwarding() [all …]
|