Home
last modified time | relevance | path

Searched refs:ucrp (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/
H A Dxhci_hub.c152 xhci_root_hub_get_device_status(xhci_t *xhcip, usb_ctrl_req_t *ucrp) in xhci_root_hub_get_device_status() argument
161 mp = ucrp->ctrl_data; in xhci_root_hub_get_device_status()
171 switch (ucrp->ctrl_wValue) { in xhci_root_hub_get_device_status()
173 if (ucrp->ctrl_wLength != USB_GET_STATUS_LEN) in xhci_root_hub_get_device_status()
180 if (ucrp->ctrl_wLength != USB_GET_STATUS_PTM_LEN) in xhci_root_hub_get_device_status()
203 xhci_root_hub_get_status(xhci_t *xhcip, usb_ctrl_req_t *ucrp) in xhci_root_hub_get_status() argument
210 if (ucrp->ctrl_wLength != HUB_GET_STATUS_LEN) in xhci_root_hub_get_status()
212 mp = ucrp->ctrl_data; in xhci_root_hub_get_status()
227 xhci_root_hub_get_descriptor(xhci_t *xhcip, usb_ctrl_req_t *ucrp) in xhci_root_hub_get_descriptor() argument
229 int len = MIN(sizeof (usb_ss_hub_descr_t), ucrp->ctrl_wLength); in xhci_root_hub_get_descriptor()
[all …]
H A Dxhci_usba.c765 xhci_hcdi_ctrl_req_to_trb(usb_ctrl_req_t *ucrp) in xhci_hcdi_ctrl_req_to_trb() argument
767 uint64_t ret = ucrp->ctrl_bmRequestType | in xhci_hcdi_ctrl_req_to_trb()
768 (ucrp->ctrl_bRequest << 8) | in xhci_hcdi_ctrl_req_to_trb()
769 ((uint64_t)LE_16(ucrp->ctrl_wValue) << 16) | in xhci_hcdi_ctrl_req_to_trb()
770 ((uint64_t)LE_16(ucrp->ctrl_wIndex) << 32) | in xhci_hcdi_ctrl_req_to_trb()
771 ((uint64_t)LE_16(ucrp->ctrl_wLength) << 48); in xhci_hcdi_ctrl_req_to_trb()
781 xhci_hcdi_pipe_ctrl_xfer(usba_pipe_handle_data_t *ph, usb_ctrl_req_t *ucrp, in xhci_hcdi_pipe_ctrl_xfer() argument
800 ret = xhci_root_hub_ctrl_req(xhcip, ph, ucrp); in xhci_hcdi_pipe_ctrl_xfer()
836 if (ucrp->ctrl_bmRequestType == USB_DEV_REQ_HOST_TO_DEV && in xhci_hcdi_pipe_ctrl_xfer()
837 ucrp->ctrl_bRequest == USB_REQ_SET_ADDRESS) { in xhci_hcdi_pipe_ctrl_xfer()
[all …]
H A Dxhci_endpoint.c1258 usb_ctrl_req_t *ucrp; in xhci_endpoint_control_callback() local
1264 ucrp = (usb_ctrl_req_t *)xt->xt_usba_req; in xhci_endpoint_control_callback()
1275 usb_ctrl_req_t *ucrp = (usb_ctrl_req_t *)xt->xt_usba_req; in xhci_endpoint_control_callback() local
1283 if (!(ucrp->ctrl_attributes & USB_ATTRS_SHORT_XFER_OK)) { in xhci_endpoint_control_callback()
1325 xhci_transfer_copy(xt, ucrp->ctrl_data->b_rptr, len, B_TRUE); in xhci_endpoint_control_callback()
1326 ucrp->ctrl_data->b_wptr += len; in xhci_endpoint_control_callback()
1338 usba_hcdi_cb(xep->xep_pipe, (usb_opaque_t)ucrp, xt->xt_cr); in xhci_endpoint_control_callback()