/system/bt/stack/gatt/ |
D | att_protocol.c | 52 (BT_HDR *)osi_malloc(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET); in attp_build_mtu_cmd() 54 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() 77 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 79 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 105 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + 5); in attp_build_err_cmd() 107 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_err_cmd() 113 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_err_cmd() 131 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd() 133 UINT8 *p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_browse_cmd() [all …]
|
D | gatt_sr.c | 144 len = sizeof(BT_HDR) + L2CAP_MIN_OFFSET + mtu; in process_read_multi_rsp() 146 p_buf->offset = L2CAP_MIN_OFFSET; in process_read_multi_rsp() 516 p = (UINT8 *)(p_msg + 1) + L2CAP_MIN_OFFSET; in gatt_build_primary_service_rsp() 580 p_msg->offset = L2CAP_MIN_OFFSET; in gatt_build_primary_service_rsp() 611 p = (UINT8 *)(p_msg + 1) + L2CAP_MIN_OFFSET + p_msg->len; in gatt_build_find_info_rsp() 747 UINT16 msg_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatts_process_primary_service_req() 818 buf_len = (UINT16)(sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET); in gatts_process_find_info() 823 p = (UINT8 *)(p_msg + 1) + L2CAP_MIN_OFFSET; in gatts_process_find_info() 847 p_msg->offset = L2CAP_MIN_OFFSET; in gatts_process_find_info() 942 size_t msg_len = sizeof(BT_HDR) + p_tcb->payload_size + L2CAP_MIN_OFFSET; in gatts_process_read_by_type_req() [all …]
|
/system/bt/stack/smp/ |
D | smp_utils.c | 387 SMP_PAIRING_REQ_SIZE + L2CAP_MIN_OFFSET); in smp_build_pairing_cmd() 391 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() 418 SMP_CONFIRM_CMD_SIZE + L2CAP_MIN_OFFSET); in smp_build_confirm_cmd() 423 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_confirm_cmd() 428 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_confirm_cmd() 445 SMP_RAND_CMD_SIZE + L2CAP_MIN_OFFSET); in smp_build_rand_cmd() 450 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in smp_build_rand_cmd() 454 p_buf->offset = L2CAP_MIN_OFFSET; in smp_build_rand_cmd() 471 SMP_ENC_INFO_SIZE + L2CAP_MIN_OFFSET); in smp_build_encrypt_info_cmd() [all …]
|
/system/bt/stack/rfcomm/ |
D | rfc_ts_frames.c | 47 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_sabme() 48 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_sabme() 55 *p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme() 76 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_ua() 77 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_ua() 84 *p_data = RFCOMM_UA_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua() 105 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_dm() 106 p_data = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in rfc_send_dm() 113 *p_data = RFCOMM_DM_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_dm() 134 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_disc() [all …]
|
D | port_api.c | 1548 (UINT16)(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + RFCOMM_DATA_OVERHEAD); in PORT_WriteDataCO() 1599 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET; in PORT_WriteDataCO() 1693 (UINT16)(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + RFCOMM_DATA_OVERHEAD); in PORT_WriteData() 1725 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET; in PORT_WriteData() 1802 p_buf->offset = L2CAP_MIN_OFFSET + RFCOMM_MIN_OFFSET + 2; in PORT_Test()
|
/system/bt/stack/bnep/ |
D | bnep_utils.c | 186 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_req() 187 p = p_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req() 242 p_buf->offset = L2CAP_MIN_OFFSET; in bnep_send_conn_responce() 243 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_responce() 277 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters() 278 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_filters() 323 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters() 324 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnepu_send_peer_our_multi_filters() 370 p_buf->offset = L2CAP_MIN_OFFSET; in bnepu_send_peer_filter_rsp() 371 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() 172 p_pkt->offset = L2CAP_MIN_OFFSET; in mca_ccb_snd_rsp() 173 p = p_start = (UINT8*)(p_pkt + 1) + L2CAP_MIN_OFFSET; in mca_ccb_snd_rsp() 408 p_buf->offset = L2CAP_MIN_OFFSET; in mca_ccb_hdl_req() 409 p = p_start = (UINT8*)(p_buf + 1) + L2CAP_MIN_OFFSET; in mca_ccb_hdl_req()
|
/system/bt/stack/l2cap/ |
D | l2cap_client.c | 77 buffer_t *buf = buffer_new(size + L2CAP_MIN_OFFSET); in l2cap_buffer_new() 373 BT_HDR *bt_packet = osi_malloc(buffer_length(packet) + L2CAP_MIN_OFFSET); in fragment_packet() 374 bt_packet->offset = L2CAP_MIN_OFFSET; in fragment_packet() 387 BT_HDR *fragment = osi_malloc(client->remote_mtu + L2CAP_MIN_OFFSET); in fragment_packet() 388 fragment->offset = L2CAP_MIN_OFFSET; in fragment_packet()
|
D | l2c_api.c | 306 (L2CAP_MIN_OFFSET + L2CAP_SDU_LEN_OFFSET + L2CAP_FCS_LEN); in L2CA_ErtmConnectReq() 751 (L2CAP_MIN_OFFSET + L2CAP_SDU_LEN_OFFSET + L2CAP_FCS_LEN); in L2CA_ErtmConnectRsp()
|
D | l2c_fcr.c | 1720 p_xmit = l2c_fcr_clone_buf(p_buf, L2CAP_MIN_OFFSET + L2CAP_SDU_LEN_OFFSET, in l2c_fcr_get_next_xmit_sdu_seg() 1887 p_xmit = l2c_fcr_clone_buf (p_buf, L2CAP_MIN_OFFSET, in l2c_lcc_get_next_xmit_sdu_seg() 2373 … - L2CAP_MIN_OFFSET - L2CAP_SDU_LEN_OFFSET - L2CAP_FCS_LEN; in l2c_fcr_process_peer_cfg_req()
|
/system/bt/stack/include/ |
D | l2cdefs.h | 291 #define L2CAP_MAX_SDU_LENGTH (8080 + 26 - (L2CAP_MIN_OFFSET + 6)) 296 #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 43 #define L2CAP_LCC_OFFSET (L2CAP_MIN_OFFSET + L2CAP_LCC_SDU_LENGTH) /* plus SDU length(2) */
|
/system/bt/stack/sdp/ |
D | sdp_server.c | 262 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_search() 263 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search() 490 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_attr_req() 491 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_attr_req() 787 p_buf->offset = L2CAP_MIN_OFFSET; in process_service_search_attr_req() 788 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search_attr_req()
|
D | sdp_discovery.c | 127 p_cmd->offset = L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 128 p = p_start = (UINT8 *)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 478 p_msg->offset = L2CAP_MIN_OFFSET; in process_service_attr_rsp() 479 p = p_start = (UINT8 *)(p_msg + 1) + L2CAP_MIN_OFFSET; in process_service_attr_rsp() 612 p_msg->offset = L2CAP_MIN_OFFSET; in process_service_search_attr_rsp() 613 p = p_start = (UINT8 *)(p_msg + 1) + L2CAP_MIN_OFFSET; in process_service_search_attr_rsp()
|
D | sdp_utils.c | 323 p_buf->offset = L2CAP_MIN_OFFSET; in sdpu_build_n_send_error() 324 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in sdpu_build_n_send_error()
|
/system/bt/stack/avct/ |
D | avct_lcb_act.c | 536 UINT16 buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg() 570 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avct_lcb_send_msg()
|
/system/bt/bta/include/ |
D | bta_hh_api.h | 74 #define BTA_HH_MIN_OFFSET L2CAP_MIN_OFFSET+1
|
/system/bt/stack/avdt/ |
D | avdt_int.h | 94 #define AVDT_HDR_OFFSET (L2CAP_MIN_OFFSET + AVDT_NUM_SEPS) 104 #define AVDT_MSG_OFFSET (L2CAP_MIN_OFFSET + AVDT_NUM_SEPS + AVDT_LEN_TYPE_START)
|
D | avdt_msg.c | 1251 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send() 1267 p_buf->offset = L2CAP_MIN_OFFSET + hdr_len; in avdt_msg_send()
|
D | avdt_api.c | 1213 p_pkt->offset = L2CAP_MIN_OFFSET; in AVDT_SendReport()
|
/system/bt/stack/hid/ |
D | hidh_conn.c | 940 p_buf->offset = L2CAP_MIN_OFFSET; in hidh_conn_snd_data() 950 p_buf->offset = L2CAP_MIN_OFFSET; in hidh_conn_snd_data()
|
/system/bt/stack/gap/ |
D | gap_conn.c | 507 p_buf->offset = L2CAP_MIN_OFFSET; in GAP_ConnWriteData() 924 - sizeof(BT_HDR) - L2CAP_MIN_OFFSET; in gap_config_ind()
|
/system/bt/include/ |
D | bt_target.h | 50 #define BTA_RFC_MTU_SIZE (L2CAP_MTU_SIZE-L2CAP_MIN_OFFSET-RFCOMM_DATA_OVERHEAD)
|
/system/bt/bta/jv/ |
D | bta_jv_act.c | 1409 BT_HDR *msg = (BT_HDR *)osi_malloc(sizeof(BT_HDR) + ls->len + L2CAP_MIN_OFFSET); in bta_jv_l2cap_write_fixed() 1418 memcpy(((uint8_t*)(msg + 1)) + L2CAP_MIN_OFFSET, ls->p_data, ls->len); in bta_jv_l2cap_write_fixed() 1420 msg->offset = L2CAP_MIN_OFFSET; in bta_jv_l2cap_write_fixed()
|