Lines Matching defs:descriptor

270 print_descriptor_chain(uhci_td *descriptor)
272 while (descriptor) {
275 descriptor->this_phy & 0xffffffff, descriptor->link_phy & 0xfffffff0,
276 descriptor->link_phy & 0x4 ? "y" : "n",
277 descriptor->link_phy & 0x2 ? "qh" : "td",
278 descriptor->link_phy & 0x1 ? "y" : "n",
279 descriptor->status, descriptor->token);
281 if (descriptor->link_phy & TD_TERMINATE)
284 descriptor = (uhci_td *)descriptor->link_log;
371 // descriptor in order to get some chipset to work nicely (like the PIIX).
376 TRACE_ERROR("failed to allocate a stray transfer descriptor\n");
630 TRACE_ERROR("faild to allocate memory for first isochronous descriptor\n");
636 TRACE_ERROR("failed to allocate memory for last isochronous descriptor\n");
905 uhci_td *descriptor = transferData->first_descriptor;
907 while (descriptor) {
908 uint32 status = descriptor->status;
917 if ((descriptor->link_phy & TD_TERMINATE)
918 || uhci_td_actual_length(descriptor)
919 < uhci_td_maximum_length(descriptor)) {
924 descriptor = (uhci_td *)descriptor->link_log;
963 uhci_td *descriptor = transferData->first_descriptor;
964 while (descriptor) {
965 descriptor->status &= ~TD_STATUS_ACTIVE;
966 descriptor = (uhci_td *)descriptor->link_log;
1003 uhci_td *descriptor = current->first_descriptor;
1004 while (descriptor) {
1005 descriptor->status &= ~TD_STATUS_ACTIVE;
1006 descriptor = (uhci_td *)descriptor->link_log;
1057 // Set the active bit off on every descriptor in order to prevent
1269 // Ignore the fact that the last descriptor might need less bandwidth.
1273 TRACE("isochronous transfer descriptor bandwidth %d\n", bandwidth);
1275 // The following holds the list of transfer descriptor of the
1301 // Create the last transfer descriptor which should be of smaller size
1315 // If direction is out set every descriptor data
1326 // Find the entry where to start inserting the first Isochronous descriptor
1403 UHCI::FindIsochronousTransfer(uhci_td *descriptor)
1405 // Simply check every last descriptor of the isochronous transfer list
1410 != descriptor) {
1424 UHCI::LinkIsochronousDescriptor(uhci_td *descriptor, uint16 frame)
1426 // The transfer descriptor is appended to the last
1427 // existing isochronous transfer descriptor (if any)
1431 // Insert the transfer descriptor in the first position
1432 fFrameList[frame] = descriptor->this_phy & ~FRAMELIST_NEXT_IS_QH;
1433 fFirstIsochronousDescriptor[frame] = descriptor;
1434 fLastIsochronousDescriptor[frame] = descriptor;
1436 // Append to the last transfer descriptor
1437 fLastIsochronousDescriptor[frame]->link_log = descriptor;
1439 = descriptor->this_phy & ~TD_NEXT_IS_QH;
1440 fLastIsochronousDescriptor[frame] = descriptor;
1443 descriptor->link_phy
1457 uhci_td *descriptor = fFirstIsochronousDescriptor[frame];
1458 if (descriptor) {
1459 // The descriptor will be freed later.
1460 fFrameList[frame] = descriptor->link_phy;
1461 if (descriptor->link_log) {
1463 = (uhci_td *)descriptor->link_log;
1470 return descriptor;
1509 uhci_td *descriptor = transfer->first_descriptor;
1512 while (descriptor) {
1513 uint32 status = descriptor->status;
1517 descriptor->this_phy);
1525 descriptor->this_phy, status, descriptor->token);
1565 if ((descriptor->link_phy & TD_TERMINATE)
1566 || ((descriptor->status & TD_CONTROL_SPD) != 0
1567 && uhci_td_actual_length(descriptor)
1568 < uhci_td_maximum_length(descriptor))) {
1570 TRACE("td (0x%08" B_PRIx32 ") ok\n", descriptor->this_phy);
1576 descriptor = (uhci_td *)descriptor->link_log;
1756 * isochronous descriptor. Once it finds the last isochronous descriptor
1779 // Process the transfer if we found the last descriptor
2120 UHCI::CreateTransferQueue(uhci_td *descriptor)
2129 queueHead->element_phy = descriptor->this_phy;
2152 TRACE_ERROR("failed to allocate a transfer descriptor\n");
2210 uhci_td *descriptor = CreateDescriptor(pipe, direction,
2213 if (!descriptor) {
2219 descriptor->token |= TD_TOKEN_DATA1;
2223 LinkDescriptors(lastDescriptor, descriptor);
2227 lastDescriptor = descriptor;
2229 firstDescriptor = descriptor;
2239 UHCI::FreeDescriptor(uhci_td *descriptor)
2241 if (!descriptor)
2244 if (descriptor->buffer_log) {
2245 fStack->FreeChunk(descriptor->buffer_log,
2246 descriptor->buffer_phy, descriptor->buffer_size);
2249 fStack->FreeChunk(descriptor, descriptor->this_phy, sizeof(uhci_td));
2307 TRACE("wrote descriptor chain (%ld bytes, no more vectors)\n",
2327 TRACE("wrote descriptor chain (%ld bytes)\n", actualLength);
2368 TRACE("read descriptor chain (%ld bytes, no more vectors)\n",
2393 TRACE("read descriptor chain (%ld bytes)\n", actualLength);