Lines Matching refs:bytespp

94 static u32 get_image_width_roundup(u16 width, u8 bytespp)  in get_image_width_roundup()  argument
96 unsigned long stride = width * bytespp; in get_image_width_roundup()
100 return ceil_pages_per_stride * VRFB_PAGE_WIDTH / bytespp; in get_image_width_roundup()
108 static inline u32 get_extra_physical_size(u16 image_width_roundup, u8 bytespp) in get_extra_physical_size() argument
111 bytespp; in get_extra_physical_size()
128 u8 bytespp) in omap_vrfb_adjust_size() argument
130 *width = ALIGN(*width * bytespp, VRFB_PAGE_WIDTH) / bytespp; in omap_vrfb_adjust_size()
135 u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp) in omap_vrfb_min_phys_size() argument
138 bytespp); in omap_vrfb_min_phys_size()
143 return (width * height * bytespp) + get_extra_physical_size( in omap_vrfb_min_phys_size()
144 image_width_roundup, bytespp); in omap_vrfb_min_phys_size()
148 u16 omap_vrfb_max_height(u32 phys_size, u16 width, u8 bytespp) in omap_vrfb_max_height() argument
151 bytespp); in omap_vrfb_max_height()
158 extra = get_extra_physical_size(image_width_roundup, bytespp); in omap_vrfb_max_height()
163 height = (phys_size - extra) / (width * bytespp); in omap_vrfb_max_height()
172 unsigned bytespp, bool yuv_mode) in omap_vrfb_setup() argument
182 width, height, bytespp, yuv_mode); in omap_vrfb_setup()
187 bytespp *= 2; in omap_vrfb_setup()
191 if (bytespp == 4) in omap_vrfb_setup()
193 else if (bytespp == 2) in omap_vrfb_setup()
200 vrfb_width = ALIGN(width * bytespp, VRFB_PAGE_WIDTH) / bytespp; in omap_vrfb_setup()
203 DBG("vrfb w %u, h %u bytespp %d\n", vrfb_width, vrfb_height, bytespp); in omap_vrfb_setup()
227 vrfb->bytespp = bytespp; in omap_vrfb_setup()
234 unsigned long size = height * OMAP_VRFB_LINE_LEN * vrfb->bytespp; in omap_vrfb_map_angle()