| /components/net/lwip/lwip-2.1.2/src/netif/ppp/ |
| A D | mppe.c | 72 lwip_sha1_update(&sha1_ctx, state->master_key, state->keylen); in mppe_rekey() 74 lwip_sha1_update(&sha1_ctx, state->session_key, state->keylen); in mppe_rekey() 78 MEMCPY(state->session_key, sha1_digest, state->keylen); in mppe_rekey() 82 lwip_arc4_setup(&state->arc4, sha1_digest, state->keylen); in mppe_rekey() 83 lwip_arc4_crypt(&state->arc4, state->session_key, state->keylen); in mppe_rekey() 93 lwip_arc4_setup(&state->arc4, state->session_key, state->keylen); in mppe_rekey() 119 MEMCPY(state->session_key, state->master_key, sizeof(state->master_key)); in mppe_init() 124 state->keylen = 8; in mppe_init() 223 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_compress() 336 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress() [all …]
|
| A D | fsm.c | 92 switch( f->state ){ in fsm_lowerup() 120 switch( f->state ){ in fsm_lowerdown() 161 switch( f->state ){ in fsm_open() 240 switch( f->state ){ in fsm_close() 270 switch (f->state) { in fsm_timeout() 277 f->state = (f->state == PPP_FSM_CLOSING)? PPP_FSM_CLOSED: PPP_FSM_STOPPED; in fsm_timeout() 345 if( f->state == PPP_FSM_INITIAL || f->state == PPP_FSM_STARTING ){ in fsm_input() 395 switch( f->state ){ in fsm_rconfreq() 473 switch (f->state) { in fsm_rconfack() 541 switch (f->state) { in fsm_rconfnakrej() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/netif/ppp/ |
| A D | mppe.c | 72 lwip_sha1_update(&sha1_ctx, state->master_key, state->keylen); in mppe_rekey() 74 lwip_sha1_update(&sha1_ctx, state->session_key, state->keylen); in mppe_rekey() 78 MEMCPY(state->session_key, sha1_digest, state->keylen); in mppe_rekey() 82 lwip_arc4_setup(&state->arc4, sha1_digest, state->keylen); in mppe_rekey() 83 lwip_arc4_crypt(&state->arc4, state->session_key, state->keylen); in mppe_rekey() 93 lwip_arc4_setup(&state->arc4, state->session_key, state->keylen); in mppe_rekey() 119 MEMCPY(state->session_key, state->master_key, sizeof(state->master_key)); in mppe_init() 124 state->keylen = 8; in mppe_init() 223 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_compress() 336 state->ccount = (state->ccount + 1) % MPPE_CCOUNT_SPACE; in mppe_decompress() [all …]
|
| A D | fsm.c | 92 switch( f->state ){ in fsm_lowerup() 120 switch( f->state ){ in fsm_lowerdown() 161 switch( f->state ){ in fsm_open() 240 switch( f->state ){ in fsm_close() 270 switch (f->state) { in fsm_timeout() 277 f->state = (f->state == PPP_FSM_CLOSING)? PPP_FSM_CLOSED: PPP_FSM_STOPPED; in fsm_timeout() 345 if( f->state == PPP_FSM_INITIAL || f->state == PPP_FSM_STARTING ){ in fsm_input() 395 switch( f->state ){ in fsm_rconfreq() 473 switch (f->state) { in fsm_rconfack() 541 switch (f->state) { in fsm_rconfnakrej() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/netif/ppp/ |
| A D | fsm.c | 144 PROTO_NAME(f), f->state, ppperr_strerr[f->state])); in fsm_lowerup() 198 PROTO_NAME(f), f->state, ppperr_strerr[f->state])); in fsm_lowerdown() 328 PROTO_NAME(f), f->state, ppperr_strerr[f->state])); in fsm_timeout() 352 PROTO_NAME(f), f->state, ppperr_strerr[f->state])); in fsm_timeout() 359 PROTO_NAME(f), f->state, ppperr_strerr[f->state])); in fsm_timeout() 373 PROTO_NAME(f), f->state, ppperr_strerr[f->state])); in fsm_timeout() 412 if( f->state == LS_INITIAL || f->state == LS_STARTING ) { in fsm_input() 414 f->protocol, f->state, ppperr_strerr[f->state])); in fsm_input() 693 PROTO_NAME(f), f->state, ppperr_strerr[f->state])); in fsm_rtermack() 738 PROTO_NAME(f), f->state, ppperr_strerr[f->state])); in fsm_rcoderej() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/apps/altcp_tls/ |
| A D | altcp_tls_mbedtls.c | 200 state = (altcp_mbedtls_state_t *)conn->state; in altcp_mbedtls_lower_recv() 202 if (!state) { in altcp_mbedtls_lower_recv() 218 if ((state->rx != NULL) || (state->rx_app != NULL)) { in altcp_mbedtls_lower_recv() 343 if (conn->state != state) { in altcp_mbedtls_pass_rx_data() 451 state = (altcp_mbedtls_state_t *)conn->state; in altcp_mbedtls_bio_recv() 452 p = state->rx; in altcp_mbedtls_bio_recv() 608 conn->state = state; in altcp_mbedtls_setup() 910 state = (altcp_mbedtls_state_t *)conn->state; in altcp_mbedtls_recved() 996 state = (altcp_mbedtls_state_t*)conn->state; in altcp_mbedtls_sndbuf() 1042 state = (altcp_mbedtls_state_t *)conn->state; in altcp_mbedtls_write() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/netif/ |
| A D | zepif.c | 183 state = (struct zepif_state *)netif->state; in zepif_linkoutput() 201 state->seqno++; in zepif_linkoutput() 209 err = udp_sendto(state->pcb, q, state->init.zep_dst_ip_addr, state->init.zep_dst_udp_port); in zepif_linkoutput() 230 if (state == NULL) { in zepif_init() 250 netif->state = NULL; in zepif_init() 253 if (state->pcb == NULL) { in zepif_init() 257 err = udp_bind(state->pcb, state->init.zep_src_ip_addr, state->init.zep_src_udp_port); in zepif_init() 262 udp_bind_netif(state->pcb, state->init.zep_netif); in zepif_init() 271 netif->state = state; in zepif_init() 293 if (state->pcb != NULL) { in zepif_init() [all …]
|
| A D | slipif.c | 99 u8_t state; member 128 priv = (struct slipif_priv *)netif->state; in slipif_output() 215 priv = (struct slipif_priv *)netif->state; in slipif_rxbyte() 217 switch (priv->state) { in slipif_rxbyte() 236 priv->state = SLIP_RECV_ESCAPE; in slipif_rxbyte() 255 priv->state = SLIP_RECV_NORMAL; in slipif_rxbyte() 368 sio_num = LWIP_PTR_NUMERIC_CAST(u8_t, netif->state); in slipif_init() 399 priv->state = SLIP_RECV_NORMAL; in slipif_init() 406 netif->state = priv; in slipif_init() 434 priv = (struct slipif_priv *)netif->state; in slipif_poll() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/apps/http/ |
| A D | altcp_proxyconnect.c | 89 mem_free(state); in altcp_proxyconnect_state_free() 117 if (!state) { in altcp_proxyconnect_send_request() 203 state = (altcp_proxyconnect_state_t *)conn->state; in altcp_proxyconnect_lower_recv() 205 if (!state) { in altcp_proxyconnect_lower_recv() 327 if (state == NULL) { in altcp_proxyconnect_setup() 330 state->flags = 0; in altcp_proxyconnect_setup() 335 conn->state = state; in altcp_proxyconnect_setup() 448 state = (altcp_proxyconnect_state_t *)conn->state; in altcp_proxyconnect_recved() 466 state = (altcp_proxyconnect_state_t *)conn->state; in altcp_proxyconnect_connect() 533 state = (altcp_proxyconnect_state_t *)conn->state; in altcp_proxyconnect_write() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/core/ |
| A D | altcp_tcp.c | 184 conn->state = tpcb; in altcp_tcp_setup() 261 pcb = (struct tcp_pcb *)conn->state; in altcp_tcp_bind() 274 pcb = (struct tcp_pcb *)conn->state; in altcp_tcp_connect() 287 pcb = (struct tcp_pcb *)conn->state; in altcp_tcp_listen() 290 conn->state = lpcb; in altcp_tcp_listen() 317 pcb = (struct tcp_pcb *)conn->state; in altcp_tcp_close() 344 pcb = (struct tcp_pcb *)conn->state; in altcp_tcp_shutdown() 411 if (conn && conn->state) { in altcp_tcp_nagle_disable() 421 if (conn && conn->state) { in altcp_tcp_nagle_enable() 431 if (conn && conn->state) { in altcp_tcp_nagle_disabled() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/netif/ |
| A D | slipif.c | 97 u8_t state; member 129 priv = netif->state; in slipif_output() 178 priv = netif->state; in slipif_rxbyte() 180 switch (priv->state) { in slipif_rxbyte() 199 priv->state = SLIP_RECV_ESCAPE; in slipif_rxbyte() 214 priv->state = SLIP_RECV_NORMAL; in slipif_rxbyte() 338 if (netif->state != NULL) { in slipif_init() 339 sio_num = *(u8_t*)netif->state; in slipif_init() 354 priv->state = SLIP_RECV_NORMAL; in slipif_init() 361 netif->state = priv; in slipif_init() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/netif/ |
| A D | slipif.c | 99 u8_t state; member 128 priv = (struct slipif_priv *)netif->state; in slipif_output() 215 priv = (struct slipif_priv *)netif->state; in slipif_rxbyte() 217 switch (priv->state) { in slipif_rxbyte() 236 priv->state = SLIP_RECV_ESCAPE; in slipif_rxbyte() 255 priv->state = SLIP_RECV_NORMAL; in slipif_rxbyte() 385 if (netif->state != NULL) { in slipif_init() 386 sio_num = *(u8_t*)netif->state; in slipif_init() 401 priv->state = SLIP_RECV_NORMAL; in slipif_init() 408 netif->state = priv; in slipif_init() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/apps/snmp/ |
| A D | snmp_mib2_tcp.c | 165 value->u32 = pcb->state + 1; in tcp_ConnTable_get_cell_value_core() 174 if (pcb->state == LISTEN) { in tcp_ConnTable_get_cell_value_core() 181 if (pcb->state == LISTEN) { in tcp_ConnTable_get_cell_value_core() 226 if (pcb->state == LISTEN) { in tcp_ConnTable_get_cell_value() 253 struct snmp_next_oid_state state; in tcp_ConnTable_get_next_cell_instance_and_value() local 270 if (pcb->state == LISTEN) { in tcp_ConnTable_get_next_cell_instance_and_value() 291 snmp_oid_assign(row_oid, state.next_oid, state.next_oid_len); in tcp_ConnTable_get_next_cell_instance_and_value() 310 value->u32 = pcb->state + 1; in tcp_ConnectionTable_get_cell_value_core() 370 struct snmp_next_oid_state state; in tcp_ConnectionTable_get_next_cell_instance_and_value() local 405 snmp_oid_assign(row_oid, state.next_oid, state.next_oid_len); in tcp_ConnectionTable_get_next_cell_instance_and_value() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/apps/snmp/ |
| A D | snmp_mib2_tcp.c | 172 value->u32 = pcb->state + 1; in tcp_ConnTable_get_cell_value_core() 181 if (pcb->state == LISTEN) { in tcp_ConnTable_get_cell_value_core() 188 if (pcb->state == LISTEN) { in tcp_ConnTable_get_cell_value_core() 233 if (pcb->state == LISTEN) { in tcp_ConnTable_get_cell_value() 260 struct snmp_next_oid_state state; in tcp_ConnTable_get_next_cell_instance_and_value() local 277 if (pcb->state == LISTEN) { in tcp_ConnTable_get_next_cell_instance_and_value() 298 snmp_oid_assign(row_oid, state.next_oid, state.next_oid_len); in tcp_ConnTable_get_next_cell_instance_and_value() 317 value->u32 = pcb->state + 1; in tcp_ConnectionTable_get_cell_value_core() 377 struct snmp_next_oid_state state; in tcp_ConnectionTable_get_next_cell_instance_and_value() local 412 snmp_oid_assign(row_oid, state.next_oid, state.next_oid_len); in tcp_ConnectionTable_get_next_cell_instance_and_value() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv4/ |
| A D | etharp.c | 103 u8_t state; member 182 arp_table[i].state = ETHARP_STATE_EMPTY; in etharp_free_entry() 206 u8_t state = arp_table[i].state; in etharp_tmr() local 207 if (state != ETHARP_STATE_EMPTY in etharp_tmr() 209 && (state != ETHARP_STATE_STATIC) in etharp_tmr() 286 u8_t state = arp_table[i].state; in etharp_find_entry() local 292 } else if (state != ETHARP_STATE_EMPTY) { in etharp_find_entry() 294 state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE); in etharp_find_entry() 306 if (state == ETHARP_STATE_PENDING) { in etharp_find_entry() 325 if (state < ETHARP_STATE_STATIC) in etharp_find_entry() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv4/ |
| A D | etharp.c | 102 u8_t state; member 180 arp_table[i].state = ETHARP_STATE_EMPTY; in etharp_free_entry() 204 u8_t state = arp_table[i].state; in etharp_tmr() local 205 if (state != ETHARP_STATE_EMPTY in etharp_tmr() 207 && (state != ETHARP_STATE_STATIC) in etharp_tmr() 284 u8_t state = arp_table[i].state; in etharp_find_entry() local 290 } else if (state != ETHARP_STATE_EMPTY) { in etharp_find_entry() 292 state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE); in etharp_find_entry() 304 if (state == ETHARP_STATE_PENDING) { in etharp_find_entry() 323 if (state < ETHARP_STATE_STATIC) in etharp_find_entry() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ |
| A D | tcp.c | 299 switch (pcb->state) { in tcp_close_shutdown() 335 switch (pcb->state) { in tcp_close_shutdown_fin() 447 switch (pcb->state) { in tcp_shutdown() 480 pcb->state != LISTEN); in tcp_abandon() 723 lpcb->state = LISTEN; in tcp_listen_with_backlog_and_err() 800 pcb->state != LISTEN); in tcp_recved() 807 if ((pcb->state == CLOSE_WAIT) || (pcb->state == LAST_ACK)) { in tcp_recved() 966 pcb->state = SYN_SENT; in tcp_connect() 1500 LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK)); in tcp_kill_state() 1507 if (pcb->state == state) { in tcp_kill_state() [all …]
|
| /components/drivers/spi/ |
| A D | dev_spi_bit_ops.h | 26 void (*const set_sclk)(void *data, rt_int32_t state); 27 void (*const set_mosi)(void *data, rt_int32_t state); 28 void (*const set_miso)(void *data, rt_int32_t state); 33 void (*const dir_mosi)(void *data, rt_int32_t state); 34 void (*const dir_miso)(void *data, rt_int32_t state);
|
| /components/drivers/regulator/ |
| A D | regulator-gpio.c | 36 int state; member 118 if (state->value < best_val && in regulator_gpio_set_voltage() 119 state->value >= min_uvolt && in regulator_gpio_set_voltage() 120 state->value <= max_uvolt) in regulator_gpio_set_voltage() 122 target = state->gpios; in regulator_gpio_set_voltage() 123 best_val = state->value; in regulator_gpio_set_voltage() 134 int state = (target >> i) & 1; in regulator_gpio_set_voltage() local 138 rt_pin_write(gpiod->pin, gpiod->flags == PIND_OUT_HIGH ? state : !state); in regulator_gpio_set_voltage() 141 rg->state = target; in regulator_gpio_set_voltage() 152 if (rg->states[i].gpios == rg->state) in regulator_gpio_get_voltage() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | tcp.c | 174 if (rst_on_unacked_data && ((pcb->state == ESTABLISHED) || (pcb->state == CLOSE_WAIT))) { in tcp_close_shutdown() 199 switch (pcb->state) { in tcp_close_shutdown() 246 pcb->state = LAST_ACK; in tcp_close_shutdown() 292 if (pcb->state != LISTEN) { in tcp_close() 315 if (pcb->state == LISTEN) { in tcp_shutdown() 334 switch (pcb->state) { in tcp_shutdown() 367 pcb->state != LISTEN); in tcp_abandon() 551 lpcb->state = LISTEN; in tcp_listen_with_backlog() 617 pcb->state != LISTEN); in tcp_recved() 768 pcb->state = SYN_SENT; in tcp_connect() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/snmp/ |
| A D | msg_in.c | 85 msg_ps->state = SNMP_MSG_EMPTY; in snmp_init() 132 msg_ps->state = SNMP_MSG_EMPTY; in snmp_error_response() 152 msg_ps->state = SNMP_MSG_EMPTY; in snmp_ok_response() 224 msg_ps->state = SNMP_MSG_SEARCH_OBJ; in snmp_msg_get_event() 244 msg_ps->state = SNMP_MSG_SEARCH_OBJ; in snmp_msg_get_event() 379 if ((msg_ps->state == SNMP_MSG_SEARCH_OBJ) && in snmp_msg_get_event() 434 msg_ps->state = SNMP_MSG_SEARCH_OBJ; in snmp_msg_getnext_event() 508 msg_ps->state = SNMP_MSG_SEARCH_OBJ; in snmp_msg_getnext_event() 524 if ((msg_ps->state == SNMP_MSG_SEARCH_OBJ) && in snmp_msg_getnext_event() 578 msg_ps->state = SNMP_MSG_SEARCH_OBJ; in snmp_msg_set_event() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/netif/ppp/polarssl/ |
| A D | md4.c | 80 ctx->state[0] = 0x67452301; in md4_starts() 81 ctx->state[1] = 0xEFCDAB89; in md4_starts() 82 ctx->state[2] = 0x98BADCFE; in md4_starts() 109 A = ctx->state[0]; in md4_process() 110 B = ctx->state[1]; in md4_process() 111 C = ctx->state[2]; in md4_process() 112 D = ctx->state[3]; in md4_process() 183 ctx->state[0] += A; in md4_process() 184 ctx->state[1] += B; in md4_process() 185 ctx->state[2] += C; in md4_process() [all …]
|
| A D | md5.c | 79 ctx->state[0] = 0x67452301; in md5_starts() 80 ctx->state[1] = 0xEFCDAB89; in md5_starts() 81 ctx->state[2] = 0x98BADCFE; in md5_starts() 113 A = ctx->state[0]; in md5_process() 114 B = ctx->state[1]; in md5_process() 115 C = ctx->state[2]; in md5_process() 116 D = ctx->state[3]; in md5_process() 202 ctx->state[0] += A; in md5_process() 203 ctx->state[1] += B; in md5_process() 204 ctx->state[2] += C; in md5_process() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/netif/ppp/polarssl/ |
| A D | md4.c | 80 ctx->state[0] = 0x67452301; in md4_starts() 81 ctx->state[1] = 0xEFCDAB89; in md4_starts() 82 ctx->state[2] = 0x98BADCFE; in md4_starts() 109 A = ctx->state[0]; in md4_process() 110 B = ctx->state[1]; in md4_process() 111 C = ctx->state[2]; in md4_process() 112 D = ctx->state[3]; in md4_process() 183 ctx->state[0] += A; in md4_process() 184 ctx->state[1] += B; in md4_process() 185 ctx->state[2] += C; in md4_process() [all …]
|
| A D | md5.c | 79 ctx->state[0] = 0x67452301; in md5_starts() 80 ctx->state[1] = 0xEFCDAB89; in md5_starts() 81 ctx->state[2] = 0x98BADCFE; in md5_starts() 113 A = ctx->state[0]; in md5_process() 114 B = ctx->state[1]; in md5_process() 115 C = ctx->state[2]; in md5_process() 116 D = ctx->state[3]; in md5_process() 202 ctx->state[0] += A; in md5_process() 203 ctx->state[1] += B; in md5_process() 204 ctx->state[2] += C; in md5_process() [all …]
|