Lines Matching refs:ldb

44 	struct ldb base;
59 static inline struct imx8qxp_ldb *base_to_imx8qxp_ldb(struct ldb *base) in base_to_imx8qxp_ldb()
87 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_check() local
90 struct imx8qxp_ldb *imx8qxp_ldb = base_to_imx8qxp_ldb(ldb); in imx8qxp_ldb_bridge_atomic_check()
129 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_mode_set() local
132 struct imx8qxp_ldb *imx8qxp_ldb = base_to_imx8qxp_ldb(ldb); in imx8qxp_ldb_bridge_mode_set()
170 ldb->ldb_ctrl &= ~LDB_CH_SEL; in imx8qxp_ldb_bridge_mode_set()
172 ldb->ldb_ctrl |= LDB_CH_SEL; in imx8qxp_ldb_bridge_mode_set()
176 ldb->ldb_ctrl |= LDB_DI0_VS_POL_ACT_LOW; in imx8qxp_ldb_bridge_mode_set()
178 ldb->ldb_ctrl |= LDB_DI1_VS_POL_ACT_LOW; in imx8qxp_ldb_bridge_mode_set()
185 regmap_write(ldb->regmap, ldb->ctrl_reg, ldb->ldb_ctrl); in imx8qxp_ldb_bridge_mode_set()
190 regmap_update_bits(ldb->regmap, SS_CTRL, CH_VSYNC_M(chno), 0); in imx8qxp_ldb_bridge_mode_set()
192 regmap_update_bits(ldb->regmap, SS_CTRL, in imx8qxp_ldb_bridge_mode_set()
196 regmap_update_bits(ldb->regmap, SS_CTRL, CH_HSYNC_M(chno), 0); in imx8qxp_ldb_bridge_mode_set()
198 regmap_update_bits(ldb->regmap, SS_CTRL, in imx8qxp_ldb_bridge_mode_set()
210 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_pre_enable() local
211 struct imx8qxp_ldb *imx8qxp_ldb = base_to_imx8qxp_ldb(ldb); in imx8qxp_ldb_bridge_atomic_pre_enable()
227 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_enable() local
230 struct imx8qxp_ldb *imx8qxp_ldb = base_to_imx8qxp_ldb(ldb); in imx8qxp_ldb_bridge_atomic_enable()
237 ldb->ldb_ctrl &= ~LDB_CH0_MODE_EN_MASK; in imx8qxp_ldb_bridge_atomic_enable()
238 ldb->ldb_ctrl |= imx8qxp_ldb_ch->di_id == 0 ? in imx8qxp_ldb_bridge_atomic_enable()
242 ldb->ldb_ctrl &= ~LDB_CH1_MODE_EN_MASK; in imx8qxp_ldb_bridge_atomic_enable()
243 ldb->ldb_ctrl |= imx8qxp_ldb_ch->di_id == 0 ? in imx8qxp_ldb_bridge_atomic_enable()
262 struct ldb *ldb = ldb_ch->ldb; in imx8qxp_ldb_bridge_atomic_disable() local
265 struct imx8qxp_ldb *imx8qxp_ldb = base_to_imx8qxp_ldb(ldb); in imx8qxp_ldb_bridge_atomic_disable()
583 struct ldb *ldb; in imx8qxp_ldb_probe() local
611 ldb = &imx8qxp_ldb->base; in imx8qxp_ldb_probe()
612 ldb->dev = dev; in imx8qxp_ldb_probe()
613 ldb->ctrl_reg = 0xe0; in imx8qxp_ldb_probe()
616 ldb->channel[i] = &imx8qxp_ldb->channel[i].base; in imx8qxp_ldb_probe()
618 ret = ldb_init_helper(ldb); in imx8qxp_ldb_probe()
622 if (ldb->available_ch_cnt == 0) { in imx8qxp_ldb_probe()
625 } else if (ldb->available_ch_cnt > 1) { in imx8qxp_ldb_probe()
627 ldb->available_ch_cnt); in imx8qxp_ldb_probe()
650 ret = ldb_find_next_bridge_helper(ldb); in imx8qxp_ldb_probe()
665 ldb_add_bridge_helper(ldb, &imx8qxp_ldb_bridge_funcs); in imx8qxp_ldb_probe()
673 struct ldb *ldb = &imx8qxp_ldb->base; in imx8qxp_ldb_remove() local
675 ldb_remove_bridge_helper(ldb); in imx8qxp_ldb_remove()
690 struct ldb *ldb = &imx8qxp_ldb->base; in imx8qxp_ldb_runtime_resume() local
693 regmap_write(ldb->regmap, ldb->ctrl_reg, 0); in imx8qxp_ldb_runtime_resume()