Changeset 45457265 in mainline for uspace/drv/bus/usb/xhci/endpoint.c


Ignore:
Timestamp:
2018-02-03T02:14:26Z (6 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb862fd
Parents:
961a5ee
Message:

errno_t all the things!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/endpoint.c

    r961a5ee r45457265  
    4848#include "streams.h"
    4949
    50 static int alloc_transfer_ds(xhci_endpoint_t *);
     50static errno_t alloc_transfer_ds(xhci_endpoint_t *);
    5151
    5252/**
     
    5858 * @return Error code.
    5959 */
    60 static int xhci_endpoint_init(xhci_endpoint_t *xhci_ep, device_t *dev,
     60static errno_t xhci_endpoint_init(xhci_endpoint_t *xhci_ep, device_t *dev,
    6161    const usb_endpoint_descriptors_t *desc)
    6262{
    63         int rc;
     63        errno_t rc;
    6464        assert(xhci_ep);
    6565
     
    180180 * Bus callback.
    181181 */
    182 int xhci_endpoint_register(endpoint_t *ep_base)
    183 {
    184         int err;
     182errno_t xhci_endpoint_register(endpoint_t *ep_base)
     183{
     184        errno_t err;
    185185        xhci_endpoint_t *ep = xhci_endpoint_get(ep_base);
    186186
     
    222222        usb_transfer_batch_t * const batch = ep->active_batch;
    223223
    224         const int err = hc_stop_endpoint(xhci_ep);
     224        const errno_t err = hc_stop_endpoint(xhci_ep);
    225225        if (err) {
    226226                usb_log_error("Failed to stop endpoint %u of device "
     
    245245void xhci_endpoint_unregister(endpoint_t *ep_base)
    246246{
    247         int err;
     247        errno_t err;
    248248        xhci_endpoint_t *ep = xhci_endpoint_get(ep_base);
    249249        xhci_device_t *dev = xhci_device_get(ep_base->device);
     
    300300 * @return Error code.
    301301 */
    302 static int alloc_transfer_ds(xhci_endpoint_t *xhci_ep)
     302static errno_t alloc_transfer_ds(xhci_endpoint_t *xhci_ep)
    303303{
    304304        /* Can't use XHCI_EP_FMT because the endpoint may not have device. */
     
    309309        xhci_ep->primary_stream_data_size = 0;
    310310
    311         int err;
     311        errno_t err;
    312312        if ((err = xhci_trb_ring_init(&xhci_ep->ring, 0))) {
    313313                return err;
     
    460460 * offending transfer.
    461461 */
    462 int xhci_endpoint_clear_halt(xhci_endpoint_t *ep, uint32_t stream_id)
    463 {
    464         int err;
     462errno_t xhci_endpoint_clear_halt(xhci_endpoint_t *ep, uint32_t stream_id)
     463{
     464        errno_t err;
    465465
    466466        if ((err = hc_reset_endpoint(ep)))
Note: See TracChangeset for help on using the changeset viewer.