• Home
  • Raw
  • Download

Lines Matching refs:overlay

61 static u32 fmt_to_reg(struct mmp_overlay *overlay, int pix_fmt)  in fmt_to_reg()  argument
65 vid = overlay_is_vid(overlay); in fmt_to_reg()
132 static void dmafetch_set_fmt(struct mmp_overlay *overlay) in dmafetch_set_fmt() argument
135 struct mmp_path *path = overlay->path; in dmafetch_set_fmt()
137 tmp &= ~dma_mask(overlay_is_vid(overlay)); in dmafetch_set_fmt()
138 tmp |= fmt_to_reg(overlay, overlay->win.pix_fmt); in dmafetch_set_fmt()
142 static void overlay_set_win(struct mmp_overlay *overlay, struct mmp_win *win) in overlay_set_win() argument
144 struct lcd_regs *regs = path_regs(overlay->path); in overlay_set_win()
147 memcpy(&overlay->win, win, sizeof(struct mmp_win)); in overlay_set_win()
149 mutex_lock(&overlay->access_ok); in overlay_set_win()
151 if (overlay_is_vid(overlay)) { in overlay_set_win()
167 dmafetch_set_fmt(overlay); in overlay_set_win()
168 mutex_unlock(&overlay->access_ok); in overlay_set_win()
171 static void dmafetch_onoff(struct mmp_overlay *overlay, int on) in dmafetch_onoff() argument
173 u32 mask = overlay_is_vid(overlay) ? CFG_DMA_ENA_MASK : in dmafetch_onoff()
175 u32 enable = overlay_is_vid(overlay) ? CFG_DMA_ENA(1) : CFG_GRA_ENA(1); in dmafetch_onoff()
177 struct mmp_path *path = overlay->path; in dmafetch_onoff()
179 mutex_lock(&overlay->access_ok); in dmafetch_onoff()
184 mutex_unlock(&overlay->access_ok); in dmafetch_onoff()
222 static void overlay_set_onoff(struct mmp_overlay *overlay, int on) in overlay_set_onoff() argument
224 if (overlay->status == on) { in overlay_set_onoff()
225 dev_info(overlay_to_ctrl(overlay)->dev, "overlay %s is already %s\n", in overlay_set_onoff()
226 overlay->path->name, stat_name(overlay->status)); in overlay_set_onoff()
229 overlay->status = on; in overlay_set_onoff()
230 dmafetch_onoff(overlay, on); 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()
236 static void overlay_set_fetch(struct mmp_overlay *overlay, int fetch_id) in overlay_set_fetch() argument
238 overlay->dmafetch_id = fetch_id; in overlay_set_fetch()
241 static int overlay_set_addr(struct mmp_overlay *overlay, struct mmp_addr *addr) in overlay_set_addr() argument
243 struct lcd_regs *regs = path_regs(overlay->path); in overlay_set_addr()
246 memcpy(&overlay->addr, addr, sizeof(struct mmp_addr)); in overlay_set_addr()
248 if (overlay_is_vid(overlay)) { in overlay_set_addr()
255 return overlay->addr.phys[0]; in overlay_set_addr()