Changeset 45457265 in mainline for uspace/drv/bus/usb/xhci/isoch.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/isoch.c

    r961a5ee r45457265  
    141141 * Allocate isochronous buffers. Create the feeding timer.
    142142 */
    143 int isoch_alloc_transfers(xhci_endpoint_t *ep) {
     143errno_t isoch_alloc_transfers(xhci_endpoint_t *ep) {
    144144        assert(ep->base.transfer_type == USB_TRANSFER_ISOCHRONOUS);
    145145        xhci_isoch_t * const isoch = ep->isoch;
     
    171171}
    172172
    173 static int schedule_isochronous_trb(xhci_endpoint_t *ep, xhci_isoch_transfer_t *it)
     173static errno_t schedule_isochronous_trb(xhci_endpoint_t *ep, xhci_isoch_transfer_t *it)
    174174{
    175175        xhci_trb_t trb;
     
    193193        TRB_ISOCH_SET_FRAMEID(trb, (it->mfindex / 8) % 2048);
    194194
    195         const int err = xhci_trb_ring_enqueue(&ep->ring, &trb, &it->interrupt_trb_phys);
     195        const errno_t err = xhci_trb_ring_enqueue(&ep->ring, &trb, &it->interrupt_trb_phys);
    196196        return err;
    197197}
     
    472472 * it to the xHC.
    473473 */
    474 int isoch_schedule_out(xhci_transfer_t *transfer)
    475 {
    476         int err = EOK;
     474errno_t isoch_schedule_out(xhci_transfer_t *transfer)
     475{
     476        errno_t err = EOK;
    477477
    478478        xhci_endpoint_t *ep = xhci_endpoint_get(transfer->batch.ep);
     
    540540 * buffers, and fetch one filled buffer from the ring.
    541541 */
    542 int isoch_schedule_in(xhci_transfer_t *transfer)
     542errno_t isoch_schedule_in(xhci_transfer_t *transfer)
    543543{
    544544        xhci_endpoint_t *ep = xhci_endpoint_get(transfer->batch.ep);
     
    595595        fibril_mutex_lock(&ep->isoch->guard);
    596596
    597         int err;
     597        errno_t err;
    598598        const xhci_trb_completion_code_t completion_code = TRB_COMPLETION_CODE(*trb);
    599599
Note: See TracChangeset for help on using the changeset viewer.