Lines Matching refs:byte_clk
389 #define ns_to_cycle(ns, byte_clk) \ argument
390 DIV_ROUND_UP((ns) * (byte_clk), 1000000)
395 u32 byte_clk = dsi->slave->hs_rate / 8; in sprd_dsi_init() local
412 div = DIV_ROUND_UP(byte_clk, dsi->slave->lp_rate); in sprd_dsi_init()
415 max_rd_time = ns_to_cycle(ctx->max_rd_time, byte_clk); in sprd_dsi_init()
418 data_hs2lp = ns_to_cycle(ctx->data_hs2lp, byte_clk); in sprd_dsi_init()
419 data_lp2hs = ns_to_cycle(ctx->data_lp2hs, byte_clk); in sprd_dsi_init()
420 clk_hs2lp = ns_to_cycle(ctx->clk_hs2lp, byte_clk); in sprd_dsi_init()
421 clk_lp2hs = ns_to_cycle(ctx->clk_lp2hs, byte_clk); in sprd_dsi_init()
454 u32 byte_clk = dsi->slave->hs_rate / 8; in sprd_dsi_dpi_video() local
476 ratio_x1000 = byte_clk * 1000 / (vm->pixelclock / 1000); in sprd_dsi_dpi_video()