Lines Matching refs:descriptor

271 print_descriptor_chain(ehci_qtd *descriptor)
273 while (descriptor) {
277 descriptor->this_phy, descriptor->next_phy,
278 descriptor->alt_next_phy, descriptor->token,
279 descriptor->buffer_phy[0], descriptor->buffer_phy[1],
280 descriptor->buffer_phy[2], descriptor->buffer_phy[3],
281 descriptor->buffer_phy[4], descriptor->buffer_size);
283 if (descriptor->next_phy & EHCI_ITEM_TERMINATE)
286 descriptor = descriptor->next_log;
980 ehci_qtd *descriptor = transferData->queue_head->element_log;
982 while (descriptor) {
983 uint32 status = descriptor->token;
994 if ((descriptor->next_phy & EHCI_ITEM_TERMINATE) != 0) {
995 // we arrived at the last (stray) descriptor, we're done
1003 // a short packet condition existed on this descriptor
1004 if (descriptor->alt_next_log != NULL) {
1005 descriptor = descriptor->alt_next_log;
1013 descriptor = descriptor->next_log;
1047 ehci_qtd *descriptor = transferData->queue_head->element_log;
1048 while (descriptor != NULL) {
1049 descriptor->token &= ~EHCI_QTD_STATUS_ACTIVE;
1050 descriptor = descriptor->next_log;
1180 // Ignore the fact that the last descriptor might need less bandwidth.
1184 TRACE("isochronous transfer descriptor bandwidth %d\n", bandwidth);
1186 // The following holds the list of transfer descriptor of the
1203 // Find the entry where to start inserting the first Isochronous descriptor
1331 // Simply check every last descriptor of the isochronous transfer list
1758 ehci_qtd *descriptor = current->queue_head->element_log;
1759 while (descriptor) {
1760 descriptor->token &= ~EHCI_QTD_STATUS_ACTIVE;
1761 descriptor = descriptor->next_log;
1882 ehci_qtd *descriptor = transfer->queue_head->element_log;
1885 while (descriptor) {
1886 uint32 status = descriptor->token;
1890 descriptor->this_phy);
1897 "\n", descriptor->this_phy, status);
1946 if (descriptor->next_phy & EHCI_ITEM_TERMINATE) {
1947 // we arrived at the last (stray) descriptor, we're done
1949 descriptor->this_phy);
1959 // a short packet condition existed on this descriptor,
1961 if (descriptor->alt_next_log != NULL) {
1962 descriptor = descriptor->alt_next_log;
1972 descriptor = descriptor->next_log;
2124 * isochronous descriptor. Once it finds the last isochronous descriptor
2174 // Process the transfer if we found the last descriptor
2259 ehci_qtd *descriptor = CreateDescriptor(0, 0);
2260 if (!descriptor) {
2266 descriptor->token &= ~EHCI_QTD_STATUS_ACTIVE;
2267 result->stray_log = descriptor;
2268 result->element_log = descriptor;
2270 result->overlay.next_phy = descriptor->this_phy;
2607 ehci_qtd *descriptor = CreateDescriptor(min_c(packetSize, bufferSize),
2610 if (!descriptor) {
2616 descriptor->token |= EHCI_QTD_DATA_TOGGLE;
2619 LinkDescriptors(lastDescriptor, descriptor, strayDescriptor);
2622 lastDescriptor = descriptor;
2624 firstDescriptor = descriptor;
2634 EHCI::FreeDescriptor(ehci_qtd *descriptor)
2636 if (!descriptor)
2639 if (descriptor->buffer_log) {
2640 fStack->FreeChunk(descriptor->buffer_log,
2641 (phys_addr_t)descriptor->buffer_phy[0], descriptor->buffer_size);
2644 fStack->FreeChunk(descriptor, (phys_addr_t)descriptor->this_phy,
2702 EHCI::FreeDescriptor(ehci_itd *descriptor)
2704 if (!descriptor)
2707 fStack->FreeChunk(descriptor, (phys_addr_t)descriptor->this_phy,
2713 EHCI::FreeDescriptor(ehci_sitd *descriptor)
2715 if (!descriptor)
2718 fStack->FreeChunk(descriptor, (phys_addr_t)descriptor->this_phy,
2818 TRACE("wrote descriptor chain (%ld bytes, no more vectors)"
2838 TRACE("wrote descriptor chain (%ld bytes)\n", actualLength);
2878 TRACE("read descriptor chain (%ld bytes, no more vectors)"
2899 TRACE("read descriptor chain (%ld bytes)\n", actualLength);