Lines Matching refs:crtc
21 static void bochs_crtc_dpms(struct drm_crtc *crtc, int mode) in bochs_crtc_dpms() argument
33 static bool bochs_crtc_mode_fixup(struct drm_crtc *crtc, in bochs_crtc_mode_fixup() argument
40 static int bochs_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y, in bochs_crtc_mode_set_base() argument
44 container_of(crtc, struct bochs_device, crtc); in bochs_crtc_mode_set_base()
62 if (WARN_ON(crtc->primary->fb == NULL)) in bochs_crtc_mode_set_base()
65 bochs_fb = to_bochs_framebuffer(crtc->primary->fb); in bochs_crtc_mode_set_base()
82 static int bochs_crtc_mode_set(struct drm_crtc *crtc, in bochs_crtc_mode_set() argument
88 container_of(crtc, struct bochs_device, crtc); in bochs_crtc_mode_set()
91 bochs_crtc_mode_set_base(crtc, x, y, old_fb); in bochs_crtc_mode_set()
95 static void bochs_crtc_prepare(struct drm_crtc *crtc) in bochs_crtc_prepare() argument
99 static void bochs_crtc_commit(struct drm_crtc *crtc) in bochs_crtc_commit() argument
103 static void bochs_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, in bochs_crtc_gamma_set() argument
108 static int bochs_crtc_page_flip(struct drm_crtc *crtc, in bochs_crtc_page_flip() argument
114 container_of(crtc, struct bochs_device, crtc); in bochs_crtc_page_flip()
115 struct drm_framebuffer *old_fb = crtc->primary->fb; in bochs_crtc_page_flip()
118 crtc->primary->fb = fb; in bochs_crtc_page_flip()
119 bochs_crtc_mode_set_base(crtc, 0, 0, old_fb); in bochs_crtc_page_flip()
148 struct drm_crtc *crtc = &bochs->crtc; in bochs_crtc_init() local
150 drm_crtc_init(dev, crtc, &bochs_crtc_funcs); in bochs_crtc_init()
151 drm_mode_crtc_set_gamma_size(crtc, 256); in bochs_crtc_init()
152 drm_crtc_helper_add(crtc, &bochs_helper_funcs); in bochs_crtc_init()