Lines Matching refs:octeon

263 static int dwc3_octeon_setup(struct dwc3_octeon *octeon,  in dwc3_octeon_setup()  argument
269 struct device *dev = octeon->dev; in dwc3_octeon_setup()
270 void __iomem *uctl_ctl_reg = octeon->base + USBDRD_UCTL_CTL; in dwc3_octeon_setup()
271 void __iomem *uctl_host_cfg_reg = octeon->base + USBDRD_UCTL_HOST_CFG; in dwc3_octeon_setup()
357 dwc3_octeon_config_gpio(((__force uintptr_t)octeon->base >> 24) & 1, in dwc3_octeon_setup()
388 static void dwc3_octeon_set_endian_mode(struct dwc3_octeon *octeon) in dwc3_octeon_set_endian_mode() argument
391 void __iomem *uctl_shim_cfg_reg = octeon->base + USBDRD_UCTL_SHIM_CFG; in dwc3_octeon_set_endian_mode()
403 static void dwc3_octeon_phy_reset(struct dwc3_octeon *octeon) in dwc3_octeon_phy_reset() argument
406 void __iomem *uctl_ctl_reg = octeon->base + USBDRD_UCTL_CTL; in dwc3_octeon_phy_reset()
417 struct dwc3_octeon *octeon; in dwc3_octeon_probe() local
486 octeon = devm_kzalloc(dev, sizeof(*octeon), GFP_KERNEL); in dwc3_octeon_probe()
487 if (!octeon) in dwc3_octeon_probe()
490 octeon->dev = dev; in dwc3_octeon_probe()
491 octeon->base = devm_platform_ioremap_resource(pdev, 0); in dwc3_octeon_probe()
492 if (IS_ERR(octeon->base)) in dwc3_octeon_probe()
493 return PTR_ERR(octeon->base); in dwc3_octeon_probe()
495 err = dwc3_octeon_setup(octeon, ref_clk_sel, ref_clk_fsel, mpll_mul, in dwc3_octeon_probe()
500 dwc3_octeon_set_endian_mode(octeon); in dwc3_octeon_probe()
501 dwc3_octeon_phy_reset(octeon); in dwc3_octeon_probe()
503 platform_set_drvdata(pdev, octeon); in dwc3_octeon_probe()
510 struct dwc3_octeon *octeon = platform_get_drvdata(pdev); in dwc3_octeon_remove() local
512 of_platform_depopulate(octeon->dev); in dwc3_octeon_remove()