Changeset 0892663a in mainline for uspace/drv/bus/usb/uhci/transfer_list.c
- Timestamp:
- 2018-01-11T04:14:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9848c77
- Parents:
- bad4a05
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-11 03:59:03)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-11 04:14:37)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/transfer_list.c
rbad4a05 r0892663a 194 194 while (!list_empty(&instance->batch_list)) { 195 195 link_t * const current = list_first(&instance->batch_list); 196 uhci_transfer_batch_t *batch = 197 uhci_transfer_batch_from_link(current); 196 uhci_transfer_batch_t *batch = uhci_transfer_batch_from_link(current); 198 197 transfer_list_remove_batch(instance, batch); 199 endpoint_abort(batch->base.ep);200 }201 fibril_mutex_unlock(&instance->guard);202 }203 204 /** Walk the list and finish all batches of a specified device with EINTR.205 *206 * @param[in] instance List to use.207 * @param[in] address Address of the specified device. Other addresses are skipped.208 */209 void transfer_list_abort_device(transfer_list_t *instance, usb_address_t address)210 {211 fibril_mutex_lock(&instance->guard);212 link_t *current = list_first(&instance->batch_list);213 while (current && current != &instance->batch_list.head && !list_empty(&instance->batch_list)) {214 link_t * const next = current->next;215 uhci_transfer_batch_t *batch =216 uhci_transfer_batch_from_link(current);217 218 if (batch->base.target.address == address) {219 transfer_list_remove_batch(instance, batch);220 endpoint_abort(batch->base.ep);221 }222 223 current = next;224 198 } 225 199 fibril_mutex_unlock(&instance->guard);
Note:
See TracChangeset
for help on using the changeset viewer.