Lines Matching refs:bytespp
93 static u32 get_image_width_roundup(u16 width, u8 bytespp) in get_image_width_roundup() argument
95 unsigned long stride = width * bytespp; in get_image_width_roundup()
99 return ceil_pages_per_stride * VRFB_PAGE_WIDTH / bytespp; in get_image_width_roundup()
107 static inline u32 get_extra_physical_size(u16 image_width_roundup, u8 bytespp) in get_extra_physical_size() argument
110 bytespp; in get_extra_physical_size()
127 u8 bytespp) in omap_vrfb_adjust_size() argument
129 *width = ALIGN(*width * bytespp, VRFB_PAGE_WIDTH) / bytespp; in omap_vrfb_adjust_size()
134 u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp) in omap_vrfb_min_phys_size() argument
137 bytespp); in omap_vrfb_min_phys_size()
142 return (width * height * bytespp) + get_extra_physical_size( in omap_vrfb_min_phys_size()
143 image_width_roundup, bytespp); in omap_vrfb_min_phys_size()
147 u16 omap_vrfb_max_height(u32 phys_size, u16 width, u8 bytespp) in omap_vrfb_max_height() argument
150 bytespp); in omap_vrfb_max_height()
157 extra = get_extra_physical_size(image_width_roundup, bytespp); in omap_vrfb_max_height()
162 height = (phys_size - extra) / (width * bytespp); in omap_vrfb_max_height()
171 unsigned bytespp, bool yuv_mode) in omap_vrfb_setup() argument
181 width, height, bytespp, yuv_mode); in omap_vrfb_setup()
186 bytespp *= 2; in omap_vrfb_setup()
190 if (bytespp == 4) in omap_vrfb_setup()
192 else if (bytespp == 2) in omap_vrfb_setup()
199 vrfb_width = ALIGN(width * bytespp, VRFB_PAGE_WIDTH) / bytespp; in omap_vrfb_setup()
202 DBG("vrfb w %u, h %u bytespp %d\n", vrfb_width, vrfb_height, bytespp); in omap_vrfb_setup()
226 vrfb->bytespp = bytespp; in omap_vrfb_setup()
233 unsigned long size = height * OMAP_VRFB_LINE_LEN * vrfb->bytespp; in omap_vrfb_map_angle()