Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci.c1381 struct xhci_virt_device *virt_dev; in xhci_check_args() local
1400 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1401 if (virt_dev->udev != udev) { in xhci_check_args()
1870 struct xhci_virt_device *virt_dev; in xhci_add_endpoint() local
1894 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
1895 in_ctx = virt_dev->in_ctx; in xhci_add_endpoint()
1907 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1929 if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { in xhci_add_endpoint()
1938 xhci_ring_free(xhci, virt_dev->eps[ep_index].new_ring); in xhci_add_endpoint()
1939 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.c80 struct xhci_virt_device *virt_dev; in get_bw_index() local
83 virt_dev = xhci->devs[udev->slot_id]; in get_bw_index()
87 bw_index = (virt_dev->real_port - 1) * 2; in get_bw_index()
89 bw_index = (virt_dev->real_port - 1) * 2 + 1; in get_bw_index()
92 bw_index = virt_dev->real_port + xhci->usb3_rhub.num_ports - 1; in get_bw_index()
690 struct xhci_virt_device *virt_dev; in xhci_mtk_add_ep_quirk() local
695 virt_dev = xhci->devs[udev->slot_id]; in xhci_mtk_add_ep_quirk()
697 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_mtk_add_ep_quirk()
698 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_add_ep_quirk()
735 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()
817 struct xhci_virt_device *virt_dev, in xhci_free_tt_info() argument
827 if (virt_dev->real_port == 0 || in xhci_free_tt_info()
828 virt_dev->real_port > HCS_MAX_PORTS(xhci->hcs_params1)) { in xhci_free_tt_info()
833 tt_list_head = &(xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_free_tt_info()
847 struct xhci_virt_device *virt_dev, in xhci_alloc_tt_info() argument
870 &xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_alloc_tt_info()
871 tt_info->slot_id = virt_dev->udev->slot_id; in xhci_alloc_tt_info()
[all …]
Dxhci-hub.c391 struct xhci_virt_device *virt_dev; in xhci_stop_device() local
398 virt_dev = xhci->devs[slot_id]; in xhci_stop_device()
399 if (!virt_dev) in xhci_stop_device()
402 trace_xhci_stop_device(virt_dev); in xhci_stop_device()
410 if (virt_dev->eps[i].ring && virt_dev->eps[i].ring->dequeue) { in xhci_stop_device()
414 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, i); in xhci_stop_device()
Dxhci.h2014 void xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_e…
2016 struct xhci_virt_device *virt_dev,
2022 struct xhci_virt_device *virt_dev);
2030 int xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev,
2047 struct xhci_virt_device *virt_dev,
2061 struct xhci_virt_device *virt_dev, bool drop_control_ep);
2107 struct xhci_virt_device *virt_dev,
Dxhci-ring.c1386 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_disable_slot() local
1389 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_disable_slot()
1390 if (!virt_dev) in xhci_handle_cmd_disable_slot()
1393 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_handle_cmd_disable_slot()
1398 xhci_free_device_endpoint_resources(xhci, virt_dev, true); in xhci_handle_cmd_disable_slot()
1404 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_config_ep() local
1419 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_config_ep()
1420 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_handle_cmd_config_ep()
1431 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index); in xhci_handle_cmd_config_ep()
1443 ep_state = virt_dev->eps[ep_index].ep_state; in xhci_handle_cmd_config_ep()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.10/drivers/opp/
Dcore.c2018 struct device *virt_dev; in dev_pm_opp_attach_genpd() local
2054 virt_dev = dev_pm_domain_attach_by_name(dev, *name); in dev_pm_opp_attach_genpd()
2055 if (IS_ERR_OR_NULL(virt_dev)) { in dev_pm_opp_attach_genpd()
2056 ret = PTR_ERR(virt_dev) ? : -ENODEV; in dev_pm_opp_attach_genpd()
2061 opp_table->genpd_virt_devs[index] = virt_dev; in dev_pm_opp_attach_genpd()