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