Home
last modified time | relevance | path

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

/drivers/usb/host/
Dxhci.c1339 struct xhci_virt_device *virt_dev; in xhci_check_args() local
1358 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1359 if (virt_dev->udev != udev) { in xhci_check_args()
1824 struct xhci_virt_device *virt_dev; in xhci_add_endpoint() local
1848 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
1849 in_ctx = virt_dev->in_ctx; in xhci_add_endpoint()
1861 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1883 if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { in xhci_add_endpoint()
1892 xhci_ring_free(xhci, virt_dev->eps[ep_index].new_ring); in xhci_add_endpoint()
1893 virt_dev->eps[ep_index].new_ring = NULL; in xhci_add_endpoint()
[all …]
Dxhci-debugfs.h111 struct xhci_virt_device *virt_dev,
114 struct xhci_virt_device *virt_dev,
125 struct xhci_virt_device *virt_dev, in xhci_debugfs_create_endpoint() argument
129 struct xhci_virt_device *virt_dev, in xhci_debugfs_remove_endpoint() 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()
599 struct xhci_virt_device *virt_dev; in xhci_mtk_add_ep_quirk() local
608 virt_dev = xhci->devs[udev->slot_id]; in xhci_mtk_add_ep_quirk()
610 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->in_ctx); in xhci_mtk_add_ep_quirk()
611 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_mtk_add_ep_quirk()
671 struct xhci_virt_device *virt_dev; in xhci_mtk_drop_ep_quirk() local
[all …]
Dxhci-mem.c403 struct xhci_virt_device *virt_dev, in xhci_free_endpoint_ring() argument
406 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring()
407 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring()
803 struct xhci_virt_device *virt_dev, in xhci_free_tt_info() argument
813 if (virt_dev->real_port == 0 || in xhci_free_tt_info()
814 virt_dev->real_port > HCS_MAX_PORTS(xhci->hcs_params1)) { in xhci_free_tt_info()
819 tt_list_head = &(xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_free_tt_info()
833 struct xhci_virt_device *virt_dev, in xhci_alloc_tt_info() argument
856 &xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_alloc_tt_info()
857 tt_info->slot_id = virt_dev->udev->slot_id; in xhci_alloc_tt_info()
[all …]
Dxhci-hub.c381 struct xhci_virt_device *virt_dev; in xhci_stop_device() local
388 virt_dev = xhci->devs[slot_id]; in xhci_stop_device()
389 if (!virt_dev) in xhci_stop_device()
392 trace_xhci_stop_device(virt_dev); in xhci_stop_device()
400 if (virt_dev->eps[i].ring && virt_dev->eps[i].ring->dequeue) { in xhci_stop_device()
404 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, i); in xhci_stop_device()
Dxhci.h1979 void xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_e…
1981 struct xhci_virt_device *virt_dev,
1987 struct xhci_virt_device *virt_dev);
1995 int xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev,
2010 struct xhci_virt_device *virt_dev,
2024 struct xhci_virt_device *virt_dev, bool drop_control_ep);
2066 struct xhci_virt_device *virt_dev,
Dxhci-ring.c1186 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_disable_slot() local
1189 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_disable_slot()
1190 if (!virt_dev) in xhci_handle_cmd_disable_slot()
1193 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_handle_cmd_disable_slot()
1198 xhci_free_device_endpoint_resources(xhci, virt_dev, true); in xhci_handle_cmd_disable_slot()
1205 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_config_ep() local
1220 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_config_ep()
1221 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_handle_cmd_config_ep()
1232 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index); in xhci_handle_cmd_config_ep()
1244 ep_state = virt_dev->eps[ep_index].ep_state; in xhci_handle_cmd_config_ep()
[all …]
/drivers/base/power/
Ddomain.c2502 struct device *virt_dev; in genpd_dev_pm_attach_by_id() local
2516 virt_dev = kzalloc(sizeof(*virt_dev), GFP_KERNEL); in genpd_dev_pm_attach_by_id()
2517 if (!virt_dev) in genpd_dev_pm_attach_by_id()
2520 dev_set_name(virt_dev, "genpd:%u:%s", index, dev_name(dev)); in genpd_dev_pm_attach_by_id()
2521 virt_dev->bus = &genpd_bus_type; in genpd_dev_pm_attach_by_id()
2522 virt_dev->release = genpd_release_dev; in genpd_dev_pm_attach_by_id()
2523 virt_dev->of_node = of_node_get(dev->of_node); in genpd_dev_pm_attach_by_id()
2525 ret = device_register(virt_dev); in genpd_dev_pm_attach_by_id()
2527 put_device(virt_dev); in genpd_dev_pm_attach_by_id()
2532 ret = __genpd_dev_pm_attach(virt_dev, dev, index, false); in genpd_dev_pm_attach_by_id()
[all …]
/drivers/opp/
Dcore.c1845 struct device *virt_dev; in dev_pm_opp_attach_genpd() local
1884 virt_dev = dev_pm_domain_attach_by_name(dev, *name); in dev_pm_opp_attach_genpd()
1885 if (IS_ERR(virt_dev)) { in dev_pm_opp_attach_genpd()
1886 ret = PTR_ERR(virt_dev); in dev_pm_opp_attach_genpd()
1891 opp_table->genpd_virt_devs[index] = virt_dev; in dev_pm_opp_attach_genpd()