Lines Matching refs:dwc3

4  * Inspired by dwc3-of-simple.c
70 struct platform_device *dwc3;
267 max_speed = usb_get_maximum_speed(&qcom->dwc3->dev);
310 struct dwc3 *dwc;
315 dwc = platform_get_drvdata(qcom->dwc3);
326 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3);
489 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3);
507 /* Configure dwc3 to use UTMI clock as PIPE clock not present */
675 qcom->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO);
676 if (!qcom->dwc3)
679 qcom->dwc3->dev.parent = dev;
680 qcom->dwc3->dev.type = dev->type;
681 qcom->dwc3->dev.dma_mask = dev->dma_mask;
682 qcom->dwc3->dev.dma_parms = dev->dma_parms;
683 qcom->dwc3->dev.coherent_dma_mask = dev->coherent_dma_mask;
687 platform_device_put(qcom->dwc3);
711 ret = platform_device_add_resources(qcom->dwc3, child_res, 2);
717 ret = device_add_software_node(&qcom->dwc3->dev, &dwc3_qcom_swnode);
723 ret = platform_device_add(qcom->dwc3);
726 device_remove_software_node(&qcom->dwc3->dev);
733 platform_device_put(qcom->dwc3);
745 dwc3_np = of_get_compatible_child(np, "snps,dwc3");
747 dev_err(dev, "failed to find dwc3 core child\n");
753 dev_err(dev, "failed to register dwc3 core - %d\n", ret);
757 qcom->dwc3 = of_find_device_by_node(dwc3_np);
758 if (!qcom->dwc3) {
760 dev_err(dev, "failed to get dwc3 platform device\n");
905 * Disable pipe_clk requirement if specified. Used when dwc3
927 qcom->mode = usb_get_dr_mode(&qcom->dwc3->dev);
940 device_init_wakeup(&qcom->dwc3->dev, wakeup_source);
955 device_remove_software_node(&qcom->dwc3->dev);
956 platform_device_del(qcom->dwc3);
958 platform_device_put(qcom->dwc3);
983 device_remove_software_node(&qcom->dwc3->dev);
984 platform_device_del(qcom->dwc3);
986 platform_device_put(qcom->dwc3);
1055 { .compatible = "qcom,dwc3" },
1096 .name = "dwc3-qcom",