Lines Matching refs:ctrl
216 * @ctrl: pointer to received setup packet
221 struct usb_ctrlrequest *ctrl)
229 recip = ctrl->bRequestType & USB_RECIP_MASK;
251 return cdns3_ep0_delegate_req(priv_dev, ctrl);
253 index = cdns3_ep_addr_to_index(le16_to_cpu(ctrl->wIndex));
257 cdns3_select_ep(priv_dev, le16_to_cpu(ctrl->wIndex));
275 struct usb_ctrlrequest *ctrl,
284 wValue = le16_to_cpu(ctrl->wValue);
311 tmode = le16_to_cpu(ctrl->wIndex);
338 struct usb_ctrlrequest *ctrl,
344 wValue = le16_to_cpu(ctrl->wValue);
357 struct usb_ctrlrequest *ctrl,
364 if (le16_to_cpu(ctrl->wValue) != USB_ENDPOINT_HALT)
367 if (!(le16_to_cpu(ctrl->wIndex) & ~USB_DIR_IN))
370 index = cdns3_ep_addr_to_index(le16_to_cpu(ctrl->wIndex));
373 cdns3_select_ep(priv_dev, le16_to_cpu(ctrl->wIndex));
390 * @ctrl: pointer to received setup packet
396 struct usb_ctrlrequest *ctrl,
402 recip = ctrl->bRequestType & USB_RECIP_MASK;
406 ret = cdns3_ep0_feature_handle_device(priv_dev, ctrl, set);
409 ret = cdns3_ep0_feature_handle_intf(priv_dev, ctrl, set);
412 ret = cdns3_ep0_feature_handle_endpoint(priv_dev, ctrl, set);
533 struct usb_ctrlrequest *ctrl = priv_dev->setup_buf;
537 priv_dev->ep0_data_dir = ctrl->bRequestType & USB_DIR_IN;
539 trace_cdns3_ctrl_req(ctrl);
550 if (le16_to_cpu(ctrl->wLength))
555 if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD)
556 result = cdns3_ep0_standard_request(priv_dev, ctrl);
558 result = cdns3_ep0_delegate_req(priv_dev, ctrl);