Lines Matching defs:sysdev
142 int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const struct xhci_plat_priv *priv_match)
163 if (!sysdev)
164 sysdev = &pdev->dev;
166 ret = dma_set_mask_and_coherent(sysdev, DMA_BIT_MASK(64));
174 hcd = __usb_create_hcd(driver, sysdev, &pdev->dev,
266 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0);
279 hcd->tpl_support = of_usb_host_tpl_support(sysdev->of_node);
292 xhci->shared_hcd = __usb_create_hcd(driver, sysdev, &pdev->dev,
300 xhci->shared_hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev,
307 dev_err(sysdev, "%s init usb3phy fail (ret=%d)\n",
369 struct device *sysdev;
373 * sysdev must point to a device that is known to the system firmware
379 for (sysdev = &pdev->dev; sysdev; sysdev = sysdev->parent) {
380 if (is_of_node(sysdev->fwnode) ||
381 is_acpi_device_node(sysdev->fwnode))
383 else if (dev_is_pci(sysdev))
387 if (!sysdev)
388 sysdev = &pdev->dev;
390 if (WARN_ON(!sysdev->dma_mask)) {
392 ret = dma_coerce_mask_and_coherent(sysdev, DMA_BIT_MASK(64));
402 return xhci_plat_probe(pdev, sysdev, priv_match);