Lines Matching defs:zpos
129 * zpos:
139 * any plane has a zpos property (either mutable or immutable), then all
140 * planes shall have a zpos property.
333 * drm_plane_create_zpos_property - create mutable zpos property
335 * @zpos: initial value of zpos property
336 * @min: minimal possible value of zpos property
337 * @max: maximal possible value of zpos property
339 * This function initializes generic mutable zpos property and enables support
342 * Drivers that attach a mutable zpos property to any plane should call the
344 * &drm_mode_config_funcs.atomic_check(), which will update the normalized zpos
348 * If zpos of some planes cannot be changed (like fixed background or
350 * those planes immutable zpos properties with lower or higher values (for more
352 * case drivers shall also assign proper initial zpos values for all planes in
357 * The property exposed to userspace is called "zpos".
363 unsigned int zpos,
368 prop = drm_property_create_range(plane->dev, 0, "zpos", min, max);
372 drm_object_attach_property(&plane->base, prop, zpos);
377 plane->state->zpos = zpos;
378 plane->state->normalized_zpos = zpos;
386 * drm_plane_create_zpos_immutable_property - create immuttable zpos property
388 * @zpos: value of zpos property
390 * This function initializes generic immutable zpos property and enables
394 * order. For mutable zpos see drm_plane_create_zpos_property().
396 * The property exposed to userspace is called "zpos".
402 unsigned int zpos)
407 "zpos", zpos, zpos);
411 drm_object_attach_property(&plane->base, prop, zpos);
416 plane->state->zpos = zpos;
417 plane->state->normalized_zpos = zpos;
429 if (sa->zpos != sb->zpos)
430 return sa->zpos - sb->zpos;
446 DRM_DEBUG_ATOMIC("[CRTC:%d:%s] calculating normalized zpos values\n",
465 DRM_DEBUG_ATOMIC("[PLANE:%d:%s] processing zpos value %d\n",
467 plane_state->zpos);
476 DRM_DEBUG_ATOMIC("[PLANE:%d:%s] normalized zpos value %d\n",
487 * drm_atomic_normalize_zpos - calculate normalized zpos values for all crtcs
491 * This function calculates normalized zpos value for all modified planes in
495 * it and calculates normalized zpos value for these planes. Planes are compared
496 * first by their zpos values, then by plane id (if zpos is equal). The plane
497 * with lowest zpos value is at the bottom. The &drm_plane_state.normalized_zpos
517 if (old_plane_state->zpos != new_plane_state->zpos) {