Lines Matching defs:key
159 struct drm_intel_sprite_colorkey *key)
168 if (key->flags & I915_SET_COLORKEY_DESTINATION)
171 I915_WRITE(SPKEYMINVAL(pipe, plane), key->min_value);
172 I915_WRITE(SPKEYMAXVAL(pipe, plane), key->max_value);
173 I915_WRITE(SPKEYMSK(pipe, plane), key->channel_mask);
177 if (key->flags & I915_SET_COLORKEY_SOURCE)
188 struct drm_intel_sprite_colorkey *key)
197 key->min_value = I915_READ(SPKEYMINVAL(pipe, plane));
198 key->max_value = I915_READ(SPKEYMAXVAL(pipe, plane));
199 key->channel_mask = I915_READ(SPKEYMSK(pipe, plane));
203 key->flags = I915_SET_COLORKEY_SOURCE;
205 key->flags = I915_SET_COLORKEY_NONE;
347 struct drm_intel_sprite_colorkey *key)
357 I915_WRITE(SPRKEYVAL(intel_plane->pipe), key->min_value);
358 I915_WRITE(SPRKEYMAX(intel_plane->pipe), key->max_value);
359 I915_WRITE(SPRKEYMSK(intel_plane->pipe), key->channel_mask);
363 if (key->flags & I915_SET_COLORKEY_DESTINATION)
365 else if (key->flags & I915_SET_COLORKEY_SOURCE)
375 ivb_get_colorkey(struct drm_plane *plane, struct drm_intel_sprite_colorkey *key)
384 key->min_value = I915_READ(SPRKEYVAL(intel_plane->pipe));
385 key->max_value = I915_READ(SPRKEYMAX(intel_plane->pipe));
386 key->channel_mask = I915_READ(SPRKEYMSK(intel_plane->pipe));
387 key->flags = 0;
392 key->flags = I915_SET_COLORKEY_DESTINATION;
394 key->flags = I915_SET_COLORKEY_SOURCE;
396 key->flags = I915_SET_COLORKEY_NONE;
536 struct drm_intel_sprite_colorkey *key)
546 I915_WRITE(DVSKEYVAL(intel_plane->pipe), key->min_value);
547 I915_WRITE(DVSKEYMAX(intel_plane->pipe), key->max_value);
548 I915_WRITE(DVSKEYMSK(intel_plane->pipe), key->channel_mask);
552 if (key->flags & I915_SET_COLORKEY_DESTINATION)
554 else if (key->flags & I915_SET_COLORKEY_SOURCE)
564 ilk_get_colorkey(struct drm_plane *plane, struct drm_intel_sprite_colorkey *key)
573 key->min_value = I915_READ(DVSKEYVAL(intel_plane->pipe));
574 key->max_value = I915_READ(DVSKEYMAX(intel_plane->pipe));
575 key->channel_mask = I915_READ(DVSKEYMSK(intel_plane->pipe));
576 key->flags = 0;
581 key->flags = I915_SET_COLORKEY_DESTINATION;
583 key->flags = I915_SET_COLORKEY_SOURCE;
585 key->flags = I915_SET_COLORKEY_NONE;