Searched refs:rx_ctxt (Results 1 – 3 of 3) sorted by relevance
20 static void mcumgr_serial_free_rx_ctxt(struct mcumgr_serial_rx_ctxt *rx_ctxt) in mcumgr_serial_free_rx_ctxt() argument22 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() argument35 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() argument49 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 …]
63 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() argument289 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() argument320 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() argument334 rc = base64_decode(rx_ctxt->nb->data + rx_ctxt->nb->len, in mcumgr_dummy_decode_frag()[all …]
68 struct mcumgr_serial_rx_ctxt *rx_ctxt,