Searched refs:usb_packet_size (Results 1 – 1 of 1) sorted by relevance
46 size_t usb_packet_size = usb_get_max_packet_size(h); in UsbReadMessage() local47 CHECK_GE(usb_packet_size, sizeof(*msg)); in UsbReadMessage()48 CHECK_LT(usb_packet_size, 4096ULL); in UsbReadMessage()51 int n = usb_read(h, buffer, usb_packet_size); in UsbReadMessage()73 size_t usb_packet_size = usb_get_max_packet_size(h); in UsbReadPayload() local79 size_t rem_size = len % usb_packet_size; in UsbReadPayload()81 len += usb_packet_size - rem_size; in UsbReadPayload()