Lines Matching defs:pipe

849 	Pipe *pipe = transfer->TransferPipe();
850 if ((pipe->Type() & USB_OBJECT_CONTROL_PIPE) != 0)
859 Pipe *pipe = transfer->TransferPipe();
865 xhci_endpoint *endpoint = (xhci_endpoint *)pipe->ControllerCookie();
867 TRACE_ERROR("control pipe has no endpoint!\n");
947 Pipe *pipe = transfer->TransferPipe();
949 bool directionIn = (pipe->Direction() == Pipe::In);
951 xhci_endpoint *endpoint = (xhci_endpoint *)pipe->ControllerCookie();
953 TRACE_ERROR("pipe has no endpoint!\n");
977 if (trbSize == 0 || trbSize > pipe->MaxPacketSize() || trbSize
990 const size_t maxPacketSize = pipe->MaxPacketSize();
1085 XHCI::CancelQueuedTransfers(Pipe *pipe, bool force)
1087 xhci_endpoint* endpoint = (xhci_endpoint*)pipe->ControllerCookie();
1089 // Someone's de-allocated this pipe or endpoint in the meantime.
1090 // (Possibly AllocateDevice failed, and we were the temporary pipe.)
1098 TRACE_ALWAYS("cancel queued transfers (%" B_PRId8 ") for pipe %p (%d)\n",
1099 endpoint->used, pipe, pipe->EndpointAddress());
1201 Pipe *pipe = transfer->TransferPipe();
1202 xhci_endpoint *endpoint = (xhci_endpoint *)pipe->ControllerCookie();
1286 XHCI::NotifyPipeChange(Pipe *pipe, usb_change change)
1288 TRACE("pipe change %d for pipe %p (%d)\n", change, pipe,
1289 pipe->EndpointAddress());
1293 return _InsertEndpointForPipe(pipe);
1295 return _RemoveEndpointForPipe(pipe);
1302 TRACE_ERROR("unknown pipe change!\n");
1705 // Create a temporary pipe with the new address
1706 ControlPipe pipe(parent);
1707 pipe.SetControllerCookie(endpoint0);
1708 pipe.InitCommon(device->address + 1, 0, speed, Pipe::Default, maxPacketSize, 0,
1719 status = pipe.SendRequest(
1760 status = pipe.SendRequest(
1808 pipe.SetControllerCookie(NULL);
1860 XHCI::_InsertEndpointForPipe(Pipe *pipe)
1862 TRACE("insert endpoint for pipe %p (%d)\n", pipe, pipe->EndpointAddress());
1864 if (pipe->ControllerCookie() != NULL
1865 || pipe->Parent()->Type() != USB_OBJECT_DEVICE) {
1866 // default pipe is already referenced
1870 Device* usbDevice = (Device *)pipe->Parent();
1883 const uint8 id = (2 * pipe->EndpointAddress()
1884 + (pipe->Direction() != Pipe::Out ? 1 : 0)) - 1;
1914 TRACE("insert endpoint for pipe: trbs, device %p endpoint %p\n",
1916 TRACE("insert endpoint for pipe: trb_addr, device 0x%" B_PRIxPHYSADDR
1922 status_t status = ConfigureEndpoint(endpoint, device->slot, id, pipe->Type(),
1923 pipe->Direction() == Pipe::In, pipe->Interval(), pipe->MaxPacketSize(),
1924 usbDevice->Speed(), pipe->MaxBurst(), pipe->BytesPerInterval());
1946 pipe->SetControllerCookie(&device->endpoints[id]);
1953 XHCI::_RemoveEndpointForPipe(Pipe *pipe)
1955 TRACE("remove endpoint for pipe %p (%d)\n", pipe, pipe->EndpointAddress());
1957 if (pipe->Parent()->Type() != USB_OBJECT_DEVICE)
1959 Device* usbDevice = (Device *)pipe->Parent();
1963 xhci_endpoint *endpoint = (xhci_endpoint *)pipe->ControllerCookie();
1967 pipe->SetControllerCookie(NULL);
2002 TRACE("link descriptor for pipe\n");
2011 TRACE_ERROR("link descriptor for pipe: max transfers count exceeded\n");
2034 TRACE("link descriptor for pipe: link %d, next %d\n", link, next);
2126 TRACE("unlink descriptor for pipe\n");