Lines Matching refs:dwc3

4  * Inspired by dwc3-of-simple.c
69 struct platform_device *dwc3;
265 if (usb_get_maximum_speed(&qcom->dwc3->dev) >= USB_SPEED_SUPER ||
266 usb_get_maximum_speed(&qcom->dwc3->dev) == USB_SPEED_UNKNOWN)
309 struct dwc3 *dwc;
314 dwc = platform_get_drvdata(qcom->dwc3);
432 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3);
450 /* Configure dwc3 to use UTMI clock as PIPE clock not present */
614 qcom->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO);
615 if (!qcom->dwc3)
618 qcom->dwc3->dev.parent = dev;
619 qcom->dwc3->dev.type = dev->type;
620 qcom->dwc3->dev.dma_mask = dev->dma_mask;
621 qcom->dwc3->dev.dma_parms = dev->dma_parms;
622 qcom->dwc3->dev.coherent_dma_mask = dev->coherent_dma_mask;
626 platform_device_put(qcom->dwc3);
650 ret = platform_device_add_resources(qcom->dwc3, child_res, 2);
656 ret = platform_device_add_properties(qcom->dwc3,
663 ret = platform_device_add(qcom->dwc3);
672 platform_device_put(qcom->dwc3);
684 dwc3_np = of_get_child_by_name(np, "dwc3");
686 dev_err(dev, "failed to find dwc3 core child\n");
692 dev_err(dev, "failed to register dwc3 core - %d\n", ret);
696 qcom->dwc3 = of_find_device_by_node(dwc3_np);
697 if (!qcom->dwc3) {
699 dev_err(dev, "failed to get dwc3 platform device\n");
845 * Disable pipe_clk requirement if specified. Used when dwc3
867 qcom->mode = usb_get_dr_mode(&qcom->dwc3->dev);
892 platform_device_del(qcom->dwc3);
893 platform_device_put(qcom->dwc3);
918 platform_device_del(qcom->dwc3);
919 platform_device_put(qcom->dwc3);
984 { .compatible = "qcom,dwc3" },
985 { .compatible = "qcom,msm8996-dwc3" },
986 { .compatible = "qcom,msm8998-dwc3" },
987 { .compatible = "qcom,sdm845-dwc3" },
1028 .name = "dwc3-qcom",