Lines Matching refs:ldb
47 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_mode_set_helper() local
51 ldb->ldb_ctrl |= LDB_SPLIT_MODE_EN; in ldb_bridge_mode_set_helper()
58 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH0_24; in ldb_bridge_mode_set_helper()
60 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH1_24; in ldb_bridge_mode_set_helper()
64 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH0_24 | in ldb_bridge_mode_set_helper()
67 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH1_24 | in ldb_bridge_mode_set_helper()
76 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_enable_helper() local
82 regmap_write(ldb->regmap, ldb->ctrl_reg, ldb->ldb_ctrl); in ldb_bridge_enable_helper()
88 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_disable_helper() local
92 ldb->ldb_ctrl &= ~LDB_CH0_MODE_EN_MASK; in ldb_bridge_disable_helper()
94 ldb->ldb_ctrl &= ~LDB_CH1_MODE_EN_MASK; in ldb_bridge_disable_helper()
96 regmap_write(ldb->regmap, ldb->ctrl_reg, ldb->ldb_ctrl); in ldb_bridge_disable_helper()
103 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_attach_helper() local
106 DRM_DEV_ERROR(ldb->dev, in ldb_bridge_attach_helper()
112 DRM_DEV_ERROR(ldb->dev, "missing encoder\n"); in ldb_bridge_attach_helper()
121 int ldb_init_helper(struct ldb *ldb) in ldb_init_helper() argument
123 struct device *dev = ldb->dev; in ldb_init_helper()
129 ldb->regmap = syscon_node_to_regmap(np->parent); in ldb_init_helper()
130 if (IS_ERR(ldb->regmap)) { in ldb_init_helper()
131 ret = PTR_ERR(ldb->regmap); in ldb_init_helper()
149 ldb_ch = ldb->channel[i]; in ldb_init_helper()
150 ldb_ch->ldb = ldb; in ldb_init_helper()
155 ldb->available_ch_cnt++; in ldb_init_helper()
161 int ldb_find_next_bridge_helper(struct ldb *ldb) in ldb_find_next_bridge_helper() argument
163 struct device *dev = ldb->dev; in ldb_find_next_bridge_helper()
168 ldb_ch = ldb->channel[i]; in ldb_find_next_bridge_helper()
188 void ldb_add_bridge_helper(struct ldb *ldb, in ldb_add_bridge_helper() argument
195 ldb_ch = ldb->channel[i]; in ldb_add_bridge_helper()
208 void ldb_remove_bridge_helper(struct ldb *ldb) in ldb_remove_bridge_helper() argument
214 ldb_ch = ldb->channel[i]; in ldb_remove_bridge_helper()