Lines Matching full:co
68 #define CO(x) ((CO_BUF) >> (8 - (x)) & 0x03) macro
112 u32 co; member
218 * CO is power of 2: 1, 2, 4, 8 in mixel_dphy_config_from_opts()
224 cfg->co = 1 << i; in mixel_dphy_config_from_opts()
229 cfg->co < 1 || cfg->co > 8) { in mixel_dphy_config_from_opts()
230 dev_err(&phy->dev, "Invalid CM/CN/CO values: %u/%u/%u\n", in mixel_dphy_config_from_opts()
231 cfg->cm, cfg->cn, cfg->co); in mixel_dphy_config_from_opts()
339 priv->cfg.co < 1 || priv->cfg.co > 8) { in mixel_dphy_set_pll_params()
340 dev_err(&phy->dev, "Invalid CM/CN/CO values! (%u/%u/%u)\n", in mixel_dphy_set_pll_params()
341 priv->cfg.cm, priv->cfg.cn, priv->cfg.co); in mixel_dphy_set_pll_params()
344 dev_dbg(&phy->dev, "Using CM:%u CN:%u CO:%u\n", in mixel_dphy_set_pll_params()
345 priv->cfg.cm, priv->cfg.cn, priv->cfg.co); in mixel_dphy_set_pll_params()
348 phy_write(phy, CO(priv->cfg.co), DPHY_CO); in mixel_dphy_set_pll_params()
389 u32 co; in mixel_dphy_configure_lvds_phy() local
412 * | VCO | ----------------> | CO divider | -> | LVDS data rate| in mixel_dphy_configure_lvds_phy()
417 for (co = 1; co <= 8; co *= 2) { in mixel_dphy_configure_lvds_phy()
418 fvco = data_rate * co; in mixel_dphy_configure_lvds_phy()
430 * CO is configurable, while CN and CM are not, in mixel_dphy_configure_lvds_phy()
433 phy_write(phy, __ffs(co), DPHY_CO); in mixel_dphy_configure_lvds_phy()