Home
last modified time | relevance | path

Searched refs:modifier (Results 1 – 25 of 73) sorted by relevance

123

/drivers/gpu/drm/arm/display/komeda/
Dkomeda_format_caps.c14 u32 fourcc, u64 modifier) in komeda_get_format_caps() argument
17 u64 afbc_features = modifier & ~(AFBC_FORMAT_MOD_BLOCK_SIZE_MASK); in komeda_get_format_caps()
18 u32 afbc_layout = modifier & AFBC_FORMAT_MOD_BLOCK_SIZE_MASK; in komeda_get_format_caps()
27 if ((modifier == 0ULL) && (caps->supported_afbc_layouts == 0)) in komeda_get_format_caps()
38 u32 komeda_get_afbc_format_bpp(const struct drm_format_info *info, u64 modifier) in komeda_get_afbc_format_bpp() argument
96 u32 layer_type, u32 fourcc, u64 modifier, in komeda_format_mod_supported() argument
101 caps = komeda_get_format_caps(table, fourcc, modifier); in komeda_format_mod_supported()
109 return table->format_mod_supported(caps, layer_type, modifier, in komeda_format_mod_supported()
Dkomeda_format_caps.h80 u32 layer_type, u64 modifier, u32 rot);
85 static inline const char *komeda_get_format_name(u32 fourcc, u64 modifier) in komeda_get_format_name() argument
91 drm_get_format_name(fourcc, &buf), modifier); in komeda_get_format_name()
98 u32 fourcc, u64 modifier);
101 u64 modifier);
109 u32 layer_type, u32 fourcc, u64 modifier,
Dkomeda_framebuffer.c55 switch (fb->modifier & AFBC_FORMAT_MOD_BLOCK_SIZE_MASK) { in komeda_fb_afbc_size_check()
66 fb->modifier & AFBC_FORMAT_MOD_BLOCK_SIZE_MASK); in komeda_fb_afbc_size_check()
71 if (fb->modifier & AFBC_FORMAT_MOD_TILED) { in komeda_fb_afbc_size_check()
91 bpp = komeda_get_afbc_format_bpp(info, fb->modifier); in komeda_fb_afbc_size_check()
172 mode_cmd->modifier[0]); in komeda_fb_create()
182 if (kfb->base.modifier) in komeda_fb_create()
253 if (!fb->modifier) { in komeda_fb_get_pixel_addr()
273 u64 modifier = fb->modifier; in komeda_fb_is_layer_supported() local
277 fourcc, modifier, rot); in komeda_fb_is_layer_supported()
280 layer_type, komeda_get_format_name(fourcc, modifier)); in komeda_fb_is_layer_supported()
Dkomeda_plane.c55 fb->modifier)); in komeda_plane_init_data_flow()
185 u32 format, u64 modifier) in komeda_plane_format_mod_supported() argument
192 format, modifier, 0); in komeda_plane_format_mod_supported()
/drivers/gpu/drm/arm/
Dmalidp_planes.c149 u32 format, u64 modifier) in malidp_format_mod_supported() argument
156 if (WARN_ON(modifier == DRM_FORMAT_MOD_INVALID)) in malidp_format_mod_supported()
160 if (modifier == DRM_FORMAT_MOD_LINEAR) { in malidp_format_mod_supported()
168 if ((modifier >> 56) != DRM_FORMAT_MOD_VENDOR_ARM) { in malidp_format_mod_supported()
173 if (modifier & in malidp_format_mod_supported()
182 if (WARN_ON_ONCE((modifier & AFBC_SPLIT) && !(modifier & AFBC_SPARSE))) in malidp_format_mod_supported()
186 if (WARN_ON_ONCE((modifier & AFBC_CBR) && (modifier & AFBC_YTR))) in malidp_format_mod_supported()
190 if (*modifiers == modifier) in malidp_format_mod_supported()
219 if (!(info->is_yuv) != !!(modifier & AFBC_FORMAT_MOD_YTR)) { in malidp_format_mod_supported()
226 if (modifier & AFBC_SPLIT) { in malidp_format_mod_supported()
[all …]
Dmalidp_mw.c145 if (fb->modifier) { in malidp_mw_encoder_atomic_check()
152 fb->format->format, !!fb->modifier); in malidp_mw_encoder_atomic_check()
/drivers/gpu/drm/selftests/
Dtest-drm_framebuffer.c92 .flags = DRM_MODE_FB_MODIFIERS, .modifier = { AFBC_FORMAT_MOD_YTR, 0, 0 },
99 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 0, 0 },
131 .handles = { 1, 1, 0 }, .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 0, 0 },
138 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 0, 0 },
145 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 0 },
151 .handles = { 1, 1, 0 }, .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE,
159 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, DRM_FORMAT_MOD_SAMSUNG_64_32_TILE,
212 .handles = { 1, 1, 1 }, .modifier = { AFBC_FORMAT_MOD_SPARSE, 0, 0 },
218 .handles = { 1, 1, 1 }, .modifier = { AFBC_FORMAT_MOD_SPARSE, AFBC_FORMAT_MOD_SPARSE, 0 },
225 .modifier = { AFBC_FORMAT_MOD_SPARSE, AFBC_FORMAT_MOD_SPARSE, 0 },
[all …]
/drivers/gpu/drm/i915/display/
Dintel_sprite.c273 fb->modifier, rotation); in intel_plane_check_stride()
342 u32 pixel_format, u64 modifier, in skl_plane_max_stride() argument
890 if (fb->modifier == I915_FORMAT_MOD_X_TILED) in vlv_sprite_ctl()
1094 if (fb->modifier == I915_FORMAT_MOD_X_TILED) in ivb_sprite_ctl()
1262 u32 pixel_format, u64 modifier, in g4x_sprite_max_stride() argument
1326 if (fb->modifier == I915_FORMAT_MOD_X_TILED) in g4x_sprite_ctl()
1696 is_ccs_modifier(fb->modifier)) { in skl_plane_check_fb()
1703 fb->modifier == DRM_FORMAT_MOD_LINEAR) { in skl_plane_check_fb()
1709 if (fb->modifier != I915_FORMAT_MOD_Y_TILED && in skl_plane_check_fb()
1710 fb->modifier != I915_FORMAT_MOD_Yf_TILED) { in skl_plane_check_fb()
[all …]
/drivers/gpu/drm/sun4i/
Dsun4i_frontend.c166 if (fb->modifier == DRM_FORMAT_MOD_ALLWINNER_TILED) { in sun4i_frontend_update_buffer()
269 uint64_t modifier, u32 *val) in sun4i_frontend_drm_format_to_input_mode() argument
271 bool tiled = (modifier == DRM_FORMAT_MOD_ALLWINNER_TILED); in sun4i_frontend_drm_format_to_input_mode()
386 bool sun4i_frontend_format_is_supported(uint32_t fmt, uint64_t modifier) in sun4i_frontend_format_is_supported() argument
390 if (modifier == DRM_FORMAT_MOD_ALLWINNER_TILED) in sun4i_frontend_format_is_supported()
392 else if (modifier != DRM_FORMAT_MOD_LINEAR) in sun4i_frontend_format_is_supported()
409 uint64_t modifier = fb->modifier; in sun4i_frontend_update_formats() local
422 ret = sun4i_frontend_drm_format_to_input_mode(format, modifier, in sun4i_frontend_update_formats()
Dsun4i_layer.c113 uint32_t format, uint64_t modifier) in sun4i_layer_format_mod_supported() argument
118 sun4i_backend_format_is_supported(format, modifier); in sun4i_layer_format_mod_supported()
120 return sun4i_backend_format_is_supported(format, modifier) || in sun4i_layer_format_mod_supported()
121 sun4i_frontend_format_is_supported(format, modifier); in sun4i_layer_format_mod_supported()
Dsun4i_backend.c153 bool sun4i_backend_format_is_supported(uint32_t fmt, uint64_t modifier) in sun4i_backend_format_is_supported() argument
157 if (modifier != DRM_FORMAT_MOD_LINEAR) in sun4i_backend_format_is_supported()
429 uint64_t modifier = state->fb->modifier; in sun4i_backend_plane_uses_frontend() local
434 if (!sun4i_frontend_format_is_supported(format, modifier)) in sun4i_backend_plane_uses_frontend()
437 if (!sun4i_backend_format_is_supported(format, modifier)) in sun4i_backend_plane_uses_frontend()
/drivers/gpu/ipu-v3/
Dipu-pre.c167 uint64_t modifier, unsigned int bufaddr) in ipu_pre_configure() argument
174 if (modifier == DRM_FORMAT_MOD_LINEAR) in ipu_pre_configure()
213 if (modifier != DRM_FORMAT_MOD_LINEAR) { in ipu_pre_configure()
216 if (modifier == DRM_FORMAT_MOD_VIVANTE_SUPER_TILED) in ipu_pre_configure()
226 if (modifier == DRM_FORMAT_MOD_LINEAR) in ipu_pre_configure()
Dipu-prg.c125 uint64_t modifier) in ipu_prg_format_supported() argument
132 switch (modifier) { in ipu_prg_format_supported()
276 u32 format, uint64_t modifier, unsigned long *eba) in ipu_prg_channel_configure() argument
299 width, height, stride, format, modifier, *eba); in ipu_prg_channel_configure()
/drivers/gpu/drm/
Ddrm_framebuffer.c207 if (!block_size && (r->modifier[i] == DRM_FORMAT_MOD_LINEAR)) { in framebuffer_check()
228 if (r->modifier[i] && !(r->flags & DRM_MODE_FB_MODIFIERS)) { in framebuffer_check()
230 r->modifier[i], i); in framebuffer_check()
235 r->modifier[i] != r->modifier[0]) { in framebuffer_check()
237 r->modifier[i], i); in framebuffer_check()
242 switch (r->modifier[i]) { in framebuffer_check()
261 if (r->modifier[i]) { in framebuffer_check()
1050 drm_printf_indent(p, indent, "modifier=0x%llx\n", fb->modifier); in drm_framebuffer_print_info()
Ddrm_modeset_helper.c93 fb->modifier = mode_cmd->modifier[0]; in drm_helper_mode_fill_fb_struct()
Ddrm_plane.c142 mod->modifier = plane->modifiers[i]; in create_in_format_blob()
567 u32 format, u64 modifier) in drm_plane_check_pixel_format() argument
579 if (!plane->funcs->format_mod_supported(plane, format, modifier)) in drm_plane_check_pixel_format()
586 if (modifier == plane->modifiers[i]) in drm_plane_check_pixel_format()
614 fb->modifier); in __setplane_check()
621 fb->modifier); in __setplane_check()
652 u32 format, u64 modifier) in drm_any_plane_has_format() argument
657 if (drm_plane_check_pixel_format(plane, format, modifier) == 0) in drm_any_plane_has_format()
Ddrm_simple_kms_helper.c192 uint64_t modifier) in drm_simple_kms_format_mod_supported() argument
194 return modifier == DRM_FORMAT_MOD_LINEAR; in drm_simple_kms_format_mod_supported()
/drivers/staging/fbtft/
Dfbtft-bus.c14 #define define_fbtft_write_reg(func, buffer_type, data_type, modifier) \ argument
25 buf[i] = modifier((data_type)va_arg(args, \
42 *buf = modifier((data_type)va_arg(args, unsigned int)); \
55 *buf++ = modifier((data_type)va_arg(args, \
/drivers/gpu/drm/imx/
Dipuv3-plane.c321 uint32_t format, uint64_t modifier) in ipu_plane_format_mod_supported() argument
326 if (modifier == DRM_FORMAT_MOD_LINEAR) in ipu_plane_format_mod_supported()
333 return ipu_prg_format_supported(ipu, format, modifier); in ipu_plane_format_mod_supported()
596 fb->modifier, &eba); in ipu_plane_atomic_update()
779 plane_state->fb->modifier == DRM_FORMAT_MOD_LINEAR) in ipu_planes_assign_pre()
787 plane_state->fb->modifier)) in ipu_planes_assign_pre()
804 plane_state->fb->modifier != DRM_FORMAT_MOD_LINEAR) in ipu_planes_assign_pre()
808 plane_state->fb->modifier = DRM_FORMAT_MOD_LINEAR; in ipu_planes_assign_pre()
813 plane_state->fb->modifier)) { in ipu_planes_assign_pre()
/drivers/gpu/drm/exynos/
Dexynos_drm_ipp.h106 uint64_t modifier; member
113 .fourcc = DRM_FORMAT_##f, .modifier = m, .limits = l, \
/drivers/gpu/drm/arm/display/komeda/d71/
Dd71_component.c136 static u32 to_ad_ctrl(u64 modifier) in to_ad_ctrl() argument
140 if (!modifier) in to_ad_ctrl()
143 if ((modifier & AFBC_FORMAT_MOD_BLOCK_SIZE_MASK) == in to_ad_ctrl()
147 if (modifier & AFBC_FORMAT_MOD_YTR) in to_ad_ctrl()
149 if (modifier & AFBC_FORMAT_MOD_SPLIT) in to_ad_ctrl()
151 if (modifier & AFBC_FORMAT_MOD_TILED) in to_ad_ctrl()
210 malidp_write32(reg, AD_CONTROL, to_ad_ctrl(fb->modifier)); in d71_layer_update()
211 if (fb->modifier) { in d71_layer_update()
219 if (fb->modifier & AFBC_FORMAT_MOD_TILED) in d71_layer_update()
233 upsampling = fb->modifier ? LR_CHI422_BILINEAR : in d71_layer_update()
/drivers/gpu/drm/tegra/
Dfb.c45 uint64_t modifier = framebuffer->modifier; in tegra_fb_get_tiling() local
47 switch (modifier) { in tegra_fb_get_tiling()
/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_formats.h19 const uint64_t modifier);
Ddpu_formats.c966 const uint64_t modifier) in dpu_get_dpu_format_ext() argument
977 DPU_DEBUG("plane format modifier 0x%llX\n", modifier); in dpu_get_dpu_format_ext()
979 switch (modifier) { in dpu_get_dpu_format_ext()
991 DPU_ERROR("unsupported format modifier %llX\n", modifier); in dpu_get_dpu_format_ext()
1004 (char *)&format, modifier); in dpu_get_dpu_format_ext()
1007 (char *)&format, modifier, in dpu_get_dpu_format_ext()
/drivers/gpu/drm/vc4/
Dvc4_plane.c591 u64 base_format_mod = fourcc_mod_broadcom_mod(fb->modifier); in vc4_plane_mode_set()
725 uint32_t param = fourcc_mod_broadcom_param(fb->modifier); in vc4_plane_mode_set()
775 (long long)fb->modifier); in vc4_plane_mode_set()
1176 uint64_t modifier) in vc4_format_mod_supported() argument
1188 switch (fourcc_mod_broadcom_mod(modifier)) { in vc4_format_mod_supported()
1197 switch (fourcc_mod_broadcom_mod(modifier)) { in vc4_format_mod_supported()
1213 return (modifier == DRM_FORMAT_MOD_LINEAR); in vc4_format_mod_supported()

123