Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/system/stack/gatt/
Datt_protocol.cc59 (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 …]
Dgatt_sr.cc165 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 …]
Dgatt_api.cc505 (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/
Dsmp_utils.cc495 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/
Drfc_ts_frames.cc54 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 …]
Dport_api.cc888 (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/
Dbnep_utils.cc177 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/
Dstack_test_packet_utils.cc82 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/
Dacl_arbiter.cc111 (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/
Dsdp_discovery.cc128 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()
Dsdp_server.cc270 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()
Dsdp_utils.cc718 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/
Dl2c_api.h46 #define L2CAP_MIN_OFFSET 13 /* plus control(2), SDU length(2) */ macro
50 (L2CAP_MIN_OFFSET + L2CAP_LCC_SDU_LENGTH) /* plus SDU length(2) */
Dbnep_api.h44 #define BNEP_MINIMUM_OFFSET (15 + L2CAP_MIN_OFFSET)
Dl2cdefs.h439 #define L2CAP_SDU_LENGTH_MAX (8080 + 26 - (L2CAP_MIN_OFFSET + 6))
/packages/modules/Bluetooth/system/internal_include/
Dbt_target.h44 (L2CAP_MTU_SIZE - L2CAP_MIN_OFFSET - RFCOMM_DATA_OVERHEAD)
/packages/modules/Bluetooth/system/stack/avct/
Davct_lcb_act.cc557 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()
Davct_l2c_br.cc263 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/
Dbta_hh_api.h82 #define BTA_HH_MIN_OFFSET (L2CAP_MIN_OFFSET + 1)
/packages/modules/Bluetooth/system/stack/hid/
Dhidh_conn.cc806 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/
Dl2c_fcr.cc1427 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/
Dbtif_sock_l2cap.cc948 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/
Dstack_gatt_test.cc260 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/
Davdt_msg.cc1106 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/
Dhearing_aid.cc124 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()

12