Lines Matching defs:alpha
91 u32 alpha;
173 dtg->alpha = 255;
176 ((dtg->alpha << DEFAULT_FG_ALPHA_POS) & DEFAULT_FG_ALPHA_MASK);
280 bool dcss_dtg_global_alpha_changed(struct dcss_dtg *dtg, int ch_num, int alpha)
285 return alpha != dtg->alpha;
289 const struct drm_format_info *format, int alpha)
291 /* we care about alpha only when channel 0 is concerned */
296 * Use global alpha if pixel format does not have alpha channel or the
297 * user explicitly chose to use global alpha (i.e. alpha is not OPAQUE).
299 if (!format->has_alpha || alpha != 255)
300 dtg->alpha_cfg = (alpha << DEFAULT_FG_ALPHA_POS) & DEFAULT_FG_ALPHA_MASK;
301 else /* use per-pixel alpha otherwise */
304 dtg->alpha = alpha;