Home
last modified time | relevance | path

Searched refs:L2CAP_MIN_OFFSET (Results 1 – 25 of 30) sorted by relevance

12

/system/bt/stack/gatt/
Datt_protocol.cc51 (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 …]
Dgatt_sr.cc138 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 …]
Dgatt_db.cc261 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/
Dsmp_utils.cc451 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/
Drfc_ts_frames.cc47 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 …]
Dport_api.cc1434 (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/
Dstack_test_packet_utils.cc78 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/
Dbnep_utils.cc174 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/
Dmca_cact.cc121 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/
Dl2cdefs.h333 #define L2CAP_SDU_LENGTH_MAX (8080 + 26 - (L2CAP_MIN_OFFSET + 6))
339 (L2CAP_MIN_OFFSET - (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD))
Dbnep_api.h39 #define BNEP_MINIMUM_OFFSET (15 + L2CAP_MIN_OFFSET)
Dl2c_api.h40 #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/
Dl2cap_client.cc82 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()
Dl2c_api.cc362 (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/
Dsdp_server.cc263 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()
Dsdp_discovery.cc125 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()
Dsdp_utils.cc530 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/
Dbta_hh_api.h74 #define BTA_HH_MIN_OFFSET (L2CAP_MIN_OFFSET + 1)
/system/bt/stack/avct/
Davct_lcb_act.cc478 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()
Davct_l2c_br.cc267 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/
Dbt_target.h51 (L2CAP_MTU_SIZE - L2CAP_MIN_OFFSET - RFCOMM_DATA_OVERHEAD)
/system/bt/stack/hid/
Dhidh_conn.cc928 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/
Dbtif_sock_l2cap.cc990 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/
Dhearing_aid.cc99 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/
Davdt_msg.cc1097 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()

12