Home
last modified time | relevance | path

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

/aosp12/system/bt/hci/src/
H A Dpacket_fragmenter.cc92 uint16_t max_packet_size = max_data_size + HCI_ACL_PREAMBLE_SIZE; in fragment_and_dispatch_acl() local
101 while (remaining_length > max_packet_size) { in fragment_and_dispatch_acl()
107 packet->len = max_packet_size; in fragment_and_dispatch_acl()
138 uint16_t max_packet_size = max_data_size + HCI_ISO_PREAMBLE_SIZE; in fragment_and_dispatch_iso() local
149 if (remaining_length <= max_packet_size) { in fragment_and_dispatch_iso()
153 while (remaining_length > max_packet_size) { in fragment_and_dispatch_iso()
159 packet->len = max_packet_size; in fragment_and_dispatch_iso()
168 if (remaining_length > max_packet_size) { in fragment_and_dispatch_iso()
/aosp12/packages/modules/adb/client/
H A Dusb_linux.cpp70 size_t max_packet_size; member
150 size_t max_packet_size = 0; in find_usb_device() local
259 max_packet_size = ep1->wMaxPacketSize; in find_usb_device()
291 device->iSerialNumber, zero_mask, max_packet_size); in find_usb_device()
530 return h->max_packet_size; in usb_get_max_packet_size()
535 unsigned zero_mask, size_t max_packet_size) { in register_device() argument
558 usb->max_packet_size = max_packet_size; in register_device()
H A Dusb_windows.cpp68 unsigned max_packet_size; member
493 return handle->max_packet_size; in usb_get_max_packet_size()
530 handle->max_packet_size = endpoint_info.max_packet_size; in recognized_device()
531 handle->zero_mask = endpoint_info.max_packet_size - 1; in recognized_device()
H A Dusb_osx.cpp56 size_t max_packet_size; member
68 max_packet_size(0), in usb_handle()
309 LOG(INFO) << "reported max packet size for " << serial << " is " << handle->max_packet_size; in AndroidInterfaceAdded()
413 handle->max_packet_size = maxPacketSize; in CheckInterface()
588 return handle->max_packet_size; in usb_get_max_packet_size()
/aosp12/system/core/fastboot/
H A Dudp_test.cpp54 static std::string InitPacket(uint16_t sequence, uint16_t version, uint16_t max_packet_size) { in InitPacket() argument
56 PacketValue(version) + PacketValue(max_packet_size); in InitPacket()
424 for (uint16_t max_packet_size : {512, 1024, 1200}) { in TEST_F()
425 ASSERT_TRUE(InitializeTransport(0, max_packet_size)); in TEST_F()
428 size_t max_data_size = max_packet_size - 4; in TEST_F()
/aosp12/frameworks/av/media/mtp/
H A DMtpDataPacket.cpp530 request->buffer_length = request->max_packet_size; in readDataHeader()
570 if (request->max_packet_size <= 0) { in write()
572 request->max_packet_size); in write()
576 MTP_BUFFER_SIZE - (MTP_BUFFER_SIZE % request->max_packet_size); in write()
/aosp12/system/core/libusbhost/include/usbhost/
H A Dusbhost.h48 int max_packet_size; member
/aosp12/frameworks/base/core/proto/android/service/
H A Dusb.proto172 optional int32 max_packet_size = 6; field
/aosp12/system/core/libusbhost/
H A Dusbhost.c717 req->max_packet_size = __le16_to_cpu(ep_desc->wMaxPacketSize); in usb_request_new()