Home
last modified time | relevance | path

Searched refs:rx_ctxt (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dserial_util.c20 static void mcumgr_serial_free_rx_ctxt(struct mcumgr_serial_rx_ctxt *rx_ctxt) in mcumgr_serial_free_rx_ctxt() argument
22 if (rx_ctxt->nb != NULL) { in mcumgr_serial_free_rx_ctxt()
23 smp_packet_free(rx_ctxt->nb); in mcumgr_serial_free_rx_ctxt()
24 rx_ctxt->nb = NULL; in mcumgr_serial_free_rx_ctxt()
33 static int mcumgr_serial_extract_len(struct mcumgr_serial_rx_ctxt *rx_ctxt) in mcumgr_serial_extract_len() argument
35 if (rx_ctxt->nb->len < 2) { in mcumgr_serial_extract_len()
39 rx_ctxt->pkt_len = net_buf_pull_be16(rx_ctxt->nb); in mcumgr_serial_extract_len()
43 static int mcumgr_serial_decode_frag(struct mcumgr_serial_rx_ctxt *rx_ctxt, in mcumgr_serial_decode_frag() argument
49 rc = base64_decode(rx_ctxt->nb->data + rx_ctxt->nb->len, in mcumgr_serial_decode_frag()
50 net_buf_tailroom(rx_ctxt->nb), &dec_len, in mcumgr_serial_decode_frag()
[all …]
Dsmp_dummy.c63 struct mcumgr_serial_rx_ctxt *rx_ctxt,
287 static void mcumgr_dummy_free_rx_ctxt(struct mcumgr_serial_rx_ctxt *rx_ctxt) in mcumgr_dummy_free_rx_ctxt() argument
289 if (rx_ctxt->nb != NULL) { in mcumgr_dummy_free_rx_ctxt()
290 smp_packet_free(rx_ctxt->nb); in mcumgr_dummy_free_rx_ctxt()
291 rx_ctxt->nb = NULL; in mcumgr_dummy_free_rx_ctxt()
318 static int mcumgr_dummy_extract_len(struct mcumgr_serial_rx_ctxt *rx_ctxt) in mcumgr_dummy_extract_len() argument
320 if (rx_ctxt->nb->len < 2) { in mcumgr_dummy_extract_len()
324 rx_ctxt->pkt_len = net_buf_pull_be16(rx_ctxt->nb); in mcumgr_dummy_extract_len()
328 static int mcumgr_dummy_decode_frag(struct mcumgr_serial_rx_ctxt *rx_ctxt, in mcumgr_dummy_decode_frag() argument
334 rc = base64_decode(rx_ctxt->nb->data + rx_ctxt->nb->len, in mcumgr_dummy_decode_frag()
[all …]
/Zephyr-latest/include/zephyr/mgmt/mcumgr/transport/
Dserial.h68 struct mcumgr_serial_rx_ctxt *rx_ctxt,