Changeset 45457265 in mainline for uspace/drv/bus/usb/xhci/isoch.c
- Timestamp:
- 2018-02-03T02:14:26Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eb862fd
- Parents:
- 961a5ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/isoch.c
r961a5ee r45457265 141 141 * Allocate isochronous buffers. Create the feeding timer. 142 142 */ 143 int isoch_alloc_transfers(xhci_endpoint_t *ep) {143 errno_t isoch_alloc_transfers(xhci_endpoint_t *ep) { 144 144 assert(ep->base.transfer_type == USB_TRANSFER_ISOCHRONOUS); 145 145 xhci_isoch_t * const isoch = ep->isoch; … … 171 171 } 172 172 173 static int schedule_isochronous_trb(xhci_endpoint_t *ep, xhci_isoch_transfer_t *it)173 static errno_t schedule_isochronous_trb(xhci_endpoint_t *ep, xhci_isoch_transfer_t *it) 174 174 { 175 175 xhci_trb_t trb; … … 193 193 TRB_ISOCH_SET_FRAMEID(trb, (it->mfindex / 8) % 2048); 194 194 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); 196 196 return err; 197 197 } … … 472 472 * it to the xHC. 473 473 */ 474 int isoch_schedule_out(xhci_transfer_t *transfer)475 { 476 int err = EOK;474 errno_t isoch_schedule_out(xhci_transfer_t *transfer) 475 { 476 errno_t err = EOK; 477 477 478 478 xhci_endpoint_t *ep = xhci_endpoint_get(transfer->batch.ep); … … 540 540 * buffers, and fetch one filled buffer from the ring. 541 541 */ 542 int isoch_schedule_in(xhci_transfer_t *transfer)542 errno_t isoch_schedule_in(xhci_transfer_t *transfer) 543 543 { 544 544 xhci_endpoint_t *ep = xhci_endpoint_get(transfer->batch.ep); … … 595 595 fibril_mutex_lock(&ep->isoch->guard); 596 596 597 int err;597 errno_t err; 598 598 const xhci_trb_completion_code_t completion_code = TRB_COMPLETION_CODE(*trb); 599 599
Note:
See TracChangeset
for help on using the changeset viewer.