/linux/drivers/gpu/drm/meson/ |
A D | meson_osd_afbcd.c | 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() 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() 206 if (modifier & AFBC_FORMAT_MOD_YTR) in meson_g12a_afbcd_pixel_fmt() 214 if (modifier & AFBC_FORMAT_MOD_YTR) in meson_g12a_afbcd_pixel_fmt() 219 if (modifier & AFBC_FORMAT_MOD_YTR) in meson_g12a_afbcd_pixel_fmt() 334 if (priv->afbcd.modifier & AFBC_FORMAT_MOD_YTR) in meson_g12a_afbcd_setup() 337 if (priv->afbcd.modifier & AFBC_FORMAT_MOD_SPLIT) in meson_g12a_afbcd_setup() [all …]
|
A D | meson_plane.c | 164 fb->modifier & DRM_FORMAT_MOD_ARM_AFBC(MESON_MOD_AFBC_VALID_BITS)) in meson_plane_atomic_update() 209 priv->afbcd.ops->fmt_to_blk_mode(fb->modifier, in meson_plane_atomic_update() 375 priv->afbcd.modifier = fb->modifier; in meson_plane_atomic_update() 428 u32 format, u64 modifier) in meson_plane_format_mod_supported() argument 434 if (modifier == DRM_FORMAT_MOD_INVALID) in meson_plane_format_mod_supported() 437 if (modifier == DRM_FORMAT_MOD_LINEAR) in meson_plane_format_mod_supported() 444 if (modifier & ~DRM_FORMAT_MOD_ARM_AFBC(MESON_MOD_AFBC_VALID_BITS)) in meson_plane_format_mod_supported() 448 if (plane->modifiers[i] == modifier) in meson_plane_format_mod_supported() 457 return priv->afbcd.ops->supported_fmt(modifier, format); in meson_plane_format_mod_supported()
|
A D | meson_overlay.c | 488 if ((fb->modifier & DRM_FORMAT_MOD_AMLOGIC_FBC(0, 0)) == in meson_overlay_atomic_update() 496 if (fb->modifier & DRM_FORMAT_MOD_AMLOGIC_FBC(0, in meson_overlay_atomic_update() 753 u32 format, u64 modifier) in meson_overlay_format_mod_supported() argument 755 if (modifier == DRM_FORMAT_MOD_LINEAR && in meson_overlay_format_mod_supported() 760 if ((modifier & DRM_FORMAT_MOD_AMLOGIC_FBC(0, 0)) == in meson_overlay_format_mod_supported() 762 unsigned int layout = modifier & in meson_overlay_format_mod_supported() 766 (modifier >> __fourcc_mod_amlogic_options_shift) & in meson_overlay_format_mod_supported() 772 modifier, format); in meson_overlay_format_mod_supported() 779 modifier, layout); in meson_overlay_format_mod_supported() 786 modifier, layout); in meson_overlay_format_mod_supported() [all …]
|
A 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);
|
/linux/tools/perf/util/ |
A D | metricgroup.c | 136 const char *modifier; member 210 m->modifier = modifier ? strdup(modifier) : NULL; in metric__new() 211 if (modifier && !m->modifier) { in metric__new() 703 if (modifier) { in decode_all_metric_ids() 800 if (modifier) { in metricgroup__build_event_string() 1169 .modifier = modifier, in metricgroup__add_metric() 1219 if (modifier) in metricgroup__add_metric_list() 1422 if ((!m->modifier && n->modifier) || in parse_groups() 1423 (m->modifier && !n->modifier) || in parse_groups() 1424 (m->modifier && n->modifier && in parse_groups() [all …]
|
/linux/drivers/gpu/drm/imx/dcss/ |
A 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() 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 113 (modifier == DRM_FORMAT_MOD_VIVANTE_TILED || in dcss_plane_can_rotate() 187 fb->modifier, in dcss_plane_atomic_check() 204 fb->modifier)) { in dcss_plane_atomic_check() 261 fb->modifier != old_fb->modifier || in dcss_plane_needs_setup() [all …]
|
/linux/drivers/gpu/drm/arm/display/komeda/ |
A 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()
|
A 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, &fourcc, modifier); in komeda_fb_is_layer_supported()
|
A D | komeda_format_caps.h | 80 u32 layer_type, u64 modifier, u32 rot); 87 u32 fourcc, u64 modifier); 90 u64 modifier); 98 u32 layer_type, u32 fourcc, u64 modifier,
|
/linux/drivers/gpu/drm/arm/ |
A D | malidp_planes.c | 149 u32 format, u64 modifier) in malidp_format_mod_supported() argument 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() 226 if (modifier & AFBC_SPLIT) { in malidp_format_mod_supported() 243 if (modifier & AFBC_CBR) { in malidp_format_mod_supported() 524 !!fb->modifier); in malidp_de_plane_check() 599 !!(fb->modifier)); in malidp_de_plane_check() 763 if (!fb->modifier) { in malidp_de_set_plane_afbc() [all …]
|
/linux/drivers/gpu/drm/selftests/ |
A D | test-drm_framebuffer.c | 93 .flags = DRM_MODE_FB_MODIFIERS, .modifier = { AFBC_FORMAT_MOD_YTR, 0, 0 }, 100 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 0, 0 }, 132 .handles = { 1, 1, 0 }, .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 0, 0 }, 139 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 0, 0 }, 152 .handles = { 1, 1, 0 }, .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 160 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 213 .handles = { 1, 1, 1 }, .modifier = { AFBC_FORMAT_MOD_SPARSE, 0, 0 }, 226 .modifier = { AFBC_FORMAT_MOD_SPARSE, AFBC_FORMAT_MOD_SPARSE, 0 }, 288 .modifier = { AFBC_FORMAT_MOD_SPARSE, 0, 0 }, 294 .modifier = { AFBC_FORMAT_MOD_SPARSE, 0, 0 }, .flags = DRM_MODE_FB_MODIFIERS, [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_fb.c | 18 if (!is_ccs_modifier(fb->modifier)) in is_ccs_plane() 102 if (is_ccs_modifier(fb->modifier)) in skl_main_to_aux_plane() 122 switch (fb->modifier) { in intel_tile_width_bytes() 165 MISSING_CASE(fb->modifier); in intel_tile_width_bytes() 294 switch (fb->modifier) { in intel_surf_alignment() 311 MISSING_CASE(fb->modifier); in intel_surf_alignment() 676 if (is_ccs_modifier(fb->modifier)) in intel_plane_can_remap() 1138 u32 pixel_format, u64 modifier) in intel_fb_max_stride() argument 1164 fb->modifier); in intel_fb_stride_alignment() 1229 fb->modifier, rotation); in intel_plane_check_stride() [all …]
|
A D | skl_universal_plane.c | 366 switch (fb->modifier) { in skl_plane_max_width() 394 MISSING_CASE(fb->modifier); in skl_plane_max_width() 405 switch (fb->modifier) { in glk_plane_max_width() 422 MISSING_CASE(fb->modifier); in glk_plane_max_width() 1709 fb->modifier)) { in skl_check_plane_surface() 1891 u32 format, u64 modifier) in skl_plane_format_mod_supported() argument 1895 switch (modifier) { in skl_plane_format_mod_supported() 1915 if (is_ccs_modifier(modifier)) in skl_plane_format_mod_supported() 1972 u32 format, u64 modifier) in gen12_plane_format_mod_supported() argument 1977 switch (modifier) { in gen12_plane_format_mod_supported() [all …]
|
A D | i9xx_plane.c | 70 u32 format, u64 modifier) in i8xx_plane_format_mod_supported() argument 72 switch (modifier) { in i8xx_plane_format_mod_supported() 85 return modifier == DRM_FORMAT_MOD_LINEAR || in i8xx_plane_format_mod_supported() 86 modifier == I915_FORMAT_MOD_X_TILED; in i8xx_plane_format_mod_supported() 93 u32 format, u64 modifier) in i965_plane_format_mod_supported() argument 95 switch (modifier) { in i965_plane_format_mod_supported() 116 modifier == I915_FORMAT_MOD_X_TILED; in i965_plane_format_mod_supported() 687 u32 pixel_format, u64 modifier, in hsw_primary_max_stride() argument 699 u32 pixel_format, u64 modifier, in ilk_primary_max_stride() argument 714 u32 pixel_format, u64 modifier, in i965_plane_max_stride() argument [all …]
|
A D | intel_sprite.c | 1000 u32 pixel_format, u64 modifier, in g4x_sprite_max_stride() argument 1007 if (modifier == I915_FORMAT_MOD_X_TILED) in g4x_sprite_max_stride() 1015 u32 pixel_format, u64 modifier, in hsw_sprite_max_stride() argument 1630 u32 format, u64 modifier) in g4x_sprite_format_mod_supported() argument 1632 switch (modifier) { in g4x_sprite_format_mod_supported() 1646 if (modifier == DRM_FORMAT_MOD_LINEAR || in g4x_sprite_format_mod_supported() 1647 modifier == I915_FORMAT_MOD_X_TILED) in g4x_sprite_format_mod_supported() 1656 u32 format, u64 modifier) in snb_sprite_format_mod_supported() argument 1658 switch (modifier) { in snb_sprite_format_mod_supported() 1687 u32 format, u64 modifier) in vlv_sprite_format_mod_supported() argument [all …]
|
A D | intel_display_types.h | 1363 u32 pixel_format, u64 modifier, 2047 static inline bool is_ccs_modifier(u64 modifier) in is_ccs_modifier() argument 2049 return modifier == I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS || in is_ccs_modifier() 2050 modifier == I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC || in is_ccs_modifier() 2051 modifier == I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS || in is_ccs_modifier() 2052 modifier == I915_FORMAT_MOD_Y_TILED_CCS || in is_ccs_modifier() 2053 modifier == I915_FORMAT_MOD_Yf_TILED_CCS; in is_ccs_modifier() 2056 static inline bool is_gen12_ccs_modifier(u64 modifier) in is_gen12_ccs_modifier() argument 2058 return modifier == I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS || in is_gen12_ccs_modifier() 2059 modifier == I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC || in is_gen12_ccs_modifier() [all …]
|
/linux/include/linux/iio/ |
A 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/include/uapi/drm/ |
A D | drm_fourcc.h | 382 #define fourcc_mod_get_vendor(modifier) \ argument 383 (((modifier) >> 56) & 0xff) 385 #define fourcc_mod_is_vendor(modifier, vendor) \ argument 386 (fourcc_mod_get_vendor(modifier) == DRM_FORMAT_MOD_VENDOR_## vendor) 752 drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier) in drm_fourcc_canonicalize_nvidia_format_mod() argument 754 if (!(modifier & 0x10) || (modifier & (0xff << 12))) in drm_fourcc_canonicalize_nvidia_format_mod() 755 return modifier; in drm_fourcc_canonicalize_nvidia_format_mod() 757 return modifier | (0xfe << 12); in drm_fourcc_canonicalize_nvidia_format_mod()
|
/linux/arch/x86/kvm/ |
A D | x86.h | 75 unsigned int base, unsigned int modifier, unsigned int max) in __grow_ple_window() argument 79 if (modifier < 1) in __grow_ple_window() 82 if (modifier < base) in __grow_ple_window() 83 ret *= modifier; in __grow_ple_window() 85 ret += modifier; in __grow_ple_window() 91 unsigned int base, unsigned int modifier, unsigned int min) in __shrink_ple_window() argument 93 if (modifier < 1) in __shrink_ple_window() 96 if (modifier < base) in __shrink_ple_window() 97 val /= modifier; in __shrink_ple_window() 99 val -= modifier; in __shrink_ple_window()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_display.c | 611 if (!IS_AMD_FMT_MOD(modifier)) in amdgpu_lookup_format_info() 619 if (AMD_FMT_MOD_GET(DCC, modifier)) in amdgpu_lookup_format_info() 681 uint64_t modifier = 0; in convert_tiling_flags_to_modifier() local 684 modifier = DRM_FORMAT_MOD_LINEAR; in convert_tiling_flags_to_modifier() 758 modifier = AMD_FMT_MOD | in convert_tiling_flags_to_modifier() 780 modifier |= AMD_FMT_MOD_SET(DCC, 1) | in convert_tiling_flags_to_modifier() 827 modifier); in convert_tiling_flags_to_modifier() 835 afb->base.modifier = modifier; in convert_tiling_flags_to_modifier() 957 uint64_t modifier = rfb->base.modifier; in amdgpu_display_verify_sizes() local 1001 if (AMD_FMT_MOD_GET(DCC, modifier)) { in amdgpu_display_verify_sizes() [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
A 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() 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() 224 nouveau_decode_mod(drm, modifier, tile_mode, kind); in nouveau_validate_decode_mod() [all …]
|
/linux/drivers/gpu/drm/tegra/ |
A D | fb.c | 45 uint64_t modifier = framebuffer->modifier; in tegra_fb_get_tiling() local 47 if (fourcc_mod_is_vendor(modifier, NVIDIA)) { in tegra_fb_get_tiling() 48 if ((modifier & DRM_FORMAT_MOD_NVIDIA_SECTOR_LAYOUT) == 0) in tegra_fb_get_tiling() 53 modifier &= ~DRM_FORMAT_MOD_NVIDIA_SECTOR_LAYOUT; in tegra_fb_get_tiling() 56 switch (modifier) { in tegra_fb_get_tiling() 98 DRM_DEBUG_KMS("unknown format modifier: %llx\n", modifier); in tegra_fb_get_tiling()
|
/linux/drivers/gpu/drm/sun4i/ |
A 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()
|
/linux/drivers/gpu/drm/ |
A D | drm_framebuffer.c | 204 if (!block_size && (r->modifier[i] == DRM_FORMAT_MOD_LINEAR)) { in framebuffer_check() 225 if (r->modifier[i] && !(r->flags & DRM_MODE_FB_MODIFIERS)) { in framebuffer_check() 227 r->modifier[i], i); in framebuffer_check() 232 r->modifier[i] != r->modifier[0]) { in framebuffer_check() 234 r->modifier[i], i); in framebuffer_check() 239 switch (r->modifier[i]) { in framebuffer_check() 258 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() 1186 drm_printf_indent(p, indent, "modifier=0x%llx\n", fb->modifier); in drm_framebuffer_print_info()
|
/linux/drivers/gpu/ipu-v3/ |
A 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()
|