sata_phy 71 drivers/phy/samsung/phy-exynos5250-sata.c struct exynos_sata_phy *sata_phy = phy_get_drvdata(phy); sata_phy 73 drivers/phy/samsung/phy-exynos5250-sata.c return regmap_update_bits(sata_phy->pmureg, SATAPHY_CONTROL_OFFSET, sata_phy 80 drivers/phy/samsung/phy-exynos5250-sata.c struct exynos_sata_phy *sata_phy = phy_get_drvdata(phy); sata_phy 82 drivers/phy/samsung/phy-exynos5250-sata.c return regmap_update_bits(sata_phy->pmureg, SATAPHY_CONTROL_OFFSET, sata_phy 92 drivers/phy/samsung/phy-exynos5250-sata.c struct exynos_sata_phy *sata_phy = phy_get_drvdata(phy); sata_phy 94 drivers/phy/samsung/phy-exynos5250-sata.c ret = regmap_update_bits(sata_phy->pmureg, SATAPHY_CONTROL_OFFSET, sata_phy 97 drivers/phy/samsung/phy-exynos5250-sata.c dev_err(&sata_phy->phy->dev, "phy init failed\n"); sata_phy 99 drivers/phy/samsung/phy-exynos5250-sata.c writel(val, sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 101 drivers/phy/samsung/phy-exynos5250-sata.c val = readl(sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 105 drivers/phy/samsung/phy-exynos5250-sata.c writel(val, sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 107 drivers/phy/samsung/phy-exynos5250-sata.c val = readl(sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 109 drivers/phy/samsung/phy-exynos5250-sata.c writel(val, sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 111 drivers/phy/samsung/phy-exynos5250-sata.c val = readl(sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 113 drivers/phy/samsung/phy-exynos5250-sata.c writel(val, sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 115 drivers/phy/samsung/phy-exynos5250-sata.c val = readl(sata_phy->regs + EXYNOS5_SATA_PHSATA_CTRLM); sata_phy 117 drivers/phy/samsung/phy-exynos5250-sata.c writel(val, sata_phy->regs + EXYNOS5_SATA_PHSATA_CTRLM); sata_phy 120 drivers/phy/samsung/phy-exynos5250-sata.c val = readl(sata_phy->regs + EXYNOS5_SATA_PHSATA_CTRLM); sata_phy 122 drivers/phy/samsung/phy-exynos5250-sata.c writel(val, sata_phy->regs + EXYNOS5_SATA_PHSATA_CTRLM); sata_phy 124 drivers/phy/samsung/phy-exynos5250-sata.c val = readl(sata_phy->regs + EXYNOS5_SATA_CTRL0); sata_phy 126 drivers/phy/samsung/phy-exynos5250-sata.c writel(val, sata_phy->regs + EXYNOS5_SATA_CTRL0); sata_phy 128 drivers/phy/samsung/phy-exynos5250-sata.c val = readl(sata_phy->regs + EXYNOS5_SATA_MODE0); sata_phy 130 drivers/phy/samsung/phy-exynos5250-sata.c writel(val, sata_phy->regs + EXYNOS5_SATA_MODE0); sata_phy 132 drivers/phy/samsung/phy-exynos5250-sata.c ret = i2c_master_send(sata_phy->client, buf, sizeof(buf)); sata_phy 137 drivers/phy/samsung/phy-exynos5250-sata.c val = readl(sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 139 drivers/phy/samsung/phy-exynos5250-sata.c writel(val, sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 141 drivers/phy/samsung/phy-exynos5250-sata.c val = readl(sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 143 drivers/phy/samsung/phy-exynos5250-sata.c writel(val, sata_phy->regs + EXYNOS5_SATA_RESET); sata_phy 145 drivers/phy/samsung/phy-exynos5250-sata.c ret = wait_for_reg_status(sata_phy->regs, sata_phy 149 drivers/phy/samsung/phy-exynos5250-sata.c dev_err(&sata_phy->phy->dev, sata_phy 163 drivers/phy/samsung/phy-exynos5250-sata.c struct exynos_sata_phy *sata_phy; sata_phy 170 drivers/phy/samsung/phy-exynos5250-sata.c sata_phy = devm_kzalloc(dev, sizeof(*sata_phy), GFP_KERNEL); sata_phy 171 drivers/phy/samsung/phy-exynos5250-sata.c if (!sata_phy) sata_phy 176 drivers/phy/samsung/phy-exynos5250-sata.c sata_phy->regs = devm_ioremap_resource(dev, res); sata_phy 177 drivers/phy/samsung/phy-exynos5250-sata.c if (IS_ERR(sata_phy->regs)) sata_phy 178 drivers/phy/samsung/phy-exynos5250-sata.c return PTR_ERR(sata_phy->regs); sata_phy 180 drivers/phy/samsung/phy-exynos5250-sata.c sata_phy->pmureg = syscon_regmap_lookup_by_phandle(dev->of_node, sata_phy 182 drivers/phy/samsung/phy-exynos5250-sata.c if (IS_ERR(sata_phy->pmureg)) { sata_phy 184 drivers/phy/samsung/phy-exynos5250-sata.c return PTR_ERR(sata_phy->pmureg); sata_phy 192 drivers/phy/samsung/phy-exynos5250-sata.c sata_phy->client = of_find_i2c_device_by_node(node); sata_phy 193 drivers/phy/samsung/phy-exynos5250-sata.c if (!sata_phy->client) sata_phy 196 drivers/phy/samsung/phy-exynos5250-sata.c dev_set_drvdata(dev, sata_phy); sata_phy 198 drivers/phy/samsung/phy-exynos5250-sata.c sata_phy->phyclk = devm_clk_get(dev, "sata_phyctrl"); sata_phy 199 drivers/phy/samsung/phy-exynos5250-sata.c if (IS_ERR(sata_phy->phyclk)) { sata_phy 201 drivers/phy/samsung/phy-exynos5250-sata.c return PTR_ERR(sata_phy->phyclk); sata_phy 204 drivers/phy/samsung/phy-exynos5250-sata.c ret = clk_prepare_enable(sata_phy->phyclk); sata_phy 210 drivers/phy/samsung/phy-exynos5250-sata.c sata_phy->phy = devm_phy_create(dev, NULL, &exynos_sata_phy_ops); sata_phy 211 drivers/phy/samsung/phy-exynos5250-sata.c if (IS_ERR(sata_phy->phy)) { sata_phy 212 drivers/phy/samsung/phy-exynos5250-sata.c clk_disable_unprepare(sata_phy->phyclk); sata_phy 214 drivers/phy/samsung/phy-exynos5250-sata.c return PTR_ERR(sata_phy->phy); sata_phy 217 drivers/phy/samsung/phy-exynos5250-sata.c phy_set_drvdata(sata_phy->phy, sata_phy); sata_phy 222 drivers/phy/samsung/phy-exynos5250-sata.c clk_disable_unprepare(sata_phy->phyclk);