Changeset 45457265 in mainline for uspace/drv/bus/usb/xhci/endpoint.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/endpoint.c
r961a5ee r45457265 48 48 #include "streams.h" 49 49 50 static int alloc_transfer_ds(xhci_endpoint_t *);50 static errno_t alloc_transfer_ds(xhci_endpoint_t *); 51 51 52 52 /** … … 58 58 * @return Error code. 59 59 */ 60 static int xhci_endpoint_init(xhci_endpoint_t *xhci_ep, device_t *dev,60 static errno_t xhci_endpoint_init(xhci_endpoint_t *xhci_ep, device_t *dev, 61 61 const usb_endpoint_descriptors_t *desc) 62 62 { 63 int rc;63 errno_t rc; 64 64 assert(xhci_ep); 65 65 … … 180 180 * Bus callback. 181 181 */ 182 int xhci_endpoint_register(endpoint_t *ep_base)183 { 184 int err;182 errno_t xhci_endpoint_register(endpoint_t *ep_base) 183 { 184 errno_t err; 185 185 xhci_endpoint_t *ep = xhci_endpoint_get(ep_base); 186 186 … … 222 222 usb_transfer_batch_t * const batch = ep->active_batch; 223 223 224 const int err = hc_stop_endpoint(xhci_ep);224 const errno_t err = hc_stop_endpoint(xhci_ep); 225 225 if (err) { 226 226 usb_log_error("Failed to stop endpoint %u of device " … … 245 245 void xhci_endpoint_unregister(endpoint_t *ep_base) 246 246 { 247 int err;247 errno_t err; 248 248 xhci_endpoint_t *ep = xhci_endpoint_get(ep_base); 249 249 xhci_device_t *dev = xhci_device_get(ep_base->device); … … 300 300 * @return Error code. 301 301 */ 302 static int alloc_transfer_ds(xhci_endpoint_t *xhci_ep)302 static errno_t alloc_transfer_ds(xhci_endpoint_t *xhci_ep) 303 303 { 304 304 /* Can't use XHCI_EP_FMT because the endpoint may not have device. */ … … 309 309 xhci_ep->primary_stream_data_size = 0; 310 310 311 int err;311 errno_t err; 312 312 if ((err = xhci_trb_ring_init(&xhci_ep->ring, 0))) { 313 313 return err; … … 460 460 * offending transfer. 461 461 */ 462 int xhci_endpoint_clear_halt(xhci_endpoint_t *ep, uint32_t stream_id)463 { 464 int err;462 errno_t xhci_endpoint_clear_halt(xhci_endpoint_t *ep, uint32_t stream_id) 463 { 464 errno_t err; 465 465 466 466 if ((err = hc_reset_endpoint(ep)))
Note:
See TracChangeset
for help on using the changeset viewer.