Home
last modified time | relevance | path

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

/system/nfc/src/nfc/llcp/
Dllcp_sdp.cc385 tLLCP_STATUS llcp_sdp_proc_snl(uint16_t sdu_length, uint8_t* p) { in llcp_sdp_proc_snl() argument
398 while (sdu_length >= 2) /* at least type and length */ in llcp_sdp_proc_snl()
407 (sdu_length >= 2 + length)) /* type, length, TID and service name */ in llcp_sdp_proc_snl()
444 && (sdu_length >= 2 + length)) /* type, length, TID and SAP */ in llcp_sdp_proc_snl()
461 if (sdu_length >= 2 + length) /* type, length, value */ in llcp_sdp_proc_snl()
463 sdu_length -= 2 + length; in llcp_sdp_proc_snl()
470 if (sdu_length) { in llcp_sdp_proc_snl()
/system/bt/stack/l2cap/
Dl2c_fcr.cc827 uint16_t sdu_length; in l2c_lcc_proc_pdu() local
838 if (p_buf->len < sizeof(sdu_length)) { in l2c_lcc_proc_pdu()
846 STREAM_TO_UINT16(sdu_length, p); in l2c_lcc_proc_pdu()
849 if (sdu_length > p_ccb->local_conn_cfg.mtu) { in l2c_lcc_proc_pdu()
855 p_buf->len -= sizeof(sdu_length); in l2c_lcc_proc_pdu()
856 p_buf->offset += sizeof(sdu_length); in l2c_lcc_proc_pdu()
858 if (sdu_length < p_buf->len) { in l2c_lcc_proc_pdu()
859 L2CAP_TRACE_ERROR("%s: Invalid sdu_length: %d", __func__, sdu_length); in l2c_lcc_proc_pdu()
866 p_data = (BT_HDR*)osi_malloc(BT_HDR_SIZE + sdu_length); in l2c_lcc_proc_pdu()
874 p_ccb->ble_sdu_length = sdu_length; in l2c_lcc_proc_pdu()
[all …]
/system/nfc/src/nfc/include/
Dllcp_int.h357 tLLCP_STATUS llcp_sdp_proc_snl(uint16_t sdu_length, uint8_t* p);