Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dxhci-mem.c139 struct xhci_virt_device *virt_dev; in xhci_free_virt_devices() local
146 virt_dev = ctrl->devs[slot_id]; in xhci_free_virt_devices()
147 if (!virt_dev) in xhci_free_virt_devices()
153 if (virt_dev->eps[i].ring) in xhci_free_virt_devices()
154 xhci_ring_free(virt_dev->eps[i].ring); in xhci_free_virt_devices()
156 if (virt_dev->in_ctx) in xhci_free_virt_devices()
157 xhci_free_container_ctx(virt_dev->in_ctx); in xhci_free_virt_devices()
158 if (virt_dev->out_ctx) in xhci_free_virt_devices()
159 xhci_free_container_ctx(virt_dev->out_ctx); in xhci_free_virt_devices()
161 free(virt_dev); in xhci_free_virt_devices()
[all …]
H A Dxhci.c453 struct xhci_virt_device *virt_dev; in xhci_configure_endpoints() local
457 virt_dev = ctrl->devs[udev->slot_id]; in xhci_configure_endpoints()
458 in_ctx = virt_dev->in_ctx; in xhci_configure_endpoints()
507 struct xhci_virt_device *virt_dev = ctrl->devs[slot_id]; in xhci_set_configuration() local
516 out_ctx = virt_dev->out_ctx; in xhci_set_configuration()
517 in_ctx = virt_dev->in_ctx; in xhci_set_configuration()
574 virt_dev->eps[ep_index].ring = xhci_ring_alloc(1, true); in xhci_set_configuration()
575 if (!virt_dev->eps[ep_index].ring) in xhci_set_configuration()
600 virt_dev->eps[ep_index].ring->enqueue; in xhci_set_configuration()
602 virt_dev->eps[ep_index].ring->cycle_state); in xhci_set_configuration()
[all …]
H A Dxhci-ring.c567 struct xhci_virt_device *virt_dev; in xhci_bulk_tx() local
584 virt_dev = ctrl->devs[slot_id]; in xhci_bulk_tx()
586 xhci_inval_cache((uintptr_t)virt_dev->out_ctx->bytes, in xhci_bulk_tx()
587 virt_dev->out_ctx->size); in xhci_bulk_tx()
589 ep_ctx = xhci_get_ep_ctx(ctrl, virt_dev->out_ctx, ep_index); in xhci_bulk_tx()
591 ring = virt_dev->eps[ep_index].ring; in xhci_bulk_tx()
762 struct xhci_virt_device *virt_dev = ctrl->devs[slot_id]; in xhci_ctrl_tx() local
774 ep_ring = virt_dev->eps[ep_index].ring; in xhci_ctrl_tx()
786 xhci_inval_cache((uintptr_t)virt_dev->out_ctx->bytes, in xhci_ctrl_tx()
787 virt_dev->out_ctx->size); in xhci_ctrl_tx()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A Dxhci.c1372 struct xhci_virt_device *virt_dev; in xhci_check_args() local
1391 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1392 if (virt_dev->udev != udev) { in xhci_check_args()
1869 struct xhci_virt_device *virt_dev; in xhci_add_endpoint() local
1893 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
1894 in_ctx = virt_dev->in_ctx; in xhci_add_endpoint()
1906 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1928 if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { in xhci_add_endpoint()
1948 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_add_endpoint()
1960 static void xhci_zero_in_ctx(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev) in xhci_zero_in_ctx() argument
[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.c128 struct xhci_virt_device *virt_dev; in get_bw_info() local
131 virt_dev = xhci->devs[udev->slot_id]; in get_bw_info()
135 bw_index = (virt_dev->real_port - 1) * 2; in get_bw_info()
137 bw_index = (virt_dev->real_port - 1) * 2 + 1; in get_bw_info()
140 bw_index = virt_dev->real_port + xhci->usb3_rhub.num_ports - 1; in get_bw_info()
720 struct xhci_virt_device *virt_dev; in add_ep_quirk() local
724 virt_dev = xhci->devs[udev->slot_id]; in add_ep_quirk()
726 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk()
730 if (!need_bw_sch(ep, udev->speed, !!virt_dev->tt_info)) { in add_ep_quirk()
758 struct xhci_virt_device *virt_dev; in drop_ep_quirk() local
[all …]
H A Dxhci-mem.c398 struct xhci_virt_device *virt_dev, unsigned int ep_index) in xhci_vendor_free_transfer_ring() argument
403 ops->free_transfer_ring(xhci, virt_dev, ep_index); in xhci_vendor_free_transfer_ring()
407 struct xhci_virt_device *virt_dev, unsigned int ep_index) in xhci_vendor_is_usb_offload_enabled() argument
412 return ops->is_usb_offload_enabled(xhci, virt_dev, ep_index); in xhci_vendor_is_usb_offload_enabled()
465 struct xhci_virt_device *virt_dev, in xhci_free_endpoint_ring() argument
468 if (xhci_vendor_is_usb_offload_enabled(xhci, virt_dev, ep_index)) in xhci_free_endpoint_ring()
469 xhci_vendor_free_transfer_ring(xhci, virt_dev, ep_index); in xhci_free_endpoint_ring()
471 xhci_ring_free(xhci, virt_dev->eps[ep_index].ring); in xhci_free_endpoint_ring()
473 virt_dev->eps[ep_index].ring = NULL; in xhci_free_endpoint_ring()
872 struct xhci_virt_device *virt_dev, in xhci_free_tt_info() argument
[all …]
H A Dxhci.h2041 void xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_e…
2043 struct xhci_virt_device *virt_dev,
2049 struct xhci_virt_device *virt_dev);
2057 int xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev,
2074 struct xhci_virt_device *virt_dev,
2088 struct xhci_virt_device *virt_dev, bool drop_control_ep);
2133 struct xhci_virt_device *virt_dev,
2260 struct xhci_virt_device *virt_dev, unsigned int ep_index);
2273 struct xhci_virt_device *virt_dev, unsigned int ep_index);
2275 struct xhci_virt_device *virt_dev, unsigned int ep_index);
H A 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()
H A Dxhci-ring.c1509 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_disable_slot() local
1512 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_disable_slot()
1513 if (!virt_dev) in xhci_handle_cmd_disable_slot()
1516 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_handle_cmd_disable_slot()
1521 xhci_free_device_endpoint_resources(xhci, virt_dev, true); in xhci_handle_cmd_disable_slot()
1527 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()
[all …]
/OK3568_Linux_fs/kernel/drivers/base/power/
H A Ddomain.c2741 struct device *virt_dev; in genpd_dev_pm_attach_by_id() local
2755 virt_dev = kzalloc(sizeof(*virt_dev), GFP_KERNEL); in genpd_dev_pm_attach_by_id()
2756 if (!virt_dev) in genpd_dev_pm_attach_by_id()
2759 dev_set_name(virt_dev, "genpd:%u:%s", index, dev_name(dev)); in genpd_dev_pm_attach_by_id()
2760 virt_dev->bus = &genpd_bus_type; in genpd_dev_pm_attach_by_id()
2761 virt_dev->release = genpd_release_dev; in genpd_dev_pm_attach_by_id()
2762 virt_dev->of_node = of_node_get(dev->of_node); in genpd_dev_pm_attach_by_id()
2764 ret = device_register(virt_dev); in genpd_dev_pm_attach_by_id()
2766 put_device(virt_dev); in genpd_dev_pm_attach_by_id()
2771 ret = __genpd_dev_pm_attach(virt_dev, dev, index, false); in genpd_dev_pm_attach_by_id()
[all …]
/OK3568_Linux_fs/kernel/drivers/rknpu/
H A Drknpu_drv.c1730 struct device *virt_dev = NULL; in rknpu_probe() local
1910 virt_dev = dev_pm_domain_attach_by_name(dev, "npu0"); in rknpu_probe()
1911 if (!IS_ERR(virt_dev)) in rknpu_probe()
1912 rknpu_dev->genpd_dev_npu0 = virt_dev; in rknpu_probe()
1913 virt_dev = dev_pm_domain_attach_by_name(dev, "npu1"); in rknpu_probe()
1914 if (!IS_ERR(virt_dev)) in rknpu_probe()
1915 rknpu_dev->genpd_dev_npu1 = virt_dev; in rknpu_probe()
1916 virt_dev = dev_pm_domain_attach_by_name(dev, "npu2"); in rknpu_probe()
1917 if (!IS_ERR(virt_dev)) in rknpu_probe()
1918 rknpu_dev->genpd_dev_npu2 = virt_dev; in rknpu_probe()
/OK3568_Linux_fs/kernel/drivers/opp/
H A 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()