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.cc821 uint16_t sdu_length; in l2c_lcc_proc_pdu() local
832 if (p_buf->len < sizeof(sdu_length)) { in l2c_lcc_proc_pdu()
840 STREAM_TO_UINT16(sdu_length, p); in l2c_lcc_proc_pdu()
843 if (sdu_length > p_ccb->local_conn_cfg.mtu) { in l2c_lcc_proc_pdu()
849 p_buf->len -= sizeof(sdu_length); in l2c_lcc_proc_pdu()
850 p_buf->offset += sizeof(sdu_length); in l2c_lcc_proc_pdu()
852 if (sdu_length < p_buf->len) { in l2c_lcc_proc_pdu()
853 L2CAP_TRACE_ERROR("%s: Invalid sdu_length: %d", __func__, sdu_length); in l2c_lcc_proc_pdu()
860 p_data = (BT_HDR*)osi_malloc(BT_HDR_SIZE + sdu_length); in l2c_lcc_proc_pdu()
868 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);