src/ssx/occhw/occhw_async_ocb.c
/// Schedule a request on an OCB circular queue.
///
/// \param request An initialized OcbRequest
///
/// Note : As long as the OcbRequest is idle, the application is free to
/// directly change the \a data and \a bytes fields to read/write different
/// numbers of bytes to/from different locations the next time the request is
/// scheduled.
///
/// \retval 0 Success
///
/// \retval -ASYNC_INVALID_ARGUMENT_OCB_SCHEDULE The number of \a bytes
/// currently requested is not a multiple of 8.
///
/// See async_request_schedule() for documentation of other errors
Schedule a request on an OCB circular queue.
\param request An initialized OcbRequest

Note : As long as the OcbRequest is idle, the application is free to
directly change the \a data and \a bytes fields to read/write different
numbers of bytes to/from different locations the next time the request is
scheduled.

\retval 0 Success

\retval -ASYNC_INVALID_ARGUMENT_OCB_SCHEDULE The number of \a bytes
currently requested is not a multiple of 8.

See async_request_schedule() for documentation of other errors
Schedule a request on an OCB circular queue . \ param request An initialized OcbRequest Note : As long as the OcbRequest is idle the application is free to directly change the \ a data and \ a bytes fields to read / write different numbers of bytes to / from different locations the next time the request is scheduled . \ retval 0 Success \ retval - ASYNC_INVALID_ARGUMENT_OCB_SCHEDULE The number of \ a bytes currently requested is not a multiple of 8 . See async_request_schedule () for documentation of other errors
int
ocb_request_schedule(OcbRequest* request)
{
    if (SSX_ERROR_CHECK_API)
    {
        SSX_ERROR_IF((request->bytes % 8), ASYNC_INVALID_ARGUMENT_OCB_SCHEDULE);
    }
    request->current = request->data;
    request->remaining = request->bytes;
    return async_request_schedule((AsyncRequest*)request);
}
int ocb_request_schedule ( OcbRequest * request ) { if ( SSX_ERROR_CHECK_API ) { SSX_ERROR_IF ( ( request -> bytes % 8 ) , ASYNC_INVALID_ARGUMENT_OCB_SCHEDULE ) ; } request -> current = request -> data ; request -> remaining = request -> bytes ; return async_request_schedule ( ( AsyncRequest * ) request ) ; }
Schedule a request on an OCB circular queue.
Schedule a request on an OCB circular queue .