Lines Matching refs:format

285 	const struct mdp_format *format;  in mdp5_plane_atomic_check()  local
292 format = to_mdp_format(msm_framebuffer_format(state->fb)); in mdp5_plane_atomic_check()
293 if (MDP_FORMAT_IS_YUV(format) && in mdp5_plane_atomic_check()
551 static uint32_t get_scale_config(const struct mdp_format *format, in get_scale_config() argument
554 bool scaling = format->is_yuv ? true : (src != dst); in get_scale_config()
555 uint32_t sub, pix_fmt = format->base.pixel_format; in get_scale_config()
557 bool yuv = format->is_yuv; in get_scale_config()
582 static void calc_pixel_ext(const struct mdp_format *format, in calc_pixel_ext() argument
587 bool scaling = format->is_yuv ? true : (src != dst); in calc_pixel_ext()
605 const struct mdp_format *format, in mdp5_write_pixel_ext() argument
609 uint32_t pix_fmt = format->base.pixel_format; in mdp5_write_pixel_ext()
617 if (format->is_yuv && i == COMP_1_2) { in mdp5_write_pixel_ext()
676 const struct mdp_format *format; in mdp5_plane_mode_set() local
694 format = to_mdp_format(msm_framebuffer_format(fb)); in mdp5_plane_mode_set()
695 pix_format = format->base.pixel_format; in mdp5_plane_mode_set()
710 mdp5_plane->pipe, format, src_w, false); in mdp5_plane_mode_set()
733 calc_pixel_ext(format, src_w, crtc_w, phasex_step, in mdp5_plane_mode_set()
735 calc_pixel_ext(format, src_h, crtc_h, phasey_step, in mdp5_plane_mode_set()
742 config |= get_scale_config(format, src_w, crtc_w, true); in mdp5_plane_mode_set()
743 config |= get_scale_config(format, src_h, crtc_h, false); in mdp5_plane_mode_set()
772 MDP5_PIPE_SRC_FORMAT_A_BPC(format->bpc_a) | in mdp5_plane_mode_set()
773 MDP5_PIPE_SRC_FORMAT_R_BPC(format->bpc_r) | in mdp5_plane_mode_set()
774 MDP5_PIPE_SRC_FORMAT_G_BPC(format->bpc_g) | in mdp5_plane_mode_set()
775 MDP5_PIPE_SRC_FORMAT_B_BPC(format->bpc_b) | in mdp5_plane_mode_set()
776 COND(format->alpha_enable, MDP5_PIPE_SRC_FORMAT_ALPHA_ENABLE) | in mdp5_plane_mode_set()
777 MDP5_PIPE_SRC_FORMAT_CPP(format->cpp - 1) | in mdp5_plane_mode_set()
778 MDP5_PIPE_SRC_FORMAT_UNPACK_COUNT(format->unpack_count - 1) | in mdp5_plane_mode_set()
779 COND(format->unpack_tight, MDP5_PIPE_SRC_FORMAT_UNPACK_TIGHT) | in mdp5_plane_mode_set()
780 MDP5_PIPE_SRC_FORMAT_FETCH_TYPE(format->fetch_type) | in mdp5_plane_mode_set()
781 MDP5_PIPE_SRC_FORMAT_CHROMA_SAMP(format->chroma_sample)); in mdp5_plane_mode_set()
784 MDP5_PIPE_SRC_UNPACK_ELEM0(format->unpack[0]) | in mdp5_plane_mode_set()
785 MDP5_PIPE_SRC_UNPACK_ELEM1(format->unpack[1]) | in mdp5_plane_mode_set()
786 MDP5_PIPE_SRC_UNPACK_ELEM2(format->unpack[2]) | in mdp5_plane_mode_set()
787 MDP5_PIPE_SRC_UNPACK_ELEM3(format->unpack[3])); in mdp5_plane_mode_set()
799 mdp5_write_pixel_ext(mdp5_kms, pipe, format, in mdp5_plane_mode_set()
819 if (MDP_FORMAT_IS_YUV(format)) in mdp5_plane_mode_set()