Lines Matching defs:zpos

134  * zpos:
330 * drm_plane_create_zpos_property - create mutable zpos property
332 * @zpos: initial value of zpos property
333 * @min: minimal possible value of zpos property
334 * @max: maximal possible value of zpos property
336 * This function initializes generic mutable zpos property and enables support
339 * Drivers that attach a mutable zpos property to any plane should call the
341 * &drm_mode_config_funcs.atomic_check(), which will update the normalized zpos
345 * If zpos of some planes cannot be changed (like fixed background or
347 * planes immutable zpos property with lower or higher values (for more
349 * case driver should also assign proper initial zpos values for all planes in
354 * The property exposed to userspace is called "zpos".
360 unsigned int zpos,
365 prop = drm_property_create_range(plane->dev, 0, "zpos", min, max);
369 drm_object_attach_property(&plane->base, prop, zpos);
374 plane->state->zpos = zpos;
375 plane->state->normalized_zpos = zpos;
383 * drm_plane_create_zpos_immutable_property - create immuttable zpos property
385 * @zpos: value of zpos property
387 * This function initializes generic immutable zpos property and enables
391 * order. For mutable zpos see drm_plane_create_zpos_property().
393 * The property exposed to userspace is called "zpos".
399 unsigned int zpos)
404 "zpos", zpos, zpos);
408 drm_object_attach_property(&plane->base, prop, zpos);
413 plane->state->zpos = zpos;
414 plane->state->normalized_zpos = zpos;
426 if (sa->zpos != sb->zpos)
427 return sa->zpos - sb->zpos;
443 DRM_DEBUG_ATOMIC("[CRTC:%d:%s] calculating normalized zpos values\n",
462 DRM_DEBUG_ATOMIC("[PLANE:%d:%s] processing zpos value %d\n",
464 plane_state->zpos);
473 DRM_DEBUG_ATOMIC("[PLANE:%d:%s] normalized zpos value %d\n",
484 * drm_atomic_normalize_zpos - calculate normalized zpos values for all crtcs
488 * This function calculates normalized zpos value for all modified planes in
492 * it and calculates normalized zpos value for these planes. Planes are compared
493 * first by their zpos values, then by plane id (if zpos is equal). The plane
494 * with lowest zpos value is at the bottom. The &drm_plane_state.normalized_zpos
514 if (old_plane_state->zpos != new_plane_state->zpos) {