/Linux-v5.10/drivers/gpu/drm/meson/ |
D | meson_osd_afbcd.c | 58 static int meson_gxm_afbcd_pixel_fmt(u64 modifier, uint32_t format) in meson_gxm_afbcd_pixel_fmt() argument 71 static bool meson_gxm_afbcd_supported_fmt(u64 modifier, uint32_t format) in meson_gxm_afbcd_supported_fmt() argument 73 if (modifier & AFBC_FORMAT_MOD_BLOCK_SIZE_32x8) in meson_gxm_afbcd_supported_fmt() 76 if (!(modifier & AFBC_FORMAT_MOD_YTR)) in meson_gxm_afbcd_supported_fmt() 79 return meson_gxm_afbcd_pixel_fmt(modifier, format) >= 0; in meson_gxm_afbcd_supported_fmt() 119 meson_gxm_afbcd_pixel_fmt(priv->afbcd.modifier, in meson_gxm_afbcd_setup() 122 if (priv->afbcd.modifier & AFBC_FORMAT_MOD_SPARSE) in meson_gxm_afbcd_setup() 125 if (priv->afbcd.modifier & AFBC_FORMAT_MOD_SPLIT) 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 206 if (modifier & AFBC_FORMAT_MOD_YTR) in meson_g12a_afbcd_pixel_fmt() [all …]
|
D | meson_plane.c | 159 fb->modifier & DRM_FORMAT_MOD_ARM_AFBC(MESON_MOD_AFBC_VALID_BITS)) in meson_plane_atomic_update() 204 priv->afbcd.ops->fmt_to_blk_mode(fb->modifier, in meson_plane_atomic_update() 370 priv->afbcd.modifier = fb->modifier; in meson_plane_atomic_update() 424 u32 format, u64 modifier) in meson_plane_format_mod_supported() argument 430 if (modifier == DRM_FORMAT_MOD_INVALID) in meson_plane_format_mod_supported() 433 if (modifier == DRM_FORMAT_MOD_LINEAR) in meson_plane_format_mod_supported() 440 if (modifier & ~DRM_FORMAT_MOD_ARM_AFBC(MESON_MOD_AFBC_VALID_BITS)) in meson_plane_format_mod_supported() 444 if (plane->modifiers[i] == modifier) in meson_plane_format_mod_supported() 453 return priv->afbcd.ops->supported_fmt(modifier, format); in meson_plane_format_mod_supported()
|
D | meson_osd_afbcd.h | 21 int (*fmt_to_blk_mode)(u64 modifier, uint32_t format); 22 bool (*supported_fmt)(u64 modifier, uint32_t format);
|
D | meson_overlay.c | 483 if ((fb->modifier & DRM_FORMAT_MOD_AMLOGIC_FBC(0, 0)) == in meson_overlay_atomic_update() 491 if (fb->modifier & DRM_FORMAT_MOD_AMLOGIC_FBC(0, in meson_overlay_atomic_update() 495 if ((fb->modifier & __fourcc_mod_amlogic_layout_mask) == in meson_overlay_atomic_update() 749 u32 format, u64 modifier) in meson_overlay_format_mod_supported() argument 751 if (modifier == DRM_FORMAT_MOD_LINEAR && in meson_overlay_format_mod_supported() 756 if ((modifier & DRM_FORMAT_MOD_AMLOGIC_FBC(0, 0)) == in meson_overlay_format_mod_supported() 758 unsigned int layout = modifier & in meson_overlay_format_mod_supported() 762 (modifier >> __fourcc_mod_amlogic_options_shift) & in meson_overlay_format_mod_supported() 768 modifier, format); in meson_overlay_format_mod_supported() 775 modifier, layout); in meson_overlay_format_mod_supported() [all …]
|
/Linux-v5.10/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_format_caps.c | 14 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()
|
D | komeda_format_caps.h | 80 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,
|
D | komeda_framebuffer.c | 55 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()
|
/Linux-v5.10/drivers/gpu/drm/imx/dcss/ |
D | dcss-plane.c | 56 fb->modifier == DRM_FORMAT_MOD_LINEAR); in dcss_plane_fb_is_linear() 70 u64 modifier) in dcss_plane_format_mod_supported() argument 78 return modifier == DRM_FORMAT_MOD_LINEAR || in dcss_plane_format_mod_supported() 79 modifier == DRM_FORMAT_MOD_VIVANTE_TILED || in dcss_plane_format_mod_supported() 80 modifier == DRM_FORMAT_MOD_VIVANTE_SUPER_TILED; in dcss_plane_format_mod_supported() 82 return modifier == DRM_FORMAT_MOD_LINEAR; in dcss_plane_format_mod_supported() 86 return modifier == DRM_FORMAT_MOD_LINEAR; in dcss_plane_format_mod_supported() 103 bool mod_present, u64 modifier, in dcss_plane_can_rotate() argument 107 (mod_present && modifier == DRM_FORMAT_MOD_LINEAR); in dcss_plane_can_rotate() 114 modifier == DRM_FORMAT_MOD_VIVANTE_TILED) in dcss_plane_can_rotate() [all …]
|
/Linux-v5.10/drivers/gpu/drm/selftests/ |
D | test-drm_framebuffer.c | 92 .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 …]
|
/Linux-v5.10/drivers/gpu/drm/arm/ |
D | malidp_planes.c | 149 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 …]
|
/Linux-v5.10/include/linux/iio/ |
D | events.h | 24 #define IIO_EVENT_CODE(chan_type, diff, modifier, direction, \ argument 27 ((u64)direction << 48) | ((u64)modifier << 40) | \ 41 #define IIO_MOD_EVENT_CODE(chan_type, number, modifier, \ argument 43 IIO_EVENT_CODE(chan_type, 0, modifier, direction, type, number, 0, 0)
|
/Linux-v5.10/arch/x86/kvm/ |
D | x86.h | 19 unsigned int base, unsigned int modifier, unsigned int max) in __grow_ple_window() argument 23 if (modifier < 1) in __grow_ple_window() 26 if (modifier < base) in __grow_ple_window() 27 ret *= modifier; in __grow_ple_window() 29 ret += modifier; in __grow_ple_window() 35 unsigned int base, unsigned int modifier, unsigned int min) in __shrink_ple_window() argument 37 if (modifier < 1) in __shrink_ple_window() 40 if (modifier < base) in __shrink_ple_window() 41 val /= modifier; in __shrink_ple_window() 43 val -= modifier; in __shrink_ple_window()
|
/Linux-v5.10/drivers/gpu/drm/i915/display/ |
D | intel_sprite.c | 268 fb->modifier, rotation); in intel_plane_check_stride() 293 if (fb->modifier == I915_FORMAT_MOD_Y_TILED_CCS || in intel_plane_check_src_coordinates() 294 fb->modifier == I915_FORMAT_MOD_Yf_TILED_CCS) in intel_plane_check_src_coordinates() 398 u32 pixel_format, u64 modifier, in skl_plane_max_stride() argument 441 if (intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier) && in skl_program_scaler() 1038 if (fb->modifier == I915_FORMAT_MOD_X_TILED) in vlv_sprite_ctl() 1426 if (fb->modifier == I915_FORMAT_MOD_X_TILED) in ivb_sprite_ctl() 1657 u32 pixel_format, u64 modifier, in g4x_sprite_max_stride() argument 1733 if (fb->modifier == I915_FORMAT_MOD_X_TILED) in g4x_sprite_ctl() 2119 is_ccs_modifier(fb->modifier)) { in skl_plane_check_fb() [all …]
|
D | intel_fbc.c | 583 u64 modifier, unsigned int stride) in stride_is_valid() argument 601 modifier == DRM_FORMAT_MOD_LINEAR && stride & 511) in stride_is_valid() 679 uint64_t modifier) in tiling_is_valid() argument 681 switch (modifier) { in tiling_is_valid() 725 cache->fb.modifier = fb->modifier; in intel_fbc_update_state_cache() 761 cache->fb.modifier != I915_FORMAT_MOD_X_TILED) in intel_fbc_gen9_wa_cfb_stride() 861 if (!tiling_is_valid(dev_priv, cache->fb.modifier)) { in intel_fbc_can_activate() 866 if (!stride_is_valid(dev_priv, cache->fb.modifier, cache->fb.stride)) { in intel_fbc_can_activate() 934 params->fb.modifier = cache->fb.modifier; in intel_fbc_get_reg_params() 964 if (params->fb.modifier != cache->fb.modifier) in intel_fbc_can_flip_nuke()
|
/Linux-v5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_display.c | 138 uint64_t modifier, in nouveau_decode_mod() argument 145 if (modifier == DRM_FORMAT_MOD_LINEAR) { in nouveau_decode_mod() 155 if ((modifier & (0xffull << 12)) == 0ull) { in nouveau_decode_mod() 157 modifier |= disp->format_modifiers[0] & (0xffull << 12); in nouveau_decode_mod() 160 *tile_mode = (uint32_t)(modifier & 0xF); in nouveau_decode_mod() 161 *kind = (uint8_t)((modifier >> 12) & 0xFF); in nouveau_decode_mod() 176 nouveau_decode_mod(drm, fb->modifier, tile_mode, kind); in nouveau_framebuffer_get_layout() 197 uint64_t modifier, in nouveau_validate_decode_mod() argument 212 (disp->format_modifiers[mod] != modifier); in nouveau_validate_decode_mod() 218 (legacy_modifiers[mod] != modifier); in nouveau_validate_decode_mod() [all …]
|
/Linux-v5.10/include/uapi/drm/ |
D | drm_fourcc.h | 675 drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier) in drm_fourcc_canonicalize_nvidia_format_mod() argument 677 if (!(modifier & 0x10) || (modifier & (0xff << 12))) in drm_fourcc_canonicalize_nvidia_format_mod() 678 return modifier; in drm_fourcc_canonicalize_nvidia_format_mod() 680 return modifier | (0xfe << 12); in drm_fourcc_canonicalize_nvidia_format_mod()
|
D | exynos_drm.h | 161 __u64 modifier; member 242 __u64 modifier; member 277 __u64 modifier; member
|
/Linux-v5.10/tools/testing/selftests/arm64/pauth/ |
D | helper.c | 34 size_t modifier = 0; in keyg_sign() local 36 asm volatile("pacga %0, %1, %2" : "=r" (dest) : "r" (ptr), "r" (modifier)); in keyg_sign()
|
/Linux-v5.10/drivers/gpu/drm/sun4i/ |
D | sun4i_frontend.c | 166 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 423 ret = sun4i_frontend_drm_format_to_input_mode(format, modifier, in sun4i_frontend_update_formats()
|
D | sun4i_layer.c | 113 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()
|
/Linux-v5.10/drivers/gpu/drm/ |
D | drm_framebuffer.c | 207 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() 604 r->modifier[i] = 0; in drm_mode_getfb2_ioctl() 611 r->modifier[i] = fb->modifier; in drm_mode_getfb2_ioctl() 1171 drm_printf_indent(p, indent, "modifier=0x%llx\n", fb->modifier); in drm_framebuffer_print_info()
|
/Linux-v5.10/drivers/gpu/ipu-v3/ |
D | ipu-pre.c | 167 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()
|
/Linux-v5.10/include/drm/ |
D | drm_gem_framebuffer_helper.h | 40 #define drm_is_afbc(modifier) \ argument 41 (((modifier) & AFBC_VENDOR_AND_TYPE_MASK) == DRM_FORMAT_MOD_ARM_AFBC(0))
|
/Linux-v5.10/drivers/staging/fbtft/ |
D | fbtft-bus.c | 14 #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, \
|
/Linux-v5.10/drivers/gpu/drm/imx/ |
D | ipuv3-plane.c | 321 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()
|