Home
last modified time | relevance | path

Searched refs:L2CAP_PKT_OVERHEAD (Results 1 – 9 of 9) sorted by relevance

/system/bt/stack/test/common/
Dstack_test_packet_utils.cc62 packet->offset = 4 + L2CAP_PKT_OVERHEAD; in AllocateWrappedIncomingL2capAclPacket()
63 packet->len = static_cast<uint16_t>(buffer_length - 4 - L2CAP_PKT_OVERHEAD); in AllocateWrappedIncomingL2capAclPacket()
77 size_t acl_l2cap_header_size = 4 + L2CAP_PKT_OVERHEAD; in AllocateWrappedOutgoingL2capAclPacket()
/system/bt/stack/l2cap/
Dl2c_utils.cc303 len + HCI_DATA_PREAMBLE_SIZE + L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD; in l2cu_build_header()
314 UINT16_TO_STREAM(p, len + L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD); in l2cu_build_header()
379 L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD; in l2cu_send_peer_cmd_reject()
418 L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD; in l2cu_send_peer_connect_req()
456 HCI_DATA_PREAMBLE_SIZE + L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD; in l2cu_send_peer_connect_rsp()
490 L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD; in l2cu_reject_connection()
535 L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD; in l2cu_send_credit_based_reconfig_req()
596 L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD; in l2cu_send_peer_config_req()
690 L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD; in l2cu_send_peer_config_rsp()
763 len = BT_HDR_SIZE + HCI_DATA_PREAMBLE_SIZE + L2CAP_PKT_OVERHEAD + in l2cu_send_peer_config_rej()
[all …]
Dl2c_fcr.cc149 p -= L2CAP_PKT_OVERHEAD; in l2c_fcr_rx_get_fcs()
152 l2c_fcr_updcrc(L2CAP_FCR_INIT_CRC, p, p_buf->len + L2CAP_PKT_OVERHEAD)); in l2c_fcr_rx_get_fcs()
304 p = ((uint8_t*)(p_buf + 1)) + p_buf->offset + L2CAP_PKT_OVERHEAD; in prepare_I_frame()
329 p = ((uint8_t*)(p_buf + 1)) + p_buf->offset + L2CAP_PKT_OVERHEAD; in prepare_I_frame()
336 UINT16_TO_STREAM(p, p_buf->len + L2CAP_FCS_LEN - L2CAP_PKT_OVERHEAD); in prepare_I_frame()
409 p_buf->len = L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD; in l2c_fcr_send_S_frame()
1301 p = ((uint8_t*)(p_buf + 1)) + p_buf->offset + L2CAP_PKT_OVERHEAD; in retransmit_i_frames()
1453 p_xmit->offset -= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD); in l2c_fcr_get_next_xmit_sdu_seg()
1454 p_xmit->len += L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD; in l2c_fcr_get_next_xmit_sdu_seg()
1467 UINT16_TO_STREAM(p, p_xmit->len - L2CAP_PKT_OVERHEAD); in l2c_fcr_get_next_xmit_sdu_seg()
[all …]
Dl2c_main.cc79 if (hci_len < L2CAP_PKT_OVERHEAD || hci_len != p_msg->len - 4) { in l2c_rcv_acl_data()
159 p_msg->len = hci_len - L2CAP_PKT_OVERHEAD; in l2c_rcv_acl_data()
160 p_msg->offset += L2CAP_PKT_OVERHEAD; in l2c_rcv_acl_data()
Dl2c_csm.cc1564 p_buf->offset -= L2CAP_PKT_OVERHEAD; in l2c_enqueue_peer_data()
1565 p_buf->len += L2CAP_PKT_OVERHEAD; in l2c_enqueue_peer_data()
1571 UINT16_TO_STREAM(p, p_buf->len - L2CAP_PKT_OVERHEAD); in l2c_enqueue_peer_data()
Dl2c_ble.cc1269 (tx_mtu < (p_lcb->p_fixed_ccbs[i]->tx_data_len + L2CAP_PKT_OVERHEAD))) in l2cble_update_data_length()
1270 tx_mtu = p_lcb->p_fixed_ccbs[i]->tx_data_len + L2CAP_PKT_OVERHEAD; in l2cble_update_data_length()
/system/bt/stack/include/
Dl2cdefs.h51 #define L2CAP_PKT_OVERHEAD 4 macro
327 (L2CAP_PKT_OVERHEAD + L2CAP_EXT_CONTROL_OVERHEAD + L2CAP_SDU_LEN_OVERHEAD + \
/system/bt/stack/rfcomm/
Dport_utils.cc167 if ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) >= packet_size) { in port_select_mtu()
168 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * in port_select_mtu()
170 RFCOMM_DATA_OVERHEAD - L2CAP_PKT_OVERHEAD; in port_select_mtu()
/system/bt/stack/acl/
Dbtm_acl.cc2790 if (acl_header.hci_len < L2CAP_PKT_OVERHEAD || in acl_rcv_acl_data()