Lines Matching full:ini

63 	struct  brcm_usb_init_params ini;  member
129 brcm_usb_init_common(&priv->ini); in brcm_usb_phy_init()
133 brcm_usb_init_eohci(&priv->ini); in brcm_usb_phy_init()
135 brcm_usb_init_xhci(&priv->ini); in brcm_usb_phy_init()
154 brcm_usb_uninit_eohci(&priv->ini); in brcm_usb_phy_exit()
156 brcm_usb_uninit_xhci(&priv->ini); in brcm_usb_phy_exit()
161 brcm_usb_uninit_common(&priv->ini); in brcm_usb_phy_exit()
235 priv->ini.supported_port_modes)); in dr_mode_show()
251 priv->ini.port_mode = value; in dual_select_store()
252 brcm_usb_set_dual_select(&priv->ini); in dual_select_store()
267 value = brcm_usb_get_dual_select(&priv->ini); in dual_select_show()
349 struct brcm_usb_init_params *ini, in brcm_usb_get_regs() argument
378 ini->regs[regs] = devm_ioremap_resource(&pdev->dev, res); in brcm_usb_get_regs()
379 if (IS_ERR(ini->regs[regs])) { in brcm_usb_get_regs()
483 priv->ini.family_id = brcmstb_get_family_id(); in brcm_usb_phy_probe()
484 priv->ini.product_id = brcmstb_get_product_id(); in brcm_usb_phy_probe()
490 info->init_func(&priv->ini); in brcm_usb_phy_probe()
493 priv->ini.family_name); in brcm_usb_phy_probe()
495 of_property_read_u32(dn, "brcm,ipp", &priv->ini.ipp); in brcm_usb_phy_probe()
496 of_property_read_u32(dn, "brcm,ioc", &priv->ini.ioc); in brcm_usb_phy_probe()
498 priv->ini.supported_port_modes = USB_CTLR_MODE_HOST; in brcm_usb_phy_probe()
503 mode, &priv->ini.supported_port_modes); in brcm_usb_phy_probe()
506 priv->ini.port_mode = priv->ini.supported_port_modes; in brcm_usb_phy_probe()
518 &priv->ini, false); in brcm_usb_phy_probe()
524 &priv->ini, true); in brcm_usb_phy_probe()
539 brcm_usb_init_ipp(&priv->ini); in brcm_usb_phy_probe()
545 if (priv->ini.supported_port_modes != USB_CTLR_MODE_DRD) in brcm_usb_phy_probe()
558 priv->ini.syscon_piarbctl = rmap; in brcm_usb_phy_probe()
562 brcm_usb_uninit_xhci(&priv->ini); in brcm_usb_phy_probe()
564 brcm_usb_uninit_eohci(&priv->ini); in brcm_usb_phy_probe()
565 brcm_usb_uninit_common(&priv->ini); in brcm_usb_phy_probe()
589 priv->ini.wake_enabled = device_may_wakeup(dev); in brcm_usb_phy_suspend()
591 brcm_usb_uninit_xhci(&priv->ini); in brcm_usb_phy_suspend()
593 brcm_usb_uninit_eohci(&priv->ini); in brcm_usb_phy_suspend()
594 brcm_usb_uninit_common(&priv->ini); in brcm_usb_phy_suspend()
602 if (!priv->ini.wake_enabled) { in brcm_usb_phy_suspend()
619 if (!priv->ini.wake_enabled) { in brcm_usb_phy_resume()
623 brcm_usb_init_ipp(&priv->ini); in brcm_usb_phy_resume()
633 brcm_usb_init_common(&priv->ini); in brcm_usb_phy_resume()
635 brcm_usb_init_eohci(&priv->ini); in brcm_usb_phy_resume()
637 brcm_usb_uninit_eohci(&priv->ini); in brcm_usb_phy_resume()
641 brcm_usb_init_xhci(&priv->ini); in brcm_usb_phy_resume()
643 brcm_usb_uninit_xhci(&priv->ini); in brcm_usb_phy_resume()
650 brcm_usb_uninit_xhci(&priv->ini); in brcm_usb_phy_resume()
652 brcm_usb_uninit_eohci(&priv->ini); in brcm_usb_phy_resume()
653 brcm_usb_uninit_common(&priv->ini); in brcm_usb_phy_resume()
657 priv->ini.wake_enabled = false; in brcm_usb_phy_resume()