Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/transfer_list.c

    rc56c5b5b r5bf82ee  
    9191 * The batch is added to the end of the list and queue.
    9292 */
    93 void transfer_list_add_batch(transfer_list_t *instance, usb_transfer_batch_t *batch)
     93void transfer_list_add_batch(
     94    transfer_list_t *instance, usb_transfer_batch_t *batch)
    9495{
    9596        assert(instance);
     
    146147        while (current != &instance->batch_list) {
    147148                link_t *next = current->next;
    148                 usb_transfer_batch_t *batch = list_get_instance(current, usb_transfer_batch_t, link);
     149                usb_transfer_batch_t *batch =
     150                    list_get_instance(current, usb_transfer_batch_t, link);
    149151
    150152                if (batch_is_complete(batch)) {
     
    160162                link_t *item = done.next;
    161163                list_remove(item);
    162                 usb_transfer_batch_t *batch = list_get_instance(item, usb_transfer_batch_t, link);
     164                usb_transfer_batch_t *batch =
     165                    list_get_instance(item, usb_transfer_batch_t, link);
    163166                batch->next_step(batch);
    164167        }
     
    174177        while (!list_empty(&instance->batch_list)) {
    175178                link_t *current = instance->batch_list.next;
    176                 usb_transfer_batch_t *batch = list_get_instance(current, usb_transfer_batch_t, link);
     179                usb_transfer_batch_t *batch =
     180                    list_get_instance(current, usb_transfer_batch_t, link);
    177181                transfer_list_remove_batch(instance, batch);
    178182                usb_transfer_batch_finish(batch, EIO);
     
    189193 * Does not lock the transfer list, caller is responsible for that.
    190194 */
    191 void transfer_list_remove_batch(transfer_list_t *instance, usb_transfer_batch_t *batch)
     195void transfer_list_remove_batch(
     196    transfer_list_t *instance, usb_transfer_batch_t *batch)
    192197{
    193198        assert(instance);
     
    210215        } else {
    211216                usb_transfer_batch_t *prev =
    212                     list_get_instance(batch->link.prev, usb_transfer_batch_t, link);
     217                    list_get_instance(
     218                        batch->link.prev, usb_transfer_batch_t, link);
    213219                assert((batch_qh(prev)->next & LINK_POINTER_ADDRESS_MASK)
    214220                    == addr_to_phys(batch_qh(batch)));
Note: See TracChangeset for help on using the changeset viewer.