Lines Matching refs:blend
211 struct zynqmp_disp_blend blend; member
656 static void zynqmp_disp_blend_write(struct zynqmp_disp_blend *blend, in zynqmp_disp_blend_write() argument
659 writel(val, blend->base + reg); in zynqmp_disp_blend_write()
710 static void zynqmp_disp_blend_set_output_format(struct zynqmp_disp_blend *blend, in zynqmp_disp_blend_set_output_format() argument
726 zynqmp_disp_blend_write(blend, ZYNQMP_DISP_V_BLEND_OUTPUT_VID_FMT, fmt); in zynqmp_disp_blend_set_output_format()
736 zynqmp_disp_blend_write(blend, in zynqmp_disp_blend_set_output_format()
741 zynqmp_disp_blend_write(blend, in zynqmp_disp_blend_set_output_format()
757 static void zynqmp_disp_blend_set_bg_color(struct zynqmp_disp_blend *blend, in zynqmp_disp_blend_set_bg_color() argument
760 zynqmp_disp_blend_write(blend, ZYNQMP_DISP_V_BLEND_BG_CLR_0, rcr); in zynqmp_disp_blend_set_bg_color()
761 zynqmp_disp_blend_write(blend, ZYNQMP_DISP_V_BLEND_BG_CLR_1, gy); in zynqmp_disp_blend_set_bg_color()
762 zynqmp_disp_blend_write(blend, ZYNQMP_DISP_V_BLEND_BG_CLR_2, bcb); in zynqmp_disp_blend_set_bg_color()
771 static void zynqmp_disp_blend_set_global_alpha(struct zynqmp_disp_blend *blend, in zynqmp_disp_blend_set_global_alpha() argument
774 zynqmp_disp_blend_write(blend, ZYNQMP_DISP_V_BLEND_SET_GLOBAL_ALPHA, in zynqmp_disp_blend_set_global_alpha()
790 static void zynqmp_disp_blend_layer_set_csc(struct zynqmp_disp_blend *blend, in zynqmp_disp_blend_layer_set_csc() argument
817 zynqmp_disp_blend_write(blend, reg + 0, coeffs[i + swap[0]]); in zynqmp_disp_blend_layer_set_csc()
818 zynqmp_disp_blend_write(blend, reg + 4, coeffs[i + swap[1]]); in zynqmp_disp_blend_layer_set_csc()
819 zynqmp_disp_blend_write(blend, reg + 8, coeffs[i + swap[2]]); in zynqmp_disp_blend_layer_set_csc()
828 zynqmp_disp_blend_write(blend, reg + i * 4, offsets[i]); in zynqmp_disp_blend_layer_set_csc()
836 static void zynqmp_disp_blend_layer_enable(struct zynqmp_disp_blend *blend, in zynqmp_disp_blend_layer_enable() argument
848 zynqmp_disp_blend_write(blend, in zynqmp_disp_blend_layer_enable()
860 zynqmp_disp_blend_layer_set_csc(blend, layer, coeffs, offsets); in zynqmp_disp_blend_layer_enable()
868 static void zynqmp_disp_blend_layer_disable(struct zynqmp_disp_blend *blend, in zynqmp_disp_blend_layer_disable() argument
871 zynqmp_disp_blend_write(blend, in zynqmp_disp_blend_layer_disable()
875 zynqmp_disp_blend_layer_set_csc(blend, layer, csc_zero_matrix, in zynqmp_disp_blend_layer_disable()
1031 zynqmp_disp_blend_layer_enable(&layer->disp->blend, layer); in zynqmp_disp_layer_enable()
1051 zynqmp_disp_blend_layer_disable(&layer->disp->blend, layer); in zynqmp_disp_layer_disable()
1461 zynqmp_disp_blend_set_output_format(&disp->blend, in zynqmp_disp_crtc_atomic_enable()
1463 zynqmp_disp_blend_set_bg_color(&disp->blend, 0, 0, 0); in zynqmp_disp_crtc_atomic_enable()
1464 zynqmp_disp_blend_set_global_alpha(&disp->blend, false, 0); in zynqmp_disp_crtc_atomic_enable()
1643 disp->blend.base = devm_ioremap_resource(disp->dev, res); in zynqmp_disp_probe()
1644 if (IS_ERR(disp->blend.base)) in zynqmp_disp_probe()
1645 return PTR_ERR(disp->blend.base); in zynqmp_disp_probe()