Lines Matching full:dwc3
4 * Inspired by dwc3-of-simple.c
70 struct platform_device *dwc3; member
267 max_speed = usb_get_maximum_speed(&qcom->dwc3->dev); in dwc3_qcom_interconnect_init()
304 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); in dwc3_qcom_is_host()
311 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); in dwc3_qcom_read_usb2_speed()
322 * USB2.0 root hub via usb_hub_for_each_child(). DWC3 code in dwc3_qcom_read_usb2_speed()
474 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); in qcom_dwc3_resume_irq()
492 /* Configure dwc3 to use UTMI clock as PIPE clock not present */ in dwc3_qcom_select_utmi_clk()
660 qcom->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_qcom_acpi_register_core()
661 if (!qcom->dwc3) in dwc3_qcom_acpi_register_core()
664 qcom->dwc3->dev.parent = dev; in dwc3_qcom_acpi_register_core()
665 qcom->dwc3->dev.type = dev->type; in dwc3_qcom_acpi_register_core()
666 qcom->dwc3->dev.dma_mask = dev->dma_mask; in dwc3_qcom_acpi_register_core()
667 qcom->dwc3->dev.dma_parms = dev->dma_parms; in dwc3_qcom_acpi_register_core()
668 qcom->dwc3->dev.coherent_dma_mask = dev->coherent_dma_mask; in dwc3_qcom_acpi_register_core()
672 platform_device_put(qcom->dwc3); in dwc3_qcom_acpi_register_core()
696 ret = platform_device_add_resources(qcom->dwc3, child_res, 2); in dwc3_qcom_acpi_register_core()
702 ret = device_add_software_node(&qcom->dwc3->dev, &dwc3_qcom_swnode); in dwc3_qcom_acpi_register_core()
708 ret = platform_device_add(qcom->dwc3); in dwc3_qcom_acpi_register_core()
711 device_remove_software_node(&qcom->dwc3->dev); in dwc3_qcom_acpi_register_core()
718 platform_device_put(qcom->dwc3); in dwc3_qcom_acpi_register_core()
730 dwc3_np = of_get_compatible_child(np, "snps,dwc3"); in dwc3_qcom_of_register_core()
732 dev_err(dev, "failed to find dwc3 core child\n"); in dwc3_qcom_of_register_core()
738 dev_err(dev, "failed to register dwc3 core - %d\n", ret); in dwc3_qcom_of_register_core()
742 qcom->dwc3 = of_find_device_by_node(dwc3_np); in dwc3_qcom_of_register_core()
743 if (!qcom->dwc3) { in dwc3_qcom_of_register_core()
745 dev_err(dev, "failed to get dwc3 platform device\n"); in dwc3_qcom_of_register_core()
872 * Disable pipe_clk requirement if specified. Used when dwc3 in dwc3_qcom_probe()
886 dev_err(dev, "failed to register DWC3 Core, err=%d\n", ret); in dwc3_qcom_probe()
894 qcom->mode = usb_get_dr_mode(&qcom->dwc3->dev); in dwc3_qcom_probe()
907 device_init_wakeup(&qcom->dwc3->dev, wakeup_source); in dwc3_qcom_probe()
940 device_remove_software_node(&qcom->dwc3->dev); in dwc3_qcom_remove()
1009 { .compatible = "qcom,dwc3" },
1050 .name = "dwc3-qcom",
1060 MODULE_DESCRIPTION("DesignWare DWC3 QCOM Glue Driver");