/system/bt/stack/gatt/ |
D | att_protocol.cc | 51 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET); in attp_build_mtu_cmd() 53 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 57 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 75 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 77 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 103 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + 5); in attp_build_err_cmd() 105 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_err_cmd() 111 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_err_cmd() 132 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd() 134 uint8_t* p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_browse_cmd() [all …]
|
D | gatt_sr.cc | 138 len = sizeof(BT_HDR) + L2CAP_MIN_OFFSET + mtu; in process_read_multi_rsp() 140 p_buf->offset = L2CAP_MIN_OFFSET; in process_read_multi_rsp() 459 uint8_t* p = (uint8_t*)(p_msg + 1) + L2CAP_MIN_OFFSET; in gatt_build_primary_service_rsp() 509 p_msg->offset = L2CAP_MIN_OFFSET; in gatt_build_primary_service_rsp() 529 uint8_t* p = (uint8_t*)(p_msg + 1) + L2CAP_MIN_OFFSET + p_msg->len; in gatt_build_find_info_rsp() 653 (uint16_t)(sizeof(BT_HDR) + tcb.payload_size + L2CAP_MIN_OFFSET); in gatts_process_primary_service_req() 686 (uint16_t)(sizeof(BT_HDR) + tcb.payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info() 691 uint8_t* p = (uint8_t*)(p_msg + 1) + L2CAP_MIN_OFFSET; in gatts_process_find_info() 709 p_msg->offset = L2CAP_MIN_OFFSET; in gatts_process_find_info() 815 size_t msg_len = sizeof(BT_HDR) + tcb.payload_size + L2CAP_MIN_OFFSET; in gatts_process_read_by_type_req() [all …]
|
D | gatt_db.cc | 261 uint8_t* p = (uint8_t*)(p_rsp + 1) + p_rsp->len + L2CAP_MIN_OFFSET; in gatts_db_read_attr_value_by_type()
|
/system/bt/stack/smp/ |
D | smp_utils.cc | 451 L2CAP_MIN_OFFSET); in smp_build_pairing_cmd() 455 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 464 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 482 L2CAP_MIN_OFFSET); in smp_build_confirm_cmd() 486 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_confirm_cmd() 491 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_confirm_cmd() 507 L2CAP_MIN_OFFSET); in smp_build_rand_cmd() 511 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_rand_cmd() 515 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_rand_cmd() 532 L2CAP_MIN_OFFSET); in smp_build_encrypt_info_cmd() [all …]
|
/system/bt/stack/rfcomm/ |
D | rfc_ts_frames.cc | 47 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_sabme() 48 p_data = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme() 56 RFCOMM_SABME_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme() 75 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_ua() 76 p_data = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_ua() 83 *p_data = RFCOMM_UA_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua() 102 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_dm() 103 p_data = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_dm() 110 *p_data = RFCOMM_DM_FCS((uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_dm() 129 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_disc() [all …]
|
D | port_api.cc | 1434 (uint16_t)(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + RFCOMM_DATA_OVERHEAD); in PORT_WriteDataCO() 1491 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET; in PORT_WriteDataCO() 1581 (uint16_t)(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + RFCOMM_DATA_OVERHEAD); in PORT_WriteData() 1611 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET; in PORT_WriteData() 1678 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET + 2; in PORT_Test()
|
/system/bt/stack/test/common/ |
D | stack_test_packet_utils.cc | 78 CHECK_GE(L2CAP_MIN_OFFSET, static_cast<int>(acl_l2cap_header_size)); in AllocateWrappedOutgoingL2capAclPacket() 80 BT_HDR_SIZE + L2CAP_MIN_OFFSET + buffer_length - acl_l2cap_header_size; in AllocateWrappedOutgoingL2capAclPacket() 82 packet->offset = L2CAP_MIN_OFFSET; in AllocateWrappedOutgoingL2capAclPacket()
|
/system/bt/stack/bnep/ |
D | bnep_utils.cc | 174 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_req() 175 p = p_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req() 226 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_responce() 227 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_responce() 258 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters() 259 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters() 300 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters() 301 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters() 343 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp() 344 p = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp() [all …]
|
/system/bt/stack/mcap/ |
D | mca_cact.cc | 121 p_pkt->offset = L2CAP_MIN_OFFSET; in mca_ccb_snd_req() 122 p = p_start = (uint8_t*)(p_pkt + 1) + L2CAP_MIN_OFFSET; in mca_ccb_snd_req() 161 p_pkt->offset = L2CAP_MIN_OFFSET; in mca_ccb_snd_rsp() 162 p = p_start = (uint8_t*)(p_pkt + 1) + L2CAP_MIN_OFFSET; in mca_ccb_snd_rsp() 376 p_buf->offset = L2CAP_MIN_OFFSET; in mca_ccb_hdl_req() 377 p = p_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in mca_ccb_hdl_req()
|
/system/bt/stack/include/ |
D | l2cdefs.h | 333 #define L2CAP_SDU_LENGTH_MAX (8080 + 26 - (L2CAP_MIN_OFFSET + 6)) 339 (L2CAP_MIN_OFFSET - (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD))
|
D | bnep_api.h | 39 #define BNEP_MINIMUM_OFFSET (15 + L2CAP_MIN_OFFSET)
|
D | l2c_api.h | 40 #define L2CAP_MIN_OFFSET 13 /* plus control(2), SDU length(2) */ macro 44 (L2CAP_MIN_OFFSET + L2CAP_LCC_SDU_LENGTH) /* plus SDU length(2) */
|
/system/bt/stack/l2cap/ |
D | l2cap_client.cc | 82 buffer_t* buf = buffer_new(size + L2CAP_MIN_OFFSET); in l2cap_buffer_new() 394 osi_malloc(buffer_length(packet) + L2CAP_MIN_OFFSET + sizeof(BT_HDR))); in fragment_packet() 395 bt_packet->offset = L2CAP_MIN_OFFSET; in fragment_packet() 410 osi_malloc(client->remote_mtu + L2CAP_MIN_OFFSET + sizeof(BT_HDR))); in fragment_packet() 411 fragment->offset = L2CAP_MIN_OFFSET; in fragment_packet()
|
D | l2c_api.cc | 362 (L2CAP_MIN_OFFSET + L2CAP_SDU_LEN_OFFSET + L2CAP_FCS_LEN); in L2CA_ErtmConnectReq() 788 (L2CAP_MIN_OFFSET + L2CAP_SDU_LEN_OFFSET + L2CAP_FCS_LEN); in L2CA_ErtmConnectRsp()
|
/system/bt/stack/sdp/ |
D | sdp_server.cc | 263 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_search() 264 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search() 497 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_attr_req() 498 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_attr_req() 797 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_search_attr_req() 798 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search_attr_req()
|
D | sdp_discovery.cc | 125 p_cmd->offset = L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 126 p = p_start = (uint8_t*)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 460 p_msg->offset = L2CAP_MIN_OFFSET; in process_service_attr_rsp() 461 p = p_start = (uint8_t*)(p_msg + 1) + L2CAP_MIN_OFFSET; in process_service_attr_rsp() 579 p_msg->offset = L2CAP_MIN_OFFSET; in process_service_search_attr_rsp() 580 p = p_start = (uint8_t*)(p_msg + 1) + L2CAP_MIN_OFFSET; in process_service_search_attr_rsp()
|
D | sdp_utils.cc | 530 p_buf->offset = L2CAP_MIN_OFFSET; in sdpu_build_n_send_error() 531 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in sdpu_build_n_send_error()
|
/system/bt/bta/include/ |
D | bta_hh_api.h | 74 #define BTA_HH_MIN_OFFSET (L2CAP_MIN_OFFSET + 1)
|
/system/bt/stack/avct/ |
D | avct_lcb_act.cc | 478 uint16_t buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg() 506 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avct_lcb_send_msg()
|
D | avct_l2c_br.cc | 267 uint16_t max_mtu = BT_DEFAULT_BUFFER_SIZE - L2CAP_MIN_OFFSET - BT_HDR_SIZE; in avct_l2c_br_config_ind_cback()
|
/system/bt/internal_include/ |
D | bt_target.h | 51 (L2CAP_MTU_SIZE - L2CAP_MIN_OFFSET - RFCOMM_DATA_OVERHEAD)
|
/system/bt/stack/hid/ |
D | hidh_conn.cc | 928 p_buf->offset = L2CAP_MIN_OFFSET; in hidh_conn_snd_data() 936 p_buf->offset = L2CAP_MIN_OFFSET; in hidh_conn_snd_data()
|
/system/bt/btif/src/ |
D | btif_sock_l2cap.cc | 990 BT_HDR* msg = (BT_HDR*)osi_malloc(BT_HDR_SIZE + L2CAP_MIN_OFFSET + len + in malloc_l2cap_buf() 992 msg->offset = L2CAP_MIN_OFFSET; in malloc_l2cap_buf()
|
/system/bt/bta/hearing_aid/ |
D | hearing_aid.cc | 99 BT_HDR* msg = (BT_HDR*)osi_malloc(BT_HDR_SIZE + L2CAP_MIN_OFFSET + in malloc_l2cap_buf() 101 msg->offset = L2CAP_MIN_OFFSET; in malloc_l2cap_buf() 107 return (uint8_t*)(msg) + BT_HDR_SIZE + L2CAP_MIN_OFFSET; in get_l2cap_sdu_start_ptr()
|
/system/bt/stack/avdt/ |
D | avdt_msg.cc | 1097 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send() 1114 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send()
|