/packages/modules/Bluetooth/system/stack/gatt/ |
D | att_protocol.cc | 59 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET); in attp_build_mtu_cmd() 61 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 65 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 83 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 85 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 111 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + 5); in attp_build_err_cmd() 113 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_err_cmd() 119 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_err_cmd() 141 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd() 143 uint8_t* p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_browse_cmd() [all …]
|
D | gatt_sr.cc | 165 len = sizeof(BT_HDR) + L2CAP_MIN_OFFSET + mtu; in build_read_multi_rsp() 167 p_buf->offset = L2CAP_MIN_OFFSET; in build_read_multi_rsp() 551 uint8_t* p = (uint8_t*)(p_msg + 1) + L2CAP_MIN_OFFSET; in gatt_build_primary_service_rsp() 603 p_msg->offset = L2CAP_MIN_OFFSET; in gatt_build_primary_service_rsp() 623 uint8_t* p = (uint8_t*)(p_msg + 1) + L2CAP_MIN_OFFSET + p_msg->len; in gatt_build_find_info_rsp() 749 (uint16_t)(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in gatts_process_primary_service_req() 784 (uint16_t)(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info() 789 uint8_t* p = (uint8_t*)(p_msg + 1) + L2CAP_MIN_OFFSET; in gatts_process_find_info() 807 p_msg->offset = L2CAP_MIN_OFFSET; in gatts_process_find_info() 924 size_t msg_len = sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET; in gatts_process_read_by_type_req() [all …]
|
D | gatt_api.cc | 505 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in GATTS_HandleMultipleValueNotification() 507 uint8_t* p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in GATTS_HandleMultipleValueNotification() 509 p_buf->offset = L2CAP_MIN_OFFSET; in GATTS_HandleMultipleValueNotification()
|
/packages/modules/Bluetooth/system/stack/smp/ |
D | smp_utils.cc | 495 L2CAP_MIN_OFFSET); in smp_build_pairing_cmd() 500 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 509 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 526 L2CAP_MIN_OFFSET); in smp_build_confirm_cmd() 530 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_confirm_cmd() 535 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_confirm_cmd() 551 L2CAP_MIN_OFFSET); in smp_build_rand_cmd() 555 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_rand_cmd() 559 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_rand_cmd() 576 L2CAP_MIN_OFFSET); in smp_build_encrypt_info_cmd() [all …]
|
/packages/modules/Bluetooth/system/stack/rfcomm/ |
D | rfc_ts_frames.cc | 54 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_sabme() 55 p_data = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme() 63 RFCOMM_SABME_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme() 82 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_ua() 83 p_data = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_ua() 90 *p_data = RFCOMM_UA_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua() 109 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_dm() 110 p_data = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_dm() 117 *p_data = RFCOMM_DM_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_dm() 136 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_disc() [all …]
|
D | port_api.cc | 888 (uint16_t)(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + RFCOMM_DATA_OVERHEAD); in PORT_WriteDataCO() 945 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET; in PORT_WriteDataCO() 1038 (uint16_t)(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + RFCOMM_DATA_OVERHEAD); in PORT_WriteData() 1068 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET; in PORT_WriteData()
|
/packages/modules/Bluetooth/system/stack/bnep/ |
D | bnep_utils.cc | 177 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_req() 178 p = p_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req() 228 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_response() 229 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_response() 260 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters() 261 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters() 302 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters() 303 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters() 345 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp() 346 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp() [all …]
|
/packages/modules/Bluetooth/system/stack/test/common/ |
D | stack_test_packet_utils.cc | 82 log::assert_that(L2CAP_MIN_OFFSET >= static_cast<int>(acl_l2cap_header_size), in AllocateWrappedOutgoingL2capAclPacket() 85 BT_HDR_SIZE + L2CAP_MIN_OFFSET + buffer_length - acl_l2cap_header_size; in AllocateWrappedOutgoingL2capAclPacket() 87 packet->offset = L2CAP_MIN_OFFSET; in AllocateWrappedOutgoingL2capAclPacket()
|
/packages/modules/Bluetooth/system/stack/arbiter/ |
D | acl_arbiter.cc | 111 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + buffer.size() + L2CAP_MIN_OFFSET); in SendPacketToPeer() 115 auto p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in SendPacketToPeer() 117 p_buf->offset = L2CAP_MIN_OFFSET; in SendPacketToPeer()
|
/packages/modules/Bluetooth/system/stack/sdp/ |
D | sdp_discovery.cc | 128 p_cmd->offset = L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 129 p = p_start = (uint8_t*)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 142 const uint16_t base_bytes = (sizeof(BT_HDR) + L2CAP_MIN_OFFSET + in sdp_snd_service_search_req() 633 p_msg->offset = L2CAP_MIN_OFFSET; in process_service_search_attr_rsp() 634 p = p_start = (uint8_t*)(p_msg + 1) + L2CAP_MIN_OFFSET; in process_service_search_attr_rsp() 647 const uint16_t base_bytes = (sizeof(BT_HDR) + L2CAP_MIN_OFFSET + in process_service_search_attr_rsp() 824 p_msg->offset = L2CAP_MIN_OFFSET; in process_service_attr_rsp() 825 p = p_start = (uint8_t*)(p_msg + 1) + L2CAP_MIN_OFFSET; in process_service_attr_rsp()
|
D | sdp_server.cc | 270 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_search() 271 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search() 669 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_attr_req() 670 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_attr_req() 1136 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_search_attr_req() 1137 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search_attr_req()
|
D | sdp_utils.cc | 718 p_buf->offset = L2CAP_MIN_OFFSET; in sdpu_build_n_send_error() 719 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in sdpu_build_n_send_error()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | l2c_api.h | 46 #define L2CAP_MIN_OFFSET 13 /* plus control(2), SDU length(2) */ macro 50 (L2CAP_MIN_OFFSET + L2CAP_LCC_SDU_LENGTH) /* plus SDU length(2) */
|
D | bnep_api.h | 44 #define BNEP_MINIMUM_OFFSET (15 + L2CAP_MIN_OFFSET)
|
D | l2cdefs.h | 439 #define L2CAP_SDU_LENGTH_MAX (8080 + 26 - (L2CAP_MIN_OFFSET + 6))
|
/packages/modules/Bluetooth/system/internal_include/ |
D | bt_target.h | 44 (L2CAP_MTU_SIZE - L2CAP_MIN_OFFSET - RFCOMM_DATA_OVERHEAD)
|
/packages/modules/Bluetooth/system/stack/avct/ |
D | avct_lcb_act.cc | 557 uint16_t buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg() 585 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avct_lcb_send_msg()
|
D | avct_l2c_br.cc | 263 uint16_t max_mtu = BT_DEFAULT_BUFFER_SIZE - L2CAP_MIN_OFFSET - BT_HDR_SIZE; in avct_l2c_br_config_ind_cback()
|
/packages/modules/Bluetooth/system/bta/include/ |
D | bta_hh_api.h | 82 #define BTA_HH_MIN_OFFSET (L2CAP_MIN_OFFSET + 1)
|
/packages/modules/Bluetooth/system/stack/hid/ |
D | hidh_conn.cc | 806 p_buf->offset = L2CAP_MIN_OFFSET; in hidh_conn_snd_data() 814 p_buf->offset = L2CAP_MIN_OFFSET; in hidh_conn_snd_data()
|
/packages/modules/Bluetooth/system/stack/l2cap/ |
D | l2c_fcr.cc | 1427 p_xmit = l2c_fcr_clone_buf(p_buf, L2CAP_MIN_OFFSET + L2CAP_SDU_LEN_OFFSET, in l2c_fcr_get_next_xmit_sdu_seg() 1538 l2c_fcr_clone_buf(p_buf, first_pdu ? L2CAP_LCC_OFFSET : L2CAP_MIN_OFFSET, in l2c_lcc_get_next_xmit_sdu_seg() 1839 L2CAP_MIN_OFFSET - L2CAP_SDU_LEN_OFFSET - in l2c_fcr_process_peer_cfg_req()
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_sock_l2cap.cc | 948 BT_HDR* msg = (BT_HDR*)osi_malloc(BT_HDR_SIZE + L2CAP_MIN_OFFSET + len + in malloc_l2cap_buf() 950 msg->offset = L2CAP_MIN_OFFSET; in malloc_l2cap_buf()
|
/packages/modules/Bluetooth/system/stack/test/gatt/ |
D | stack_gatt_test.cc | 260 uint8_t* p = (uint8_t*)(ret + 1) + L2CAP_MIN_OFFSET; in attp_build_value_cmd_test_with_p_data()
|
/packages/modules/Bluetooth/system/stack/avdt/ |
D | avdt_msg.cc | 1106 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send() 1123 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send()
|
/packages/modules/Bluetooth/system/bta/hearing_aid/ |
D | hearing_aid.cc | 124 BT_HDR* msg = (BT_HDR*)osi_malloc(BT_HDR_SIZE + L2CAP_MIN_OFFSET + in malloc_l2cap_buf() 126 msg->offset = L2CAP_MIN_OFFSET; in malloc_l2cap_buf() 132 return (uint8_t*)(msg) + BT_HDR_SIZE + L2CAP_MIN_OFFSET; in get_l2cap_sdu_start_ptr()
|