Lines Matching refs:aplane
73 struct ade_plane aplane[ADE_CH_NUM]; member
783 static void ade_update_channel(struct ade_plane *aplane, in ade_update_channel() argument
789 struct ade_hw_ctx *ctx = aplane->ctx; in ade_update_channel()
792 u32 ch = aplane->ch; in ade_update_channel()
816 static void ade_disable_channel(struct ade_plane *aplane) in ade_disable_channel() argument
818 struct ade_hw_ctx *ctx = aplane->ctx; in ade_disable_channel()
820 u32 ch = aplane->ch; in ade_disable_channel()
883 struct ade_plane *aplane = to_ade_plane(plane); in ade_plane_atomic_update() local
885 ade_update_channel(aplane, state->fb, state->crtc_x, state->crtc_y, in ade_plane_atomic_update()
894 struct ade_plane *aplane = to_ade_plane(plane); in ade_plane_atomic_disable() local
896 ade_disable_channel(aplane); in ade_plane_atomic_disable()
914 static int ade_plane_init(struct drm_device *dev, struct ade_plane *aplane, in ade_plane_init() argument
922 fmts_cnt = ade_get_channel_formats(aplane->ch, &fmts); in ade_plane_init()
926 ret = drm_universal_plane_init(dev, &aplane->base, 1, &ade_plane_funcs, in ade_plane_init()
929 DRM_ERROR("fail to init plane, ch=%d\n", aplane->ch); in ade_plane_init()
933 drm_plane_helper_add(&aplane->base, &ade_plane_helper_funcs); in ade_plane_init()
995 struct ade_plane *aplane; in ade_drm_init() local
1022 aplane = &ade->aplane[i]; in ade_drm_init()
1023 aplane->ch = i; in ade_drm_init()
1024 aplane->ctx = ctx; in ade_drm_init()
1028 ret = ade_plane_init(dev, aplane, type); in ade_drm_init()
1034 ret = ade_crtc_init(dev, &acrtc->base, &ade->aplane[PRIMARY_CH].base); in ade_drm_init()