Lines Matching refs:ldb_ch

87 	struct ldb_channel *ldb_ch = bridge->driver_private;  in imx8qxp_ldb_bridge_atomic_check()  local
88 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_check()
90 base_to_imx8qxp_ldb_channel(ldb_ch); in imx8qxp_ldb_bridge_atomic_check()
95 bool is_split = ldb_channel_is_split_link(ldb_ch); in imx8qxp_ldb_bridge_atomic_check()
128 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_mode_set() local
130 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_mode_set()
132 base_to_imx8qxp_ldb_channel(ldb_ch); in imx8qxp_ldb_bridge_mode_set()
137 bool is_split = ldb_channel_is_split_link(ldb_ch); in imx8qxp_ldb_bridge_mode_set()
140 u32 chno = ldb_ch->chno; in imx8qxp_ldb_bridge_mode_set()
158 companion_ldb_ch->in_bus_format = ldb_ch->in_bus_format; in imx8qxp_ldb_bridge_mode_set()
159 companion_ldb_ch->out_bus_format = ldb_ch->out_bus_format; in imx8qxp_ldb_bridge_mode_set()
210 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_atomic_pre_enable() local
211 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_pre_enable()
214 bool is_split = ldb_channel_is_split_link(ldb_ch); in imx8qxp_ldb_bridge_atomic_pre_enable()
227 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_atomic_enable() local
228 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_enable()
230 base_to_imx8qxp_ldb_channel(ldb_ch); in imx8qxp_ldb_bridge_atomic_enable()
234 bool is_split = ldb_channel_is_split_link(ldb_ch); in imx8qxp_ldb_bridge_atomic_enable()
237 if (ldb_ch->chno == 0 || is_split) { in imx8qxp_ldb_bridge_atomic_enable()
242 if (ldb_ch->chno == 1 || is_split) { in imx8qxp_ldb_bridge_atomic_enable()
262 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_atomic_disable() local
263 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_disable()
265 base_to_imx8qxp_ldb_channel(ldb_ch); in imx8qxp_ldb_bridge_atomic_disable()
269 bool is_split = ldb_channel_is_split_link(ldb_ch); in imx8qxp_ldb_bridge_atomic_disable()
384 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_mode_valid() local
385 bool is_single = ldb_channel_is_single_link(ldb_ch); in imx8qxp_ldb_bridge_mode_valid()
417 struct ldb_channel *ldb_ch = &imx8qxp_ldb_ch->base; in imx8qxp_ldb_set_di_id() local
423 ep = of_graph_get_endpoint_by_regs(ldb_ch->np, 0, -1); in imx8qxp_ldb_set_di_id()
450 imx8qxp_ldb_check_chno_and_dual_link(struct ldb_channel *ldb_ch, int link) in imx8qxp_ldb_check_chno_and_dual_link() argument
452 if ((link == DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS && ldb_ch->chno != 0) || in imx8qxp_ldb_check_chno_and_dual_link()
453 (link == DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS && ldb_ch->chno != 1)) in imx8qxp_ldb_check_chno_and_dual_link()
463 struct ldb_channel *ldb_ch = &imx8qxp_ldb_ch->base; in imx8qxp_ldb_parse_dt_companion() local
511 if (i == (ldb_ch->chno ^ 0x1)) { in imx8qxp_ldb_parse_dt_companion()
530 port1 = of_graph_get_port_by_id(ldb_ch->np, 1); in imx8qxp_ldb_parse_dt_companion()
538 ldb_ch->link_type = LDB_CH_DUAL_LINK_ODD_EVEN_PIXELS; in imx8qxp_ldb_parse_dt_companion()
541 ldb_ch->link_type = LDB_CH_DUAL_LINK_EVEN_ODD_PIXELS; in imx8qxp_ldb_parse_dt_companion()
550 ret = imx8qxp_ldb_check_chno_and_dual_link(ldb_ch, dual_link); in imx8qxp_ldb_parse_dt_companion()
554 ldb_ch->chno, dual_link); in imx8qxp_ldb_parse_dt_companion()
572 companion_ldb_ch->link_type = ldb_ch->link_type; in imx8qxp_ldb_parse_dt_companion()
585 struct ldb_channel *ldb_ch; in imx8qxp_ldb_probe() local
634 ldb_ch = &imx8qxp_ldb_ch->base; in imx8qxp_ldb_probe()
636 if (ldb_ch->is_available) { in imx8qxp_ldb_probe()
637 imx8qxp_ldb->active_chno = ldb_ch->chno; in imx8qxp_ldb_probe()
642 imx8qxp_ldb_ch->phy = devm_of_phy_get(dev, ldb_ch->np, "lvds_phy"); in imx8qxp_ldb_probe()