Home
last modified time | relevance | path

Searched refs:virt_dev (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/host/
H A Dxhci.c1387 struct xhci_virt_device *virt_dev; in xhci_check_args() local
1406 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1407 if (virt_dev->udev != udev) { in xhci_check_args()
1409 "virt_dev does not match\n", func); in xhci_check_args()
1876 struct xhci_virt_device *virt_dev; in xhci_add_endpoint() local
1900 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
1901 in_ctx = virt_dev->in_ctx; in xhci_add_endpoint()
1913 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1935 if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { in xhci_add_endpoint()
1944 xhci_ring_free(xhci, virt_dev in xhci_add_endpoint()
1975 xhci_zero_in_ctx(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev) xhci_zero_in_ctx() argument
2249 xhci_check_tt_bw_table(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_check_tt_bw_table() argument
2279 xhci_check_ss_bw(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev) xhci_check_ss_bw() argument
2336 xhci_check_bw_table(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_check_bw_table() argument
2677 xhci_update_tt_active_eps(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_update_tt_active_eps() argument
2697 xhci_reserve_bandwidth(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct xhci_container_ctx *in_ctx) xhci_reserve_bandwidth() argument
2798 struct xhci_virt_device *virt_dev; xhci_configure_endpoint() local
2915 struct xhci_virt_device *virt_dev; xhci_check_bandwidth() local
3011 struct xhci_virt_device *virt_dev; xhci_reset_bandwidth() local
3721 xhci_free_device_endpoint_resources(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, bool drop_control_ep) xhci_free_device_endpoint_resources() argument
3768 struct xhci_virt_device *virt_dev; xhci_discover_or_reset_device() local
3926 struct xhci_virt_device *virt_dev; xhci_free_dev() local
4128 struct xhci_virt_device *virt_dev; xhci_setup_device() local
4340 struct xhci_virt_device *virt_dev; xhci_change_max_exit_latency() local
[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()
135 struct xhci_virt_device *virt_dev, in xhci_debugfs_remove_endpoint()
139 struct xhci_virt_device *virt_dev, in xhci_debugfs_create_stream_files()
130 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_endpoint() argument
134 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_remove_endpoint() argument
138 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_stream_files() argument
H A 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
770 struct xhci_virt_device *virt_dev = xhci->devs[udev->slot_id]; xhci_mtk_check_bandwidth() local
[all...]
H A Dxhci-mem.c412 struct xhci_virt_device *virt_dev, in xhci_free_endpoint_ring()
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()
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()
870 &xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_alloc_tt_info()
871 tt_info->slot_id = virt_dev in xhci_alloc_tt_info()
411 xhci_free_endpoint_ring(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, unsigned int ep_index) xhci_free_endpoint_ring() argument
816 xhci_free_tt_info(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int slot_id) xhci_free_tt_info() argument
846 xhci_alloc_tt_info(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_device *hdev, struct usb_tt *tt, gfp_t mem_flags) xhci_alloc_tt_info() argument
1066 struct xhci_virt_device *virt_dev; xhci_copy_ep0_dequeue_into_input_ctx() local
1443 xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_device *udev, struct usb_host_endpoint *ep, gfp_t mem_flags) xhci_endpoint_init() argument
1542 xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_endpoint *ep) xhci_endpoint_zero() argument
1571 xhci_update_bw_info(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_input_control_ctx *ctrl_ctx, struct xhci_virt_device *virt_dev) xhci_update_bw_info() argument
[all...]
H A Dxhci.h2019 void xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_endpoint *ep);
2021 struct xhci_virt_device *virt_dev,
2027 struct xhci_virt_device *virt_dev);
2035 int xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev,
2052 struct xhci_virt_device *virt_dev,
2066 struct xhci_virt_device *virt_dev, bool drop_control_ep);
2112 struct xhci_virt_device *virt_dev,
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.c1384 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_disable_slot() local
1387 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_disable_slot()
1388 if (!virt_dev) in xhci_handle_cmd_disable_slot()
1391 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_handle_cmd_disable_slot()
1396 xhci_free_device_endpoint_resources(xhci, virt_dev, true); in xhci_handle_cmd_disable_slot()
1402 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_config_ep() local
1417 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_config_ep()
1418 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_handle_cmd_config_ep()
1429 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index); in xhci_handle_cmd_config_ep()
1441 ep_state = virt_dev in xhci_handle_cmd_config_ep()
[all...]
/kernel/linux/linux-6.6/drivers/usb/host/
H A Dxhci.c1376 struct xhci_virt_device *virt_dev; in xhci_check_args() local
1395 virt_dev = xhci->devs[udev->slot_id]; in xhci_check_args()
1396 if (virt_dev->udev != udev) { in xhci_check_args()
1398 "virt_dev does not match\n", func); in xhci_check_args()
1863 struct xhci_virt_device *virt_dev; in xhci_add_endpoint() local
1887 virt_dev = xhci->devs[udev->slot_id]; in xhci_add_endpoint()
1888 in_ctx = virt_dev->in_ctx; in xhci_add_endpoint()
1900 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
1922 if (xhci_endpoint_init(xhci, virt_dev, udev, ep, GFP_NOIO) < 0) { in xhci_add_endpoint()
1942 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev in xhci_add_endpoint()
1954 xhci_zero_in_ctx(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev) xhci_zero_in_ctx() argument
2227 xhci_check_tt_bw_table(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_check_tt_bw_table() argument
2257 xhci_check_ss_bw(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev) xhci_check_ss_bw() argument
2314 xhci_check_bw_table(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_check_bw_table() argument
2649 xhci_update_tt_active_eps(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int old_active_eps) xhci_update_tt_active_eps() argument
2669 xhci_reserve_bandwidth(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct xhci_container_ctx *in_ctx) xhci_reserve_bandwidth() argument
2770 struct xhci_virt_device *virt_dev; xhci_configure_endpoint() local
2887 struct xhci_virt_device *virt_dev; xhci_check_bandwidth() local
2984 struct xhci_virt_device *virt_dev; xhci_reset_bandwidth() local
3613 xhci_free_device_endpoint_resources(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, bool drop_control_ep) xhci_free_device_endpoint_resources() argument
3660 struct xhci_virt_device *virt_dev; xhci_discover_or_reset_device() local
3818 struct xhci_virt_device *virt_dev; xhci_free_dev() local
4019 struct xhci_virt_device *virt_dev; xhci_setup_device() local
4229 struct xhci_virt_device *virt_dev; xhci_change_max_exit_latency() local
[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()
135 struct xhci_virt_device *virt_dev, in xhci_debugfs_remove_endpoint()
139 struct xhci_virt_device *virt_dev, in xhci_debugfs_create_stream_files()
130 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_create_endpoint() argument
134 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) xhci_debugfs_remove_endpoint() argument
138 xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int ep_index) 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 in xhci_mtk_check_bandwidth() local
[all...]
H A Dxhci-mem.c412 struct xhci_virt_device *virt_dev, in xhci_free_endpoint_ring()
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()
773 struct xhci_virt_device *virt_dev, in xhci_free_tt_info()
783 if (virt_dev->real_port == 0 || in xhci_free_tt_info()
784 virt_dev->real_port > HCS_MAX_PORTS(xhci->hcs_params1)) { in xhci_free_tt_info()
789 tt_list_head = &(xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_free_tt_info()
803 struct xhci_virt_device *virt_dev, in xhci_alloc_tt_info()
826 &xhci->rh_bw[virt_dev->real_port - 1].tts); in xhci_alloc_tt_info()
827 tt_info->slot_id = virt_dev in xhci_alloc_tt_info()
411 xhci_free_endpoint_ring(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, unsigned int ep_index) xhci_free_endpoint_ring() argument
772 xhci_free_tt_info(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, int slot_id) xhci_free_tt_info() argument
802 xhci_alloc_tt_info(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_device *hdev, struct usb_tt *tt, gfp_t mem_flags) xhci_alloc_tt_info() argument
1020 struct xhci_virt_device *virt_dev; xhci_copy_ep0_dequeue_into_input_ctx() local
1394 xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_device *udev, struct usb_host_endpoint *ep, gfp_t mem_flags) xhci_endpoint_init() argument
1493 xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_endpoint *ep) xhci_endpoint_zero() argument
1522 xhci_update_bw_info(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_input_control_ctx *ctrl_ctx, struct xhci_virt_device *virt_dev) xhci_update_bw_info() argument
[all...]
H A Dxhci.h2057 void xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_endpoint *ep);
2059 struct xhci_virt_device *virt_dev,
2065 struct xhci_virt_device *virt_dev);
2073 int xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev,
2090 struct xhci_virt_device *virt_dev,
2104 struct xhci_virt_device *virt_dev, bool drop_control_ep);
2151 struct xhci_virt_device *virt_dev,
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-ring.c1474 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_disable_slot() local
1477 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_disable_slot()
1478 if (!virt_dev) in xhci_handle_cmd_disable_slot()
1481 slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); in xhci_handle_cmd_disable_slot()
1486 xhci_free_device_endpoint_resources(xhci, virt_dev, true); in xhci_handle_cmd_disable_slot()
1492 struct xhci_virt_device *virt_dev; in xhci_handle_cmd_config_ep() local
1503 virt_dev = xhci->devs[slot_id]; in xhci_handle_cmd_config_ep()
1504 if (!virt_dev) in xhci_handle_cmd_config_ep()
1506 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_handle_cmd_config_ep()
1517 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev in xhci_handle_cmd_config_ep()
[all...]
/kernel/linux/linux-5.10/drivers/base/power/
H A 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()
[all...]
/kernel/linux/linux-6.6/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()
2866 dev_set_name(virt_dev, "genpd:%u:%s", index, dev_name(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()
[all...]
/kernel/linux/linux-5.10/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 = virt_dev ? 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()
2094 * Acquire genpd_virt_dev_lock to make sure virt_dev isn't getting in dev_pm_opp_detach_genpd()
/kernel/linux/linux-6.6/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()
2497 * Acquire genpd_virt_dev_lock to make sure virt_dev isn't getting in _opp_detach_genpd()

Completed in 48 milliseconds