Lines Matching defs:ep
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;
158 const struct UsbRawEndpointDescriptor *ep = NULL;
168 ep = UsbGetEpDesc(ifDes, cnep);
169 if (ep == NULL) {
177 ret = UsbPipeInit(pipe, ep);