/system/bt/stack/gatt/ |
D | att_protocol.c | 51 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET)) != NULL) in attp_build_mtu_cmd() 53 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 58 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 79 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 81 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 112 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + 5)) != NULL) in attp_build_err_cmd() 114 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_err_cmd() 121 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_err_cmd() 141 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + 8 + L2CAP_MIN_OFFSET)) != NULL) in attp_build_browse_cmd() 143 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_browse_cmd() [all …]
|
D | gatt_sr.c | 152 len = sizeof(BT_HDR) + L2CAP_MIN_OFFSET + mtu; in process_read_multi_rsp() 160 p_buf->offset = L2CAP_MIN_OFFSET; in process_read_multi_rsp() 537 p = (UINT8 *)(p_msg + 1) + L2CAP_MIN_OFFSET; in gatt_build_primary_service_rsp() 601 p_msg->offset = L2CAP_MIN_OFFSET; in gatt_build_primary_service_rsp() 632 p = (UINT8 *)(p_msg + 1) + L2CAP_MIN_OFFSET + p_msg->len; in gatt_build_find_info_rsp() 768 UINT16 msg_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatts_process_primary_service_req() 846 buf_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info() 857 p = (UINT8 *)(p_msg + 1) + L2CAP_MIN_OFFSET; in gatts_process_find_info() 884 p_msg->offset = L2CAP_MIN_OFFSET; in gatts_process_find_info() 980 UINT16 msg_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET), in gatts_process_read_by_type_req() [all …]
|
D | gatt_db.c | 337 UINT8 *p = (UINT8 *)(p_rsp + 1) + p_rsp->len + L2CAP_MIN_OFFSET; in gatts_db_read_attr_value_by_type()
|
/system/bt/stack/smp/ |
D | smp_utils.c | 388 …if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + L2CAP_MIN_OFFSET)) != NU… in smp_build_pairing_cmd() 390 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 400 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_pairing_cmd() 422 …if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_CONFIRM_CMD_SIZE + L2CAP_MIN_OFFSET)) != NU… in smp_build_confirm_cmd() 424 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_confirm_cmd() 429 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_confirm_cmd() 449 if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_RAND_CMD_SIZE + L2CAP_MIN_OFFSET)) in smp_build_rand_cmd() 452 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_rand_cmd() 457 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_rand_cmd() 477 … if ((p_buf = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + SMP_ENC_INFO_SIZE + L2CAP_MIN_OFFSET)) != NULL) in smp_build_encrypt_info_cmd() [all …]
|
/system/bt/stack/rfcomm/ |
D | rfc_ts_frames.c | 51 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_sabme() 52 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme() 59 *p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme() 83 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_ua() 84 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_ua() 91 *p_data = RFCOMM_UA_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua() 115 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_dm() 116 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_dm() 123 *p_data = RFCOMM_DM_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_dm() 147 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_disc() [all …]
|
D | port_api.c | 1558 (UINT16)(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + RFCOMM_DATA_OVERHEAD); in PORT_WriteDataCO() 1612 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET; in PORT_WriteDataCO() 1709 (UINT16)(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + RFCOMM_DATA_OVERHEAD); in PORT_WriteData() 1744 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET; in PORT_WriteData() 1825 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET + 2; in PORT_Test()
|
/system/bt/stack/bnep/ |
D | bnep_utils.c | 185 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_req() 186 p = p_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req() 246 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_responce() 247 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_responce() 287 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters() 288 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters() 337 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters() 338 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters() 387 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp() 388 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp() [all …]
|
/system/bt/stack/mcap/ |
D | mca_cact.c | 127 p_pkt->offset = L2CAP_MIN_OFFSET; in mca_ccb_snd_req() 128 p = p_start = (UINT8*)(p_pkt + 1) + L2CAP_MIN_OFFSET; in mca_ccb_snd_req() 174 p_pkt->offset = L2CAP_MIN_OFFSET; in mca_ccb_snd_rsp() 175 p = p_start = (UINT8*)(p_pkt + 1) + L2CAP_MIN_OFFSET; in mca_ccb_snd_rsp() 415 p_buf->offset = L2CAP_MIN_OFFSET; in mca_ccb_hdl_req() 416 p = p_start = (UINT8*)(p_buf + 1) + L2CAP_MIN_OFFSET; in mca_ccb_hdl_req()
|
/system/bt/stack/include/ |
D | l2cdefs.h | 275 #define L2CAP_MAX_SDU_LENGTH (GKI_BUF4_SIZE - (L2CAP_MIN_OFFSET + L2CAP_MAX_HEADER_FCS) -5) 279 #define L2CAP_OFFSET_WO_L2HDR (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
|
/system/bt/stack/l2cap/ |
D | l2cap_client.c | 77 buffer_t *buf = buffer_new(size + L2CAP_MIN_OFFSET); in l2cap_buffer_new() 375 BT_HDR *bt_packet = GKI_getbuf(buffer_length(packet) + L2CAP_MIN_OFFSET); in fragment_packet() 376 bt_packet->offset = L2CAP_MIN_OFFSET; in fragment_packet() 389 BT_HDR *fragment = GKI_getbuf(client->remote_mtu + L2CAP_MIN_OFFSET); in fragment_packet() 390 fragment->offset = L2CAP_MIN_OFFSET; in fragment_packet()
|
D | l2c_api.c | 307 (L2CAP_MIN_OFFSET + L2CAP_SDU_LEN_OFFSET + L2CAP_FCS_LEN); in L2CA_ErtmConnectReq() 455 …p_ccb->max_rx_mtu = GKI_get_pool_bufsize (p_ertm_info->user_rx_pool_id) - (L2CAP_MIN_OFFSET + L2CA… in L2CA_ErtmConnectRsp()
|
/system/bt/stack/sdp/ |
D | sdp_server.c | 264 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_search() 265 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search() 529 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_attr_req() 530 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_attr_req() 865 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_search_attr_req() 866 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search_attr_req()
|
D | sdp_discovery.c | 132 p_cmd->offset = L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 133 p = p_start = (UINT8 *)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 497 p_msg->offset = L2CAP_MIN_OFFSET; in process_service_attr_rsp() 498 p = p_start = (UINT8 *)(p_msg + 1) + L2CAP_MIN_OFFSET; in process_service_attr_rsp() 643 p_msg->offset = L2CAP_MIN_OFFSET; in process_service_search_attr_rsp() 644 p = p_start = (UINT8 *)(p_msg + 1) + L2CAP_MIN_OFFSET; in process_service_search_attr_rsp()
|
D | sdp_utils.c | 333 p_buf->offset = L2CAP_MIN_OFFSET; in sdpu_build_n_send_error() 334 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in sdpu_build_n_send_error()
|
/system/bt/stack/gap/ |
D | gap_conn.c | 464 if (p_buf->offset < L2CAP_MIN_OFFSET) in GAP_ConnBTWrite() 542 p_buf->offset = L2CAP_MIN_OFFSET; in GAP_ConnWriteData() 905 - sizeof(BT_HDR) - L2CAP_MIN_OFFSET; in gap_config_ind()
|
/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.c | 544 UINT16 buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg() 583 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avct_lcb_send_msg()
|
/system/bt/stack/avdt/ |
D | avdt_int.h | 92 #define AVDT_HDR_OFFSET (L2CAP_MIN_OFFSET + AVDT_NUM_SEPS) 102 #define AVDT_MSG_OFFSET (L2CAP_MIN_OFFSET + AVDT_NUM_SEPS + AVDT_LEN_TYPE_START)
|
D | avdt_msg.c | 1254 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send() 1275 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send()
|
D | avdt_api.c | 1326 p_pkt->offset = L2CAP_MIN_OFFSET; in AVDT_SendReport()
|
/system/bt/stack/hid/ |
D | hidh_conn.c | 925 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/include/ |
D | bt_target.h | 51 #define BTA_RFC_MTU_SIZE (L2CAP_MTU_SIZE-L2CAP_MIN_OFFSET-RFCOMM_DATA_OVERHEAD)
|
/system/bt/bta/jv/ |
D | bta_jv_act.c | 1417 BT_HDR *msg = (BT_HDR *)GKI_getbuf(sizeof(BT_HDR) + ls->len + L2CAP_MIN_OFFSET); in bta_jv_l2cap_write_fixed() 1430 memcpy(((uint8_t*)(msg + 1)) + L2CAP_MIN_OFFSET, ls->p_data, ls->len); in bta_jv_l2cap_write_fixed() 1432 msg->offset = L2CAP_MIN_OFFSET; in bta_jv_l2cap_write_fixed()
|