Lines Matching refs:hdlcd

41 	struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc);  in hdlcd_crtc_cleanup()  local
44 hdlcd_write(hdlcd, HDLCD_REG_COMMAND, 0); in hdlcd_crtc_cleanup()
50 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_enable_vblank() local
51 unsigned int mask = hdlcd_read(hdlcd, HDLCD_REG_INT_MASK); in hdlcd_crtc_enable_vblank()
53 hdlcd_write(hdlcd, HDLCD_REG_INT_MASK, mask | HDLCD_INTERRUPT_VSYNC); in hdlcd_crtc_enable_vblank()
60 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_disable_vblank() local
61 unsigned int mask = hdlcd_read(hdlcd, HDLCD_REG_INT_MASK); in hdlcd_crtc_disable_vblank()
63 hdlcd_write(hdlcd, HDLCD_REG_INT_MASK, mask & ~HDLCD_INTERRUPT_VSYNC); in hdlcd_crtc_disable_vblank()
85 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_set_pxl_fmt() local
103 hdlcd_write(hdlcd, HDLCD_REG_PIXEL_FORMAT, (btpp - 1) << 3); in hdlcd_set_pxl_fmt()
115 hdlcd_write(hdlcd, HDLCD_REG_RED_SELECT, format->red.offset | in hdlcd_set_pxl_fmt()
120 hdlcd_write(hdlcd, HDLCD_REG_GREEN_SELECT, format->green.offset | in hdlcd_set_pxl_fmt()
122 hdlcd_write(hdlcd, HDLCD_REG_BLUE_SELECT, format->blue.offset | in hdlcd_set_pxl_fmt()
130 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_mode_set_nofb() local
150 hdlcd_write(hdlcd, HDLCD_REG_BUS_OPTIONS, in hdlcd_crtc_mode_set_nofb()
153 hdlcd_write(hdlcd, HDLCD_REG_V_DATA, m->crtc_vdisplay - 1); in hdlcd_crtc_mode_set_nofb()
154 hdlcd_write(hdlcd, HDLCD_REG_V_BACK_PORCH, vm.vback_porch - 1); in hdlcd_crtc_mode_set_nofb()
155 hdlcd_write(hdlcd, HDLCD_REG_V_FRONT_PORCH, vm.vfront_porch - 1); in hdlcd_crtc_mode_set_nofb()
156 hdlcd_write(hdlcd, HDLCD_REG_V_SYNC, vm.vsync_len - 1); in hdlcd_crtc_mode_set_nofb()
157 hdlcd_write(hdlcd, HDLCD_REG_H_DATA, m->crtc_hdisplay - 1); in hdlcd_crtc_mode_set_nofb()
158 hdlcd_write(hdlcd, HDLCD_REG_H_BACK_PORCH, vm.hback_porch - 1); in hdlcd_crtc_mode_set_nofb()
159 hdlcd_write(hdlcd, HDLCD_REG_H_FRONT_PORCH, vm.hfront_porch - 1); in hdlcd_crtc_mode_set_nofb()
160 hdlcd_write(hdlcd, HDLCD_REG_H_SYNC, vm.hsync_len - 1); in hdlcd_crtc_mode_set_nofb()
161 hdlcd_write(hdlcd, HDLCD_REG_POLARITIES, polarities); in hdlcd_crtc_mode_set_nofb()
167 clk_set_rate(hdlcd->clk, m->crtc_clock * 1000); in hdlcd_crtc_mode_set_nofb()
173 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_atomic_enable() local
175 clk_prepare_enable(hdlcd->clk); in hdlcd_crtc_atomic_enable()
177 hdlcd_write(hdlcd, HDLCD_REG_COMMAND, 1); in hdlcd_crtc_atomic_enable()
184 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_atomic_disable() local
187 hdlcd_write(hdlcd, HDLCD_REG_COMMAND, 0); in hdlcd_crtc_atomic_disable()
188 clk_disable_unprepare(hdlcd->clk); in hdlcd_crtc_atomic_disable()
194 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_mode_valid() local
197 rate = clk_round_rate(hdlcd->clk, clk_rate); in hdlcd_crtc_mode_valid()
268 struct hdlcd_drm_private *hdlcd; in hdlcd_plane_atomic_update() local
278 hdlcd = plane->dev->dev_private; in hdlcd_plane_atomic_update()
279 hdlcd_write(hdlcd, HDLCD_REG_FB_LINE_LENGTH, fb->pitches[0]); in hdlcd_plane_atomic_update()
280 hdlcd_write(hdlcd, HDLCD_REG_FB_LINE_PITCH, fb->pitches[0]); in hdlcd_plane_atomic_update()
281 hdlcd_write(hdlcd, HDLCD_REG_FB_LINE_COUNT, dest_h - 1); in hdlcd_plane_atomic_update()
282 hdlcd_write(hdlcd, HDLCD_REG_FB_BASE, scanout_start); in hdlcd_plane_atomic_update()
301 struct hdlcd_drm_private *hdlcd = drm->dev_private; in hdlcd_plane_init() local
321 hdlcd->plane = plane; in hdlcd_plane_init()
328 struct hdlcd_drm_private *hdlcd = drm->dev_private; in hdlcd_setup_crtc() local
336 ret = drm_crtc_init_with_planes(drm, &hdlcd->crtc, primary, NULL, in hdlcd_setup_crtc()
341 drm_crtc_helper_add(&hdlcd->crtc, &hdlcd_crtc_helper_funcs); in hdlcd_setup_crtc()