Lines Matching defs:maxpacket
1017 unsigned int maxpacket, num_packets;
1091 /* rx buffer size must be a positive multiple of the endpoint maxpacket */
1092 maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint, 0);
1094 if ((maxpacket < 1) || (maxpacket > UDSL_MAX_BUF_SIZE)) {
1101 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */
1103 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE)
1106 instance->rx_channel.buf_size = num_packets * maxpacket;
1107 instance->rx_channel.packet_size = maxpacket;