Lines Matching refs:ldb_ch
86 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_atomic_check() local
87 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_check()
89 base_to_imx8qxp_ldb_channel(ldb_ch); in imx8qxp_ldb_bridge_atomic_check()
94 bool is_split = ldb_channel_is_split_link(ldb_ch); in imx8qxp_ldb_bridge_atomic_check()
127 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_mode_set() local
129 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_mode_set()
131 base_to_imx8qxp_ldb_channel(ldb_ch); in imx8qxp_ldb_bridge_mode_set()
136 bool is_split = ldb_channel_is_split_link(ldb_ch); in imx8qxp_ldb_bridge_mode_set()
139 u32 chno = ldb_ch->chno; in imx8qxp_ldb_bridge_mode_set()
157 companion_ldb_ch->in_bus_format = ldb_ch->in_bus_format; in imx8qxp_ldb_bridge_mode_set()
158 companion_ldb_ch->out_bus_format = ldb_ch->out_bus_format; in imx8qxp_ldb_bridge_mode_set()
209 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_atomic_pre_enable() local
210 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_pre_enable()
213 bool is_split = ldb_channel_is_split_link(ldb_ch); in imx8qxp_ldb_bridge_atomic_pre_enable()
226 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_atomic_enable() local
227 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_enable()
229 base_to_imx8qxp_ldb_channel(ldb_ch); in imx8qxp_ldb_bridge_atomic_enable()
233 bool is_split = ldb_channel_is_split_link(ldb_ch); in imx8qxp_ldb_bridge_atomic_enable()
236 if (ldb_ch->chno == 0 || is_split) { in imx8qxp_ldb_bridge_atomic_enable()
241 if (ldb_ch->chno == 1 || is_split) { in imx8qxp_ldb_bridge_atomic_enable()
261 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_atomic_disable() local
262 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_disable()
264 base_to_imx8qxp_ldb_channel(ldb_ch); in imx8qxp_ldb_bridge_atomic_disable()
268 bool is_split = ldb_channel_is_split_link(ldb_ch); in imx8qxp_ldb_bridge_atomic_disable()
383 struct ldb_channel *ldb_ch = bridge->driver_private; in imx8qxp_ldb_bridge_mode_valid() local
384 bool is_single = ldb_channel_is_single_link(ldb_ch); in imx8qxp_ldb_bridge_mode_valid()
416 struct ldb_channel *ldb_ch = &imx8qxp_ldb_ch->base; in imx8qxp_ldb_set_di_id() local
422 ep = of_graph_get_endpoint_by_regs(ldb_ch->np, 0, -1); in imx8qxp_ldb_set_di_id()
449 imx8qxp_ldb_check_chno_and_dual_link(struct ldb_channel *ldb_ch, int link) in imx8qxp_ldb_check_chno_and_dual_link() argument
451 if ((link == DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS && ldb_ch->chno != 0) || in imx8qxp_ldb_check_chno_and_dual_link()
452 (link == DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS && ldb_ch->chno != 1)) in imx8qxp_ldb_check_chno_and_dual_link()
462 struct ldb_channel *ldb_ch = &imx8qxp_ldb_ch->base; in imx8qxp_ldb_parse_dt_companion() local
510 if (i == (ldb_ch->chno ^ 0x1)) { in imx8qxp_ldb_parse_dt_companion()
529 port1 = of_graph_get_port_by_id(ldb_ch->np, 1); in imx8qxp_ldb_parse_dt_companion()
537 ldb_ch->link_type = LDB_CH_DUAL_LINK_ODD_EVEN_PIXELS; in imx8qxp_ldb_parse_dt_companion()
540 ldb_ch->link_type = LDB_CH_DUAL_LINK_EVEN_ODD_PIXELS; in imx8qxp_ldb_parse_dt_companion()
549 ret = imx8qxp_ldb_check_chno_and_dual_link(ldb_ch, dual_link); in imx8qxp_ldb_parse_dt_companion()
553 ldb_ch->chno, dual_link); in imx8qxp_ldb_parse_dt_companion()
571 companion_ldb_ch->link_type = ldb_ch->link_type; in imx8qxp_ldb_parse_dt_companion()
584 struct ldb_channel *ldb_ch; in imx8qxp_ldb_probe() local
633 ldb_ch = &imx8qxp_ldb_ch->base; in imx8qxp_ldb_probe()
635 if (ldb_ch->is_available) { in imx8qxp_ldb_probe()
636 imx8qxp_ldb->active_chno = ldb_ch->chno; in imx8qxp_ldb_probe()
641 imx8qxp_ldb_ch->phy = devm_of_phy_get(dev, ldb_ch->np, "lvds_phy"); in imx8qxp_ldb_probe()