Lines Matching refs:ui

26 	unsigned long long ui;  in phy_mipi_dphy_get_default_config()  local
34 ui = ALIGN(PSEC_PER_SEC, hs_clk_rate); in phy_mipi_dphy_get_default_config()
35 do_div(ui, hs_clk_rate); in phy_mipi_dphy_get_default_config()
38 cfg->clk_post = 60000 + 52 * ui; in phy_mipi_dphy_get_default_config()
48 cfg->hs_prepare = 40000 + 4 * ui; in phy_mipi_dphy_get_default_config()
49 cfg->hs_zero = 105000 + 6 * ui; in phy_mipi_dphy_get_default_config()
50 cfg->hs_settle = 85000 + 6 * ui; in phy_mipi_dphy_get_default_config()
64 cfg->hs_trail = max(4 * 8 * ui, 60000 + 4 * 4 * ui); in phy_mipi_dphy_get_default_config()
86 unsigned long long ui; in phy_mipi_dphy_config_validate() local
91 ui = ALIGN(PSEC_PER_SEC, cfg->hs_clk_rate); in phy_mipi_dphy_config_validate()
92 do_div(ui, cfg->hs_clk_rate); in phy_mipi_dphy_config_validate()
97 if (cfg->clk_post < (60000 + 52 * ui)) in phy_mipi_dphy_config_validate()
118 if (cfg->d_term_en > (35000 + 4 * ui)) in phy_mipi_dphy_config_validate()
121 if (cfg->eot > (105000 + 12 * ui)) in phy_mipi_dphy_config_validate()
127 if (cfg->hs_prepare < (40000 + 4 * ui) || in phy_mipi_dphy_config_validate()
128 cfg->hs_prepare > (85000 + 6 * ui)) in phy_mipi_dphy_config_validate()
131 if ((cfg->hs_prepare + cfg->hs_zero) < (145000 + 10 * ui)) in phy_mipi_dphy_config_validate()
134 if ((cfg->hs_settle < (85000 + 6 * ui)) || in phy_mipi_dphy_config_validate()
135 (cfg->hs_settle > (145000 + 10 * ui))) in phy_mipi_dphy_config_validate()
138 if (cfg->hs_skip < 40000 || cfg->hs_skip > (55000 + 4 * ui)) in phy_mipi_dphy_config_validate()
141 if (cfg->hs_trail < max(8 * ui, 60000 + 4 * ui)) in phy_mipi_dphy_config_validate()