Lines Matching refs:crtc

415 	return nouveau_encoder(encoder)->crtc;  in nv50_display_crtc_get()
510 nv50_display_crtc_sema(struct drm_device *dev, int crtc) in nv50_display_crtc_sema() argument
532 nv50_display_flip_stop(struct drm_crtc *crtc) in nv50_display_flip_stop() argument
534 struct nvif_device *device = &nouveau_drm(crtc->dev)->device; in nv50_display_flip_stop()
536 .disp = nv50_disp(crtc->dev), in nv50_display_flip_stop()
537 .chan = nv50_sync(crtc), in nv50_display_flip_stop()
561 nv50_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb, in nv50_display_flip_next() argument
565 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_display_flip_next()
566 struct nv50_head *head = nv50_head(crtc); in nv50_display_flip_next()
567 struct nv50_sync *sync = nv50_sync(crtc); in nv50_display_flip_next()
571 if (crtc->primary->fb->width != fb->width || in nv50_display_flip_next()
572 crtc->primary->fb->height != fb->height) in nv50_display_flip_next()
579 evo_sync(crtc->dev); in nv50_display_flip_next()
745 struct drm_crtc *crtc = &nv_crtc->base; in nv50_crtc_set_scale() local
839 nv50_display_flip_stop(crtc); in nv50_crtc_set_scale()
840 nv50_display_flip_next(crtc, crtc->primary->fb, in nv50_crtc_set_scale()
1017 nv50_crtc_dpms(struct drm_crtc *crtc, int mode) in nv50_crtc_dpms() argument
1022 nv50_crtc_prepare(struct drm_crtc *crtc) in nv50_crtc_prepare() argument
1024 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_crtc_prepare()
1025 struct nv50_mast *mast = nv50_mast(crtc->dev); in nv50_crtc_prepare()
1028 nv50_display_flip_stop(crtc); in nv50_crtc_prepare()
1061 nv50_crtc_commit(struct drm_crtc *crtc) in nv50_crtc_commit() argument
1063 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_crtc_commit()
1064 struct nv50_mast *mast = nv50_mast(crtc->dev); in nv50_crtc_commit()
1102 nv50_display_flip_next(crtc, crtc->primary->fb, NULL, 1); in nv50_crtc_commit()
1106 nv50_crtc_mode_fixup(struct drm_crtc *crtc, const struct drm_display_mode *mode, in nv50_crtc_mode_fixup() argument
1114 nv50_crtc_swap_fbs(struct drm_crtc *crtc, struct drm_framebuffer *old_fb) in nv50_crtc_swap_fbs() argument
1116 struct nouveau_framebuffer *nvfb = nouveau_framebuffer(crtc->primary->fb); in nv50_crtc_swap_fbs()
1117 struct nv50_head *head = nv50_head(crtc); in nv50_crtc_swap_fbs()
1131 nv50_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *umode, in nv50_crtc_mode_set() argument
1135 struct nv50_mast *mast = nv50_mast(crtc->dev); in nv50_crtc_mode_set()
1136 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_crtc_mode_set()
1170 ret = nv50_crtc_swap_fbs(crtc, old_fb); in nv50_crtc_mode_set()
1223 nv50_crtc_set_image(nv_crtc, crtc->primary->fb, x, y, false); in nv50_crtc_mode_set()
1228 nv50_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y, in nv50_crtc_mode_set_base() argument
1231 struct nouveau_drm *drm = nouveau_drm(crtc->dev); in nv50_crtc_mode_set_base()
1232 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_crtc_mode_set_base()
1235 if (!crtc->primary->fb) { in nv50_crtc_mode_set_base()
1240 ret = nv50_crtc_swap_fbs(crtc, old_fb); in nv50_crtc_mode_set_base()
1244 nv50_display_flip_stop(crtc); in nv50_crtc_mode_set_base()
1245 nv50_crtc_set_image(nv_crtc, crtc->primary->fb, x, y, true); in nv50_crtc_mode_set_base()
1246 nv50_display_flip_next(crtc, crtc->primary->fb, NULL, 1); in nv50_crtc_mode_set_base()
1251 nv50_crtc_mode_set_base_atomic(struct drm_crtc *crtc, in nv50_crtc_mode_set_base_atomic() argument
1255 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_crtc_mode_set_base_atomic()
1256 nv50_display_flip_stop(crtc); in nv50_crtc_mode_set_base_atomic()
1262 nv50_crtc_lut_load(struct drm_crtc *crtc) in nv50_crtc_lut_load() argument
1264 struct nv50_disp *disp = nv50_disp(crtc->dev); in nv50_crtc_lut_load()
1265 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_crtc_lut_load()
1287 nv50_crtc_disable(struct drm_crtc *crtc) in nv50_crtc_disable() argument
1289 struct nv50_head *head = nv50_head(crtc); in nv50_crtc_disable()
1290 evo_sync(crtc->dev); in nv50_crtc_disable()
1297 nv50_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv, in nv50_crtc_cursor_set() argument
1300 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_crtc_cursor_set()
1301 struct drm_device *dev = crtc->dev; in nv50_crtc_cursor_set()
1330 nv50_crtc_cursor_move(struct drm_crtc *crtc, int x, int y) in nv50_crtc_cursor_move() argument
1332 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_crtc_cursor_move()
1333 struct nv50_curs *curs = nv50_curs(crtc); in nv50_crtc_cursor_move()
1344 nv50_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, in nv50_crtc_gamma_set() argument
1347 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_crtc_gamma_set()
1357 nv50_crtc_lut_load(crtc); in nv50_crtc_gamma_set()
1369 nv50_crtc_destroy(struct drm_crtc *crtc) in nv50_crtc_destroy() argument
1371 struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); in nv50_crtc_destroy()
1372 struct nv50_disp *disp = nv50_disp(crtc->dev); in nv50_crtc_destroy()
1373 struct nv50_head *head = nv50_head(crtc); in nv50_crtc_destroy()
1402 drm_crtc_cleanup(crtc); in nv50_crtc_destroy()
1403 kfree(crtc); in nv50_crtc_destroy()
1434 struct drm_crtc *crtc; in nv50_crtc_create() local
1454 crtc = &head->base.base; in nv50_crtc_create()
1455 drm_crtc_init(dev, crtc, &nv50_crtc_func); in nv50_crtc_create()
1456 drm_crtc_helper_add(crtc, &nv50_crtc_hfunc); in nv50_crtc_create()
1457 drm_mode_crtc_set_gamma_size(crtc, 256); in nv50_crtc_create()
1501 nv50_crtc_destroy(crtc); in nv50_crtc_create()
1578 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_dac_mode_set()
1618 nv_encoder->crtc = encoder->crtc; in nv50_dac_mode_set()
1629 if (nv_encoder->crtc) { in nv50_dac_disconnect()
1630 nv50_crtc_prepare(nv_encoder->crtc); in nv50_dac_disconnect()
1645 nv_encoder->crtc = NULL; in nv50_dac_disconnect()
1734 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_audio_mode_set()
1788 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_hdmi_mode_set()
1914 struct nouveau_crtc *nv_crtc = nouveau_crtc(nv_encoder->crtc); in nv50_sor_disconnect()
1917 nv_encoder->crtc = NULL; in nv50_sor_disconnect()
1937 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_sor_mode_set()
1959 nv_encoder->crtc = encoder->crtc; in nv50_sor_mode_set()
2181 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); in nv50_pior_mode_set()
2222 nv_encoder->crtc = encoder->crtc; in nv50_pior_mode_set()
2233 if (nv_encoder->crtc) { in nv50_pior_disconnect()
2234 nv50_crtc_prepare(nv_encoder->crtc); in nv50_pior_disconnect()
2246 nv_encoder->crtc = NULL; in nv50_pior_disconnect()
2345 struct drm_crtc *crtc; in nv50_fbdma_init() local
2382 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv50_fbdma_init()
2383 struct nv50_head *head = nv50_head(crtc); in nv50_fbdma_init()
2464 struct drm_crtc *crtc; in nv50_display_init() local
2471 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in nv50_display_init()
2472 struct nv50_sync *sync = nv50_sync(crtc); in nv50_display_init()
2474 nv50_crtc_lut_load(crtc); in nv50_display_init()