Lines Matching refs:drv_data
154 const struct rk_dphy_drv_data *drv_data; member
163 const struct dphy_reg *reg = &priv->drv_data->regs[index]; in rk_dphy_write_grf()
230 const struct rk_dphy_drv_data *drv_data = priv->drv_data; in rk_dphy_configure() local
246 for (i = 0; i < drv_data->num_hsfreq_ranges; i++) { in rk_dphy_configure()
247 if (drv_data->hsfreq_ranges[i].range_h >= data_rate_mbps) { in rk_dphy_configure()
248 hsfreq = drv_data->hsfreq_ranges[i].cfg_bit; in rk_dphy_configure()
265 ret = clk_bulk_enable(priv->drv_data->num_clks, priv->clks); in rk_dphy_power_on()
279 clk_bulk_disable(priv->drv_data->num_clks, priv->clks); in rk_dphy_power_off()
287 return clk_bulk_prepare(priv->drv_data->num_clks, priv->clks); in rk_dphy_init()
294 clk_bulk_unprepare(priv->drv_data->num_clks, priv->clks); in rk_dphy_exit()
328 const struct rk_dphy_drv_data *drv_data; in rk_dphy_probe() local
354 drv_data = of_id->data; in rk_dphy_probe()
355 priv->drv_data = drv_data; in rk_dphy_probe()
356 priv->clks = devm_kcalloc(&pdev->dev, drv_data->num_clks, in rk_dphy_probe()
360 for (i = 0; i < drv_data->num_clks; i++) in rk_dphy_probe()
361 priv->clks[i].id = drv_data->clks[i]; in rk_dphy_probe()
362 ret = devm_clk_bulk_get(&pdev->dev, drv_data->num_clks, priv->clks); in rk_dphy_probe()