Lines Matching refs:core
40 struct cygnus_pcie_phy_core *core; member
61 struct cygnus_pcie_phy_core *core = phy->core; in cygnus_pcie_power_config() local
65 mutex_lock(&core->lock); in cygnus_pcie_power_config()
77 mutex_unlock(&core->lock); in cygnus_pcie_power_config()
78 dev_err(core->dev, "PCIe PHY %d invalid\n", phy->id); in cygnus_pcie_power_config()
83 val = readl(core->base + PCIE_CFG_OFFSET); in cygnus_pcie_power_config()
85 writel(val, core->base + PCIE_CFG_OFFSET); in cygnus_pcie_power_config()
92 val = readl(core->base + PCIE_CFG_OFFSET); in cygnus_pcie_power_config()
94 writel(val, core->base + PCIE_CFG_OFFSET); in cygnus_pcie_power_config()
97 mutex_unlock(&core->lock); in cygnus_pcie_power_config()
98 dev_dbg(core->dev, "PCIe PHY %d %s\n", phy->id, in cygnus_pcie_power_config()
127 struct cygnus_pcie_phy_core *core; in cygnus_pcie_phy_probe() local
138 core = devm_kzalloc(dev, sizeof(*core), GFP_KERNEL); in cygnus_pcie_phy_probe()
139 if (!core) in cygnus_pcie_phy_probe()
142 core->dev = dev; in cygnus_pcie_phy_probe()
145 core->base = devm_ioremap_resource(dev, res); in cygnus_pcie_phy_probe()
146 if (IS_ERR(core->base)) in cygnus_pcie_phy_probe()
147 return PTR_ERR(core->base); in cygnus_pcie_phy_probe()
149 mutex_init(&core->lock); in cygnus_pcie_phy_probe()
168 if (core->phys[id].phy) { in cygnus_pcie_phy_probe()
174 p = &core->phys[id]; in cygnus_pcie_phy_probe()
182 p->core = core; in cygnus_pcie_phy_probe()
188 dev_set_drvdata(dev, core); in cygnus_pcie_phy_probe()