| /linux/drivers/usb/host/ |
| A D | xhci.c | 262 val = xhci_read_64(xhci, &xhci->op_regs->dcbaa_ptr); in xhci_zero_64b_regs() 264 xhci_write_64(xhci, 0, &xhci->op_regs->dcbaa_ptr); in xhci_zero_64b_regs() 265 val = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_zero_64b_regs() 267 xhci_write_64(xhci, 0, &xhci->op_regs->cmd_ring); in xhci_zero_64b_regs() 803 xhci->s3.dcbaa_ptr = xhci_read_64(xhci, &xhci->op_regs->dcbaa_ptr); in xhci_save_registers() 806 xhci->s3.erst_base = xhci_read_64(xhci, &xhci->ir_set->erst_base); in xhci_save_registers() 807 xhci->s3.erst_dequeue = xhci_read_64(xhci, &xhci->ir_set->erst_dequeue); in xhci_save_registers() 816 xhci_write_64(xhci, xhci->s3.dcbaa_ptr, &xhci->op_regs->dcbaa_ptr); in xhci_restore_registers() 819 xhci_write_64(xhci, xhci->s3.erst_base, &xhci->ir_set->erst_base); in xhci_restore_registers() 820 xhci_write_64(xhci, xhci->s3.erst_dequeue, &xhci->ir_set->erst_dequeue); in xhci_restore_registers() [all …]
|
| A D | xhci-mem.c | 791 ep->xhci = xhci; in xhci_init_endpoint_timer() 1842 xhci_free_erst(xhci, &xhci->erst); in xhci_mem_cleanup() 1845 xhci_ring_free(xhci, xhci->event_ring); in xhci_mem_cleanup() 1850 xhci_free_command(xhci, xhci->lpm_command); in xhci_mem_cleanup() 1853 xhci_ring_free(xhci, xhci->cmd_ring); in xhci_mem_cleanup() 1891 xhci->dcbaa, xhci->dcbaa->dma); in xhci_mem_cleanup() 2206 xhci->ext_caps[xhci->num_ext_caps++] = temp; in xhci_add_in_port() 2410 xhci->page_size = 1 << xhci->page_shift; in xhci_mem_init() 2454 if (!xhci->segment_pool || !xhci->device_pool) in xhci_mem_init() 2508 xhci->ir_set = &xhci->run_regs->ir_set[0]; in xhci_mem_init() [all …]
|
| A D | xhci-ring.c | 967 xhci = ep->xhci; in xhci_invalidate_cancelled_tds() 1271 struct xhci_hcd *xhci = ep->xhci; in xhci_stop_endpoint_command_watchdog() local 1698 xhci_handle_stopped_cmd_ring(xhci, xhci->current_cmd); in xhci_handle_command_timeout() 1839 inc_deq(xhci, xhci->cmd_ring); in handle_cmd_completion() 1923 inc_deq(xhci, xhci->event_ring); in handle_port_status() 2053 inc_deq(xhci, xhci->event_ring); in handle_port_status() 2938 inc_deq(xhci, xhci->event_ring); in handle_tx_event() 3030 inc_deq(xhci, xhci->event_ring); in xhci_handle_event() 3612 ret = prepare_transfer(xhci, xhci->devs[slot_id], in xhci_queue_bulk_tx() 3721 ret = prepare_transfer(xhci, xhci->devs[slot_id], in xhci_queue_bulk_tx() [all …]
|
| A D | xhci-pci.c | 367 struct xhci_hcd *xhci; in xhci_pci_setup() local 371 xhci = hcd_to_xhci(hcd); in xhci_pci_setup() 372 if (!xhci->sbrn) in xhci_pci_setup() 388 xhci_dbg(xhci, "Got SBRN %u\n", (unsigned int) xhci->sbrn); in xhci_pci_setup() 401 struct xhci_hcd *xhci; in xhci_pci_probe() local 434 xhci = hcd_to_xhci(hcd); in xhci_pci_probe() 435 xhci->reset = reset; in xhci_pci_probe() 438 if (!xhci->shared_hcd) { in xhci_pci_probe() 476 struct xhci_hcd *xhci; in xhci_pci_remove() local 485 if (xhci->shared_hcd) { in xhci_pci_remove() [all …]
|
| A D | xhci-hub.c | 456 if (!xhci->devs[i] || !xhci->devs[i]->udev) in xhci_find_slot_id_by_port() 578 xhci_dbg(xhci, in xhci_disable_port() 703 xhci_start(xhci); in xhci_port_set_test_mode() 716 if (!xhci->devs[i]) in xhci_enter_test_mode() 730 xhci_set_port_power(xhci, xhci->shared_hcd, i, false, flags); in xhci_enter_test_mode() 733 xhci_set_port_power(xhci, xhci->main_hcd, i, false, flags); in xhci_enter_test_mode() 764 xhci->test_mode = 0; in xhci_exit_test_mode() 1237 xhci_hc_died(xhci); in xhci_hub_control() 1280 xhci_hc_died(xhci); in xhci_hub_control() 1534 xhci_hc_died(xhci); in xhci_hub_control() [all …]
|
| A D | Makefile | 14 xhci-hcd-y := xhci.o xhci-mem.o xhci-ext-caps.o 15 xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o 16 xhci-hcd-y += xhci-trace.o 19 xhci-hcd-y += xhci-dbgcap.o xhci-dbgtty.o 22 xhci-mtk-hcd-y := xhci-mtk.o xhci-mtk-sch.o 24 xhci-plat-hcd-y := xhci-plat.o 26 xhci-plat-hcd-y += xhci-mvebu.o 29 xhci-plat-hcd-y += xhci-rcar.o 33 xhci-hcd-y += xhci-debugfs.o 69 obj-$(CONFIG_USB_XHCI_HCD) += xhci-hcd.o [all …]
|
| A D | xhci-debugfs.c | 260 struct xhci_hcd *xhci; in xhci_slot_context_show() local 282 struct xhci_hcd *xhci; in xhci_endpoint_context_show() local 661 xhci_debugfs_regset(xhci, in xhci_debugfs_init() 666 xhci_debugfs_regset(xhci, in xhci_debugfs_init() 671 xhci_debugfs_regset(xhci, in xhci_debugfs_init() 691 xhci_debugfs_create_ring_dir(xhci, &xhci->cmd_ring, in xhci_debugfs_init() 695 xhci_debugfs_create_ring_dir(xhci, &xhci->event_ring, in xhci_debugfs_init() 699 xhci->debugfs_slots = debugfs_create_dir("devices", xhci->debugfs_root); in xhci_debugfs_init() 701 xhci_debugfs_create_ports(xhci, xhci->debugfs_root); in xhci_debugfs_init() 709 xhci->debugfs_root = NULL; in xhci_debugfs_exit() [all …]
|
| A D | xhci-plat.c | 192 struct xhci_hcd *xhci; in xhci_plat_probe() local 264 xhci = hcd_to_xhci(hcd); in xhci_plat_probe() 271 if (IS_ERR(xhci->reg_clk)) { in xhci_plat_probe() 281 if (IS_ERR(xhci->clk)) { in xhci_plat_probe() 282 ret = PTR_ERR(xhci->clk); in xhci_plat_probe() 303 xhci->main_hcd = hcd; in xhci_plat_probe() 306 if (!xhci->shared_hcd) { in xhci_plat_probe() 312 xhci->imod_interval = 40000; in xhci_plat_probe() 327 &xhci->imod_interval); in xhci_plat_probe() 417 xhci->shared_hcd = NULL; in xhci_plat_remove() [all …]
|
| A D | built-in.a | 13 xhci.o/ 14 xhci-mem.o/ 16 xhci-ring.o/ 17 xhci-hub.o/ 18 xhci-dbg.o/ 19 xhci-trace.o/ 20 xhci-debugfs.o/ 21 xhci-plat.o/ 22 xhci-rcar.o/ 23 xhci-mtk.o/ [all …]
|
| A D | xhci-mtk.c | 401 xhci->quirks |= XHCI_PLAT; in xhci_mtk_quirks() 417 if (xhci->hci_version < 0x100 && HCC_MAX_PSA(xhci->hcc_params) == 4) in xhci_mtk_quirks() 465 struct xhci_hcd *xhci; in xhci_mtk_probe() local 574 xhci = hcd_to_xhci(hcd); in xhci_mtk_probe() 575 xhci->main_hcd = hcd; in xhci_mtk_probe() 582 xhci->imod_interval = 5000; in xhci_mtk_probe() 587 if (!xhci->shared_hcd) { in xhci_mtk_probe() 622 xhci->shared_hcd = NULL; in xhci_mtk_probe() 663 xhci->shared_hcd = NULL; in xhci_mtk_remove() 744 if (xhci->xhc_state) in xhci_mtk_runtime_suspend() [all …]
|
| A D | .built-in.a.cmd | 1 …xhci.o drivers/usb/host/xhci-mem.o drivers/usb/host/xhci-ext-caps.o drivers/usb/host/xhci-ring.o d…
|
| A D | xhci-histb.c | 174 xhci->quirks |= XHCI_PLAT; in xhci_histb_quirks() 203 struct xhci_hcd *xhci; in xhci_histb_probe() local 262 xhci = hcd_to_xhci(hcd); in xhci_histb_probe() 266 xhci->main_hcd = hcd; in xhci_histb_probe() 269 if (!xhci->shared_hcd) { in xhci_histb_probe() 278 xhci->quirks |= XHCI_LPM_SUPPORT; in xhci_histb_probe() 281 xhci->imod_interval = 40000; in xhci_histb_probe() 283 &xhci->imod_interval); in xhci_histb_probe() 310 usb_put_hcd(xhci->shared_hcd); in xhci_histb_probe() 332 xhci->shared_hcd = NULL; in xhci_histb_remove() [all …]
|
| A D | xhci-debugfs.h | 107 void xhci_debugfs_init(struct xhci_hcd *xhci); 108 void xhci_debugfs_exit(struct xhci_hcd *xhci); 111 void xhci_debugfs_create_slot(struct xhci_hcd *xhci, int slot_id); 113 void xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, 116 void xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, 119 void xhci_debugfs_create_stream_files(struct xhci_hcd *xhci, 123 static inline void xhci_debugfs_init(struct xhci_hcd *xhci) { } in xhci_debugfs_init() argument 124 static inline void xhci_debugfs_exit(struct xhci_hcd *xhci) { } in xhci_debugfs_exit() argument 130 xhci_debugfs_create_endpoint(struct xhci_hcd *xhci, in xhci_debugfs_create_endpoint() argument 134 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci, in xhci_debugfs_remove_endpoint() argument [all …]
|
| A D | xhci.h | 950 struct xhci_hcd *xhci; member 1965 return xhci->main_hcd; in xhci_to_hcd() 1968 #define xhci_dbg(xhci, fmt, args...) \ argument 1970 #define xhci_err(xhci, fmt, args...) \ argument 1972 #define xhci_warn(xhci, fmt, args...) \ argument 1976 #define xhci_info(xhci, fmt, args...) \ argument 2087 void xhci_quiesce(struct xhci_hcd *xhci); 2088 int xhci_halt(struct xhci_hcd *xhci); 2089 int xhci_start(struct xhci_hcd *xhci); 2090 int xhci_reset(struct xhci_hcd *xhci); [all …]
|
| A D | xhci-dbgcap.c | 922 kfree(xhci->dbc); in xhci_do_dbc_exit() 923 xhci->dbc = NULL; in xhci_do_dbc_exit() 954 if (xhci->dbc) { in xhci_do_dbc_init() 959 xhci->dbc = dbc; in xhci_do_dbc_init() 962 dbc->xhci = xhci; in xhci_do_dbc_init() 976 struct xhci_hcd *xhci; in dbc_show() local 979 dbc = xhci->dbc; in dbc_show() 1011 struct xhci_hcd *xhci; in dbc_store() local 1015 dbc = xhci->dbc; in dbc_store() 1051 xhci_do_dbc_exit(xhci); in xhci_dbc_init() [all …]
|
| A D | xhci-dbgcap.h | 123 struct xhci_hcd *xhci; member 197 int xhci_dbc_init(struct xhci_hcd *xhci); 198 void xhci_dbc_exit(struct xhci_hcd *xhci); 199 int xhci_dbc_tty_probe(struct xhci_hcd *xhci); 207 int xhci_dbc_suspend(struct xhci_hcd *xhci); 208 int xhci_dbc_resume(struct xhci_hcd *xhci); 211 static inline int xhci_dbc_init(struct xhci_hcd *xhci) in xhci_dbc_init() argument 216 static inline void xhci_dbc_exit(struct xhci_hcd *xhci) in xhci_dbc_exit() argument 220 static inline int xhci_dbc_suspend(struct xhci_hcd *xhci) in xhci_dbc_suspend() argument 225 static inline int xhci_dbc_resume(struct xhci_hcd *xhci) in xhci_dbc_resume() argument
|
| A D | xhci-ext-caps.c | 28 static int xhci_create_intel_xhci_sw_pdev(struct xhci_hcd *xhci, u32 cap_offset) in xhci_create_intel_xhci_sw_pdev() argument 30 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_create_intel_xhci_sw_pdev() 39 xhci_err(xhci, "couldn't allocate %s platform device\n", in xhci_create_intel_xhci_sw_pdev() 84 int xhci_ext_cap_init(struct xhci_hcd *xhci) in xhci_ext_cap_init() argument 86 void __iomem *base = &xhci->cap_regs->hc_capbase; in xhci_ext_cap_init() 97 if (xhci->quirks & XHCI_INTEL_USB_ROLE_SW) { in xhci_ext_cap_init() 98 ret = xhci_create_intel_xhci_sw_pdev(xhci, in xhci_ext_cap_init()
|
| A D | xhci-mtk-sch.c | 127 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in get_bw_info() local 131 virt_dev = xhci->devs[udev->slot_id]; in get_bw_info() 662 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in xhci_mtk_sch_init() local 667 num_usb_bus = xhci->usb3_rhub.num_ports * 2 + xhci->usb2_rhub.num_ports; in xhci_mtk_sch_init() 690 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in add_ep_quirk() local 696 virt_dev = xhci->devs[udev->slot_id]; in add_ep_quirk() 698 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in add_ep_quirk() 730 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in drop_ep_quirk() local 751 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_mtk_check_bandwidth() local 765 xhci_err(xhci, "Not enough bandwidth! (%s)\n", in xhci_mtk_check_bandwidth() [all …]
|
| A D | xhci-dbg.c | 13 char *xhci_get_slot_state(struct xhci_hcd *xhci, in xhci_get_slot_state() argument 16 struct xhci_slot_ctx *slot_ctx = xhci_get_slot_ctx(xhci, ctx); in xhci_get_slot_state() 22 void xhci_dbg_trace(struct xhci_hcd *xhci, void (*trace)(struct va_format *), in xhci_dbg_trace() argument 31 xhci_dbg(xhci, "%pV\n", &vaf); in xhci_dbg_trace()
|
| /linux/Documentation/devicetree/bindings/usb/ |
| A D | renesas,usb-xhci.yaml | 14 - $ref: "usb-xhci.yaml" 21 - renesas,xhci-r8a7742 # RZ/G1H 22 - renesas,xhci-r8a7743 # RZ/G1M 23 - renesas,xhci-r8a7744 # RZ/G1N 24 - renesas,xhci-r8a7790 # R-Car H2 25 - renesas,xhci-r8a7791 # R-Car M2-W 30 - renesas,xhci-r8a774a1 # RZ/G2M 31 - renesas,xhci-r8a774b1 # RZ/G2N 32 - renesas,xhci-r8a774c0 # RZ/G2E 33 - renesas,xhci-r8a774e1 # RZ/G2H [all …]
|
| A D | generic-xhci.yaml | 13 - $ref: "usb-xhci.yaml#" 19 const: generic-xhci 23 - marvell,armada3700-xhci 24 - marvell,armada-375-xhci 25 - marvell,armada-380-xhci 26 - marvell,armada-8k-xhci 27 - const: generic-xhci 30 - brcm,xhci-brcm-v2 31 - brcm,bcm7445-xhci 33 const: xhci-platform [all …]
|
| A D | mediatek,mtk-xhci.yaml | 14 - $ref: "usb-xhci.yaml" 26 - mediatek,mt2701-xhci 27 - mediatek,mt2712-xhci 28 - mediatek,mt7622-xhci 29 - mediatek,mt7623-xhci 30 - mediatek,mt7629-xhci 31 - mediatek,mt8173-xhci 32 - mediatek,mt8183-xhci 33 - mediatek,mt8192-xhci 34 - mediatek,mt8195-xhci [all …]
|
| /linux/drivers/usb/cdns3/ |
| A D | host.c | 36 struct platform_device *xhci; in __cdns_host_init() local 43 if (!xhci) { in __cdns_host_init() 48 xhci->dev.parent = cdns->dev; in __cdns_host_init() 49 cdns->host_dev = xhci; in __cdns_host_init() 51 ret = platform_device_add_resources(xhci, cdns->xhci_res, in __cdns_host_init() 73 ret = platform_device_add(xhci); in __cdns_host_init() 80 hcd = platform_get_drvdata(xhci); in __cdns_host_init() 89 platform_device_put(xhci); in __cdns_host_init() 95 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_cdns3_suspend_quirk() local 102 value = readl(&xhci->op_regs->command); in xhci_cdns3_suspend_quirk() [all …]
|
| /linux/drivers/usb/dwc3/ |
| A D | host.c | 48 struct platform_device *xhci; in dwc3_host_init() local 72 xhci = platform_device_alloc("xhci-hcd", PLATFORM_DEVID_AUTO); in dwc3_host_init() 73 if (!xhci) { in dwc3_host_init() 78 xhci->dev.parent = dwc->dev; in dwc3_host_init() 79 ACPI_COMPANION_SET(&xhci->dev, ACPI_COMPANION(dwc->dev)); in dwc3_host_init() 81 dwc->xhci = xhci; in dwc3_host_init() 83 ret = platform_device_add_resources(xhci, dwc->xhci_resources, in dwc3_host_init() 111 ret = device_create_managed_software_node(&xhci->dev, props, NULL); in dwc3_host_init() 118 ret = platform_device_add(xhci); in dwc3_host_init() 126 platform_device_put(xhci); in dwc3_host_init() [all …]
|
| /linux/drivers/usb/ |
| A D | built-in.a | 81 host/xhci.o/ 82 host/xhci-mem.o/ 84 host/xhci-ring.o/ 85 host/xhci-hub.o/ 86 host/xhci-dbg.o/ 87 host/xhci-trace.o/ 88 host/xhci-debugfs.o/ 89 host/xhci-plat.o/ 90 host/xhci-rcar.o/ 91 host/xhci-mtk.o/ [all …]
|