Lines Matching refs:format
58 static int meson_gxm_afbcd_pixel_fmt(u64 modifier, uint32_t format) in meson_gxm_afbcd_pixel_fmt() argument
60 switch (format) { in meson_gxm_afbcd_pixel_fmt()
66 DRM_DEBUG("unsupported afbc format[%08x]\n", format); in meson_gxm_afbcd_pixel_fmt()
71 static bool meson_gxm_afbcd_supported_fmt(u64 modifier, uint32_t format) in meson_gxm_afbcd_supported_fmt() argument
79 return meson_gxm_afbcd_pixel_fmt(modifier, format) >= 0; in meson_gxm_afbcd_supported_fmt()
125 priv->afbcd.format); in meson_gxm_afbcd_setup()
206 static int meson_g12a_afbcd_pixel_fmt(u64 modifier, uint32_t format) in meson_g12a_afbcd_pixel_fmt() argument
208 switch (format) { in meson_g12a_afbcd_pixel_fmt()
230 DRM_DEBUG("unsupported afbc format[%08x]\n", format); in meson_g12a_afbcd_pixel_fmt()
235 static int meson_g12a_afbcd_bpp(uint32_t format) in meson_g12a_afbcd_bpp() argument
237 switch (format) { in meson_g12a_afbcd_bpp()
249 DRM_ERROR("unsupported afbc format[%08x]\n", format); in meson_g12a_afbcd_bpp()
254 static int meson_g12a_afbcd_fmt_to_blk_mode(u64 modifier, uint32_t format) in meson_g12a_afbcd_fmt_to_blk_mode() argument
256 switch (format) { in meson_g12a_afbcd_fmt_to_blk_mode()
268 DRM_DEBUG("unsupported afbc format[%08x]\n", format); in meson_g12a_afbcd_fmt_to_blk_mode()
273 static bool meson_g12a_afbcd_supported_fmt(u64 modifier, uint32_t format) in meson_g12a_afbcd_supported_fmt() argument
275 return meson_g12a_afbcd_pixel_fmt(modifier, format) >= 0; in meson_g12a_afbcd_supported_fmt()
343 u32 format = meson_g12a_afbcd_pixel_fmt(priv->afbcd.modifier, in meson_g12a_afbcd_setup() local
344 priv->afbcd.format); in meson_g12a_afbcd_setup()
347 format |= VPU_MAFBC_YUV_TRANSFORM; in meson_g12a_afbcd_setup()
350 format |= VPU_MAFBC_BLOCK_SPLIT; in meson_g12a_afbcd_setup()
353 format |= VPU_MAFBC_TILED_HEADER_EN; in meson_g12a_afbcd_setup()
357 format |= FIELD_PREP(VPU_MAFBC_SUPER_BLOCK_ASPECT, 1); in meson_g12a_afbcd_setup()
359 meson_rdma_writel_sync(priv, format, in meson_g12a_afbcd_setup()
387 (meson_g12a_afbcd_bpp(priv->afbcd.format) / 8), in meson_g12a_afbcd_setup()