Lines Matching refs:bytespp
105 static u32 get_image_width_roundup(u16 width, u8 bytespp) in get_image_width_roundup() argument
107 unsigned long stride = width * bytespp; in get_image_width_roundup()
111 return ceil_pages_per_stride * VRFB_PAGE_WIDTH / bytespp; in get_image_width_roundup()
119 static inline u32 get_extra_physical_size(u16 image_width_roundup, u8 bytespp) in get_extra_physical_size() argument
122 bytespp; in get_extra_physical_size()
139 u8 bytespp) in omap_vrfb_adjust_size() argument
141 *width = ALIGN(*width * bytespp, VRFB_PAGE_WIDTH) / bytespp; in omap_vrfb_adjust_size()
146 u32 omap_vrfb_min_phys_size(u16 width, u16 height, u8 bytespp) in omap_vrfb_min_phys_size() argument
149 bytespp); in omap_vrfb_min_phys_size()
154 return (width * height * bytespp) + get_extra_physical_size( in omap_vrfb_min_phys_size()
155 image_width_roundup, bytespp); in omap_vrfb_min_phys_size()
159 u16 omap_vrfb_max_height(u32 phys_size, u16 width, u8 bytespp) in omap_vrfb_max_height() argument
162 bytespp); in omap_vrfb_max_height()
169 extra = get_extra_physical_size(image_width_roundup, bytespp); in omap_vrfb_max_height()
174 height = (phys_size - extra) / (width * bytespp); in omap_vrfb_max_height()
183 unsigned bytespp, bool yuv_mode) in omap_vrfb_setup() argument
193 width, height, bytespp, yuv_mode); in omap_vrfb_setup()
198 bytespp *= 2; in omap_vrfb_setup()
202 if (bytespp == 4) in omap_vrfb_setup()
204 else if (bytespp == 2) in omap_vrfb_setup()
211 vrfb_width = ALIGN(width * bytespp, VRFB_PAGE_WIDTH) / bytespp; in omap_vrfb_setup()
214 DBG("vrfb w %u, h %u bytespp %d\n", vrfb_width, vrfb_height, bytespp); in omap_vrfb_setup()
238 vrfb->bytespp = bytespp; in omap_vrfb_setup()
245 unsigned long size = height * OMAP_VRFB_LINE_LEN * vrfb->bytespp; in omap_vrfb_map_angle()