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


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/uhci
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/hc.c

    rb3c39690 rdb51a6a6  
    362362                async_usleep(2000);
    363363                batch->base.error = EINTR;
    364                 batch->base.transfered_size = 0;
     364                batch->base.transferred_size = 0;
    365365                usb_transfer_batch_finish(&batch->base);
    366366        }
  • uspace/drv/bus/usb/uhci/uhci_batch.c

    rb3c39690 rdb51a6a6  
    163163            uhci_batch, USB_TRANSFER_BATCH_ARGS(*batch),
    164164            uhci_batch->td_count);
    165         batch->transfered_size = 0;
     165        batch->transferred_size = 0;
    166166
    167167        uhci_endpoint_t *uhci_ep = (uhci_endpoint_t *) batch->ep;
     
    185185                }
    186186
    187                 batch->transfered_size
     187                batch->transferred_size
    188188                    += td_act_size(&uhci_batch->tds[i]);
    189189                if (td_is_short(&uhci_batch->tds[i]))
     
    191191        }
    192192substract_ret:
    193         if (batch->transfered_size > 0 && batch->ep->transfer_type == USB_TRANSFER_CONTROL) {
    194                 assert(batch->transfered_size >= USB_SETUP_PACKET_SIZE);
    195                 batch->transfered_size -= USB_SETUP_PACKET_SIZE;
     193        if (batch->transferred_size > 0 && batch->ep->transfer_type == USB_TRANSFER_CONTROL) {
     194                assert(batch->transferred_size >= USB_SETUP_PACKET_SIZE);
     195                batch->transferred_size -= USB_SETUP_PACKET_SIZE;
    196196        }
    197197
    198198        if (batch->dir == USB_DIRECTION_IN) {
    199                 assert(batch->transfered_size <= batch->buffer_size);
     199                assert(batch->transferred_size <= batch->buffer_size);
    200200                memcpy(batch->buffer,
    201201                    uhci_transfer_batch_data_buffer(uhci_batch),
    202                     batch->transfered_size);
     202                    batch->transferred_size);
    203203        }
    204204
  • uspace/drv/bus/usb/uhci/uhci_rh.c

    rb3c39690 rdb51a6a6  
    107107                batch->error = virthub_base_request(&instance->base, batch->target,
    108108                    batch->dir, (void*) batch->setup.buffer,
    109                     batch->buffer, batch->buffer_size, &batch->transfered_size);
     109                    batch->buffer, batch->buffer_size, &batch->transferred_size);
    110110                if (batch->error == ENAK)
    111111                        async_usleep(instance->base.endpoint_descriptor.poll_interval * 1000);
Note: See TracChangeset for help on using the changeset viewer.