Lines Matching refs:ctrlrequest

58 	const struct usb_ctrlrequest *ctrlrequest)  in service_tx_status_request()  argument
63 const u8 recip = ctrlrequest->bRequestType & USB_RECIP_MASK; in service_tx_status_request()
91 epnum = (u8) ctrlrequest->wIndex; in service_tx_status_request()
131 u16 len = le16_to_cpu(ctrlrequest->wLength); in service_tx_status_request()
153 service_in_request(struct musb *musb, const struct usb_ctrlrequest *ctrlrequest) in service_in_request() argument
157 if ((ctrlrequest->bRequestType & USB_TYPE_MASK) in service_in_request()
159 switch (ctrlrequest->bRequest) { in service_in_request()
162 ctrlrequest); in service_in_request()
207 struct usb_ctrlrequest *ctrlrequest) in service_zero_data_request() argument
213 const u8 recip = ctrlrequest->bRequestType & USB_RECIP_MASK; in service_zero_data_request()
216 if ((ctrlrequest->bRequestType & USB_TYPE_MASK) in service_zero_data_request()
218 switch (ctrlrequest->bRequest) { in service_zero_data_request()
222 musb->address = (u8) (ctrlrequest->wValue & 0x7f); in service_zero_data_request()
229 if (ctrlrequest->wValue in service_zero_data_request()
239 ctrlrequest->wIndex & 0x0f; in service_zero_data_request()
248 ctrlrequest->wValue != USB_ENDPOINT_HALT) in service_zero_data_request()
253 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
305 switch (ctrlrequest->wValue) { in service_zero_data_request()
312 if (ctrlrequest->wIndex & 0xff) in service_zero_data_request()
315 switch (ctrlrequest->wIndex >> 8) { in service_zero_data_request()
404 ctrlrequest->wIndex & 0x0f; in service_zero_data_request()
412 ctrlrequest->wValue != USB_ENDPOINT_HALT) in service_zero_data_request()
417 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
627 forward_to_driver(struct musb *musb, const struct usb_ctrlrequest *ctrlrequest) in forward_to_driver() argument
635 retval = musb->gadget_driver->setup(&musb->g, ctrlrequest); in forward_to_driver()