Lines Matching refs:format

234 		const struct mdp_format *format;  in mdp5_plane_atomic_check_with_state()  local
238 format = to_mdp_format(msm_framebuffer_format(state->fb)); in mdp5_plane_atomic_check_with_state()
239 if (MDP_FORMAT_IS_YUV(format)) in mdp5_plane_atomic_check_with_state()
274 const struct mdp_format *format = in mdp5_plane_atomic_check_with_state() local
277 blkcfg = mdp5_smp_calculate(mdp5_kms->smp, format, in mdp5_plane_atomic_check_with_state()
636 static uint32_t get_scale_config(const struct mdp_format *format, in get_scale_config() argument
639 const struct drm_format_info *info = drm_format_info(format->base.pixel_format); in get_scale_config()
640 bool scaling = format->is_yuv ? true : (src != dst); in get_scale_config()
643 bool yuv = format->is_yuv; in get_scale_config()
667 static void calc_pixel_ext(const struct mdp_format *format, in calc_pixel_ext() argument
672 bool scaling = format->is_yuv ? true : (src != dst); in calc_pixel_ext()
690 const struct mdp_format *format, in mdp5_write_pixel_ext() argument
694 const struct drm_format_info *info = drm_format_info(format->base.pixel_format); in mdp5_write_pixel_ext()
702 if (format->is_yuv && i == COMP_1_2) { in mdp5_write_pixel_ext()
776 const struct mdp_format *format = in mdp5_hwpipe_mode_set() local
800 MDP5_PIPE_SRC_FORMAT_A_BPC(format->bpc_a) | in mdp5_hwpipe_mode_set()
801 MDP5_PIPE_SRC_FORMAT_R_BPC(format->bpc_r) | in mdp5_hwpipe_mode_set()
802 MDP5_PIPE_SRC_FORMAT_G_BPC(format->bpc_g) | in mdp5_hwpipe_mode_set()
803 MDP5_PIPE_SRC_FORMAT_B_BPC(format->bpc_b) | in mdp5_hwpipe_mode_set()
804 COND(format->alpha_enable, MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE) | in mdp5_hwpipe_mode_set()
805 MDP5_PIPE_SRC_FORMAT_CPP(format->cpp - 1) | in mdp5_hwpipe_mode_set()
806 MDP5_PIPE_SRC_FORMAT_UNPACK_COUNT(format->unpack_count - 1) | in mdp5_hwpipe_mode_set()
807 COND(format->unpack_tight, MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT) | in mdp5_hwpipe_mode_set()
808 MDP5_PIPE_SRC_FORMAT_FETCH_TYPE(format->fetch_type) | in mdp5_hwpipe_mode_set()
809 MDP5_PIPE_SRC_FORMAT_CHROMA_SAMP(format->chroma_sample)); in mdp5_hwpipe_mode_set()
812 MDP5_PIPE_SRC_UNPACK_ELEM0(format->unpack[0]) | in mdp5_hwpipe_mode_set()
813 MDP5_PIPE_SRC_UNPACK_ELEM1(format->unpack[1]) | in mdp5_hwpipe_mode_set()
814 MDP5_PIPE_SRC_UNPACK_ELEM2(format->unpack[2]) | in mdp5_hwpipe_mode_set()
815 MDP5_PIPE_SRC_UNPACK_ELEM3(format->unpack[3])); in mdp5_hwpipe_mode_set()
827 mdp5_write_pixel_ext(mdp5_kms, pipe, format, in mdp5_hwpipe_mode_set()
848 if (MDP_FORMAT_IS_YUV(format)) in mdp5_hwpipe_mode_set()
867 const struct mdp_format *format; in mdp5_plane_mode_set() local
882 nplanes = fb->format->num_planes; in mdp5_plane_mode_set()
888 format = to_mdp_format(msm_framebuffer_format(fb)); in mdp5_plane_mode_set()
889 pix_format = format->base.pixel_format; in mdp5_plane_mode_set()
935 calc_pixel_ext(format, src_w, crtc_w, step.x, in mdp5_plane_mode_set()
937 calc_pixel_ext(format, src_h, crtc_h, step.y, in mdp5_plane_mode_set()
944 config |= get_scale_config(format, src_w, crtc_w, true); in mdp5_plane_mode_set()
945 config |= get_scale_config(format, src_h, crtc_h, false); in mdp5_plane_mode_set()