• Home
  • Raw
  • Download

Lines Matching refs:path

135 	struct mmp_path *path = overlay->path;  in dmafetch_set_fmt()  local
136 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
139 writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt()
144 struct lcd_regs *regs = path_regs(overlay->path); in overlay_set_win()
177 struct mmp_path *path = overlay->path; in dmafetch_onoff() local
180 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
183 writel(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff()
187 static void path_enabledisable(struct mmp_path *path, int on) in path_enabledisable() argument
190 mutex_lock(&path->access_ok); in path_enabledisable()
191 tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); in path_enabledisable()
196 writel_relaxed(tmp, ctrl_regs(path) + LCD_SCLK(path)); in path_enabledisable()
197 mutex_unlock(&path->access_ok); in path_enabledisable()
200 static void path_onoff(struct mmp_path *path, int on) in path_onoff() argument
202 if (path->status == on) { in path_onoff()
203 dev_info(path->dev, "path %s is already %s\n", in path_onoff()
204 path->name, stat_name(path->status)); in path_onoff()
209 path_enabledisable(path, 1); in path_onoff()
211 if (path->panel && path->panel->set_onoff) in path_onoff()
212 path->panel->set_onoff(path->panel, 1); in path_onoff()
214 if (path->panel && path->panel->set_onoff) in path_onoff()
215 path->panel->set_onoff(path->panel, 0); in path_onoff()
217 path_enabledisable(path, 0); in path_onoff()
219 path->status = on; in path_onoff()
226 overlay->path->name, stat_name(overlay->status)); in overlay_set_onoff()
231 if (overlay->path->ops.check_status(overlay->path) in overlay_set_onoff()
232 != overlay->path->status) in overlay_set_onoff()
233 path_onoff(overlay->path, on); in overlay_set_onoff()
243 struct lcd_regs *regs = path_regs(overlay->path); in overlay_set_addr()
258 static void path_set_mode(struct mmp_path *path, struct mmp_mode *mode) in path_set_mode() argument
260 struct lcd_regs *regs = path_regs(path); in path_set_mode()
262 link_config = path_to_path_plat(path)->link_config, in path_set_mode()
263 dsi_rbswap = path_to_path_plat(path)->link_config; in path_set_mode()
266 memcpy(&path->mode, mode, sizeof(struct mmp_mode)); in path_set_mode()
268 mutex_lock(&path->access_ok); in path_set_mode()
271 tmp = readl_relaxed(ctrl_regs(path) + intf_ctrl(path->id)) & 0x1; in path_set_mode()
276 writel_relaxed(tmp, ctrl_regs(path) + intf_ctrl(path->id)); in path_set_mode()
279 tmp = readl_relaxed(ctrl_regs(path) + intf_rbswap_ctrl(path->id)) & in path_set_mode()
282 writel_relaxed(tmp, ctrl_regs(path) + intf_rbswap_ctrl(path->id)); in path_set_mode()
296 if (path->output_type == PATH_OUT_DSI) in path_set_mode()
304 sclk_src = clk_get_rate(path_to_ctrl(path)->clk); in path_set_mode()
309 dev_info(path->dev, "%s sclk_src %d sclk_div 0x%x pclk %d\n", in path_set_mode()
312 tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); in path_set_mode()
315 writel_relaxed(tmp, ctrl_regs(path) + LCD_SCLK(path)); in path_set_mode()
317 mutex_unlock(&path->access_ok); in path_set_mode()
349 static void path_set_default(struct mmp_path *path) in path_set_default() argument
351 struct lcd_regs *regs = path_regs(path); in path_set_default()
354 path_config = path_to_path_plat(path)->path_config; in path_set_default()
357 if (PATH_OUT_PARALLEL == path->output_type) { in path_set_default()
359 tmp = readl_relaxed(ctrl_regs(path) + SPU_IOPAD_CONTROL); in path_set_default()
362 writel_relaxed(tmp, ctrl_regs(path) + SPU_IOPAD_CONTROL); in path_set_default()
366 tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); in path_set_default()
369 writel_relaxed(tmp, ctrl_regs(path) + LCD_SCLK(path)); in path_set_default()
379 writel_relaxed(dma_ctrl1, ctrl_regs(path) + dma_ctrl(1, path->id)); in path_set_default()
392 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in path_set_default()
394 if (PATH_TV == path->id) in path_set_default()
396 writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in path_set_default()
404 struct mmp_path *path = NULL; in path_init() local
424 path = mmp_register_path(path_info); in path_init()
425 if (!path) { in path_init()
429 path_plat->path = path; in path_init()
433 path_set_default(path); in path_init()
444 if (path_plat->path) in path_deinit()
445 mmp_unregister_path(path_plat->path); in path_deinit()