Searched refs:packet_size (Results 1 – 3 of 3) sorted by relevance
191 uint16_t packet_size = ExtractUint16(rx_data + 2); in InitializeProtocol() local192 if (packet_size < kMinPacketSize) { in InitializeProtocol()193 *error = android::base::StringPrintf("target reported invalid packet size %d", packet_size); in InitializeProtocol()197 packet_size = std::min(kHostMaxPacketSize, packet_size); in InitializeProtocol()198 max_data_length_ = packet_size - kHeaderSize; in InitializeProtocol()199 rx_packet_.resize(packet_size); in InitializeProtocol()
150 UINT16 packet_size; in port_select_mtu() local156 packet_size = btm_get_max_packet_size (p_port->bd_addr); in port_select_mtu()157 if (packet_size == 0) in port_select_mtu()173 if ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) >= packet_size) in port_select_mtu()175 …p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * packet_size) - RFCOMM_DATA_OV… in port_select_mtu()
2699 UINT16 packet_size; in l2cu_adjust_out_mps() local2702 packet_size = btm_get_max_packet_size (p_ccb->p_lcb->remote_bd_addr); in l2cu_adjust_out_mps()2704 …if (packet_size <= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + L2CAP_SDU_LEN_OVERHEAD + L2CAP_FCS_L… in l2cu_adjust_out_mps()2707 …L2CAP_TRACE_ERROR ("l2cu_adjust_out_mps bad packet size: %u will use MPS: %u", packet_size, p_ccb… in l2cu_adjust_out_mps()2712 … packet_size -= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + L2CAP_SDU_LEN_OVERHEAD + L2CAP_FCS_LEN); in l2cu_adjust_out_mps()2722 if (p_ccb->peer_cfg.fcr.mps >= packet_size) in l2cu_adjust_out_mps()2723 p_ccb->tx_mps = p_ccb->peer_cfg.fcr.mps / packet_size * packet_size; in l2cu_adjust_out_mps()2728 p_ccb->tx_mps, p_ccb->peer_cfg.fcr.mps, packet_size); in l2cu_adjust_out_mps()