Changeset 338d54a7 in mainline for uspace/drv/bus/usb/xhci/isoch.c
- Timestamp:
- 2018-03-10T22:55:07Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 850fd32
- Parents:
- 5ef16903
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/isoch.c
r5ef16903 r338d54a7 310 310 while (isoch->transfers[isoch->hw_enqueue].state == ISOCH_FILLED) { 311 311 xhci_isoch_transfer_t * const it = &isoch->transfers[isoch->hw_enqueue]; 312 suseconds_t delay; 312 313 313 314 assert(it->state == ISOCH_FILLED); … … 317 318 318 319 switch (wd.position) { 319 case WINDOW_TOO_SOON: {320 const suseconds_tdelay = wd.offset * 125;320 case WINDOW_TOO_SOON: 321 delay = wd.offset * 125; 321 322 usb_log_debug("[isoch] delaying feeding buffer %zu for %ldus", 322 323 it - isoch->transfers, delay); … … 324 325 isoch_feed_out_timer, ep); 325 326 goto out; 326 }327 327 328 328 case WINDOW_INSIDE: … … 396 396 while (isoch->transfers[isoch->enqueue].state <= ISOCH_FILLED) { 397 397 xhci_isoch_transfer_t * const it = &isoch->transfers[isoch->enqueue]; 398 suseconds_t delay; 398 399 399 400 /* IN buffers are "filled" with free space */ … … 408 409 409 410 switch (wd.position) { 410 case WINDOW_TOO_SOON: {411 case WINDOW_TOO_SOON: 411 412 /* Not allowed to feed yet. Defer to later. */ 412 const suseconds_tdelay = wd.offset * 125;413 delay = wd.offset * 125; 413 414 usb_log_debug("[isoch] delaying feeding buffer %zu for %ldus", 414 415 it - isoch->transfers, delay); … … 416 417 isoch_feed_in_timer, ep); 417 418 goto out; 418 }419 420 419 case WINDOW_TOO_LATE: 421 420 usb_log_debug("[isoch] missed feeding buffer %zu at 0x%llx by"
Note:
See TracChangeset
for help on using the changeset viewer.