Lines Matching refs:byte_clk
386 #define ns_to_cycle(ns, byte_clk) \ argument
387 DIV_ROUND_UP((ns) * (byte_clk), 1000000)
392 u32 byte_clk = dsi->slave->hs_rate / 8; in sprd_dsi_init() local
409 div = DIV_ROUND_UP(byte_clk, dsi->slave->lp_rate); in sprd_dsi_init()
412 max_rd_time = ns_to_cycle(ctx->max_rd_time, byte_clk); in sprd_dsi_init()
415 data_hs2lp = ns_to_cycle(ctx->data_hs2lp, byte_clk); in sprd_dsi_init()
416 data_lp2hs = ns_to_cycle(ctx->data_lp2hs, byte_clk); in sprd_dsi_init()
417 clk_hs2lp = ns_to_cycle(ctx->clk_hs2lp, byte_clk); in sprd_dsi_init()
418 clk_lp2hs = ns_to_cycle(ctx->clk_lp2hs, byte_clk); in sprd_dsi_init()
451 u32 byte_clk = dsi->slave->hs_rate / 8; in sprd_dsi_dpi_video() local
473 ratio_x1000 = byte_clk * 1000 / (vm->pixelclock / 1000); in sprd_dsi_dpi_video()