Home
last modified time | relevance | path

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

123456

/linux-6.1.9/drivers/gpu/drm/meson/
Dmeson_osd_afbcd.c58 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()
124 meson_gxm_afbcd_pixel_fmt(priv->afbcd.modifier, in meson_gxm_afbcd_setup()
127 if (priv->afbcd.modifier & AFBC_FORMAT_MOD_SPARSE) in meson_gxm_afbcd_setup()
130 if (priv->afbcd.modifier & AFBC_FORMAT_MOD_SPLIT) in meson_gxm_afbcd_setup()
206 static int meson_g12a_afbcd_pixel_fmt(u64 modifier, uint32_t format) in meson_g12a_afbcd_pixel_fmt() argument
212 if (modifier & AFBC_FORMAT_MOD_YTR) in meson_g12a_afbcd_pixel_fmt()
[all …]
Dmeson_plane.c165 fb->modifier & DRM_FORMAT_MOD_ARM_AFBC(MESON_MOD_AFBC_VALID_BITS)) in meson_plane_atomic_update()
210 priv->afbcd.ops->fmt_to_blk_mode(fb->modifier, in meson_plane_atomic_update()
376 priv->afbcd.modifier = fb->modifier; in meson_plane_atomic_update()
429 u32 format, u64 modifier) in meson_plane_format_mod_supported() argument
435 if (modifier == DRM_FORMAT_MOD_INVALID) in meson_plane_format_mod_supported()
438 if (modifier == DRM_FORMAT_MOD_LINEAR) in meson_plane_format_mod_supported()
445 if (modifier & ~DRM_FORMAT_MOD_ARM_AFBC(MESON_MOD_AFBC_VALID_BITS)) in meson_plane_format_mod_supported()
449 if (plane->modifiers[i] == modifier) in meson_plane_format_mod_supported()
458 return priv->afbcd.ops->supported_fmt(modifier, format); in meson_plane_format_mod_supported()
Dmeson_osd_afbcd.h22 int (*fmt_to_blk_mode)(u64 modifier, uint32_t format);
23 bool (*supported_fmt)(u64 modifier, uint32_t format);
Dmeson_overlay.c489 if ((fb->modifier & DRM_FORMAT_MOD_AMLOGIC_FBC(0, 0)) == in meson_overlay_atomic_update()
497 if (fb->modifier & DRM_FORMAT_MOD_AMLOGIC_FBC(0, in meson_overlay_atomic_update()
501 if ((fb->modifier & __fourcc_mod_amlogic_layout_mask) == in meson_overlay_atomic_update()
754 u32 format, u64 modifier) in meson_overlay_format_mod_supported() argument
756 if (modifier == DRM_FORMAT_MOD_LINEAR && in meson_overlay_format_mod_supported()
761 if ((modifier & DRM_FORMAT_MOD_AMLOGIC_FBC(0, 0)) == in meson_overlay_format_mod_supported()
763 unsigned int layout = modifier & in meson_overlay_format_mod_supported()
767 (modifier >> __fourcc_mod_amlogic_options_shift) & in meson_overlay_format_mod_supported()
773 modifier, format); in meson_overlay_format_mod_supported()
780 modifier, layout); in meson_overlay_format_mod_supported()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_fb.c127 u64 modifier; member
160 .modifier = I915_FORMAT_MOD_4_TILED_DG2_MC_CCS,
164 .modifier = I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC,
172 .modifier = I915_FORMAT_MOD_4_TILED_DG2_RC_CCS,
176 .modifier = I915_FORMAT_MOD_4_TILED,
180 .modifier = I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS,
189 .modifier = I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS,
197 .modifier = I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC,
206 .modifier = I915_FORMAT_MOD_Yf_TILED_CCS,
214 .modifier = I915_FORMAT_MOD_Y_TILED_CCS,
[all …]
Dintel_fb.h32 bool intel_fb_is_ccs_modifier(u64 modifier);
33 bool intel_fb_is_rc_ccs_cc_modifier(u64 modifier);
34 bool intel_fb_is_mc_ccs_modifier(u64 modifier);
41 bool intel_fb_plane_supports_modifier(struct intel_plane *plane, u64 modifier);
48 u64 modifier);
Dskl_universal_plane.c323 switch (fb->modifier) { in skl_plane_max_width()
351 MISSING_CASE(fb->modifier); in skl_plane_max_width()
362 switch (fb->modifier) { in glk_plane_max_width()
379 MISSING_CASE(fb->modifier); in glk_plane_max_width()
428 if (intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier)) in icl_hdr_plane_max_width()
457 u32 pixel_format, u64 modifier, in skl_plane_max_stride() argument
847 if (intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier)) { in adlp_plane_ctl_arb_slots()
907 plane_ctl |= skl_plane_ctl_tiling(fb->modifier); in skl_plane_ctl()
1226 if (intel_fb_is_rc_ccs_cc_modifier(fb->modifier)) { in icl_plane_update_noarm()
1338 intel_fb_is_ccs_modifier(fb->modifier)) { in skl_plane_check_fb()
[all …]
Di9xx_plane.c65 u32 format, u64 modifier) in i8xx_plane_format_mod_supported() argument
67 if (!intel_fb_plane_supports_modifier(to_intel_plane(_plane), modifier)) in i8xx_plane_format_mod_supported()
75 return modifier == DRM_FORMAT_MOD_LINEAR || in i8xx_plane_format_mod_supported()
76 modifier == I915_FORMAT_MOD_X_TILED; in i8xx_plane_format_mod_supported()
83 u32 format, u64 modifier) in i965_plane_format_mod_supported() argument
85 if (!intel_fb_plane_supports_modifier(to_intel_plane(_plane), modifier)) in i965_plane_format_mod_supported()
100 return modifier == DRM_FORMAT_MOD_LINEAR || in i965_plane_format_mod_supported()
101 modifier == I915_FORMAT_MOD_X_TILED; in i965_plane_format_mod_supported()
210 fb->modifier == I915_FORMAT_MOD_X_TILED) in i9xx_plane_ctl()
265 if (DISPLAY_VER(dev_priv) >= 4 && fb->modifier == I915_FORMAT_MOD_X_TILED) { in i9xx_check_plane_surface()
[all …]
/linux-6.1.9/tools/perf/util/
Dmetricgroup.c126 const char *modifier; member
189 free((char *)m->modifier); in metric__free()
195 const char *modifier, in metric__new() argument
212 m->modifier = NULL; in metric__new()
213 if (modifier) { in metric__new()
214 m->modifier = strdup(modifier); in metric__new()
215 if (!m->modifier) in metric__new()
694 static int decode_all_metric_ids(struct evlist *perf_evlist, const char *modifier) in decode_all_metric_ids() argument
732 if (modifier) { in decode_all_metric_ids()
738 ret = strbuf_addstr(&sb, modifier); in decode_all_metric_ids()
[all …]
/linux-6.1.9/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_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, &fourcc, modifier); in komeda_fb_is_layer_supported()
Dkomeda_format_caps.h80 u32 layer_type, u64 modifier, u32 rot);
87 u32 fourcc, u64 modifier);
90 u64 modifier);
98 u32 layer_type, u32 fourcc, u64 modifier,
/linux-6.1.9/drivers/gpu/drm/imx/dcss/
Ddcss-plane.c58 fb->modifier == DRM_FORMAT_MOD_LINEAR); in dcss_plane_fb_is_linear()
72 u64 modifier) in dcss_plane_format_mod_supported() argument
80 return modifier == DRM_FORMAT_MOD_LINEAR || in dcss_plane_format_mod_supported()
81 modifier == DRM_FORMAT_MOD_VIVANTE_TILED || in dcss_plane_format_mod_supported()
82 modifier == DRM_FORMAT_MOD_VIVANTE_SUPER_TILED; in dcss_plane_format_mod_supported()
84 return modifier == DRM_FORMAT_MOD_LINEAR; in dcss_plane_format_mod_supported()
88 return modifier == DRM_FORMAT_MOD_LINEAR; in dcss_plane_format_mod_supported()
105 bool mod_present, u64 modifier, in dcss_plane_can_rotate() argument
108 bool linear_format = !mod_present || modifier == DRM_FORMAT_MOD_LINEAR; in dcss_plane_can_rotate()
115 (modifier == DRM_FORMAT_MOD_VIVANTE_TILED || in dcss_plane_can_rotate()
[all …]
/linux-6.1.9/drivers/gpu/drm/arm/
Dmalidp_planes.c150 u32 format, u64 modifier) in malidp_format_mod_supported() argument
157 if (WARN_ON(modifier == DRM_FORMAT_MOD_INVALID)) in malidp_format_mod_supported()
161 if (modifier == DRM_FORMAT_MOD_LINEAR) { in malidp_format_mod_supported()
169 if (!fourcc_mod_is_vendor(modifier, ARM)) { in malidp_format_mod_supported()
174 if (modifier & in malidp_format_mod_supported()
183 if (WARN_ON_ONCE((modifier & AFBC_SPLIT) && !(modifier & AFBC_SPARSE))) in malidp_format_mod_supported()
187 if (WARN_ON_ONCE((modifier & AFBC_CBR) && (modifier & AFBC_YTR))) in malidp_format_mod_supported()
191 if (*modifiers == modifier) in malidp_format_mod_supported()
220 if (!(info->is_yuv) != !!(modifier & AFBC_FORMAT_MOD_YTR)) { in malidp_format_mod_supported()
227 if (modifier & AFBC_SPLIT) { in malidp_format_mod_supported()
[all …]
/linux-6.1.9/drivers/gpu/drm/tests/
Ddrm_framebuffer_test.c96 .modifier = { AFBC_FORMAT_MOD_YTR, 0, 0 },
104 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 0, 0 },
136 .handles = { 1, 1, 0 }, .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 0, 0 },
143 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, 0, 0 },
150 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE,
157 .handles = { 1, 1, 0 }, .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE,
165 .modifier = { DRM_FORMAT_MOD_SAMSUNG_64_32_TILE, DRM_FORMAT_MOD_SAMSUNG_64_32_TILE,
221 .handles = { 1, 1, 1 }, .modifier = { AFBC_FORMAT_MOD_SPARSE, 0, 0 },
229 .modifier = { AFBC_FORMAT_MOD_SPARSE, AFBC_FORMAT_MOD_SPARSE, 0 },
237 .modifier = { AFBC_FORMAT_MOD_SPARSE, AFBC_FORMAT_MOD_SPARSE, 0 },
[all …]
/linux-6.1.9/include/linux/iio/
Devents.h24 #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-6.1.9/include/uapi/drm/
Ddrm_fourcc.h415 #define fourcc_mod_get_vendor(modifier) \ argument
416 (((modifier) >> 56) & 0xff)
418 #define fourcc_mod_is_vendor(modifier, vendor) \ argument
419 (fourcc_mod_get_vendor(modifier) == DRM_FORMAT_MOD_VENDOR_## vendor)
854 drm_fourcc_canonicalize_nvidia_format_mod(__u64 modifier) in drm_fourcc_canonicalize_nvidia_format_mod() argument
856 if (!(modifier & 0x10) || (modifier & (0xff << 12))) in drm_fourcc_canonicalize_nvidia_format_mod()
857 return modifier; in drm_fourcc_canonicalize_nvidia_format_mod()
859 return modifier | (0xfe << 12); in drm_fourcc_canonicalize_nvidia_format_mod()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_display.c596 amdgpu_lookup_format_info(u32 format, uint64_t modifier) in amdgpu_lookup_format_info() argument
598 if (!IS_AMD_FMT_MOD(modifier)) in amdgpu_lookup_format_info()
601 if (AMD_FMT_MOD_GET(DCC_RETILE, modifier)) in amdgpu_lookup_format_info()
606 if (AMD_FMT_MOD_GET(DCC, modifier)) in amdgpu_lookup_format_info()
668 uint64_t modifier = 0; in convert_tiling_flags_to_modifier() local
676 modifier = DRM_FORMAT_MOD_LINEAR; in convert_tiling_flags_to_modifier()
768 modifier = AMD_FMT_MOD | in convert_tiling_flags_to_modifier()
791 modifier |= AMD_FMT_MOD_SET(DCC, 1) | in convert_tiling_flags_to_modifier()
816 modifier |= AMD_FMT_MOD_SET(DCC_RETILE, 1); in convert_tiling_flags_to_modifier()
828 modifier |= AMD_FMT_MOD_SET(RB, rb) | in convert_tiling_flags_to_modifier()
[all …]
/linux-6.1.9/arch/x86/kvm/
Dx86.h51 unsigned int base, unsigned int modifier, unsigned int max) in __grow_ple_window() argument
55 if (modifier < 1) in __grow_ple_window()
58 if (modifier < base) in __grow_ple_window()
59 ret *= modifier; in __grow_ple_window()
61 ret += modifier; in __grow_ple_window()
67 unsigned int base, unsigned int modifier, unsigned int min) in __shrink_ple_window() argument
69 if (modifier < 1) in __shrink_ple_window()
72 if (modifier < base) in __shrink_ple_window()
73 val /= modifier; in __shrink_ple_window()
75 val -= modifier; in __shrink_ple_window()
/linux-6.1.9/drivers/gpu/drm/nouveau/
Dnouveau_display.c138 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-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_plane.c86 return amdgpu_lookup_format_info(cmd->pixel_format, cmd->modifier[0]); in amd_get_format_info()
153 static bool modifier_has_dcc(uint64_t modifier) in modifier_has_dcc() argument
155 return IS_AMD_FMT_MOD(modifier) && AMD_FMT_MOD_GET(DCC, modifier); in modifier_has_dcc()
158 static unsigned modifier_gfx9_swizzle_mode(uint64_t modifier) in modifier_gfx9_swizzle_mode() argument
160 if (modifier == DRM_FORMAT_MOD_LINEAR) in modifier_gfx9_swizzle_mode()
163 return AMD_FMT_MOD_GET(TILE, modifier); in modifier_gfx9_swizzle_mode()
221 uint64_t modifier) in fill_gfx9_tiling_info_from_modifier() argument
223 unsigned int mod_bank_xor_bits = AMD_FMT_MOD_GET(BANK_XOR_BITS, modifier); in fill_gfx9_tiling_info_from_modifier()
224 unsigned int mod_pipe_xor_bits = AMD_FMT_MOD_GET(PIPE_XOR_BITS, modifier); in fill_gfx9_tiling_info_from_modifier()
225 unsigned int pkrs_log2 = AMD_FMT_MOD_GET(PACKERS, modifier); in fill_gfx9_tiling_info_from_modifier()
[all …]
/linux-6.1.9/drivers/gpu/drm/tegra/
Dfb.c46 uint64_t modifier = framebuffer->modifier; in tegra_fb_get_tiling() local
48 if (fourcc_mod_is_vendor(modifier, NVIDIA)) { in tegra_fb_get_tiling()
49 if ((modifier & DRM_FORMAT_MOD_NVIDIA_SECTOR_LAYOUT) == 0) in tegra_fb_get_tiling()
54 modifier &= ~DRM_FORMAT_MOD_NVIDIA_SECTOR_LAYOUT; in tegra_fb_get_tiling()
57 switch (modifier) { in tegra_fb_get_tiling()
99 DRM_DEBUG_KMS("unknown format modifier: %llx\n", modifier); in tegra_fb_get_tiling()
/linux-6.1.9/drivers/gpu/drm/sun4i/
Dsun4i_frontend.c166 if (fb->modifier == DRM_FORMAT_MOD_ALLWINNER_TILED) { in sun4i_frontend_update_buffer()
268 uint64_t modifier, u32 *val) in sun4i_frontend_drm_format_to_input_mode() argument
270 bool tiled = (modifier == DRM_FORMAT_MOD_ALLWINNER_TILED); in sun4i_frontend_drm_format_to_input_mode()
385 bool sun4i_frontend_format_is_supported(uint32_t fmt, uint64_t modifier) in sun4i_frontend_format_is_supported() argument
389 if (modifier == DRM_FORMAT_MOD_ALLWINNER_TILED) in sun4i_frontend_format_is_supported()
391 else if (modifier != DRM_FORMAT_MOD_LINEAR) in sun4i_frontend_format_is_supported()
408 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()
/linux-6.1.9/tools/testing/selftests/arm64/pauth/
Dhelper.c34 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-6.1.9/Documentation/bpf/
Dinstruction-set.rst206 The mode modifier is one of:
209 mode modifier value description reference
218 The size modifier is one of:
221 size modifier value description
232 The ``BPF_MEM`` mode modifier is used to encode regular load and store
257 that use the ``BPF_ATOMIC`` mode modifier as follows:
285 In addition to the simple atomic operations, there also is a modifier and
291 BPF_FETCH 0x01 modifier: return old value
296 The ``BPF_FETCH`` modifier is optional for simple atomic operations, and
313 Instructions with the ``BPF_IMM`` 'mode' modifier use the wide instruction

123456