/drivers/gpu/drm/tegra/ |
D | plane.c | 273 unsigned int *alpha) in tegra_plane_format_get_alpha() argument 276 *alpha = opaque; in tegra_plane_format_get_alpha() 282 *alpha = WIN_COLOR_DEPTH_B5G5R5A1; in tegra_plane_format_get_alpha() 286 *alpha = WIN_COLOR_DEPTH_A1B5G5R5; in tegra_plane_format_get_alpha() 290 *alpha = WIN_COLOR_DEPTH_R8G8B8A8; in tegra_plane_format_get_alpha() 294 *alpha = WIN_COLOR_DEPTH_B8G8R8A8; in tegra_plane_format_get_alpha() 298 *alpha = opaque; in tegra_plane_format_get_alpha() 404 state->blending[index].alpha = true; in tegra_plane_update_transparency() 406 state->blending[index].alpha = false; in tegra_plane_update_transparency()
|
/drivers/gpu/drm/fsl-dcu/ |
D | fsl_dcu_drm_plane.c | 83 unsigned int alpha = DCU_LAYER_AB_NONE, bpp; in fsl_dcu_drm_plane_atomic_update() local 103 alpha = DCU_LAYER_AB_WHOLE_FRAME; in fsl_dcu_drm_plane_atomic_update() 109 alpha = DCU_LAYER_AB_WHOLE_FRAME; in fsl_dcu_drm_plane_atomic_update() 115 alpha = DCU_LAYER_AB_WHOLE_FRAME; in fsl_dcu_drm_plane_atomic_update() 139 alpha); in fsl_dcu_drm_plane_atomic_update()
|
/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | ctxgp102.c | 44 const u32 alpha = grctx->alpha_nr; in gp102_grctx_generate_attrib() local 65 mmio_wr32(info, 0x40585c, alpha); in gp102_grctx_generate_attrib() 66 mmio_wr32(info, 0x4064c4, ((alpha / 4) << 16) | max_batches); in gp102_grctx_generate_attrib() 70 const u32 as = alpha * gr->ppc_tpc_nr[gpc][ppc]; in gp102_grctx_generate_attrib()
|
D | ctxgf108.c | 740 const u32 alpha = grctx->alpha_nr; in gf108_grctx_generate_attrib() local 753 mmio_wr32(info, 0x405830, (beta << 16) | alpha); in gf108_grctx_generate_attrib() 754 mmio_wr32(info, 0x4064c4, ((alpha / 4) << 16) | max_batches); in gf108_grctx_generate_attrib() 758 const u32 a = alpha; in gf108_grctx_generate_attrib()
|
D | ctxgp100.c | 49 const u32 alpha = grctx->alpha_nr; in gp100_grctx_generate_attrib() local 69 mmio_wr32(info, 0x40585c, alpha); in gp100_grctx_generate_attrib() 70 mmio_wr32(info, 0x4064c4, ((alpha / 4) << 16) | max_batches); in gp100_grctx_generate_attrib() 74 const u32 as = alpha * gr->ppc_tpc_nr[gpc][ppc]; in gp100_grctx_generate_attrib()
|
D | ctxgf117.c | 248 const u32 alpha = grctx->alpha_nr; in gf117_grctx_generate_attrib() local 261 mmio_wr32(info, 0x405830, (beta << 16) | alpha); in gf117_grctx_generate_attrib() 262 mmio_wr32(info, 0x4064c4, ((alpha / 4) << 16) | max_batches); in gf117_grctx_generate_attrib() 266 const u32 a = alpha * gr->ppc_tpc_nr[gpc][ppc]; in gf117_grctx_generate_attrib()
|
D | ctxgm107.c | 913 const u32 alpha = grctx->alpha_nr; in gm107_grctx_generate_attrib() local 926 mmio_wr32(info, 0x405830, (attrib << 16) | alpha); in gm107_grctx_generate_attrib() 927 mmio_wr32(info, 0x4064c4, ((alpha / 4) << 16) | max_batches); in gm107_grctx_generate_attrib() 931 const u32 as = alpha * gr->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib()
|
D | ctxgv100.c | 66 const u32 alpha = grctx->alpha_nr; in gv100_grctx_generate_attrib() local 86 mmio_wr32(info, 0x40585c, alpha); in gv100_grctx_generate_attrib() 87 mmio_wr32(info, 0x4064c4, ((alpha / 4) << 16) | max_batches); in gv100_grctx_generate_attrib() 91 const u32 as = alpha * gr->ppc_tpc_nr[gpc][ppc]; in gv100_grctx_generate_attrib()
|
D | ctxgk104.c | 938 bool alpha = atarget < btarget; in gk104_grctx_generate_alpha_beta_tables() local 946 if (alpha) { in gk104_grctx_generate_alpha_beta_tables() 965 alpha = !alpha; in gk104_grctx_generate_alpha_beta_tables()
|
/drivers/video/fbdev/mbx/ |
D | mbxfb.c | 512 static int mbxfb_ioctl_alphactl(struct mbxfb_alphaCtl *alpha) in mbxfb_ioctl_alphactl() argument 517 vbbase = Vbbase_Glalpha(alpha->overlay_global_alpha) | in mbxfb_ioctl_alphactl() 518 Vbbase_Colkey(alpha->overlay_colorkey); in mbxfb_ioctl_alphactl() 520 gbbase = Gbbase_Glalpha(alpha->graphics_global_alpha) | in mbxfb_ioctl_alphactl() 521 Gbbase_Colkey(alpha->graphics_colorkey); in mbxfb_ioctl_alphactl() 525 vcmsk |= Vcmsk_colkey_m(alpha->overlay_colorkey_mask); in mbxfb_ioctl_alphactl() 529 gdrctrl |= Gdrctrl_Colkeym(alpha->graphics_colorkey_mask); in mbxfb_ioctl_alphactl() 537 switch (alpha->overlay_colorkey_mode) { in mbxfb_ioctl_alphactl() 550 switch (alpha->overlay_blend_mode) { in mbxfb_ioctl_alphactl() 564 switch (alpha->graphics_colorkey_mode) { in mbxfb_ioctl_alphactl() [all …]
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | overlay-sysfs.c | 242 u8 alpha; in overlay_global_alpha_store() local 248 r = kstrtou8(buf, 0, &alpha); in overlay_global_alpha_store() 254 info.global_alpha = alpha; in overlay_global_alpha_store() 284 u8 alpha; in overlay_pre_mult_alpha_store() local 290 r = kstrtou8(buf, 0, &alpha); in overlay_pre_mult_alpha_store() 296 info.pre_mult_alpha = alpha; in overlay_pre_mult_alpha_store()
|
/drivers/media/platform/vsp1/ |
D | vsp1_rpf.c | 155 (fmtinfo->alpha ? VI6_RPF_ALPH_SEL_ASEL_PACKED in rpf_configure_stream() 161 if (fmtinfo->alpha) { in rpf_configure_stream() 234 rpf->alpha << VI6_RPF_VRTCOL_SET_LAYA_SHIFT); in rpf_configure_frame() 236 (rpf->alpha << VI6_RPF_MULT_ALPHA_RATIO_SHIFT)); in rpf_configure_frame() 238 vsp1_pipeline_propagate_alpha(pipe, dlb, rpf->alpha); in rpf_configure_frame()
|
D | vsp1_pipe.h | 47 bool alpha; member 165 unsigned int alpha);
|
/drivers/media/platform/vicodec/ |
D | codec-v4l2-fwht.c | 103 rf->alpha = NULL; in prepare_raw_frame() 114 rf->alpha = NULL; in prepare_raw_frame() 189 rf->alpha = rf->luma; in prepare_raw_frame() 198 rf->alpha = rf->cr + 1; in prepare_raw_frame() 206 rf->alpha = rf->luma; in prepare_raw_frame() 217 rf->alpha = rf->luma + 3; in prepare_raw_frame()
|
/drivers/media/common/v4l2-tpg/ |
D | v4l2-tpg-core.c | 1101 u8 alpha = tpg->alpha_component; in gen_twopix() local 1107 alpha = 0; in gen_twopix() 1277 alpha = 0; in gen_twopix() 1282 buf[0][offset + 1] = (alpha & 0xf0) | r_y_h; in gen_twopix() 1285 alpha = 0; in gen_twopix() 1288 buf[0][offset] = (b_v << 4) | (alpha >> 4); in gen_twopix() 1292 alpha = 0; in gen_twopix() 1296 buf[0][offset + 1] = (alpha & 0xf0) | b_v; in gen_twopix() 1299 alpha = 0; in gen_twopix() 1302 buf[0][offset] = (r_y_h << 4) | (alpha >> 4); in gen_twopix() [all …]
|
/drivers/gpu/drm/exynos/ |
D | exynos5433_drm_decon.c | 263 unsigned int alpha, unsigned int pixel_alpha) in decon_win_set_bldeq() argument 276 if (alpha != DRM_BLEND_ALPHA_OPAQUE) { in decon_win_set_bldeq() 289 unsigned int alpha, unsigned int pixel_alpha) in decon_win_set_bldmod() argument 291 u32 win_alpha = alpha >> 8; in decon_win_set_bldmod() 307 if (alpha != DRM_BLEND_ALPHA_OPAQUE) { in decon_win_set_bldmod() 323 unsigned int alpha = state->base.alpha; in decon_win_set_pixfmt() local 376 decon_win_set_bldmod(ctx, win, alpha, pixel_alpha); in decon_win_set_pixfmt() 377 decon_win_set_bldeq(ctx, win, alpha, pixel_alpha); in decon_win_set_pixfmt()
|
D | exynos_drm_fimd.c | 570 unsigned int alpha, unsigned int pixel_alpha) in fimd_win_set_bldeq() argument 583 if (alpha != DRM_BLEND_ALPHA_OPAQUE) { in fimd_win_set_bldeq() 596 unsigned int alpha, unsigned int pixel_alpha) in fimd_win_set_bldmod() argument 598 u32 win_alpha_l = (alpha >> 8) & 0xf; in fimd_win_set_bldmod() 599 u32 win_alpha_h = alpha >> 12; in fimd_win_set_bldmod() 643 unsigned int alpha = state->base.alpha; in fimd_win_set_pixfmt() local 706 fimd_win_set_bldmod(ctx, win, alpha, pixel_alpha); in fimd_win_set_pixfmt() 707 fimd_win_set_bldeq(ctx, win, alpha, pixel_alpha); in fimd_win_set_pixfmt()
|
D | exynos_mixer.c | 311 unsigned int pixel_alpha, unsigned int alpha) in mixer_cfg_gfx_blend() argument 313 u32 win_alpha = alpha >> 8; in mixer_cfg_gfx_blend() 330 if (alpha != DRM_BLEND_ALPHA_OPAQUE) { in mixer_cfg_gfx_blend() 338 static void mixer_cfg_vp_blend(struct mixer_context *ctx, unsigned int alpha) in mixer_cfg_vp_blend() argument 340 u32 win_alpha = alpha >> 8; in mixer_cfg_vp_blend() 343 if (alpha != DRM_BLEND_ALPHA_OPAQUE) { in mixer_cfg_vp_blend() 589 mixer_cfg_vp_blend(ctx, state->base.alpha); in vp_video_buffer() 677 mixer_cfg_gfx_blend(ctx, win, pixel_alpha, state->base.alpha); in mixer_graph_buffer()
|
/drivers/media/platform/rcar-vin/ |
D | rcar-vin.h | 221 unsigned int alpha; member 275 void rvin_set_alpha(struct rvin_dev *vin, unsigned int alpha);
|
D | rcar-dma.c | 739 dmr = (vin->alpha ? VNDMR_ABIT : 0) | VNDMR_DTMD_ARGB; in rvin_setup() 742 dmr = VNDMR_A8BIT(vin->alpha) | VNDMR_EXRGB | VNDMR_DTMD_ARGB; in rvin_setup() 1358 void rvin_set_alpha(struct rvin_dev *vin, unsigned int alpha) in rvin_set_alpha() argument 1365 vin->alpha = alpha; in rvin_set_alpha() 1373 if (vin->alpha) in rvin_set_alpha() 1378 dmr |= VNDMR_A8BIT(vin->alpha); in rvin_set_alpha()
|
/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_formats.c | 33 #define INTERLEAVED_RGB_FMT(fmt, a, r, g, b, e0, e1, e2, e3, uc, alpha, \ argument 38 .alpha_enable = alpha, \ 53 alpha, bp, flg, fm, np, th) \ argument 57 .alpha_enable = alpha, \ 73 alpha, chroma, count, bp, flg, fm, np) \ argument 77 .alpha_enable = alpha, \ 166 #define PLANAR_YUV_FMT(fmt, a, r, g, b, e0, e1, e2, alpha, chroma, bp, \ argument 171 .alpha_enable = alpha, \
|
/drivers/gpu/drm/shmobile/ |
D | shmob_drm_plane.c | 24 unsigned int alpha; member 67 format = LDBBSIFR_EN | (splane->alpha << LDBBSIFR_LAY_SHIFT); in __shmob_drm_plane_setup() 252 splane->alpha = 255; in shmob_drm_plane_create()
|
/drivers/gpu/drm/msm/disp/ |
D | mdp_format.c | 63 #define FMT(name, a, r, g, b, e0, e1, e2, e3, alpha, tight, c, cnt, fp, cs, yuv) { \ argument 70 .alpha_enable = alpha, \
|
/drivers/clk/qcom/ |
D | clk-alpha-pll.c | 214 regmap_write(regmap, PLL_ALPHA_VAL(pll), config->alpha); in clk_alpha_pll_configure() 657 u32 l, alpha = 0, ctl, alpha_m, alpha_n; in alpha_pll_huayra_recalc_rate() local 663 regmap_read(pll->clkr.regmap, PLL_ALPHA_VAL(pll), &alpha); in alpha_pll_huayra_recalc_rate() 682 return alpha_huayra_pll_calc_rate(rate, l, alpha); in alpha_pll_huayra_recalc_rate() 684 alpha_m = alpha >> PLL_HUAYRA_M_SHIFT & PLL_HUAYRA_M_MASK; in alpha_pll_huayra_recalc_rate() 685 alpha_n = alpha >> PLL_HUAYRA_N_SHIFT & PLL_HUAYRA_N_MASK; in alpha_pll_huayra_recalc_rate() 703 return alpha_huayra_pll_calc_rate(rate, l, alpha); in alpha_pll_huayra_recalc_rate() 1020 if (config->alpha) in clk_fabia_pll_configure() 1021 regmap_write(regmap, PLL_FRAC(pll), config->alpha); in clk_fabia_pll_configure()
|
/drivers/gpu/drm/i915/gvt/ |
D | fb_decoder.c | 112 static int skl_format_to_drm(int format, bool rgb_order, bool alpha, in skl_format_to_drm() argument 126 skl_pixel_formats_index = alpha ? 6 : 7; in skl_format_to_drm() 128 skl_pixel_formats_index = alpha ? 8 : 9; in skl_format_to_drm()
|