Lines Matching defs:crq
499 static int s3c2410_udc_read_fifo_crq(struct usb_ctrlrequest *crq)
501 unsigned char *outbuf = (unsigned char *)crq;
516 bytes_read, crq->bRequest, crq->bRequestType,
517 crq->wValue, crq->wIndex, crq->wLength);
523 struct usb_ctrlrequest *crq)
526 u8 ep_num = crq->wIndex & 0x7F;
527 u8 is_in = crq->wIndex & USB_DIR_IN;
529 switch (crq->bRequestType & USB_RECIP_MASK) {
538 if (ep_num > 4 || crq->wLength > 2)
576 struct usb_ctrlrequest *crq,
587 len = s3c2410_udc_read_fifo_crq(crq);
588 if (len != sizeof(*crq)) {
591 sizeof(*crq), len);
597 crq->bRequest, crq->bRequestType, crq->wLength);
600 dev->req_std = (crq->bRequestType & USB_TYPE_MASK)
605 switch (crq->bRequest) {
609 if (crq->bRequestType == USB_RECIP_DEVICE) {
618 if (crq->bRequestType == USB_RECIP_INTERFACE) {
627 if (crq->bRequestType == USB_RECIP_DEVICE) {
628 tmp = crq->wValue & 0x7F;
642 if (!s3c2410_udc_get_status(dev, crq))
650 if (crq->bRequestType != USB_RECIP_ENDPOINT)
653 if (crq->wValue != USB_ENDPOINT_HALT || crq->wLength != 0)
656 s3c2410_udc_set_halt(&dev->ep[crq->wIndex & 0x7f].ep, 0);
663 if (crq->bRequestType != USB_RECIP_ENDPOINT)
666 if (crq->wValue != USB_ENDPOINT_HALT || crq->wLength != 0)
669 s3c2410_udc_set_halt(&dev->ep[crq->wIndex & 0x7f].ep, 1);
678 if (crq->bRequestType & USB_DIR_IN)
687 ret = dev->driver->setup(&dev->gadget, crq);
691 crq->bRequest, ret);
719 struct usb_ctrlrequest crq;
754 s3c2410_udc_handle_ep0_idle(dev, ep, &crq, ep0csr);