Lines Matching refs:pipe
44 struct UsbPipe *pipe = NULL;
59 ret = UsbIfCreatPipeObj(interfaceObj, &pipe);
64 pipe->info.pipeId = 0;
65 pipe->info.pipeAddress = 0;
66 pipe->info.pipeDirection = USB_PIPE_DIRECTION_OUT;
67 pipe->info.pipeType = USB_PIPE_TYPE_CONTROL;
95 static int32_t UsbPipeInit(struct UsbPipe *pipe, const struct UsbRawEndpointDescriptor *ep)
97 if ((pipe == NULL) || (ep == NULL)) {
102 pipe->info.pipeId = ep->endpointDescriptor.bEndpointAddress;
103 pipe->info.maxPacketSize = ep->endpointDescriptor.wMaxPacketSize;
104 pipe->info.interval = ep->endpointDescriptor.bInterval;
105 pipe->info.pipeType = ep->endpointDescriptor.bmAttributes & USB_DDK_ENDPOINT_XFERTYPE_MASK;
106 pipe->info.pipeAddress = ep->endpointDescriptor.bEndpointAddress & USB_DDK_ENDPOINT_NUMBER_MASK;
107 pipe->info.pipeDirection = ep->endpointDescriptor.bEndpointAddress & USB_DDK_ENDPOINT_DIR_MASK;
159 struct UsbPipe *pipe = NULL;
173 ret = UsbIfCreatPipeObj(interfaceObj, &pipe);
177 ret = UsbPipeInit(pipe, ep);