'\" t .\" Title: usb_calc_bus_time .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Host Controller APIs .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "USB_CALC_BUS_TIME" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Host Controller APIs" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" usb_calc_bus_time \- approximate periodic transaction time in nanoseconds .SH "SYNOPSIS" .HP \w'long\ usb_calc_bus_time('u .BI "long usb_calc_bus_time(int\ " "speed" ", int\ " "is_input" ", int\ " "isoc" ", int\ " "bytecount" ");" .SH "ARGUMENTS" .PP \fIspeed\fR .RS 4 from dev\->speed; USB_SPEED_{LOW,FULL,HIGH} .RE .PP \fIis_input\fR .RS 4 true iff the transaction sends data to the host .RE .PP \fIisoc\fR .RS 4 true for isochronous transactions, false for interrupt ones .RE .PP \fIbytecount\fR .RS 4 how many bytes in the transaction\&. .RE .SH "RETURN" .PP Approximate bus time in nanoseconds for a periodic transaction\&. .SH "NOTE" .PP See USB 2\&.0 spec section 5\&.11\&.3; only periodic transfers need to be scheduled in software, this function is only used for such scheduling\&. .SH "COPYRIGHT" .br