Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/usb/host/
Dxhci.c1344 struct xhci_virt_device *virt_dev; in xhci_check_args() local
1363 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1364 if (virt_dev->udev != udev) { in xhci_check_args()
1830 struct xhci_virt_device *virt_dev; in xhci_add_endpoint() local
1854 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
1855 in_ctx = virt_dev->in_ctx; in xhci_add_endpoint()
1867 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1889 if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { in xhci_add_endpoint()
1898 xhci_ring_free(xhci, virt_dev->eps[ep_index].new_ring); in xhci_add_endpoint()
1899 virt_dev->eps[ep_index].new_ring = NULL; in xhci_add_endpoint()
[all …]
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
Dxhci-mtk-sch.c55 struct xhci_virt_device *virt_dev; in get_bw_index() local
58 virt_dev = xhci->devs[udev->slot_id]; in get_bw_index()
62 bw_index = (virt_dev->real_port - 1) * 2; in get_bw_index()
64 bw_index = (virt_dev->real_port - 1) * 2 + 1; in get_bw_index()
67 bw_index = virt_dev->real_port + xhci->usb3_rhub.num_ports - 1; in get_bw_index()
603 struct xhci_virt_device *virt_dev; in xhci_mtk_add_ep_quirk() local
612 virt_dev = xhci->devs[udev->slot_id]; in xhci_mtk_add_ep_quirk()
614 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_mtk_add_ep_quirk()
615 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_add_ep_quirk()
675 struct xhci_virt_device *virt_dev; in xhci_mtk_drop_ep_quirk() local
[all …]
Dxhci-mem.c412 struct xhci_virt_device *virt_dev, in xhci_free_endpoint_ring() argument
415 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring()
416 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring()
812 struct xhci_virt_device *virt_dev, in xhci_free_tt_info() argument
822 if (virt_dev->real_port == 0 || in xhci_free_tt_info()
823 virt_dev->real_port > HCS_MAX_PORTS(xhci->hcs_params1)) { in xhci_free_tt_info()
828 tt_list_head = &(xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_free_tt_info()
842 struct xhci_virt_device *virt_dev, in xhci_alloc_tt_info() argument
865 &xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_alloc_tt_info()
866 tt_info->slot_id = virt_dev->udev->slot_id; in xhci_alloc_tt_info()
[all …]
Dxhci-hub.c390 struct xhci_virt_device *virt_dev; in xhci_stop_device() local
397 virt_dev = xhci->devs[slot_id]; in xhci_stop_device()
398 if (!virt_dev) in xhci_stop_device()
401 trace_xhci_stop_device(virt_dev); in xhci_stop_device()
409 if (virt_dev->eps[i].ring && virt_dev->eps[i].ring->dequeue) { in xhci_stop_device()
413 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, i); in xhci_stop_device()
Dxhci.h1993 void xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_e…
1995 struct xhci_virt_device *virt_dev,
2001 struct xhci_virt_device *virt_dev);
2009 int xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev,
2026 struct xhci_virt_device *virt_dev,
2040 struct xhci_virt_device *virt_dev, bool drop_control_ep);
2082 struct xhci_virt_device *virt_dev,
Dxhci-ring.c1212 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_disable_slot() local
1215 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_disable_slot()
1216 if (!virt_dev) in xhci_handle_cmd_disable_slot()
1219 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_handle_cmd_disable_slot()
1224 xhci_free_device_endpoint_resources(xhci, virt_dev, true); in xhci_handle_cmd_disable_slot()
1231 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_config_ep() local
1246 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_config_ep()
1247 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_handle_cmd_config_ep()
1258 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index); in xhci_handle_cmd_config_ep()
1270 ep_state = virt_dev->eps[ep_index].ep_state; in xhci_handle_cmd_config_ep()
[all …]
/Linux-v5.10/drivers/base/power/
Ddomain.c2669 struct device *virt_dev; in genpd_dev_pm_attach_by_id() local
2683 virt_dev = kzalloc(sizeof(*virt_dev), GFP_KERNEL); in genpd_dev_pm_attach_by_id()
2684 if (!virt_dev) in genpd_dev_pm_attach_by_id()
2687 dev_set_name(virt_dev, "genpd:%u:%s", index, dev_name(dev)); in genpd_dev_pm_attach_by_id()
2688 virt_dev->bus = &genpd_bus_type; in genpd_dev_pm_attach_by_id()
2689 virt_dev->release = genpd_release_dev; in genpd_dev_pm_attach_by_id()
2690 virt_dev->of_node = of_node_get(dev->of_node); in genpd_dev_pm_attach_by_id()
2692 ret = device_register(virt_dev); in genpd_dev_pm_attach_by_id()
2694 put_device(virt_dev); in genpd_dev_pm_attach_by_id()
2699 ret = __genpd_dev_pm_attach(virt_dev, dev, index, false); in genpd_dev_pm_attach_by_id()
[all …]
/Linux-v5.10/drivers/opp/
Dcore.c2013 struct device *virt_dev; in dev_pm_opp_attach_genpd() local
2049 virt_dev = dev_pm_domain_attach_by_name(dev, *name); in dev_pm_opp_attach_genpd()
2050 if (IS_ERR(virt_dev)) { in dev_pm_opp_attach_genpd()
2051 ret = PTR_ERR(virt_dev); in dev_pm_opp_attach_genpd()
2056 opp_table->genpd_virt_devs[index] = virt_dev; in dev_pm_opp_attach_genpd()