• Home
  • Raw
  • Download

Lines Matching refs:arcpgu

30 	struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc);  in arc_pgu_set_pxl_fmt()  local
45 reg_ctrl = arc_pgu_read(arcpgu, ARCPGU_REG_CTRL); in arc_pgu_set_pxl_fmt()
50 arc_pgu_write(arcpgu, ARCPGU_REG_CTRL, reg_ctrl); in arc_pgu_set_pxl_fmt()
65 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc); in arc_pgu_crtc_mode_valid() local
69 rate = clk_round_rate(arcpgu->clk, clk_rate); in arc_pgu_crtc_mode_valid()
78 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc); in arc_pgu_crtc_mode_set_nofb() local
82 arc_pgu_write(arcpgu, ARCPGU_REG_FMT, in arc_pgu_crtc_mode_set_nofb()
85 arc_pgu_write(arcpgu, ARCPGU_REG_HSYNC, in arc_pgu_crtc_mode_set_nofb()
89 arc_pgu_write(arcpgu, ARCPGU_REG_VSYNC, in arc_pgu_crtc_mode_set_nofb()
93 arc_pgu_write(arcpgu, ARCPGU_REG_ACTIVE, in arc_pgu_crtc_mode_set_nofb()
97 val = arc_pgu_read(arcpgu, ARCPGU_REG_CTRL); in arc_pgu_crtc_mode_set_nofb()
109 arc_pgu_write(arcpgu, ARCPGU_REG_CTRL, val); in arc_pgu_crtc_mode_set_nofb()
110 arc_pgu_write(arcpgu, ARCPGU_REG_STRIDE, 0); in arc_pgu_crtc_mode_set_nofb()
111 arc_pgu_write(arcpgu, ARCPGU_REG_START_SET, 1); in arc_pgu_crtc_mode_set_nofb()
115 clk_set_rate(arcpgu->clk, m->crtc_clock * 1000); in arc_pgu_crtc_mode_set_nofb()
121 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc); in arc_pgu_crtc_atomic_enable() local
123 clk_prepare_enable(arcpgu->clk); in arc_pgu_crtc_atomic_enable()
124 arc_pgu_write(arcpgu, ARCPGU_REG_CTRL, in arc_pgu_crtc_atomic_enable()
125 arc_pgu_read(arcpgu, ARCPGU_REG_CTRL) | in arc_pgu_crtc_atomic_enable()
132 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc); in arc_pgu_crtc_atomic_disable() local
134 clk_disable_unprepare(arcpgu->clk); in arc_pgu_crtc_atomic_disable()
135 arc_pgu_write(arcpgu, ARCPGU_REG_CTRL, in arc_pgu_crtc_atomic_disable()
136 arc_pgu_read(arcpgu, ARCPGU_REG_CTRL) & in arc_pgu_crtc_atomic_disable()
150 struct arcpgu_drm_private *arcpgu; in arc_pgu_plane_atomic_update() local
156 arcpgu = crtc_to_arcpgu_priv(plane->state->crtc); in arc_pgu_plane_atomic_update()
158 arc_pgu_write(arcpgu, ARCPGU_REG_BUF0_ADDR, gem->paddr); in arc_pgu_plane_atomic_update()
181 struct arcpgu_drm_private *arcpgu = drm->dev_private; in arc_pgu_plane_init() local
198 arcpgu->plane = plane; in arc_pgu_plane_init()
205 struct arcpgu_drm_private *arcpgu = drm->dev_private; in arc_pgu_setup_crtc() local
213 ret = drm_crtc_init_with_planes(drm, &arcpgu->crtc, primary, NULL, in arc_pgu_setup_crtc()
220 drm_crtc_helper_add(&arcpgu->crtc, &arc_pgu_crtc_helper_funcs); in arc_pgu_setup_crtc()