Changeset 1d758fc in mainline for uspace/drv/bus/usb/ohci/ohci_batch.c
- Timestamp:
- 2018-02-12T10:11:47Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5fe3f954
- Parents:
- 2f762a7
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-02-05 03:28:50)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-02-12 10:11:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci_batch.c
r2f762a7 r1d758fc 96 96 return ENOTSUP; 97 97 98 ohci_batch->td_count = (usb_batch-> buffer_size + OHCI_TD_MAX_TRANSFER - 1)98 ohci_batch->td_count = (usb_batch->size + OHCI_TD_MAX_TRANSFER - 1) 99 99 / OHCI_TD_MAX_TRANSFER; 100 100 /* Control transfer need Setup and Status stage */ … … 166 166 167 167 /* Assume all data got through */ 168 usb_batch->transferred_size = usb_batch-> buffer_size;168 usb_batch->transferred_size = usb_batch->size; 169 169 170 170 /* Check all TDs */ … … 212 212 } 213 213 } 214 assert(usb_batch->transferred_size <= usb_batch-> buffer_size);214 assert(usb_batch->transferred_size <= usb_batch->size); 215 215 216 216 /* Make sure that we are leaving the right TD behind */ … … 289 289 size_t td_current = 1; 290 290 const char* buffer = ohci_batch->data_buffer; 291 size_t remain_size = ohci_batch->base. buffer_size;291 size_t remain_size = ohci_batch->base.size; 292 292 while (remain_size > 0) { 293 293 const size_t transfer_size = … … 343 343 344 344 size_t td_current = 0; 345 size_t remain_size = ohci_batch->base. buffer_size;345 size_t remain_size = ohci_batch->base.size; 346 346 char *buffer = ohci_batch->data_buffer; 347 347 while (remain_size > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.