Lines Matching refs:hdlcd

40 	struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc);  in hdlcd_crtc_cleanup()  local
43 hdlcd_write(hdlcd, HDLCD_REG_COMMAND, 0); in hdlcd_crtc_cleanup()
49 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_enable_vblank() local
50 unsigned int mask = hdlcd_read(hdlcd, HDLCD_REG_INT_MASK); in hdlcd_crtc_enable_vblank()
52 hdlcd_write(hdlcd, HDLCD_REG_INT_MASK, mask | HDLCD_INTERRUPT_VSYNC); in hdlcd_crtc_enable_vblank()
59 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_disable_vblank() local
60 unsigned int mask = hdlcd_read(hdlcd, HDLCD_REG_INT_MASK); in hdlcd_crtc_disable_vblank()
62 hdlcd_write(hdlcd, HDLCD_REG_INT_MASK, mask & ~HDLCD_INTERRUPT_VSYNC); in hdlcd_crtc_disable_vblank()
84 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_set_pxl_fmt() local
102 hdlcd_write(hdlcd, HDLCD_REG_PIXEL_FORMAT, (btpp - 1) << 3); in hdlcd_set_pxl_fmt()
114 hdlcd_write(hdlcd, HDLCD_REG_RED_SELECT, format->red.offset | in hdlcd_set_pxl_fmt()
119 hdlcd_write(hdlcd, HDLCD_REG_GREEN_SELECT, format->green.offset | in hdlcd_set_pxl_fmt()
121 hdlcd_write(hdlcd, HDLCD_REG_BLUE_SELECT, format->blue.offset | in hdlcd_set_pxl_fmt()
129 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_mode_set_nofb() local
149 hdlcd_write(hdlcd, HDLCD_REG_BUS_OPTIONS, in hdlcd_crtc_mode_set_nofb()
152 hdlcd_write(hdlcd, HDLCD_REG_V_DATA, m->crtc_vdisplay - 1); in hdlcd_crtc_mode_set_nofb()
153 hdlcd_write(hdlcd, HDLCD_REG_V_BACK_PORCH, vm.vback_porch - 1); in hdlcd_crtc_mode_set_nofb()
154 hdlcd_write(hdlcd, HDLCD_REG_V_FRONT_PORCH, vm.vfront_porch - 1); in hdlcd_crtc_mode_set_nofb()
155 hdlcd_write(hdlcd, HDLCD_REG_V_SYNC, vm.vsync_len - 1); in hdlcd_crtc_mode_set_nofb()
156 hdlcd_write(hdlcd, HDLCD_REG_H_DATA, m->crtc_hdisplay - 1); in hdlcd_crtc_mode_set_nofb()
157 hdlcd_write(hdlcd, HDLCD_REG_H_BACK_PORCH, vm.hback_porch - 1); in hdlcd_crtc_mode_set_nofb()
158 hdlcd_write(hdlcd, HDLCD_REG_H_FRONT_PORCH, vm.hfront_porch - 1); in hdlcd_crtc_mode_set_nofb()
159 hdlcd_write(hdlcd, HDLCD_REG_H_SYNC, vm.hsync_len - 1); in hdlcd_crtc_mode_set_nofb()
160 hdlcd_write(hdlcd, HDLCD_REG_POLARITIES, polarities); in hdlcd_crtc_mode_set_nofb()
166 clk_set_rate(hdlcd->clk, m->crtc_clock * 1000); in hdlcd_crtc_mode_set_nofb()
172 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_atomic_enable() local
174 clk_prepare_enable(hdlcd->clk); in hdlcd_crtc_atomic_enable()
176 hdlcd_write(hdlcd, HDLCD_REG_COMMAND, 1); in hdlcd_crtc_atomic_enable()
183 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_atomic_disable() local
186 hdlcd_write(hdlcd, HDLCD_REG_COMMAND, 0); in hdlcd_crtc_atomic_disable()
187 clk_disable_unprepare(hdlcd->clk); in hdlcd_crtc_atomic_disable()
193 struct hdlcd_drm_private *hdlcd = crtc_to_hdlcd_priv(crtc); in hdlcd_crtc_mode_valid() local
196 rate = clk_round_rate(hdlcd->clk, clk_rate); in hdlcd_crtc_mode_valid()
267 struct hdlcd_drm_private *hdlcd; in hdlcd_plane_atomic_update() local
277 hdlcd = drm_to_hdlcd_priv(plane->dev); in hdlcd_plane_atomic_update()
278 hdlcd_write(hdlcd, HDLCD_REG_FB_LINE_LENGTH, fb->pitches[0]); in hdlcd_plane_atomic_update()
279 hdlcd_write(hdlcd, HDLCD_REG_FB_LINE_PITCH, fb->pitches[0]); in hdlcd_plane_atomic_update()
280 hdlcd_write(hdlcd, HDLCD_REG_FB_LINE_COUNT, dest_h - 1); in hdlcd_plane_atomic_update()
281 hdlcd_write(hdlcd, HDLCD_REG_FB_BASE, scanout_start); in hdlcd_plane_atomic_update()
299 struct hdlcd_drm_private *hdlcd = drm_to_hdlcd_priv(drm); in hdlcd_plane_init() local
314 hdlcd->plane = plane; in hdlcd_plane_init()
321 struct hdlcd_drm_private *hdlcd = drm_to_hdlcd_priv(drm); in hdlcd_setup_crtc() local
329 ret = drm_crtc_init_with_planes(drm, &hdlcd->crtc, primary, NULL, in hdlcd_setup_crtc()
334 drm_crtc_helper_add(&hdlcd->crtc, &hdlcd_crtc_helper_funcs); in hdlcd_setup_crtc()