dphy 465 drivers/gpu/drm/bridge/cdns-dsi.c struct phy *dphy; dphy 626 drivers/gpu/drm/bridge/cdns-dsi.c ret = phy_validate(dsi->dphy, PHY_MODE_MIPI_DPHY, 0, &output->phy_opts); dphy 725 drivers/gpu/drm/bridge/cdns-dsi.c phy_init(dsi->dphy); dphy 726 drivers/gpu/drm/bridge/cdns-dsi.c phy_set_mode(dsi->dphy, PHY_MODE_MIPI_DPHY); dphy 727 drivers/gpu/drm/bridge/cdns-dsi.c phy_configure(dsi->dphy, &output->phy_opts); dphy 728 drivers/gpu/drm/bridge/cdns-dsi.c phy_power_on(dsi->dphy); dphy 1206 drivers/gpu/drm/bridge/cdns-dsi.c dsi->dphy = devm_phy_get(&pdev->dev, "dphy"); dphy 1207 drivers/gpu/drm/bridge/cdns-dsi.c if (IS_ERR(dsi->dphy)) dphy 1208 drivers/gpu/drm/bridge/cdns-dsi.c return PTR_ERR(dsi->dphy); dphy 741 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c phy_init(dsi->dphy); dphy 747 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c phy_set_mode(dsi->dphy, PHY_MODE_MIPI_DPHY); dphy 748 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c phy_configure(dsi->dphy, &opts); dphy 749 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c phy_power_on(dsi->dphy); dphy 787 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c phy_power_off(dsi->dphy); dphy 788 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c phy_exit(dsi->dphy); dphy 1128 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c dsi->dphy = devm_phy_get(dev, "dphy"); dphy 1129 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c if (IS_ERR(dsi->dphy)) { dphy 1131 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c ret = PTR_ERR(dsi->dphy); dphy 27 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h struct phy *dphy; dphy 71 drivers/media/platform/cadence/cdns-csi2rx.c struct phy *dphy; dphy 304 drivers/media/platform/cadence/cdns-csi2rx.c csi2rx->dphy = devm_phy_optional_get(&pdev->dev, "dphy"); dphy 305 drivers/media/platform/cadence/cdns-csi2rx.c if (IS_ERR(csi2rx->dphy)) { dphy 307 drivers/media/platform/cadence/cdns-csi2rx.c return PTR_ERR(csi2rx->dphy); dphy 314 drivers/media/platform/cadence/cdns-csi2rx.c if (csi2rx->dphy) { dphy 283 drivers/media/platform/marvell-ccic/mcam-core.c mcam->dphy[0], mcam->dphy[1], mcam->dphy[2]); dphy 284 drivers/media/platform/marvell-ccic/mcam-core.c mcam_reg_write(mcam, REG_CSI2_DPHY3, mcam->dphy[0]); dphy 285 drivers/media/platform/marvell-ccic/mcam-core.c mcam_reg_write(mcam, REG_CSI2_DPHY5, mcam->dphy[1]); dphy 286 drivers/media/platform/marvell-ccic/mcam-core.c mcam_reg_write(mcam, REG_CSI2_DPHY6, mcam->dphy[2]); dphy 123 drivers/media/platform/marvell-ccic/mcam-core.h int *dphy; dphy 141 drivers/media/platform/marvell-ccic/mmp-driver.c pdata->dphy[0] = dphy 149 drivers/media/platform/marvell-ccic/mmp-driver.c pdata->dphy[0] = dphy 181 drivers/media/platform/marvell-ccic/mmp-driver.c pdata->dphy[2] = dphy 186 drivers/media/platform/marvell-ccic/mmp-driver.c pdata->dphy[0], pdata->dphy[1], pdata->dphy[2]); dphy 241 drivers/media/platform/marvell-ccic/mmp-driver.c mcam->dphy = pdata->dphy; dphy 255 drivers/media/platform/marvell-ccic/mmp-driver.c if ((IS_ERR(cam->mipi_clk) && mcam->dphy[2] == 0)) dphy 99 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c struct sun6i_dphy *dphy = phy_get_drvdata(phy); dphy 101 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c reset_control_deassert(dphy->reset); dphy 102 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c clk_prepare_enable(dphy->mod_clk); dphy 103 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c clk_set_rate_exclusive(dphy->mod_clk, 150000000); dphy 110 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c struct sun6i_dphy *dphy = phy_get_drvdata(phy); dphy 117 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c memcpy(&dphy->config, opts, sizeof(dphy->config)); dphy 124 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c struct sun6i_dphy *dphy = phy_get_drvdata(phy); dphy 125 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c u8 lanes_mask = GENMASK(dphy->config.lanes - 1, 0); dphy 127 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_TX_CTL_REG, dphy 130 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_TX_TIME0_REG, dphy 135 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_TX_TIME1_REG, dphy 141 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_TX_TIME2_REG, dphy 144 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_TX_TIME3_REG, 0); dphy 146 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_TX_TIME4_REG, dphy 150 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_GCTL_REG, dphy 151 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c SUN6I_DPHY_GCTL_LANE_NUM(dphy->config.lanes) | dphy 154 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_ANA0_REG, dphy 161 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_ANA1_REG, dphy 165 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_ANA4_REG, dphy 176 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_ANA2_REG, dphy 180 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_write(dphy->regs, SUN6I_DPHY_ANA3_REG, dphy 186 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_update_bits(dphy->regs, SUN6I_DPHY_ANA3_REG, dphy 193 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_update_bits(dphy->regs, SUN6I_DPHY_ANA3_REG, dphy 198 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_update_bits(dphy->regs, SUN6I_DPHY_ANA2_REG, dphy 203 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_update_bits(dphy->regs, SUN6I_DPHY_ANA1_REG, dphy 207 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_update_bits(dphy->regs, SUN6I_DPHY_ANA2_REG, dphy 216 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c struct sun6i_dphy *dphy = phy_get_drvdata(phy); dphy 218 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c regmap_update_bits(dphy->regs, SUN6I_DPHY_ANA1_REG, dphy 226 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c struct sun6i_dphy *dphy = phy_get_drvdata(phy); dphy 228 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c clk_rate_exclusive_put(dphy->mod_clk); dphy 229 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c clk_disable_unprepare(dphy->mod_clk); dphy 230 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c reset_control_assert(dphy->reset); dphy 255 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c struct sun6i_dphy *dphy; dphy 259 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c dphy = devm_kzalloc(&pdev->dev, sizeof(*dphy), GFP_KERNEL); dphy 260 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c if (!dphy) dphy 270 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c dphy->regs = devm_regmap_init_mmio_clk(&pdev->dev, "bus", dphy 272 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c if (IS_ERR(dphy->regs)) { dphy 274 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c return PTR_ERR(dphy->regs); dphy 277 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c dphy->reset = devm_reset_control_get_shared(&pdev->dev, NULL); dphy 278 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c if (IS_ERR(dphy->reset)) { dphy 280 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c return PTR_ERR(dphy->reset); dphy 283 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c dphy->mod_clk = devm_clk_get(&pdev->dev, "mod"); dphy 284 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c if (IS_ERR(dphy->mod_clk)) { dphy 286 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c return PTR_ERR(dphy->mod_clk); dphy 289 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c dphy->phy = devm_phy_create(&pdev->dev, NULL, &sun6i_dphy_ops); dphy 290 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c if (IS_ERR(dphy->phy)) { dphy 292 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c return PTR_ERR(dphy->phy); dphy 295 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c phy_set_drvdata(dphy->phy, dphy); dphy 76 drivers/phy/cadence/cdns-dphy.c int (*probe)(struct cdns_dphy *dphy); dphy 77 drivers/phy/cadence/cdns-dphy.c void (*remove)(struct cdns_dphy *dphy); dphy 78 drivers/phy/cadence/cdns-dphy.c void (*set_psm_div)(struct cdns_dphy *dphy, u8 div); dphy 79 drivers/phy/cadence/cdns-dphy.c void (*set_clk_lane_cfg)(struct cdns_dphy *dphy, dphy 81 drivers/phy/cadence/cdns-dphy.c void (*set_pll_cfg)(struct cdns_dphy *dphy, dphy 83 drivers/phy/cadence/cdns-dphy.c unsigned long (*get_wakeup_time_ns)(struct cdns_dphy *dphy); dphy 95 drivers/phy/cadence/cdns-dphy.c static int cdns_dsi_get_dphy_pll_cfg(struct cdns_dphy *dphy, dphy 100 drivers/phy/cadence/cdns-dphy.c unsigned long pll_ref_hz = clk_get_rate(dphy->pll_ref_clk); dphy 136 drivers/phy/cadence/cdns-dphy.c static int cdns_dphy_setup_psm(struct cdns_dphy *dphy) dphy 138 drivers/phy/cadence/cdns-dphy.c unsigned long psm_clk_hz = clk_get_rate(dphy->psm_clk); dphy 145 drivers/phy/cadence/cdns-dphy.c if (dphy->ops->set_psm_div) dphy 146 drivers/phy/cadence/cdns-dphy.c dphy->ops->set_psm_div(dphy, psm_div); dphy 151 drivers/phy/cadence/cdns-dphy.c static void cdns_dphy_set_clk_lane_cfg(struct cdns_dphy *dphy, dphy 154 drivers/phy/cadence/cdns-dphy.c if (dphy->ops->set_clk_lane_cfg) dphy 155 drivers/phy/cadence/cdns-dphy.c dphy->ops->set_clk_lane_cfg(dphy, cfg); dphy 158 drivers/phy/cadence/cdns-dphy.c static void cdns_dphy_set_pll_cfg(struct cdns_dphy *dphy, dphy 161 drivers/phy/cadence/cdns-dphy.c if (dphy->ops->set_pll_cfg) dphy 162 drivers/phy/cadence/cdns-dphy.c dphy->ops->set_pll_cfg(dphy, cfg); dphy 165 drivers/phy/cadence/cdns-dphy.c static unsigned long cdns_dphy_get_wakeup_time_ns(struct cdns_dphy *dphy) dphy 167 drivers/phy/cadence/cdns-dphy.c return dphy->ops->get_wakeup_time_ns(dphy); dphy 170 drivers/phy/cadence/cdns-dphy.c static unsigned long cdns_dphy_ref_get_wakeup_time_ns(struct cdns_dphy *dphy) dphy 176 drivers/phy/cadence/cdns-dphy.c static void cdns_dphy_ref_set_pll_cfg(struct cdns_dphy *dphy, dphy 187 drivers/phy/cadence/cdns-dphy.c dphy->regs + DPHY_CMN_OPIPDIV); dphy 190 drivers/phy/cadence/cdns-dphy.c dphy->regs + DPHY_CMN_FBDIV); dphy 193 drivers/phy/cadence/cdns-dphy.c dphy->regs + DPHY_CMN_PWM); dphy 196 drivers/phy/cadence/cdns-dphy.c static void cdns_dphy_ref_set_psm_div(struct cdns_dphy *dphy, u8 div) dphy 199 drivers/phy/cadence/cdns-dphy.c dphy->regs + DPHY_PSM_CFG); dphy 217 drivers/phy/cadence/cdns-dphy.c struct cdns_dphy *dphy = phy_get_drvdata(phy); dphy 225 drivers/phy/cadence/cdns-dphy.c ret = cdns_dsi_get_dphy_pll_cfg(dphy, cfg, dphy 230 drivers/phy/cadence/cdns-dphy.c opts->wakeup = cdns_dphy_get_wakeup_time_ns(dphy) / 1000; dphy 248 drivers/phy/cadence/cdns-dphy.c struct cdns_dphy *dphy = phy_get_drvdata(phy); dphy 260 drivers/phy/cadence/cdns-dphy.c ret = cdns_dphy_setup_psm(dphy); dphy 271 drivers/phy/cadence/cdns-dphy.c cdns_dphy_set_clk_lane_cfg(dphy, DPHY_CLK_CFG_LEFT_DRIVES_LEFT); dphy 277 drivers/phy/cadence/cdns-dphy.c cdns_dphy_set_pll_cfg(dphy, &cfg); dphy 284 drivers/phy/cadence/cdns-dphy.c struct cdns_dphy *dphy = phy_get_drvdata(phy); dphy 286 drivers/phy/cadence/cdns-dphy.c clk_prepare_enable(dphy->psm_clk); dphy 287 drivers/phy/cadence/cdns-dphy.c clk_prepare_enable(dphy->pll_ref_clk); dphy 291 drivers/phy/cadence/cdns-dphy.c dphy->regs + DPHY_CMN_SSM); dphy 298 drivers/phy/cadence/cdns-dphy.c struct cdns_dphy *dphy = phy_get_drvdata(phy); dphy 300 drivers/phy/cadence/cdns-dphy.c clk_disable_unprepare(dphy->pll_ref_clk); dphy 301 drivers/phy/cadence/cdns-dphy.c clk_disable_unprepare(dphy->psm_clk); dphy 316 drivers/phy/cadence/cdns-dphy.c struct cdns_dphy *dphy; dphy 320 drivers/phy/cadence/cdns-dphy.c dphy = devm_kzalloc(&pdev->dev, sizeof(*dphy), GFP_KERNEL); dphy 321 drivers/phy/cadence/cdns-dphy.c if (!dphy) dphy 323 drivers/phy/cadence/cdns-dphy.c dev_set_drvdata(&pdev->dev, dphy); dphy 325 drivers/phy/cadence/cdns-dphy.c dphy->ops = of_device_get_match_data(&pdev->dev); dphy 326 drivers/phy/cadence/cdns-dphy.c if (!dphy->ops) dphy 330 drivers/phy/cadence/cdns-dphy.c dphy->regs = devm_ioremap_resource(&pdev->dev, res); dphy 331 drivers/phy/cadence/cdns-dphy.c if (IS_ERR(dphy->regs)) dphy 332 drivers/phy/cadence/cdns-dphy.c return PTR_ERR(dphy->regs); dphy 334 drivers/phy/cadence/cdns-dphy.c dphy->psm_clk = devm_clk_get(&pdev->dev, "psm"); dphy 335 drivers/phy/cadence/cdns-dphy.c if (IS_ERR(dphy->psm_clk)) dphy 336 drivers/phy/cadence/cdns-dphy.c return PTR_ERR(dphy->psm_clk); dphy 338 drivers/phy/cadence/cdns-dphy.c dphy->pll_ref_clk = devm_clk_get(&pdev->dev, "pll_ref"); dphy 339 drivers/phy/cadence/cdns-dphy.c if (IS_ERR(dphy->pll_ref_clk)) dphy 340 drivers/phy/cadence/cdns-dphy.c return PTR_ERR(dphy->pll_ref_clk); dphy 342 drivers/phy/cadence/cdns-dphy.c if (dphy->ops->probe) { dphy 343 drivers/phy/cadence/cdns-dphy.c ret = dphy->ops->probe(dphy); dphy 348 drivers/phy/cadence/cdns-dphy.c dphy->phy = devm_phy_create(&pdev->dev, NULL, &cdns_dphy_ops); dphy 349 drivers/phy/cadence/cdns-dphy.c if (IS_ERR(dphy->phy)) { dphy 351 drivers/phy/cadence/cdns-dphy.c if (dphy->ops->remove) dphy 352 drivers/phy/cadence/cdns-dphy.c dphy->ops->remove(dphy); dphy 353 drivers/phy/cadence/cdns-dphy.c return PTR_ERR(dphy->phy); dphy 356 drivers/phy/cadence/cdns-dphy.c phy_set_drvdata(dphy->phy, dphy); dphy 365 drivers/phy/cadence/cdns-dphy.c struct cdns_dphy *dphy = dev_get_drvdata(&pdev->dev); dphy 367 drivers/phy/cadence/cdns-dphy.c if (dphy->ops->remove) dphy 368 drivers/phy/cadence/cdns-dphy.c dphy->ops->remove(dphy); dphy 94 drivers/staging/media/omap4iss/iss_csiphy.c reg = phy->dphy.ths_term << REGISTER0_THS_TERM_SHIFT; dphy 95 drivers/staging/media/omap4iss/iss_csiphy.c reg |= phy->dphy.ths_settle << REGISTER0_THS_SETTLE_SHIFT; dphy 100 drivers/staging/media/omap4iss/iss_csiphy.c reg = phy->dphy.tclk_term << REGISTER1_TCLK_TERM_SHIFT; dphy 101 drivers/staging/media/omap4iss/iss_csiphy.c reg |= phy->dphy.tclk_miss << REGISTER1_CTRLCLK_DIV_FACTOR_SHIFT; dphy 102 drivers/staging/media/omap4iss/iss_csiphy.c reg |= phy->dphy.tclk_settle << REGISTER1_TCLK_SETTLE_SHIFT; dphy 211 drivers/staging/media/omap4iss/iss_csiphy.c csi2->phy->dphy = csi2phy; dphy 38 drivers/staging/media/omap4iss/iss_csiphy.h struct iss_csiphy_dphy_cfg dphy; dphy 21 include/linux/platform_data/media/mmp-camera.h int dphy[3]; /* DPHY: CSI2_DPHY3, CSI2_DPHY5, CSI2_DPHY6 */