Home
last modified time | relevance | path

Searched refs:msg_type (Results 1 – 25 of 36) sorted by relevance

12

/Zephyr-4.3.0/tests/net/socket/websocket/src/
Dmain.c50 uint32_t *msg_type, uint64_t *remaining, in test_recv_buf() argument
64 msg_type, remaining, 0); in test_recv_buf()
106 uint32_t msg_type = -1; in test_recv() local
125 &ctx, &msg_type, &remaining, in test_recv()
142 &ctx, &msg_type, &remaining, in test_recv()
158 &ctx, &msg_type, &remaining, in test_recv()
171 zassert_equal(msg_type & WEBSOCKET_FLAG_TEXT, WEBSOCKET_FLAG_TEXT, "Msg is not text"); in test_recv()
228 uint32_t msg_type = -1; in ZTEST() local
239 total_read = test_recv_buf(&feed_buf[0], sizeof(ping), &ctx, &msg_type, &remaining, in ZTEST()
243 zassert_equal(msg_type & WEBSOCKET_FLAG_PING, WEBSOCKET_FLAG_PING, "Msg is not ping"); in ZTEST()
[all …]
/Zephyr-4.3.0/tests/net/dhcpv4/client/src/
Dmain.c581 enum net_dhcpv4_msg_type msg_type, in option_domain_cb() argument
586 ARG_UNUSED(msg_type); in option_domain_cb()
599 enum net_dhcpv4_msg_type msg_type, in option_pop3_cb() argument
604 ARG_UNUSED(msg_type); in option_pop3_cb()
617 enum net_dhcpv4_msg_type msg_type, in option_invalid_cb() argument
622 ARG_UNUSED(msg_type); in option_invalid_cb()
633 enum net_dhcpv4_msg_type msg_type, in vendor_specific_string_cb() argument
638 ARG_UNUSED(msg_type); in vendor_specific_string_cb()
651 enum net_dhcpv4_msg_type msg_type, in vendor_specific_byte_cb() argument
654 ARG_UNUSED(msg_type); in vendor_specific_byte_cb()
[all …]
/Zephyr-4.3.0/include/zephyr/net/
Ddhcpv4.h90 enum net_dhcpv4_msg_type msg_type,
254 const char *net_dhcpv4_msg_type_name(enum net_dhcpv4_msg_type msg_type);
Dgptp.h118 #define GPTP_IS_EVENT_MSG(msg_type) (!((msg_type) & BIT(3))) argument
/Zephyr-4.3.0/subsys/net/lib/ocpp/
Docpp_wamp_rpc.c75 int ocpp_receive_from_server(struct ocpp_wamp_rpc_msg *rcv, uint32_t *msg_type, in ocpp_receive_from_server() argument
92 msg_type, in ocpp_receive_from_server()
Docpp.c521 uint32_t msg_type; in ocpp_wsreader() local
529 ret = ocpp_receive_from_server(&rcv, &msg_type, 200); in ocpp_wsreader()
538 if (msg_type & WEBSOCKET_FLAG_PING) { in ocpp_wsreader()
542 } else if (msg_type & WEBSOCKET_FLAG_CLOSE) { in ocpp_wsreader()
Docpp_i.h196 int ocpp_receive_from_server(struct ocpp_wamp_rpc_msg *rcv, uint32_t *msg_type,
/Zephyr-4.3.0/subsys/bluetooth/mesh/
Dpb_gatt_cli.c43 switch (role->msg_type) { in pb_gatt_msg_recv()
49 LOG_WRN("Unhandled Message Type 0x%02x", role->msg_type); in pb_gatt_msg_recv()
Dproxy_msg.c118 role->msg_type = PDU_TYPE(data); in bt_mesh_proxy_msg_recv()
131 role->msg_type = PDU_TYPE(data); in bt_mesh_proxy_msg_recv()
141 if (role->msg_type != PDU_TYPE(data)) { in bt_mesh_proxy_msg_recv()
156 if (role->msg_type != PDU_TYPE(data)) { in bt_mesh_proxy_msg_recv()
Dproxy_msg.h38 uint8_t msg_type; member
Dpb_gatt_srv.c53 switch (role->msg_type) { in proxy_msg_recv()
60 LOG_WRN("Unhandled Message Type 0x%02x", role->msg_type); in proxy_msg_recv()
Dproxy_cli.c105 switch (role->msg_type) { in proxy_msg_recv()
119 LOG_WRN("Unhandled Message Type 0x%02x", role->msg_type); in proxy_msg_recv()
/Zephyr-4.3.0/samples/net/openthread/coap/src/
Dcoap_utils.c191 otCoapType msg_type = otCoapMessageGetType(msg); in coap_req_handler() local
194 if (msg_type != OT_COAP_TYPE_CONFIRMABLE && msg_type != OT_COAP_TYPE_NON_CONFIRMABLE) { in coap_req_handler()
207 if (msg_type == OT_COAP_TYPE_CONFIRMABLE) { in coap_req_handler()
/Zephyr-4.3.0/subsys/bluetooth/host/classic/
Davdtp.c354 static struct net_buf *avdtp_create_pdu(uint8_t msg_type, uint8_t sig_id, uint8_t tid) in avdtp_create_pdu() argument
370 hdr->hdr = AVDTP_MSG_PREP(msg_type) | AVDTP_PKT_PREP(BT_AVDTP_PACKET_TYPE_SINGLE) | in avdtp_create_pdu()
597 static void avdtp_set_status(struct bt_avdtp_req *req, struct net_buf *buf, uint8_t msg_type) in avdtp_set_status() argument
599 if (msg_type == BT_AVDTP_ACCEPT) { in avdtp_set_status()
601 } else if (msg_type == BT_AVDTP_REJECT) { in avdtp_set_status()
613 } else if (msg_type == BT_AVDTP_GEN_REJECT) { in avdtp_set_status()
683 static void avdtp_discover_rsp(struct bt_avdtp *session, struct net_buf *buf, uint8_t msg_type) in avdtp_discover_rsp() argument
692 avdtp_set_status(req, buf, msg_type); in avdtp_discover_rsp()
802 uint8_t msg_type) in avdtp_get_capabilities_rsp() argument
811 avdtp_set_status(req, buf, msg_type); in avdtp_get_capabilities_rsp()
[all …]
/Zephyr-4.3.0/subsys/usb/usb_c/
Dusbc_prl.c191 prl_tx->msg_type = msg; in prl_send_ctrl_msg()
214 prl_tx->msg_type = msg; in prl_send_data_msg()
457 header.message_type = prl_tx->msg_type; in get_sop_star_header()
656 if ((prl_tx->msg_type == PD_CTRL_SOFT_RESET) && (prl_tx->emsg.len == 0)) { in prl_tx_wait_for_message_request_run()
858 if ((prl_tx->msg_type == PD_CTRL_SOFT_RESET) && (prl_tx->emsg.len == 0)) { in prl_tx_src_pending_run()
925 if ((prl_tx->msg_type == PD_CTRL_SOFT_RESET) && (prl_tx->emsg.len == 0)) { in prl_tx_snk_pending_run()
1183 uint8_t msg_type; in prl_rx_wait_for_phy_message() local
1198 msg_type = rx_emsg->header.message_type; in prl_rx_wait_for_phy_message()
1204 if (msg_type != PD_CTRL_PING) { in prl_rx_wait_for_phy_message()
1219 if (num_data_objs == 0 && msg_type == PD_CTRL_SOFT_RESET) { in prl_rx_wait_for_phy_message()
[all …]
Dusbc_prl.h50 uint8_t msg_type; member
/Zephyr-4.3.0/subsys/ipc/ipc_service/backends/
Dipc_icbmsg.c127 enum msg_type { enum
215 uint8_t msg_type; /* Message type. */ member
520 static int send_control_message(struct backend_data *dev_data, enum msg_type msg_type, in send_control_message() argument
525 .msg_type = (uint8_t)msg_type, in send_control_message()
555 enum msg_type msg_type, uint8_t ept_addr) in send_release() argument
565 return send_control_message(dev_data, msg_type, ept_addr, rx_block_index); in send_release()
581 static int send_block(struct backend_data *dev_data, enum msg_type msg_type, in send_block() argument
593 r = send_control_message(dev_data, msg_type, ept_addr, tx_block_index); in send_block()
969 switch (message->msg_type) { in control_received()
/Zephyr-4.3.0/subsys/net/lib/dhcpv4/
Ddhcpv4.c892 enum net_dhcpv4_msg_type *msg_type, int length) in dhcpv4_parse_option_vendor() argument
938 cb->handler(cb, len, *msg_type, iface); in dhcpv4_parse_option_vendor()
959 enum net_dhcpv4_msg_type *msg_type) in dhcpv4_parse_options() argument
1013 cb->handler(cb, length, *msg_type, iface); in dhcpv4_parse_options()
1278 if (dhcpv4_parse_option_vendor(pkt, iface, msg_type, length) == in dhcpv4_parse_options()
1378 *msg_type = val; in dhcpv4_parse_options()
1402 if (*msg_type == NET_DHCPV4_MSG_TYPE_OFFER && !router_present) { in dhcpv4_parse_options()
1408 if (*msg_type == NET_DHCPV4_MSG_TYPE_ACK) { in dhcpv4_parse_options()
1524 enum net_dhcpv4_msg_type msg_type, in dhcpv4_handle_reply() argument
1529 net_dhcpv4_msg_type_name(msg_type)); in dhcpv4_handle_reply()
[all …]
/Zephyr-4.3.0/tests/net/dhcpv6/src/
Dmain.c29 enum dhcpv6_msg_type msg_type);
130 struct net_if *iface, enum dhcpv6_msg_type msg_type, in test_dhcpv6_create_message() argument
163 if (dhcpv6_add_header(pkt, msg_type, iface->config.dhcpv6.tid) < 0) { in test_dhcpv6_create_message()
167 if (set_options_fn(iface, pkt, msg_type) < 0) { in test_dhcpv6_create_message()
257 enum dhcpv6_msg_type msg_type) in verify_dhcpv6_header() argument
267 zassert_equal(type, msg_type, "Invalid message type"); in verify_dhcpv6_header()
592 enum dhcpv6_msg_type msg_type) in set_generic_client_options() argument
602 if (msg_type == DHCPV6_MSG_TYPE_REQUEST || in set_generic_client_options()
603 msg_type == DHCPV6_MSG_TYPE_RENEW || in set_generic_client_options()
604 msg_type == DHCPV6_MSG_TYPE_RELEASE || in set_generic_client_options()
[all …]
/Zephyr-4.3.0/scripts/logging/dictionary/dictionary_parser/
Dlog_parser_v1.py361 msg_type = struct.unpack_from(self.fmt_msg_type, logdata, offset)[0]
363 if msg_type == MSG_TYPE_DROPPED:
373 elif msg_type == MSG_TYPE_NORMAL:
388 logger.error("------ Unknown message type: %s", msg_type)
Dlog_parser_v3.py373 msg_type = struct.unpack_from(self.fmt_msg_type, logdata, offset)[0]
375 if msg_type == MSG_TYPE_DROPPED:
386 elif msg_type == MSG_TYPE_NORMAL:
401 logger.error("------ Unknown message type: %s", msg_type)
/Zephyr-4.3.0/samples/net/dhcpv4_client/src/
Dmain.c77 enum net_dhcpv4_msg_type msg_type, in option_handler() argument
/Zephyr-4.3.0/drivers/wifi/esp_hosted/
Desp_hosted_proto.pb370 /* msg_type could be req, resp or Event */
371 CtrlMsgType msg_type = 1;
Desp_hosted_wifi.c46 ctrl_msg->msg_type = CtrlMsgType_Req; in esp_hosted_request()
103 if (ctrl_msg->msg_type == CtrlMsgType_Resp && esp_hosted_ctrl_response(ctrl_msg)) { in esp_hosted_response()
261 LOG_DBG("pushed msg_type %u msg_id %u", ctrl_msg.msg_type, ctrl_msg.msg_id); in esp_hosted_event_task()
/Zephyr-4.3.0/tests/boards/espressif/ethernet/src/
Dmain.c72 enum net_dhcpv4_msg_type msg_type, struct net_if *iface) in option_handler() argument

12