Lines Matching refs:MPP_ALIGN
235 case SYS_CFG_ALIGN_8: { return MPP_ALIGN(val, 8);}; in mpp_sys_cfg_align()
236 case SYS_CFG_ALIGN_16: { return MPP_ALIGN(val, 16);}; in mpp_sys_cfg_align()
237 case SYS_CFG_ALIGN_32: { return MPP_ALIGN(val, 32);}; in mpp_sys_cfg_align()
238 case SYS_CFG_ALIGN_64: { return MPP_ALIGN(val, 64);}; in mpp_sys_cfg_align()
239 case SYS_CFG_ALIGN_128: { return MPP_ALIGN(val, 128);}; in mpp_sys_cfg_align()
240 case SYS_CFG_ALIGN_256: { return MPP_ALIGN(val, 256);}; in mpp_sys_cfg_align()
241 case SYS_CFG_ALIGN_256_ODD: {return MPP_ALIGN(val, 256) | 256;}; in mpp_sys_cfg_align()
243 val = MPP_ALIGN(val, 64); in mpp_sys_cfg_align()
247 return ((MPP_ALIGN(val, 128) | 128) + 64); in mpp_sys_cfg_align()
249 case SYS_CFG_ALIGN_LEN_DEFAULT: { return (9 * MPP_ALIGN(val, 16) / 5);}; in mpp_sys_cfg_align()
251 case SYS_CFG_ALIGN_LEN_422: { return (2 * MPP_ALIGN(val, 16));}; in mpp_sys_cfg_align()
252 case SYS_CFG_ALIGN_LEN_444: { return (3 * MPP_ALIGN(val, 16));}; in mpp_sys_cfg_align()
253 case SYS_CFG_ALIGN_LEN_422_AVC: { return ((5 * MPP_ALIGN(val, 16)) / 2);}; in mpp_sys_cfg_align()
254 case SYS_CFG_ALIGN_LEN_420_AV1: { return (2 * MPP_ALIGN(val, 128));}; in mpp_sys_cfg_align()
255 case SYS_CFG_ALIGN_LEN_422_AV1: { return ((5 * MPP_ALIGN(val, 64)) / 2);}; in mpp_sys_cfg_align()
274 width = MPP_ALIGN(width, 16); in get_afbc_min_size()
275 height = MPP_ALIGN(height, 16); in get_afbc_min_size()
280 size = MPP_ALIGN(n_blocks * AFBC_HEADER_SIZE, hdr_alignment); in get_afbc_min_size()
281 size += n_blocks * MPP_ALIGN(bpp * AFBC_SUPERBLOCK_PIXELS / 8, in get_afbc_min_size()
334 aligned_pixel = MPP_ALIGN(cfg->width, 64); in mpp_sys_dec_buf_chk_proc()
335 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
341 aligned_pixel = MPP_ALIGN(cfg->width, 64); in mpp_sys_dec_buf_chk_proc()
342 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
345 aligned_pixel = MPP_ALIGN(cfg->width, 64); in mpp_sys_dec_buf_chk_proc()
346 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 64); in mpp_sys_dec_buf_chk_proc()
349 aligned_pixel = MPP_ALIGN(cfg->width, 16); in mpp_sys_dec_buf_chk_proc()
350 aligned_height = MPP_ALIGN(aligned_height ? aligned_height : cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
357 aligned_pixel_byte = (MPP_ALIGN(aligned_pixel, 256) | 256) * depth >> 3; in mpp_sys_dec_buf_chk_proc()
359 aligned_pixel_byte = MPP_ALIGN(aligned_pixel, 64) * depth >> 3; in mpp_sys_dec_buf_chk_proc()
367 aligned_byte = MPP_ALIGN(aligned_pixel_byte, 64); in mpp_sys_dec_buf_chk_proc()
370 aligned_byte = MPP_ALIGN(aligned_pixel_byte, 64); in mpp_sys_dec_buf_chk_proc()
373 aligned_byte = MPP_ALIGN(aligned_pixel_byte, 64); in mpp_sys_dec_buf_chk_proc()
376 aligned_byte = MPP_ALIGN(aligned_pixel_byte, 16); in mpp_sys_dec_buf_chk_proc()
379 aligned_byte = MPP_ALIGN(aligned_pixel_byte, 16); in mpp_sys_dec_buf_chk_proc()
426 aligned_pixel = MPP_ALIGN(cfg->width, 64); in mpp_sys_dec_buf_chk_proc()
427 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc()
435 aligned_pixel = MPP_ALIGN(cfg->width, 16); in mpp_sys_dec_buf_chk_proc()
436 aligned_height = MPP_ALIGN(cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
440 aligned_height = MPP_ALIGN(cfg->height, 64); in mpp_sys_dec_buf_chk_proc()
442 aligned_height = MPP_ALIGN(cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
444 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc()
447 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc()
453 aligned_height = MPP_ALIGN(cfg->height, 16); in mpp_sys_dec_buf_chk_proc()
456 aligned_pixel = MPP_ALIGN(cfg->width, 64); in mpp_sys_dec_buf_chk_proc()
457 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc()
460 aligned_height = MPP_ALIGN(cfg->height, 8); in mpp_sys_dec_buf_chk_proc()