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()
120 priv->afbcd.format); in meson_gxm_afbcd_setup()
200 static int meson_g12a_afbcd_pixel_fmt(u64 modifier, uint32_t format) in meson_g12a_afbcd_pixel_fmt() argument
202 switch (format) { in meson_g12a_afbcd_pixel_fmt()
224 DRM_DEBUG("unsupported afbc format[%08x]\n", format); in meson_g12a_afbcd_pixel_fmt()
229 static int meson_g12a_afbcd_bpp(uint32_t format) in meson_g12a_afbcd_bpp() argument
231 switch (format) { in meson_g12a_afbcd_bpp()
243 DRM_ERROR("unsupported afbc format[%08x]\n", format); in meson_g12a_afbcd_bpp()
248 static int meson_g12a_afbcd_fmt_to_blk_mode(u64 modifier, uint32_t format) in meson_g12a_afbcd_fmt_to_blk_mode() argument
250 switch (format) { in meson_g12a_afbcd_fmt_to_blk_mode()
262 DRM_DEBUG("unsupported afbc format[%08x]\n", format); in meson_g12a_afbcd_fmt_to_blk_mode()
267 static bool meson_g12a_afbcd_supported_fmt(u64 modifier, uint32_t format) in meson_g12a_afbcd_supported_fmt() argument
269 return meson_g12a_afbcd_pixel_fmt(modifier, format) >= 0; in meson_g12a_afbcd_supported_fmt()
331 u32 format = meson_g12a_afbcd_pixel_fmt(priv->afbcd.modifier, in meson_g12a_afbcd_setup() local
332 priv->afbcd.format); in meson_g12a_afbcd_setup()
335 format |= VPU_MAFBC_YUV_TRANSFORM; in meson_g12a_afbcd_setup()
338 format |= VPU_MAFBC_BLOCK_SPLIT; in meson_g12a_afbcd_setup()
341 format |= VPU_MAFBC_TILED_HEADER_EN; in meson_g12a_afbcd_setup()
345 format |= FIELD_PREP(VPU_MAFBC_SUPER_BLOCK_ASPECT, 1); in meson_g12a_afbcd_setup()
347 meson_rdma_writel_sync(priv, format, in meson_g12a_afbcd_setup()
375 (meson_g12a_afbcd_bpp(priv->afbcd.format) / 8), in meson_g12a_afbcd_setup()