Lines Matching defs:format

221 		const struct msm_format *format;
225 format = msm_framebuffer_format(state->fb);
226 if (MSM_FORMAT_IS_YUV(format))
261 const struct msm_format *format =
264 blkcfg = mdp5_smp_calculate(mdp5_kms->smp, format,
623 static uint32_t get_scale_config(const struct msm_format *format,
626 const struct drm_format_info *info = drm_format_info(format->pixel_format);
627 bool yuv = MSM_FORMAT_IS_YUV(format);
654 static void calc_pixel_ext(const struct msm_format *format,
659 bool scaling = MSM_FORMAT_IS_YUV(format) ? true : (src != dst);
677 const struct msm_format *format,
681 const struct drm_format_info *info = drm_format_info(format->pixel_format);
689 if (MSM_FORMAT_IS_YUV(format) && i == COMP_1_2) {
763 const struct msm_format *format =
787 MDP5_PIPE_SRC_FORMAT_A_BPC(format->bpc_a) |
788 MDP5_PIPE_SRC_FORMAT_R_BPC(format->bpc_r_cr) |
789 MDP5_PIPE_SRC_FORMAT_G_BPC(format->bpc_g_y) |
790 MDP5_PIPE_SRC_FORMAT_B_BPC(format->bpc_b_cb) |
791 COND(format->alpha_enable, MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE) |
792 MDP5_PIPE_SRC_FORMAT_CPP(format->bpp - 1) |
793 MDP5_PIPE_SRC_FORMAT_UNPACK_COUNT(format->unpack_count - 1) |
794 COND(format->flags & MSM_FORMAT_FLAG_UNPACK_TIGHT,
796 MDP5_PIPE_SRC_FORMAT_FETCH_TYPE(format->fetch_type) |
797 MDP5_PIPE_SRC_FORMAT_CHROMA_SAMP(format->chroma_sample));
800 MDP5_PIPE_SRC_UNPACK_ELEM0(format->element[0]) |
801 MDP5_PIPE_SRC_UNPACK_ELEM1(format->element[1]) |
802 MDP5_PIPE_SRC_UNPACK_ELEM2(format->element[2]) |
803 MDP5_PIPE_SRC_UNPACK_ELEM3(format->element[3]));
815 mdp5_write_pixel_ext(mdp5_kms, pipe, format,
836 if (MSM_FORMAT_IS_YUV(format))
855 const struct msm_format *format;
870 nplanes = fb->format->num_planes;
876 format = msm_framebuffer_format(fb);
877 pix_format = format->pixel_format;
923 calc_pixel_ext(format, src_w, crtc_w, step.x,
925 calc_pixel_ext(format, src_h, crtc_h, step.y,
932 config |= get_scale_config(format, src_w, crtc_w, true);
933 config |= get_scale_config(format, src_h, crtc_h, false);