Lines Matching full:ui
26 unsigned long long ui; in phy_mipi_dphy_calc_config() local
36 ui = ALIGN(PSEC_PER_SEC, hs_clk_rate); in phy_mipi_dphy_calc_config()
37 do_div(ui, hs_clk_rate); in phy_mipi_dphy_calc_config()
40 cfg->clk_post = 60000 + 52 * ui; in phy_mipi_dphy_calc_config()
50 cfg->hs_prepare = 40000 + 4 * ui; in phy_mipi_dphy_calc_config()
51 cfg->hs_zero = 105000 + 6 * ui; in phy_mipi_dphy_calc_config()
52 cfg->hs_settle = 85000 + 6 * ui; in phy_mipi_dphy_calc_config()
59 * T_HS-TRAIL = max(n * 8 * ui, 60 + n * 4 * ui) in phy_mipi_dphy_calc_config()
63 * not parameterize on anything other that ui, so this code will in phy_mipi_dphy_calc_config()
66 cfg->hs_trail = max(4 * 8 * ui, 60000 + 4 * 4 * ui); in phy_mipi_dphy_calc_config()
109 unsigned long long ui; in phy_mipi_dphy_config_validate() local
114 ui = ALIGN(PSEC_PER_SEC, cfg->hs_clk_rate); in phy_mipi_dphy_config_validate()
115 do_div(ui, cfg->hs_clk_rate); in phy_mipi_dphy_config_validate()
120 if (cfg->clk_post < (60000 + 52 * ui)) in phy_mipi_dphy_config_validate()
141 if (cfg->d_term_en > (35000 + 4 * ui)) in phy_mipi_dphy_config_validate()
144 if (cfg->eot > (105000 + 12 * ui)) in phy_mipi_dphy_config_validate()
150 if (cfg->hs_prepare < (40000 + 4 * ui) || in phy_mipi_dphy_config_validate()
151 cfg->hs_prepare > (85000 + 6 * ui)) in phy_mipi_dphy_config_validate()
154 if ((cfg->hs_prepare + cfg->hs_zero) < (145000 + 10 * ui)) in phy_mipi_dphy_config_validate()
157 if ((cfg->hs_settle < (85000 + 6 * ui)) || in phy_mipi_dphy_config_validate()
158 (cfg->hs_settle > (145000 + 10 * ui))) in phy_mipi_dphy_config_validate()
161 if (cfg->hs_skip < 40000 || cfg->hs_skip > (55000 + 4 * ui)) in phy_mipi_dphy_config_validate()
164 if (cfg->hs_trail < max(8 * ui, 60000 + 4 * ui)) in phy_mipi_dphy_config_validate()