Home
last modified time | relevance | path

Searched refs:fsm (Results 1 – 20 of 20) sorted by relevance

/Zephyr-latest/subsys/net/l2/ppp/
Dfsm.c26 struct ppp_context *ppp_fsm_ctx(struct ppp_fsm *fsm) in ppp_fsm_ctx() argument
28 if (fsm->protocol == PPP_LCP) { in ppp_fsm_ctx()
29 return CONTAINER_OF(fsm, struct ppp_context, lcp.fsm); in ppp_fsm_ctx()
31 } else if (fsm->protocol == PPP_IPCP) { in ppp_fsm_ctx()
32 return CONTAINER_OF(fsm, struct ppp_context, ipcp.fsm); in ppp_fsm_ctx()
35 } else if (fsm->protocol == PPP_IPV6CP) { in ppp_fsm_ctx()
36 return CONTAINER_OF(fsm, struct ppp_context, ipv6cp.fsm); in ppp_fsm_ctx()
39 } else if (fsm->protocol == PPP_PAP) { in ppp_fsm_ctx()
40 return CONTAINER_OF(fsm, struct ppp_context, pap.fsm); in ppp_fsm_ctx()
47 struct net_if *ppp_fsm_iface(struct ppp_fsm *fsm) in ppp_fsm_iface() argument
[all …]
Dpap.c18 return ppp_fsm_input(&ctx->pap.fsm, PPP_PAP, pkt); in pap_handle()
21 static struct net_pkt *pap_config_info_add(struct ppp_fsm *fsm) in pap_config_info_add() argument
27 pkt = net_pkt_alloc_with_buffer(ppp_fsm_iface(fsm), sizeof(payload), in pap_config_info_add()
38 static int pap_config_info_ack(struct ppp_fsm *fsm, in pap_config_info_ack() argument
46 if (fsm->state == PPP_REQUEST_SENT) { in pap_config_info_ack()
47 ppp_change_state(fsm, PPP_ACK_SENT); in pap_config_info_ack()
55 ppp_fsm_lower_down(&ctx->pap.fsm); in pap_lower_down()
60 ppp_fsm_lower_up(&ctx->pap.fsm); in pap_lower_up()
65 ppp_fsm_open(&ctx->pap.fsm); in pap_open()
70 ppp_fsm_close(&ctx->pap.fsm, reason); in pap_close()
[all …]
Dlcp.c23 static enum net_verdict lcp_handle_ext(struct ppp_fsm *fsm, in lcp_handle_ext() argument
32 return ppp_fsm_recv_protocol_rej(fsm, id, pkt); in lcp_handle_ext()
36 return ppp_fsm_recv_echo_req(fsm, id, pkt); in lcp_handle_ext()
40 return ppp_fsm_recv_echo_reply(fsm, id, pkt); in lcp_handle_ext()
44 return ppp_fsm_recv_discard_req(fsm, id, pkt); in lcp_handle_ext()
57 return ppp_fsm_input(&ctx->lcp.fsm, PPP_LCP, pkt); in lcp_handle()
71 static int lcp_auth_proto_parse(struct ppp_fsm *fsm, struct net_pkt *pkt, in lcp_auth_proto_parse() argument
98 static int lcp_auth_proto_nack(struct ppp_fsm *fsm, struct net_pkt *ret_pkt, in lcp_auth_proto_nack() argument
111 static int lcp_config_info_req(struct ppp_fsm *fsm, in lcp_config_info_req() argument
116 struct ppp_context *ctx = CONTAINER_OF(fsm, struct ppp_context, in lcp_config_info_req()
[all …]
Dipv6cp.c24 return ppp_fsm_input(&ctx->ipv6cp.fsm, PPP_IPV6CP, pkt); in ipv6cp_handle()
81 static struct net_pkt *ipv6cp_config_info_add(struct ppp_fsm *fsm) in ipv6cp_config_info_add() argument
83 return ppp_my_options_add(fsm, INTERFACE_IDENTIFIER_OPTION_LEN); in ipv6cp_config_info_add()
91 static int ipv6cp_interface_identifier_parse(struct ppp_fsm *fsm, in ipv6cp_interface_identifier_parse() argument
111 fsm->name, fsm, "peer ", iid_str); in ipv6cp_interface_identifier_parse()
124 static int ipv6cp_config_info_req(struct ppp_fsm *fsm, in ipv6cp_config_info_req() argument
130 CONTAINER_OF(fsm, struct ppp_context, ipv6cp.fsm); in ipv6cp_config_info_req()
136 ret = ppp_config_info_req(fsm, pkt, length, ret_pkt, PPP_IPV6CP, in ipv6cp_config_info_req()
156 static int ipv6cp_config_info_ack(struct ppp_fsm *fsm, in ipv6cp_config_info_ack() argument
162 ret = ppp_my_options_parse_conf_ack(fsm, pkt, length); in ipv6cp_config_info_ack()
[all …]
Dipcp.c25 return ppp_fsm_input(&ctx->ipcp.fsm, PPP_IPCP, pkt); in ipcp_handle()
140 static struct net_pkt *ipcp_config_info_add(struct ppp_fsm *fsm) in ipcp_config_info_add() argument
142 return ppp_my_options_add(fsm, 3 * IP_ADDRESS_OPTION_LEN); in ipcp_config_info_add()
151 static int ipcp_dns_address_parse(struct ppp_fsm *fsm, struct net_pkt *pkt, in ipcp_dns_address_parse() argument
176 static int ipcp_ip_address_parse(struct ppp_fsm *fsm, struct net_pkt *pkt, in ipcp_ip_address_parse() argument
213 static int ipcp_server_nak_ip_address(struct ppp_fsm *fsm, in ipcp_server_nak_ip_address() argument
217 CONTAINER_OF(fsm, struct ppp_context, ipcp.fsm); in ipcp_server_nak_ip_address()
227 static int ipcp_server_nak_dns1_address(struct ppp_fsm *fsm, in ipcp_server_nak_dns1_address() argument
232 CONTAINER_OF(fsm, struct ppp_context, ipcp.fsm); in ipcp_server_nak_dns1_address()
240 static int ipcp_server_nak_dns2_address(struct ppp_fsm *fsm, in ipcp_server_nak_dns2_address() argument
[all …]
Doptions.c21 int ppp_parse_options(struct ppp_fsm *fsm, struct net_pkt *pkt, in ppp_parse_options() argument
58 NET_DBG("[%s/%p] option %s (%d) len %d", fsm->name, fsm, in ppp_parse_options()
59 ppp_option2str(fsm->protocol, opt_type), opt_type, in ppp_parse_options()
97 struct ppp_fsm *fsm; member
113 struct ppp_fsm *fsm = parse_data->fsm; in ppp_parse_option_conf_req_unsupported() local
121 fsm->name, fsm, "Check", in ppp_parse_option_conf_req_unsupported()
146 struct ppp_fsm *fsm = parse_data->fsm; in ppp_parse_option_conf_req_supported() local
153 ret = option_info->parse(fsm, pkt, parse_data->user_data); in ppp_parse_option_conf_req_supported()
156 ret = option_info->nack(fsm, parse_data->ret_pkt, in ppp_parse_option_conf_req_supported()
163 int ppp_config_info_req(struct ppp_fsm *fsm, in ppp_config_info_req() argument
[all …]
Dppp_internal.h66 int (*parse)(struct ppp_fsm *fsm, struct net_pkt *pkt,
68 int (*nack)(struct ppp_fsm *fsm, struct net_pkt *ret_pkt,
79 int ppp_config_info_req(struct ppp_fsm *fsm,
111 void ppp_fsm_name_set(struct ppp_fsm *fsm, const char *name);
115 void ppp_change_state(struct ppp_fsm *fsm, enum ppp_state new_state);
124 #define ppp_change_state(fsm, state) \ argument
125 ppp_change_state_debug(fsm, state, __func__, __LINE__)
127 void ppp_change_state_debug(struct ppp_fsm *fsm, enum ppp_state new_state,
131 struct ppp_context *ppp_fsm_ctx(struct ppp_fsm *fsm);
132 struct net_if *ppp_fsm_iface(struct ppp_fsm *fsm);
[all …]
Dmisc.c268 void ppp_change_state_debug(struct ppp_fsm *fsm, enum ppp_state new_state, in ppp_change_state_debug() argument
271 void ppp_change_state(struct ppp_fsm *fsm, enum ppp_state new_state) in ppp_change_state_debug()
274 NET_ASSERT(fsm); in ppp_change_state_debug()
276 if (fsm->state == new_state) { in ppp_change_state_debug()
285 fsm->name, fsm, ppp_state_str(fsm->state), fsm->state, in ppp_change_state_debug()
289 validate_state_transition(fsm->state, new_state); in ppp_change_state_debug()
291 fsm->state = new_state; in ppp_change_state_debug()
367 void ppp_fsm_name_set(struct ppp_fsm *fsm, const char *name) in ppp_fsm_name_set() argument
370 fsm->name = name; in ppp_fsm_name_set()
372 ARG_UNUSED(fsm); in ppp_fsm_name_set()
DCMakeLists.txt13 fsm.c
Dlink.c97 void ppp_link_established(struct ppp_context *ctx, struct ppp_fsm *fsm) in ppp_link_established() argument
Dppp_l2.c366 ret = ppp_send_pkt(&ctx->lcp.fsm, iface, PPP_ECHO_REQ, 0, in net_ppp_ping()
/Zephyr-latest/subsys/net/lib/shell/
Dppp.c81 ppp_state_str(ctx->lcp.fsm.state), ctx->lcp.fsm.state); in cmd_net_ppp_status()
82 PR("LCP retransmits : %u\n", ctx->lcp.fsm.retransmits); in cmd_net_ppp_status()
83 PR("LCP NACK loops : %u\n", ctx->lcp.fsm.nack_loops); in cmd_net_ppp_status()
84 PR("LCP NACKs recv : %u\n", ctx->lcp.fsm.recv_nack_loops); in cmd_net_ppp_status()
85 PR("LCP current id : %d\n", ctx->lcp.fsm.id); in cmd_net_ppp_status()
86 PR("LCP ACK received : %s\n", ctx->lcp.fsm.ack_received ? in cmd_net_ppp_status()
91 ppp_state_str(ctx->ipcp.fsm.state), ctx->ipcp.fsm.state); in cmd_net_ppp_status()
92 PR("IPCP retransmits : %u\n", ctx->ipcp.fsm.retransmits); in cmd_net_ppp_status()
93 PR("IPCP NACK loops : %u\n", ctx->ipcp.fsm.nack_loops); in cmd_net_ppp_status()
94 PR("IPCP NACKs recv : %u\n", ctx->ipcp.fsm.recv_nack_loops); in cmd_net_ppp_status()
[all …]
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_bus_uart.c35 enum eswifi_uart_fsm fsm; member
92 static char get_fsm_char(int fsm) in get_fsm_char() argument
94 switch (fsm) { in get_fsm_char()
116 get_fsm_char(uart->fsm), c, c); in eswifi_uart_get_resp()
126 switch (uart->fsm) { in eswifi_uart_get_resp()
129 uart->fsm = ESWIFI_UART_FSM_WAIT_LF; in eswifi_uart_get_resp()
134 uart->fsm = ESWIFI_UART_FSM_WAIT_MARK; in eswifi_uart_get_resp()
136 uart->fsm = ESWIFI_UART_FSM_WAIT_CR; in eswifi_uart_get_resp()
141 uart->fsm = ESWIFI_UART_FSM_WAIT_SPACE; in eswifi_uart_get_resp()
143 uart->fsm = ESWIFI_UART_FSM_WAIT_LF; in eswifi_uart_get_resp()
[all …]
/Zephyr-latest/include/zephyr/net/
Dppp.h244 int (*config_info_ack)(struct ppp_fsm *fsm,
249 struct net_pkt *(*config_info_add)(struct ppp_fsm *fsm);
252 int (*config_info_len)(struct ppp_fsm *fsm);
255 int (*config_info_nack)(struct ppp_fsm *fsm,
261 int (*config_info_req)(struct ppp_fsm *fsm,
267 int (*config_info_rej)(struct ppp_fsm *fsm,
272 void (*config_info_reset)(struct ppp_fsm *fsm);
275 void (*up)(struct ppp_fsm *fsm);
278 void (*down)(struct ppp_fsm *fsm);
281 void (*starting)(struct ppp_fsm *fsm);
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/sub_sets/
Disoal_test_rx.c906 zassert_equal(isoal_global.sink_state[sink_hdl].sdu_production.fsm, in ZTEST()
909 FSM_TO_STR(isoal_global.sink_state[sink_hdl].sdu_production.fsm), in ZTEST()
1081 zassert_equal(isoal_global.sink_state[sink_hdl].sdu_production.fsm, in ZTEST()
1084 FSM_TO_STR(isoal_global.sink_state[sink_hdl].sdu_production.fsm), in ZTEST()
1217 zassert_equal(isoal_global.sink_state[sink_hdl].sdu_production.fsm, in ZTEST()
1220 FSM_TO_STR(isoal_global.sink_state[sink_hdl].sdu_production.fsm), in ZTEST()
1340 zassert_equal(isoal_global.sink_state[sink_hdl].sdu_production.fsm, in ZTEST()
1343 FSM_TO_STR(isoal_global.sink_state[sink_hdl].sdu_production.fsm), in ZTEST()
1399 zassert_equal(isoal_global.sink_state[sink_hdl].sdu_production.fsm, in ZTEST()
1402 FSM_TO_STR(isoal_global.sink_state[sink_hdl].sdu_production.fsm), in ZTEST()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Disoal.c762 (!pdu_err || sp->fsm == ISOAL_ERR_SPOOL); in isoal_rx_unframed_consume()
770 if (sp->fsm == ISOAL_ERR_SPOOL) { in isoal_rx_unframed_consume()
790 sp->fsm = ISOAL_START; in isoal_rx_unframed_consume()
794 if (sp->fsm == ISOAL_START) { in isoal_rx_unframed_consume()
851 switch (sp->fsm) { in isoal_rx_unframed_consume()
938 (sp->fsm != ISOAL_ERR_SPOOL)) { in isoal_rx_unframed_consume()
944 if (sp->fsm != ISOAL_ERR_SPOOL && (!pdu_padding || end_of_packet)) { in isoal_rx_unframed_consume()
956 sp->fsm = next_state; in isoal_rx_unframed_consume()
1130 if (sp->fsm == ISOAL_START) { in isoal_rx_framed_consume()
1167 if (sp->fsm == ISOAL_START) { in isoal_rx_framed_consume()
[all …]
Disoal.h289 } fsm; member
/Zephyr-latest/drivers/dma/
Ddma_mchp_xec.c94 volatile uint32_t fsm; member
556 chregs->fsm = 0; /* delay */ in dma_xec_stop()
/Zephyr-latest/doc/releases/
Drelease-notes-2.0.rst641 * :github:`18396` - [Coverity CID :203435]Error handling issues in /subsys/net/l2/ppp/fsm.c
Drelease-notes-3.2.rst2117 * :github:`48541` - subsys/net/l2/ppp/fsm.c: BUS FAULT