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


Ignore:
Timestamp:
2018-02-03T02:14:26Z (7 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/transfers.c

    r961a5ee r45457265  
    150150}
    151151
    152 static int schedule_control(xhci_hc_t* hc, xhci_transfer_t* transfer)
     152static errno_t schedule_control(xhci_hc_t* hc, xhci_transfer_t* transfer)
    153153{
    154154        usb_transfer_batch_t *batch = &transfer->batch;
     
    213213        // Issue a Configure Endpoint command, if needed.
    214214        if (configure_endpoint_needed(setup)) {
    215                 const int err = hc_configure_device(xhci_ep_to_dev(xhci_ep));
     215                const errno_t err = hc_configure_device(xhci_ep_to_dev(xhci_ep));
    216216                if (err)
    217217                        return err;
     
    222222}
    223223
    224 static int schedule_bulk(xhci_hc_t* hc, xhci_transfer_t *transfer)
     224static errno_t schedule_bulk(xhci_hc_t* hc, xhci_transfer_t *transfer)
    225225{
    226226        /* The stream-enabled endpoints need to chain ED trb */
     
    276276}
    277277
    278 static int schedule_interrupt(xhci_hc_t* hc, xhci_transfer_t* transfer)
     278static errno_t schedule_interrupt(xhci_hc_t* hc, xhci_transfer_t* transfer)
    279279{
    280280        const size_t buffer_count = calculate_trb_count(transfer);
     
    309309}
    310310
    311 int xhci_handle_transfer_event(xhci_hc_t* hc, xhci_trb_t* trb)
     311errno_t xhci_handle_transfer_event(xhci_hc_t* hc, xhci_trb_t* trb)
    312312{
    313313        uintptr_t addr = trb->parameter;
     
    430430}
    431431
    432 typedef int (*transfer_handler)(xhci_hc_t *, xhci_transfer_t *);
     432typedef errno_t (*transfer_handler)(xhci_hc_t *, xhci_transfer_t *);
    433433
    434434static const transfer_handler transfer_handlers[] = {
     
    444444 * Bus callback.
    445445 */
    446 int xhci_transfer_schedule(usb_transfer_batch_t *batch)
     446errno_t xhci_transfer_schedule(usb_transfer_batch_t *batch)
    447447{
    448448        endpoint_t *ep = batch->ep;
     
    504504                                 * possible that we have to clear all of them.
    505505                                 */
    506                                 const int err = xhci_endpoint_clear_halt(xhci_endpoint_get(halted_ep), 0);
     506                                const errno_t err = xhci_endpoint_clear_halt(xhci_endpoint_get(halted_ep), 0);
    507507                                endpoint_del_ref(halted_ep);
    508508                                if (err) {
     
    526526
    527527
    528         int err;
     528        errno_t err;
    529529        fibril_mutex_lock(&xhci_ep->guard);
    530530
Note: See TracChangeset for help on using the changeset viewer.