Lines Matching refs:chno
74 int chno; member
120 if (imx_ldb_ch->chno == 0 || dual) in imx_ldb_ch_set_bus_format()
122 if (imx_ldb_ch->chno == 1 || dual) in imx_ldb_ch_set_bus_format()
126 if (imx_ldb_ch->chno == 0 || dual) in imx_ldb_ch_set_bus_format()
129 if (imx_ldb_ch->chno == 1 || dual) in imx_ldb_ch_set_bus_format()
168 static void imx_ldb_set_clock(struct imx_ldb *ldb, int mux, int chno, in imx_ldb_set_clock() argument
174 clk_get_rate(ldb->clk_pll[chno]), serial_clk); in imx_ldb_set_clock()
175 clk_set_rate(ldb->clk_pll[chno], serial_clk); in imx_ldb_set_clock()
178 clk_get_rate(ldb->clk_pll[chno])); in imx_ldb_set_clock()
181 clk_get_rate(ldb->clk[chno]), in imx_ldb_set_clock()
183 clk_set_rate(ldb->clk[chno], di_clk); in imx_ldb_set_clock()
186 clk_get_rate(ldb->clk[chno])); in imx_ldb_set_clock()
189 ret = clk_set_parent(ldb->clk_sel[mux], ldb->clk[chno]); in imx_ldb_set_clock()
193 chno); in imx_ldb_set_clock()
217 clk_set_parent(ldb->clk_sel[mux], ldb->clk[imx_ldb_ch->chno]); in imx_ldb_encoder_enable()
291 imx_ldb_set_clock(ldb, mux, imx_ldb_ch->chno, serial_clk, in imx_ldb_encoder_atomic_mode_set()
420 static int imx_ldb_get_clk(struct imx_ldb *ldb, int chno) in imx_ldb_get_clk() argument
424 snprintf(clkname, sizeof(clkname), "di%d", chno); in imx_ldb_get_clk()
425 ldb->clk[chno] = devm_clk_get(ldb->dev, clkname); in imx_ldb_get_clk()
426 if (IS_ERR(ldb->clk[chno])) in imx_ldb_get_clk()
427 return PTR_ERR(ldb->clk[chno]); in imx_ldb_get_clk()
429 snprintf(clkname, sizeof(clkname), "di%d_pll", chno); in imx_ldb_get_clk()
430 ldb->clk_pll[chno] = devm_clk_get(ldb->dev, clkname); in imx_ldb_get_clk()
432 return PTR_ERR_OR_ZERO(ldb->clk_pll[chno]); in imx_ldb_get_clk()
457 ret = imx_ldb_get_clk(ldb, imx_ldb_ch->chno); in imx_ldb_register()
691 channel->chno = i; in imx_ldb_probe()