Changeset a4e7e6e1 in mainline for uspace/drv/bus/usb/xhci/streams.c


Ignore:
Timestamp:
2018-01-19T15:25:20Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
861b5d6
Parents:
c7d5189
Message:

xhci: setup also slot context where needed

File:
1 edited

Legend:

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

    rc7d5189 ra4e7e6e1  
    327327        }
    328328
    329         hc_stop_endpoint(hc, dev->slot_id, xhci_endpoint_index(xhci_ep));
     329        hc_stop_endpoint(dev, xhci_endpoint_index(xhci_ep));
    330330        xhci_endpoint_free_transfer_ds(xhci_ep);
    331331
     
    340340        memset(&ep_ctx, 0, sizeof(ep_ctx));
    341341        xhci_setup_endpoint_context(xhci_ep, &ep_ctx);
    342         return hc_update_endpoint(hc, dev->slot_id, xhci_endpoint_index(xhci_ep), &ep_ctx);
     342        return hc_update_endpoint(dev, xhci_endpoint_index(xhci_ep), &ep_ctx);
    343343}
    344344
     
    361361         * Stop the endpoint, destroy the ring, and transition to streams.
    362362         */
    363         hc_stop_endpoint(hc, dev->slot_id, xhci_endpoint_index(xhci_ep));
     363        hc_stop_endpoint(dev, xhci_endpoint_index(xhci_ep));
    364364        xhci_endpoint_free_transfer_ds(xhci_ep);
    365365
     
    381381        setup_stream_context(xhci_ep, &ep_ctx, pstreams, 1);
    382382
    383         return hc_update_endpoint(hc, dev->slot_id, xhci_endpoint_index(xhci_ep), &ep_ctx);
     383        return hc_update_endpoint(dev, xhci_endpoint_index(xhci_ep), &ep_ctx);
    384384}
    385385
     
    434434         * Stop the endpoint, destroy the ring, and transition to streams.
    435435         */
    436         hc_stop_endpoint(hc, dev->slot_id, xhci_endpoint_index(xhci_ep));
     436        hc_stop_endpoint(dev, xhci_endpoint_index(xhci_ep));
    437437        xhci_endpoint_free_transfer_ds(xhci_ep);
    438438
     
    455455        setup_stream_context(xhci_ep, &ep_ctx, pstreams, 0);
    456456
    457         return hc_update_endpoint(hc, dev->slot_id, xhci_endpoint_index(xhci_ep), &ep_ctx);
     457        return hc_update_endpoint(dev, xhci_endpoint_index(xhci_ep), &ep_ctx);
    458458
    459459err_init:
Note: See TracChangeset for help on using the changeset viewer.