Searched refs:packet_size (Results 1 - 3 of 3) sorted by relevance

/system/core/fastboot/
H A Dudp.cpp191 uint16_t packet_size = ExtractUint16(rx_data + 2); local
192 if (packet_size < kMinPacketSize) {
193 *error = android::base::StringPrintf("target reported invalid packet size %d", packet_size);
197 packet_size = std::min(kHostMaxPacketSize, packet_size);
198 max_data_length_ = packet_size - kHeaderSize;
199 rx_packet_.resize(packet_size);
/system/bt/stack/rfcomm/
H A Dport_utils.c150 UINT16 packet_size; local
156 packet_size = btm_get_max_packet_size (p_port->bd_addr);
157 if (packet_size == 0)
173 if ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) >= packet_size)
175 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * packet_size) - RFCOMM_DATA_OVERHEAD - L2CAP_PKT_OVERHEAD;
/system/bt/stack/l2cap/
H A Dl2c_utils.c2699 UINT16 packet_size; local
2702 packet_size = btm_get_max_packet_size (p_ccb->p_lcb->remote_bd_addr);
2704 if (packet_size <= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + L2CAP_SDU_LEN_OVERHEAD + L2CAP_FCS_LEN))
2707 L2CAP_TRACE_ERROR ("l2cu_adjust_out_mps bad packet size: %u will use MPS: %u", packet_size, p_ccb->peer_cfg.fcr.mps);
2712 packet_size -= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + L2CAP_SDU_LEN_OVERHEAD + L2CAP_FCS_LEN);
2722 if (p_ccb->peer_cfg.fcr.mps >= packet_size)
2723 p_ccb->tx_mps = p_ccb->peer_cfg.fcr.mps / packet_size * packet_size;
2727 L2CAP_TRACE_DEBUG ("l2cu_adjust_out_mps use %d Based on peer_cfg.fcr.mps: %u packet_size: %u",
2728 p_ccb->tx_mps, p_ccb->peer_cfg.fcr.mps, packet_size);
[all...]

Completed in 114 milliseconds