Lines Matching refs:ctrl

42 				  struct usb_ctrlrequest *ctrl)  in cdnsp_ep0_delegate_req()  argument
47 ret = pdev->gadget_driver->setup(&pdev->gadget, ctrl); in cdnsp_ep0_delegate_req()
54 struct usb_ctrlrequest *ctrl) in cdnsp_ep0_set_config() argument
60 cfg = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_config()
74 ret = cdnsp_ep0_delegate_req(pdev, ctrl); in cdnsp_ep0_set_config()
85 struct usb_ctrlrequest *ctrl) in cdnsp_ep0_set_address() argument
93 addr = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_address()
107 pdev->device_address = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_address()
145 struct usb_ctrlrequest *ctrl) in cdnsp_ep0_handle_status() argument
153 recipient = ctrl->bRequestType & USB_RECIP_MASK; in cdnsp_ep0_handle_status()
170 return cdnsp_ep0_delegate_req(pdev, ctrl); in cdnsp_ep0_handle_status()
172 ep_sts = cdnsp_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex)); in cdnsp_ep0_handle_status()
203 struct usb_ctrlrequest *ctrl, in cdnsp_ep0_handle_feature_device() argument
213 switch (le16_to_cpu(ctrl->wValue)) { in cdnsp_ep0_handle_feature_device()
238 tmode = le16_to_cpu(ctrl->wIndex); in cdnsp_ep0_handle_feature_device()
264 struct usb_ctrlrequest *ctrl, in cdnsp_ep0_handle_feature_intf() argument
270 wValue = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_handle_feature_intf()
271 wIndex = le16_to_cpu(ctrl->wIndex); in cdnsp_ep0_handle_feature_intf()
275 ret = cdnsp_ep0_delegate_req(pdev, ctrl); in cdnsp_ep0_handle_feature_intf()
298 struct usb_ctrlrequest *ctrl, in cdnsp_ep0_handle_feature_endpoint() argument
304 wValue = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_handle_feature_endpoint()
305 pep = &pdev->eps[cdnsp_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex))]; in cdnsp_ep0_handle_feature_endpoint()
326 struct usb_ctrlrequest *ctrl, in cdnsp_ep0_handle_feature() argument
329 switch (ctrl->bRequestType & USB_RECIP_MASK) { in cdnsp_ep0_handle_feature()
331 return cdnsp_ep0_handle_feature_device(pdev, ctrl, set); in cdnsp_ep0_handle_feature()
333 return cdnsp_ep0_handle_feature_intf(pdev, ctrl, set); in cdnsp_ep0_handle_feature()
335 return cdnsp_ep0_handle_feature_endpoint(pdev, ctrl, set); in cdnsp_ep0_handle_feature()
342 struct usb_ctrlrequest *ctrl) in cdnsp_ep0_set_sel() argument
350 wLength = le16_to_cpu(ctrl->wLength); in cdnsp_ep0_set_sel()
369 struct usb_ctrlrequest *ctrl) in cdnsp_ep0_set_isoch_delay() argument
371 if (le16_to_cpu(ctrl->wIndex) || le16_to_cpu(ctrl->wLength)) in cdnsp_ep0_set_isoch_delay()
374 pdev->gadget.isoch_delay = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_isoch_delay()
380 struct usb_ctrlrequest *ctrl) in cdnsp_ep0_std_request() argument
384 switch (ctrl->bRequest) { in cdnsp_ep0_std_request()
386 ret = cdnsp_ep0_handle_status(pdev, ctrl); in cdnsp_ep0_std_request()
389 ret = cdnsp_ep0_handle_feature(pdev, ctrl, 0); in cdnsp_ep0_std_request()
392 ret = cdnsp_ep0_handle_feature(pdev, ctrl, 1); in cdnsp_ep0_std_request()
395 ret = cdnsp_ep0_set_address(pdev, ctrl); in cdnsp_ep0_std_request()
398 ret = cdnsp_ep0_set_config(pdev, ctrl); in cdnsp_ep0_std_request()
401 ret = cdnsp_ep0_set_sel(pdev, ctrl); in cdnsp_ep0_std_request()
404 ret = cdnsp_ep0_set_isoch_delay(pdev, ctrl); in cdnsp_ep0_std_request()
407 ret = cdnsp_ep0_delegate_req(pdev, ctrl); in cdnsp_ep0_std_request()
416 struct usb_ctrlrequest *ctrl = &pdev->setup; in cdnsp_setup_analyze() local
420 trace_cdnsp_ctrl_req(ctrl); in cdnsp_setup_analyze()
448 len = le16_to_cpu(ctrl->wLength); in cdnsp_setup_analyze()
454 pdev->ep0_expect_in = !!(ctrl->bRequestType & USB_DIR_IN); in cdnsp_setup_analyze()
457 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in cdnsp_setup_analyze()
458 ret = cdnsp_ep0_std_request(pdev, ctrl); in cdnsp_setup_analyze()
460 ret = cdnsp_ep0_delegate_req(pdev, ctrl); in cdnsp_setup_analyze()