Changeset db51a6a6 in mainline for uspace/drv/bus/usb/ohci


Ignore:
Timestamp:
2018-01-22T12:20:14Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
998773d
Parents:
b3c39690
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-22 12:18:02)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-22 12:20:14)
Message:

typo: transferred is spelled with two r

Location:
uspace/drv/bus/usb/ohci
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/ohci_batch.c

    rb3c39690 rdb51a6a6  
    187187
    188188        /* Assume all data got through */
    189         ohci_batch->base.transfered_size = ohci_batch->base.buffer_size;
     189        ohci_batch->base.transferred_size = ohci_batch->base.buffer_size;
    190190
    191191        /* Assume we will leave the last(unused) TD behind */
     
    213213                         * we leave the very last(unused) TD behind.
    214214                         */
    215                         ohci_batch->base.transfered_size
     215                        ohci_batch->base.transferred_size
    216216                            -= td_remain_size(ohci_batch->tds[i]);
    217217                } else {
     
    244244                }
    245245        }
    246         assert(ohci_batch->base.transfered_size <=
     246        assert(ohci_batch->base.transferred_size <=
    247247            ohci_batch->base.buffer_size);
    248248
     
    254254                memcpy(ohci_batch->base.buffer,
    255255                    ohci_batch->device_buffer + setup_size,
    256                     ohci_batch->base.transfered_size);
     256                    ohci_batch->base.transferred_size);
    257257
    258258        /* Store the remaining TD */
  • uspace/drv/bus/usb/ohci/ohci_bus.c

    rb3c39690 rdb51a6a6  
    152152        if (batch) {
    153153                batch->error = EINTR;
    154                 batch->transfered_size = 0;
     154                batch->transferred_size = 0;
    155155                usb_transfer_batch_finish(batch);
    156156        }
  • uspace/drv/bus/usb/ohci/ohci_rh.c

    rb3c39690 rdb51a6a6  
    180180        batch->error = virthub_base_request(&instance->base, batch->target,
    181181            batch->dir, &batch->setup.packet,
    182             batch->buffer, batch->buffer_size, &batch->transfered_size);
     182            batch->buffer, batch->buffer_size, &batch->transferred_size);
    183183        if (batch->error == ENAK) {
    184184                /* This is safe because only status change interrupt transfers
     
    208208                batch->error = virthub_base_request(&instance->base, batch->target,
    209209                    batch->dir, &batch->setup.packet,
    210                     batch->buffer, batch->buffer_size, &batch->transfered_size);
     210                    batch->buffer, batch->buffer_size, &batch->transferred_size);
    211211                usb_transfer_batch_finish(batch);
    212212        }
Note: See TracChangeset for help on using the changeset viewer.