Lines Matching refs:ldb_ch

20 bool ldb_channel_is_single_link(struct ldb_channel *ldb_ch)  in ldb_channel_is_single_link()  argument
22 return ldb_ch->link_type == LDB_CH_SINGLE_LINK; in ldb_channel_is_single_link()
26 bool ldb_channel_is_split_link(struct ldb_channel *ldb_ch) in ldb_channel_is_split_link() argument
28 return ldb_ch->link_type == LDB_CH_DUAL_LINK_EVEN_ODD_PIXELS || in ldb_channel_is_split_link()
29 ldb_ch->link_type == LDB_CH_DUAL_LINK_ODD_EVEN_PIXELS; in ldb_channel_is_split_link()
38 struct ldb_channel *ldb_ch = bridge->driver_private; in ldb_bridge_atomic_check_helper() local
40 ldb_ch->in_bus_format = bridge_state->input_bus_cfg.format; in ldb_bridge_atomic_check_helper()
41 ldb_ch->out_bus_format = bridge_state->output_bus_cfg.format; in ldb_bridge_atomic_check_helper()
51 struct ldb_channel *ldb_ch = bridge->driver_private; in ldb_bridge_mode_set_helper() local
52 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_mode_set_helper()
53 bool is_split = ldb_channel_is_split_link(ldb_ch); in ldb_bridge_mode_set_helper()
58 switch (ldb_ch->out_bus_format) { in ldb_bridge_mode_set_helper()
62 if (ldb_ch->chno == 0 || is_split) in ldb_bridge_mode_set_helper()
64 if (ldb_ch->chno == 1 || is_split) in ldb_bridge_mode_set_helper()
68 if (ldb_ch->chno == 0 || is_split) in ldb_bridge_mode_set_helper()
71 if (ldb_ch->chno == 1 || is_split) in ldb_bridge_mode_set_helper()
81 struct ldb_channel *ldb_ch = bridge->driver_private; in ldb_bridge_enable_helper() local
82 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_enable_helper()
94 struct ldb_channel *ldb_ch = bridge->driver_private; in ldb_bridge_disable_helper() local
95 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_disable_helper()
96 bool is_split = ldb_channel_is_split_link(ldb_ch); in ldb_bridge_disable_helper()
98 if (ldb_ch->chno == 0 || is_split) in ldb_bridge_disable_helper()
100 if (ldb_ch->chno == 1 || is_split) in ldb_bridge_disable_helper()
110 struct ldb_channel *ldb_ch = bridge->driver_private; in ldb_bridge_attach_helper() local
111 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_attach_helper()
120 ldb_ch->next_bridge, bridge, in ldb_bridge_attach_helper()
142 struct ldb_channel *ldb_ch; in ldb_init_helper() local
153 ldb_ch = ldb->channel[i]; in ldb_init_helper()
154 ldb_ch->ldb = ldb; in ldb_init_helper()
155 ldb_ch->chno = i; in ldb_init_helper()
156 ldb_ch->is_available = true; in ldb_init_helper()
157 ldb_ch->np = child; in ldb_init_helper()
169 struct ldb_channel *ldb_ch; in ldb_find_next_bridge_helper() local
173 ldb_ch = ldb->channel[i]; in ldb_find_next_bridge_helper()
175 if (!ldb_ch->is_available) in ldb_find_next_bridge_helper()
178 ldb_ch->next_bridge = devm_drm_of_get_bridge(dev, ldb_ch->np, in ldb_find_next_bridge_helper()
180 if (IS_ERR(ldb_ch->next_bridge)) { in ldb_find_next_bridge_helper()
181 ret = PTR_ERR(ldb_ch->next_bridge); in ldb_find_next_bridge_helper()
197 struct ldb_channel *ldb_ch; in ldb_add_bridge_helper() local
201 ldb_ch = ldb->channel[i]; in ldb_add_bridge_helper()
203 if (!ldb_ch->is_available) in ldb_add_bridge_helper()
206 ldb_ch->bridge.driver_private = ldb_ch; in ldb_add_bridge_helper()
207 ldb_ch->bridge.funcs = bridge_funcs; in ldb_add_bridge_helper()
208 ldb_ch->bridge.of_node = ldb_ch->np; in ldb_add_bridge_helper()
210 drm_bridge_add(&ldb_ch->bridge); in ldb_add_bridge_helper()
217 struct ldb_channel *ldb_ch; in ldb_remove_bridge_helper() local
221 ldb_ch = ldb->channel[i]; in ldb_remove_bridge_helper()
223 if (!ldb_ch->is_available) in ldb_remove_bridge_helper()
226 drm_bridge_remove(&ldb_ch->bridge); in ldb_remove_bridge_helper()