• Home
  • Raw
  • Download

Lines Matching refs:ctrl

454 	struct xhci_ctrl *ctrl = xhci_get_ctrl(udev);  in xhci_configure_endpoints()  local
457 virt_dev = ctrl->devs[udev->slot_id]; in xhci_configure_endpoints()
461 xhci_queue_command(ctrl, in_ctx->bytes, udev->slot_id, 0, in xhci_configure_endpoints()
463 event = xhci_wait_for_event(ctrl, TRB_COMPLETION); in xhci_configure_endpoints()
479 xhci_acknowledge_event(ctrl); in xhci_configure_endpoints()
502 struct xhci_ctrl *ctrl = xhci_get_ctrl(udev); in xhci_set_configuration() local
507 struct xhci_virt_device *virt_dev = ctrl->devs[slot_id]; in xhci_set_configuration()
538 xhci_slot_copy(ctrl, in_ctx, out_ctx); in xhci_set_configuration()
539 slot_ctx = xhci_get_slot_ctx(ctrl, in_ctx); in xhci_set_configuration()
543 xhci_endpoint_copy(ctrl, in_ctx, out_ctx, 0); in xhci_set_configuration()
571 ep_ctx[ep_index] = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_set_configuration()
628 struct xhci_ctrl *ctrl = xhci_get_ctrl(udev); in xhci_address_device() local
635 virt_dev = ctrl->devs[slot_id]; in xhci_address_device()
641 debug("Setting up addressable devices %p\n", ctrl->dcbaa); in xhci_address_device()
642 xhci_setup_addressable_virt_dev(ctrl, udev, root_portnr); in xhci_address_device()
648 xhci_queue_command(ctrl, (void *)ctrl_ctx, slot_id, 0, TRB_ADDR_DEV); in xhci_address_device()
649 event = xhci_wait_for_event(ctrl, TRB_COMPLETION); in xhci_address_device()
679 xhci_acknowledge_event(ctrl); in xhci_address_device()
690 slot_ctx = xhci_get_slot_ctx(ctrl, virt_dev->out_ctx); in xhci_address_device()
709 struct xhci_ctrl *ctrl = xhci_get_ctrl(udev); in _xhci_alloc_device() local
718 if (ctrl->rootdev == 0) { in _xhci_alloc_device()
723 xhci_queue_command(ctrl, NULL, 0, 0, TRB_ENABLE_SLOT); in _xhci_alloc_device()
724 event = xhci_wait_for_event(ctrl, TRB_COMPLETION); in _xhci_alloc_device()
730 xhci_acknowledge_event(ctrl); in _xhci_alloc_device()
732 ret = xhci_alloc_virt_device(ctrl, udev->slot_id); in _xhci_alloc_device()
763 struct xhci_ctrl *ctrl = xhci_get_ctrl(udev); in xhci_check_maxpacket() local
774 out_ctx = ctrl->devs[slot_id]->out_ctx; in xhci_check_maxpacket()
777 ep_ctx = xhci_get_ep_ctx(ctrl, out_ctx, ep_index); in xhci_check_maxpacket()
787 xhci_endpoint_copy(ctrl, ctrl->devs[slot_id]->in_ctx, in xhci_check_maxpacket()
788 ctrl->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
789 in_ctx = ctrl->devs[slot_id]->in_ctx; in xhci_check_maxpacket()
790 ep_ctx = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_check_maxpacket()
891 struct xhci_ctrl *ctrl = xhci_get_ctrl(udev); in xhci_submit_root() local
892 struct xhci_hccr *hccr = ctrl->hccr; in xhci_submit_root()
893 struct xhci_hcor *hcor = ctrl->hcor; in xhci_submit_root()
965 ctrl->rootdev = le16_to_cpu(req->value); in xhci_submit_root()
1165 struct xhci_ctrl *ctrl = xhci_get_ctrl(udev); in _xhci_submit_control_msg() local
1173 if (usb_pipedevice(pipe) == ctrl->rootdev) in _xhci_submit_control_msg()
1192 static int xhci_lowlevel_init(struct xhci_ctrl *ctrl) in xhci_lowlevel_init() argument
1200 hccr = ctrl->hccr; in xhci_lowlevel_init()
1201 hcor = ctrl->hcor; in xhci_lowlevel_init()
1212 if (xhci_mem_init(ctrl, hccr, hcor) < 0) in xhci_lowlevel_init()
1237 xhci_writel(&ctrl->ir_set->irq_control, 0x0); in xhci_lowlevel_init()
1238 xhci_writel(&ctrl->ir_set->irq_pending, 0x0); in xhci_lowlevel_init()
1246 static int xhci_lowlevel_stop(struct xhci_ctrl *ctrl) in xhci_lowlevel_stop() argument
1250 xhci_reset(ctrl->hcor); in xhci_lowlevel_stop()
1253 temp = xhci_readl(&ctrl->hcor->or_usbsts); in xhci_lowlevel_stop()
1254 xhci_writel(&ctrl->hcor->or_usbsts, temp & ~STS_EINT); in xhci_lowlevel_stop()
1255 temp = xhci_readl(&ctrl->ir_set->irq_pending); in xhci_lowlevel_stop()
1256 xhci_writel(&ctrl->ir_set->irq_pending, ER_IRQ_DISABLE(temp)); in xhci_lowlevel_stop()
1299 struct xhci_ctrl *ctrl; in usb_lowlevel_init() local
1310 ctrl = &xhcic[index]; in usb_lowlevel_init()
1312 ctrl->hccr = hccr; in usb_lowlevel_init()
1313 ctrl->hcor = hcor; in usb_lowlevel_init()
1315 ret = xhci_lowlevel_init(ctrl); in usb_lowlevel_init()
1318 ctrl->hccr = NULL; in usb_lowlevel_init()
1319 ctrl->hcor = NULL; in usb_lowlevel_init()
1336 struct xhci_ctrl *ctrl = (xhcic + index); in usb_lowlevel_stop() local
1338 if (ctrl->hcor) { in usb_lowlevel_stop()
1339 xhci_lowlevel_stop(ctrl); in usb_lowlevel_stop()
1341 xhci_cleanup(ctrl); in usb_lowlevel_stop()
1407 struct xhci_ctrl *ctrl = dev_get_priv(dev); in xhci_update_hub_device() local
1423 virt_dev = ctrl->devs[slot_id]; in xhci_update_hub_device()
1437 xhci_slot_copy(ctrl, in_ctx, out_ctx); in xhci_update_hub_device()
1438 slot_ctx = xhci_get_slot_ctx(ctrl, in_ctx); in xhci_update_hub_device()
1488 struct xhci_ctrl *ctrl = dev_get_priv(dev); in xhci_register() local
1493 ctrl, hccr, hcor); in xhci_register()
1495 ctrl->dev = dev; in xhci_register()
1509 ctrl->hccr = hccr; in xhci_register()
1510 ctrl->hcor = hcor; in xhci_register()
1511 ret = xhci_lowlevel_init(ctrl); in xhci_register()
1517 free(ctrl); in xhci_register()
1524 struct xhci_ctrl *ctrl = dev_get_priv(dev); in xhci_deregister() local
1526 xhci_lowlevel_stop(ctrl); in xhci_deregister()
1527 xhci_cleanup(ctrl); in xhci_deregister()