Lines Matching refs:DIV_ROUND_CLOSEST
376 tmp = DIV_ROUND_CLOSEST(tmp * 100, 228); in dw_mipi_dsi2_get_lane_rate()
600 phy_hs_clk = DIV_ROUND_CLOSEST(dsi2->lane_hs_rate * MSEC_PER_SEC, 7); in dw_mipi_dsi2_ipi_set()
602 phy_hs_clk = DIV_ROUND_CLOSEST(dsi2->lane_hs_rate * MSEC_PER_SEC, 16); in dw_mipi_dsi2_ipi_set()
605 hsa_time = DIV_ROUND_CLOSEST(tmp << 16, pixel_clk); in dw_mipi_dsi2_ipi_set()
609 hbp_time = DIV_ROUND_CLOSEST(tmp << 16, pixel_clk); in dw_mipi_dsi2_ipi_set()
613 hact_time = DIV_ROUND_CLOSEST(tmp << 16, pixel_clk); in dw_mipi_dsi2_ipi_set()
617 hline_time = DIV_ROUND_CLOSEST(tmp << 16, pixel_clk); in dw_mipi_dsi2_ipi_set()
983 dsi2->lane_hs_rate = DIV_ROUND_CLOSEST(rate, MSEC_PER_SEC); in dw_mipi_dsi2_set_hs_clk()
1044 phy_hsclk = DIV_ROUND_CLOSEST(dsi2->lane_hs_rate * MSEC_PER_SEC, 7); in dw_mipi_dsi2_phy_ratio_cfg()
1047 phy_hsclk = DIV_ROUND_CLOSEST(dsi2->lane_hs_rate * MSEC_PER_SEC, 16); in dw_mipi_dsi2_phy_ratio_cfg()
1052 tmp = DIV_ROUND_CLOSEST(phy_hsclk << 16, ipi_clk); in dw_mipi_dsi2_phy_ratio_cfg()
1056 tmp = DIV_ROUND_CLOSEST(phy_hsclk << 16, sys_clk); in dw_mipi_dsi2_phy_ratio_cfg()
1066 hstx_clk = DIV_ROUND_CLOSEST(dsi2->lane_hs_rate * MSEC_PER_SEC, 16); in dw_mipi_dsi2_lp2hs_or_hs2lp_cfg()
1073 tmp = DIV_ROUND_CLOSEST(tmp << 16, ui); in dw_mipi_dsi2_lp2hs_or_hs2lp_cfg()
1078 tmp = DIV_ROUND_CLOSEST(tmp << 16, ui); in dw_mipi_dsi2_lp2hs_or_hs2lp_cfg()