Lines Matching refs:vrfb
170 void omap_vrfb_setup(struct vrfb *vrfb, unsigned long paddr, in omap_vrfb_setup() argument
177 u8 ctx = vrfb->context; in omap_vrfb_setup()
223 vrfb->xres = width; in omap_vrfb_setup()
224 vrfb->yres = height; in omap_vrfb_setup()
225 vrfb->xoffset = vrfb_width - width; in omap_vrfb_setup()
226 vrfb->yoffset = vrfb_height - height; in omap_vrfb_setup()
227 vrfb->bytespp = bytespp; in omap_vrfb_setup()
228 vrfb->yuv_mode = yuv_mode; in omap_vrfb_setup()
232 int omap_vrfb_map_angle(struct vrfb *vrfb, u16 height, u8 rot) in omap_vrfb_map_angle() argument
234 unsigned long size = height * OMAP_VRFB_LINE_LEN * vrfb->bytespp; in omap_vrfb_map_angle()
236 vrfb->vaddr[rot] = ioremap_wc(vrfb->paddr[rot], size); in omap_vrfb_map_angle()
238 if (!vrfb->vaddr[rot]) { in omap_vrfb_map_angle()
244 vrfb->vaddr[rot]); in omap_vrfb_map_angle()
250 void omap_vrfb_release_ctx(struct vrfb *vrfb) in omap_vrfb_release_ctx() argument
253 int ctx = vrfb->context; in omap_vrfb_release_ctx()
267 if (vrfb->paddr[rot]) { in omap_vrfb_release_ctx()
268 release_mem_region(vrfb->paddr[rot], OMAP_VRFB_SIZE); in omap_vrfb_release_ctx()
269 vrfb->paddr[rot] = 0; in omap_vrfb_release_ctx()
273 vrfb->context = 0xff; in omap_vrfb_release_ctx()
279 int omap_vrfb_request_ctx(struct vrfb *vrfb) in omap_vrfb_request_ctx() argument
304 memset(vrfb, 0, sizeof(*vrfb)); in omap_vrfb_request_ctx()
306 vrfb->context = ctx; in omap_vrfb_request_ctx()
314 omap_vrfb_release_ctx(vrfb); in omap_vrfb_request_ctx()
319 vrfb->paddr[rot] = paddr; in omap_vrfb_request_ctx()
321 DBG("VRFB %d/%d: %lx\n", ctx, rot*90, vrfb->paddr[rot]); in omap_vrfb_request_ctx()