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