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

/linux-4.1.27/drivers/staging/octeon-usb/
H A Docteon-hcd.c1384 int packets_to_transfer; cvmx_usb_start_channel_control() local
1483 packets_to_transfer = DIV_ROUND_UP(bytes_to_transfer, cvmx_usb_start_channel_control()
1485 if (packets_to_transfer == 0) cvmx_usb_start_channel_control()
1486 packets_to_transfer = 1; cvmx_usb_start_channel_control()
1487 else if ((packets_to_transfer > 1) && cvmx_usb_start_channel_control()
1494 packets_to_transfer = 1; cvmx_usb_start_channel_control()
1495 bytes_to_transfer = packets_to_transfer * pipe->max_packet; cvmx_usb_start_channel_control()
1496 } else if (packets_to_transfer > MAX_TRANSFER_PACKETS) { cvmx_usb_start_channel_control()
1501 packets_to_transfer = MAX_TRANSFER_PACKETS; cvmx_usb_start_channel_control()
1502 bytes_to_transfer = packets_to_transfer * pipe->max_packet; cvmx_usb_start_channel_control()
1506 usbc_hctsiz.s.pktcnt = packets_to_transfer; cvmx_usb_start_channel_control()
1609 int packets_to_transfer; cvmx_usb_start_channel() local
1727 packets_to_transfer = cvmx_usb_start_channel()
1729 if (packets_to_transfer == 0) cvmx_usb_start_channel()
1730 packets_to_transfer = 1; cvmx_usb_start_channel()
1731 else if ((packets_to_transfer > 1) && cvmx_usb_start_channel()
1740 packets_to_transfer = 1; cvmx_usb_start_channel()
1741 bytes_to_transfer = packets_to_transfer * cvmx_usb_start_channel()
1743 } else if (packets_to_transfer > MAX_TRANSFER_PACKETS) { cvmx_usb_start_channel()
1748 packets_to_transfer = MAX_TRANSFER_PACKETS; cvmx_usb_start_channel()
1749 bytes_to_transfer = packets_to_transfer * cvmx_usb_start_channel()
1754 usbc_hctsiz.s.pktcnt = packets_to_transfer; cvmx_usb_start_channel()

Completed in 69 milliseconds