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.
340 * drm_plane_create_zpos_property - create mutable zpos property
342 * @zpos: initial value of zpos property
343 * @min: minimal possible value of zpos property
344 * @max: maximal possible value of zpos property
346 * This function initializes generic mutable zpos property and enables support
349 * Drivers that attach a mutable zpos property to any plane should call the
351 * &drm_mode_config_funcs.atomic_check(), which will update the normalized zpos
355 * If zpos of some planes cannot be changed (like fixed background or
357 * those planes immutable zpos properties with lower or higher values (for more
359 * case drivers shall also assign proper initial zpos values for all planes in
364 * The property exposed to userspace is called "zpos".
370 unsigned int zpos,
375 prop = drm_property_create_range(plane->dev, 0, "zpos", min, max);
379 drm_object_attach_property(&plane->base, prop, zpos);
384 plane->state->zpos = zpos;
385 plane->state->normalized_zpos = zpos;
393 * drm_plane_create_zpos_immutable_property - create immuttable zpos property
395 * @zpos: value of zpos property
397 * This function initializes generic immutable zpos property and enables
401 * order. For mutable zpos see drm_plane_create_zpos_property().
403 * The property exposed to userspace is called "zpos".
409 unsigned int zpos)
414 "zpos", zpos, zpos);
418 drm_object_attach_property(&plane->base, prop, zpos);
423 plane->state->zpos = zpos;
424 plane->state->normalized_zpos = zpos;
436 if (sa->zpos != sb->zpos)
437 return sa->zpos - sb->zpos;
453 drm_dbg_atomic(dev, "[CRTC:%d:%s] calculating normalized zpos values\n",
472 drm_dbg_atomic(dev, "[PLANE:%d:%s] processing zpos value %d\n",
473 plane->base.id, plane->name, plane_state->zpos);
482 drm_dbg_atomic(dev, "[PLANE:%d:%s] normalized zpos value %d\n",
493 * drm_atomic_normalize_zpos - calculate normalized zpos values for all crtcs
497 * This function calculates normalized zpos value for all modified planes in
501 * it and calculates normalized zpos value for these planes. Planes are compared
502 * first by their zpos values, then by plane id (if zpos is equal). The plane
503 * with lowest zpos value is at the bottom. The &drm_plane_state.normalized_zpos
523 if (old_plane_state->zpos != new_plane_state->zpos) {