* @usb: USB block this access is for
* @address: 64bit address to read
*
- * @return Result of the read
+ * Returns: Result of the read
*/
static inline uint32_t __cvmx_usb_read_csr32(cvmx_usb_internal_state_t *usb,
uint64_t address)
* @usb: USB block this access is for
* @address: 64bit address to read
*
- * @return Result of the read
+ * Returns: Result of the read
*/
static inline uint64_t __cvmx_usb_read_csr64(cvmx_usb_internal_state_t *usb,
uint64_t address)
* @usb: USB block this access is for
* @pipe: Pipe to check
*
- * @return Non zero if we need to do split transactions
+ * Returns: Non zero if we need to do split transactions
*/
static inline int __cvmx_usb_pipe_needs_split(cvmx_usb_internal_state_t *usb, cvmx_usb_pipe_t *pipe)
{
*
* @pipe: pipe to check
*
- * @return PID for pipe
+ * Returns: PID for pipe
*/
static inline int __cvmx_usb_get_data_pid(cvmx_usb_pipe_t *pipe)
{
* cvmx_usb_initialize() must be called on independent
* cvmx_usb_state_t structures.
*
- * @return Number of port, zero if usb isn't supported
+ * Returns: Number of port, zero if usb isn't supported
*/
int cvmx_usb_get_num_ports(void)
{
* @usb: USB device state populated by
* cvmx_usb_initialize().
*
- * @return Transaction or NULL
+ * Returns: Transaction or NULL
*/
static inline cvmx_usb_transaction_t *__cvmx_usb_alloc_transaction(cvmx_usb_internal_state_t *usb)
{
* cvmx_usb_initialize_flags_t for the flag
* definitions. Some flags are mandatory.
*
- * @return 0 or a negative error code.
+ * Returns: 0 or a negative error code.
*/
int cvmx_usb_initialize(cvmx_usb_state_t *state, int usb_port_number,
cvmx_usb_initialize_flags_t flags)
* @state: USB device state populated by
* cvmx_usb_initialize().
*
- * @return 0 or a negative error code.
+ * Returns: 0 or a negative error code.
*/
int cvmx_usb_shutdown(cvmx_usb_state_t *state)
{
* @state: USB device state populated by
* cvmx_usb_initialize().
*
- * @return 0 or a negative error code.
+ * Returns: 0 or a negative error code.
*/
int cvmx_usb_enable(cvmx_usb_state_t *state)
{
* @state: USB device state populated by
* cvmx_usb_initialize().
*
- * @return 0 or a negative error code.
+ * Returns: 0 or a negative error code.
*/
int cvmx_usb_disable(cvmx_usb_state_t *state)
{
* @state: USB device state populated by
* cvmx_usb_initialize().
*
- * @return Port status information
+ * Returns: Port status information
*/
cvmx_usb_port_status_t cvmx_usb_get_status(cvmx_usb_state_t *state)
{
* @transaction:
* Transaction to get handle for
*
- * @return Handle
+ * Returns: Handle
*/
static inline int __cvmx_usb_get_submit_handle(cvmx_usb_internal_state_t *usb,
cvmx_usb_transaction_t *transaction)
* cvmx_usb_initialize().
* @pipe: Pipe to get handle for
*
- * @return Handle
+ * Returns: Handle
*/
static inline int __cvmx_usb_get_pipe_handle(cvmx_usb_internal_state_t *usb,
cvmx_usb_pipe_t *pipe)
* this is only used for full/low speed
* devices behind a high speed hub.
*
- * @return A non negative value is a pipe handle. Negative
- * values are error codes.
+ * Returns: A non negative value is a pipe handle. Negative
+ * values are error codes.
*/
int cvmx_usb_open_pipe(cvmx_usb_state_t *state, cvmx_usb_pipe_flags_t flags,
int device_addr, int endpoint_num,
* @fifo: Software fifo to use
* @available: Amount of space in the hardware fifo
*
- * @return Non zero if the hardware fifo was too small and needs
- * to be serviced again.
+ * Returns: Non zero if the hardware fifo was too small and needs
+ * to be serviced again.
*/
static int __cvmx_usb_fill_tx_hw(cvmx_usb_internal_state_t *usb, cvmx_usb_tx_fifo_t *fifo, int available)
{
* @current_frame:
* Frame counter to use as a time reference.
*
- * @return Pipe or NULL if none are ready
+ * Returns: Pipe or NULL if none are ready
*/
static cvmx_usb_pipe_t *__cvmx_usb_find_ready_pipe(cvmx_usb_internal_state_t *usb, cvmx_usb_pipe_list_t *list, uint64_t current_frame)
{
* @callback: User callback to call when the transaction completes
* @user_data: User's data for the callback
*
- * @return Submit handle or negative on failure. Matches the result
- * in the external API.
+ * Returns: Submit handle or negative on failure. Matches the result
+ * in the external API.
*/
static int __cvmx_usb_submit_transaction(cvmx_usb_internal_state_t *usb,
int pipe_handle,
* callback is called. This is only used if
* callback in not NULL.
*
- * @return A submitted transaction handle or negative on
- * failure. Negative values are error codes.
+ * Returns: A submitted transaction handle or negative on
+ * failure. Negative values are error codes.
*/
int cvmx_usb_submit_bulk(cvmx_usb_state_t *state, int pipe_handle,
uint64_t buffer, int buffer_length,
* callback is called. This is only used if
* callback in not NULL.
*
- * @return A submitted transaction handle or negative on
- * failure. Negative values are error codes.
+ * Returns: A submitted transaction handle or negative on
+ * failure. Negative values are error codes.
*/
int cvmx_usb_submit_interrupt(cvmx_usb_state_t *state, int pipe_handle,
uint64_t buffer, int buffer_length,
* callback is called. This is only used if
* callback in not NULL.
*
- * @return A submitted transaction handle or negative on
- * failure. Negative values are error codes.
+ * Returns: A submitted transaction handle or negative on
+ * failure. Negative values are error codes.
*/
int cvmx_usb_submit_control(cvmx_usb_state_t *state, int pipe_handle,
uint64_t control_header,
* callback is called. This is only used if
* callback in not NULL.
*
- * @return A submitted transaction handle or negative on
- * failure. Negative values are error codes.
+ * Returns: A submitted transaction handle or negative on
+ * failure. Negative values are error codes.
*/
int cvmx_usb_submit_isochronous(cvmx_usb_state_t *state, int pipe_handle,
int start_frame, int flags,
* @submit_handle:
* Handle to transaction to cancel, returned by the submit function.
*
- * @return 0 or a negative error code.
+ * Returns: 0 or a negative error code.
*/
int cvmx_usb_cancel(cvmx_usb_state_t *state, int pipe_handle, int submit_handle)
{
* @pipe_handle:
* Pipe handle to cancel requests in.
*
- * @return 0 or a negative error code.
+ * Returns: 0 or a negative error code.
*/
int cvmx_usb_cancel_all(cvmx_usb_state_t *state, int pipe_handle)
{
* @pipe_handle:
* Pipe handle to close.
*
- * @return 0 or a negative error code. EBUSY is returned if the pipe has
- * outstanding transfers.
+ * Returns: 0 or a negative error code. EBUSY is returned if the pipe has
+ * outstanding transfers.
*/
int cvmx_usb_close_pipe(cvmx_usb_state_t *state, int pipe_handle)
{
* @callback: Function to call when the event occurs.
* @user_data: User data parameter to the function.
*
- * @return 0 or a negative error code.
+ * Returns: 0 or a negative error code.
*/
int cvmx_usb_register_callback(cvmx_usb_state_t *state,
cvmx_usb_callback_t reason,
* @state: USB device state populated by
* cvmx_usb_initialize().
*
- * @return USB frame number
+ * Returns: USB frame number
*/
int cvmx_usb_get_frame_number(cvmx_usb_state_t *state)
{
* @usb: USB device
* @channel: Channel to poll
*
- * @return Zero on success
+ * Returns: Zero on success
*/
static int __cvmx_usb_poll_channel(cvmx_usb_internal_state_t *usb, int channel)
{
* @state: USB device state populated by
* cvmx_usb_initialize().
*
- * @return 0 or a negative error code.
+ * Returns: 0 or a negative error code.
*/
int cvmx_usb_poll(cvmx_usb_state_t *state)
{