Lines Matching refs:vrfb
169 void omap_vrfb_setup(struct vrfb *vrfb, unsigned long paddr, in omap_vrfb_setup() argument
176 u8 ctx = vrfb->context; in omap_vrfb_setup()
222 vrfb->xres = width; in omap_vrfb_setup()
223 vrfb->yres = height; in omap_vrfb_setup()
224 vrfb->xoffset = vrfb_width - width; in omap_vrfb_setup()
225 vrfb->yoffset = vrfb_height - height; in omap_vrfb_setup()
226 vrfb->bytespp = bytespp; in omap_vrfb_setup()
227 vrfb->yuv_mode = yuv_mode; in omap_vrfb_setup()
231 int omap_vrfb_map_angle(struct vrfb *vrfb, u16 height, u8 rot) in omap_vrfb_map_angle() argument
233 unsigned long size = height * OMAP_VRFB_LINE_LEN * vrfb->bytespp; in omap_vrfb_map_angle()
235 vrfb->vaddr[rot] = ioremap_wc(vrfb->paddr[rot], size); in omap_vrfb_map_angle()
237 if (!vrfb->vaddr[rot]) { in omap_vrfb_map_angle()
243 vrfb->vaddr[rot]); in omap_vrfb_map_angle()
249 void omap_vrfb_release_ctx(struct vrfb *vrfb) in omap_vrfb_release_ctx() argument
252 int ctx = vrfb->context; in omap_vrfb_release_ctx()
266 if (vrfb->paddr[rot]) { in omap_vrfb_release_ctx()
267 release_mem_region(vrfb->paddr[rot], OMAP_VRFB_SIZE); in omap_vrfb_release_ctx()
268 vrfb->paddr[rot] = 0; in omap_vrfb_release_ctx()
272 vrfb->context = 0xff; in omap_vrfb_release_ctx()
278 int omap_vrfb_request_ctx(struct vrfb *vrfb) in omap_vrfb_request_ctx() argument
303 memset(vrfb, 0, sizeof(*vrfb)); in omap_vrfb_request_ctx()
305 vrfb->context = ctx; in omap_vrfb_request_ctx()
313 omap_vrfb_release_ctx(vrfb); in omap_vrfb_request_ctx()
318 vrfb->paddr[rot] = paddr; in omap_vrfb_request_ctx()
320 DBG("VRFB %d/%d: %lx\n", ctx, rot*90, vrfb->paddr[rot]); in omap_vrfb_request_ctx()