Home
last modified time | relevance | path

Searched refs:virt_dev (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/drivers/usb/host/
H A Dxhci-mem.c138 struct xhci_virt_device *virt_dev; in xhci_free_virt_devices() local
145 virt_dev = ctrl->devs[slot_id]; in xhci_free_virt_devices()
146 if (!virt_dev) in xhci_free_virt_devices()
152 if (virt_dev->eps[i].ring) in xhci_free_virt_devices()
155 if (virt_dev->in_ctx) in xhci_free_virt_devices()
157 if (virt_dev->out_ctx) in xhci_free_virt_devices()
160 free(virt_dev); in xhci_free_virt_devices()
462 virt_dev = ctrl->devs[slot_id]; in xhci_alloc_virt_device()
467 if (!virt_dev->out_ctx) { in xhci_alloc_virt_device()
475 if (!virt_dev->in_ctx) { in xhci_alloc_virt_device()
[all …]
H A Dxhci.c452 struct xhci_virt_device *virt_dev; in xhci_configure_endpoints() local
457 in_ctx = virt_dev->in_ctx; in xhci_configure_endpoints()
515 out_ctx = virt_dev->out_ctx; in xhci_set_configuration()
516 in_ctx = virt_dev->in_ctx; in xhci_set_configuration()
630 struct xhci_virt_device *virt_dev; in xhci_address_device() local
634 virt_dev = ctrl->devs[slot_id]; in xhci_address_device()
688 virt_dev->out_ctx->size); in xhci_address_device()
1419 virt_dev = ctrl->devs[slot_id]; in xhci_update_hub_device()
1420 BUG_ON(!virt_dev); in xhci_update_hub_device()
1422 out_ctx = virt_dev->out_ctx; in xhci_update_hub_device()
[all …]
H A Dxhci-ring.c566 struct xhci_virt_device *virt_dev; in xhci_bulk_tx() local
583 virt_dev = ctrl->devs[slot_id]; in xhci_bulk_tx()
585 xhci_inval_cache((uintptr_t)virt_dev->out_ctx->bytes, in xhci_bulk_tx()
586 virt_dev->out_ctx->size); in xhci_bulk_tx()
588 ep_ctx = xhci_get_ep_ctx(ctrl, virt_dev->out_ctx, ep_index); in xhci_bulk_tx()
590 ring = virt_dev->eps[ep_index].ring; in xhci_bulk_tx()
761 struct xhci_virt_device *virt_dev = ctrl->devs[slot_id]; in xhci_ctrl_tx() local
773 ep_ring = virt_dev->eps[ep_index].ring; in xhci_ctrl_tx()
785 xhci_inval_cache((uintptr_t)virt_dev->out_ctx->bytes, in xhci_ctrl_tx()
786 virt_dev->out_ctx->size); in xhci_ctrl_tx()
[all …]
/openbmc/linux/drivers/usb/host/
H A Dxhci.c2472 if (!virt_dev->tt_info && virt_dev->udev->speed == USB_SPEED_HIGH) { in xhci_check_bw_table()
2688 if (virt_dev->tt_info) in xhci_reserve_bandwidth()
2712 virt_dev->udev, in xhci_reserve_bandwidth()
2717 xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev); in xhci_reserve_bandwidth()
2724 virt_dev->udev, in xhci_reserve_bandwidth()
2749 virt_dev->udev, in xhci_reserve_bandwidth()
2761 virt_dev->udev, in xhci_reserve_bandwidth()
2979 virt_dev->eps[i].ring = virt_dev->eps[i].new_ring; in xhci_check_bandwidth()
3681 if (!virt_dev) { in xhci_discover_or_reset_device()
3812 virt_dev->flags = 0; in xhci_discover_or_reset_device()
[all …]
H A Dxhci-debugfs.h114 struct xhci_virt_device *virt_dev,
117 struct xhci_virt_device *virt_dev,
120 struct xhci_virt_device *virt_dev,
131 struct xhci_virt_device *virt_dev, in xhci_debugfs_create_endpoint() argument
135 struct xhci_virt_device *virt_dev, in xhci_debugfs_remove_endpoint() argument
139 struct xhci_virt_device *virt_dev, in xhci_debugfs_create_stream_files() argument
H A Dxhci-mtk-sch.c123 struct xhci_virt_device *virt_dev; in get_bw_info() local
126 virt_dev = xhci->devs[udev->slot_id]; in get_bw_info()
127 if (!virt_dev->real_port) { in get_bw_info()
134 bw_index = (virt_dev->real_port - 1) * 2; in get_bw_info()
136 bw_index = (virt_dev->real_port - 1) * 2 + 1; in get_bw_info()
139 bw_index = virt_dev->real_port + xhci->usb3_rhub.num_ports - 1; in get_bw_info()
632 struct xhci_virt_device *virt_dev; in add_ep_quirk() local
636 virt_dev = xhci->devs[udev->slot_id]; in add_ep_quirk()
638 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk()
692 struct xhci_virt_device *virt_dev = xhci->devs[udev->slot_id]; in xhci_mtk_check_bandwidth() local
[all …]
H A Dxhci-mem.c412 struct xhci_virt_device *virt_dev, in xhci_free_endpoint_ring() argument
416 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring()
773 struct xhci_virt_device *virt_dev, in xhci_free_tt_info() argument
783 if (virt_dev->real_port == 0 || in xhci_free_tt_info()
803 struct xhci_virt_device *virt_dev, in xhci_alloc_tt_info() argument
837 xhci_free_tt_info(xhci, virt_dev, virt_dev->udev->slot_id); in xhci_alloc_tt_info()
1020 struct xhci_virt_device *virt_dev; in xhci_copy_ep0_dequeue_into_input_ctx() local
1026 ep_ring = virt_dev->eps[0].ring; in xhci_copy_ep0_dequeue_into_input_ctx()
1395 struct xhci_virt_device *virt_dev, in xhci_endpoint_init() argument
1468 virt_dev->eps[ep_index].new_ring = in xhci_endpoint_init()
[all …]
H A Dxhci-hub.c491 struct xhci_virt_device *virt_dev; in xhci_stop_device() local
498 virt_dev = xhci->devs[slot_id]; in xhci_stop_device()
499 if (!virt_dev) in xhci_stop_device()
502 trace_xhci_stop_device(virt_dev); in xhci_stop_device()
510 if (virt_dev->eps[i].ring && virt_dev->eps[i].ring->dequeue) { in xhci_stop_device()
514 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, i); in xhci_stop_device()
H A Dxhci.h2063 void xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_e…
2065 struct xhci_virt_device *virt_dev,
2071 struct xhci_virt_device *virt_dev);
2079 int xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev,
2096 struct xhci_virt_device *virt_dev,
2110 struct xhci_virt_device *virt_dev, bool drop_control_ep);
2157 struct xhci_virt_device *virt_dev,
H A Dxhci-ring.c1513 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_disable_slot() local
1516 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_disable_slot()
1517 if (!virt_dev) in xhci_handle_cmd_disable_slot()
1520 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_handle_cmd_disable_slot()
1525 xhci_free_device_endpoint_resources(xhci, virt_dev, true); in xhci_handle_cmd_disable_slot()
1531 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_config_ep() local
1542 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_config_ep()
1543 if (!virt_dev) in xhci_handle_cmd_config_ep()
1545 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_handle_cmd_config_ep()
1556 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index); in xhci_handle_cmd_config_ep()
/openbmc/linux/drivers/base/power/
H A Ddomain.c2848 struct device *virt_dev; in genpd_dev_pm_attach_by_id() local
2862 virt_dev = kzalloc(sizeof(*virt_dev), GFP_KERNEL); in genpd_dev_pm_attach_by_id()
2863 if (!virt_dev) in genpd_dev_pm_attach_by_id()
2867 virt_dev->bus = &genpd_bus_type; in genpd_dev_pm_attach_by_id()
2868 virt_dev->release = genpd_release_dev; in genpd_dev_pm_attach_by_id()
2869 virt_dev->of_node = of_node_get(dev->of_node); in genpd_dev_pm_attach_by_id()
2871 ret = device_register(virt_dev); in genpd_dev_pm_attach_by_id()
2873 put_device(virt_dev); in genpd_dev_pm_attach_by_id()
2880 device_unregister(virt_dev); in genpd_dev_pm_attach_by_id()
2884 pm_runtime_enable(virt_dev); in genpd_dev_pm_attach_by_id()
[all …]
/openbmc/linux/drivers/opp/
H A Dcore.c2431 struct device *virt_dev; in _opp_attach_genpd() local
2461 virt_dev = dev_pm_domain_attach_by_name(dev, *name); in _opp_attach_genpd()
2462 if (IS_ERR_OR_NULL(virt_dev)) { in _opp_attach_genpd()
2463 ret = virt_dev ? PTR_ERR(virt_dev) : -ENODEV; in _opp_attach_genpd()
2468 opp_table->genpd_virt_devs[index] = virt_dev; in _opp_attach_genpd()