Lines Matching refs:crtc

48 nv50_crc_verify_source(struct drm_crtc *crtc, const char *source_name,  in nv50_crc_verify_source()  argument
51 struct nouveau_drm *drm = nouveau_drm(crtc->dev); in nv50_crc_verify_source()
63 const char *const *nv50_crc_get_sources(struct drm_crtc *crtc, size_t *count) in nv50_crc_get_sources() argument
86 struct drm_crtc *crtc = &head->base.base; in nv50_crc_ctx_flip_work() local
87 struct drm_device *dev = crtc->dev; in nv50_crc_ctx_flip_work()
89 const uint64_t start_vbl = drm_crtc_vblank_count(crtc); in nv50_crc_ctx_flip_work()
98 drm_dbg_kms(dev, "Lock contended, delaying CRC ctx flip for %s\n", crtc->name); in nv50_crc_ctx_flip_work()
104 crtc->name, crc->ctx_idx, new_idx); in nv50_crc_ctx_flip_work()
110 end_vbl = drm_crtc_vblank_count(crtc); in nv50_crc_ctx_flip_work()
114 crtc->name, end_vbl, start_vbl); in nv50_crc_ctx_flip_work()
131 struct drm_crtc *crtc = &head->base.base; in nv50_crc_get_entries() local
146 drm_crtc_add_crc_entry(crtc, true, crc->frame, &output_crc); in nv50_crc_get_entries()
154 struct drm_crtc *crtc = &head->base.base; in nv50_crc_handle_vblank() local
209 drm_crtc_vblank_count(crtc) in nv50_crc_handle_vblank()
241 struct drm_crtc *crtc; in nv50_crc_atomic_stop_reporting() local
244 for_each_new_crtc_in_state(state, crtc, crtc_state, i) { in nv50_crc_atomic_stop_reporting()
245 struct nv50_head *head = nv50_head(crtc); in nv50_crc_atomic_stop_reporting()
256 drm_crtc_vblank_put(crtc); in nv50_crc_atomic_stop_reporting()
259 NV_ATOMIC(nouveau_drm(crtc->dev), in nv50_crc_atomic_stop_reporting()
273 struct drm_crtc *crtc; in nv50_crc_atomic_init_notifier_contexts() local
276 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_init_notifier_contexts()
277 struct nv50_head *head = nv50_head(crtc); in nv50_crc_atomic_init_notifier_contexts()
297 struct drm_crtc *crtc; in nv50_crc_atomic_release_notifier_contexts() local
300 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_release_notifier_contexts()
301 struct nv50_head *head = nv50_head(crtc); in nv50_crc_atomic_release_notifier_contexts()
320 struct drm_crtc *crtc; in nv50_crc_atomic_start_reporting() local
323 for_each_new_crtc_in_state(state, crtc, crtc_state, i) { in nv50_crc_atomic_start_reporting()
324 struct nv50_head *head = nv50_head(crtc); in nv50_crc_atomic_start_reporting()
332 drm_crtc_vblank_get(crtc); in nv50_crc_atomic_start_reporting()
335 vbl_count = drm_crtc_vblank_count(crtc); in nv50_crc_atomic_start_reporting()
343 NV_ATOMIC(nouveau_drm(crtc->dev), in nv50_crc_atomic_start_reporting()
381 struct drm_crtc *crtc; in nv50_crc_atomic_check_outp() local
388 for_each_oldnew_crtc_in_state(&atom->state, crtc, old_crtc_state, in nv50_crc_atomic_check_outp()
451 struct drm_crtc *crtc = &head->base.base; in nv50_crc_atomic_set() local
452 struct drm_device *dev = crtc->dev; in nv50_crc_atomic_set()
538 int nv50_crc_set_source(struct drm_crtc *crtc, const char *source_str) in nv50_crc_set_source() argument
540 struct drm_device *dev = crtc->dev; in nv50_crc_set_source()
543 struct nv50_head *head = nv50_head(crtc); in nv50_crc_set_source()
629 struct drm_crtc *crtc = &head->base.base; in nv50_crc_debugfs_flip_threshold_get() local
633 ret = drm_modeset_lock_single_interruptible(&crtc->mutex); in nv50_crc_debugfs_flip_threshold_get()
639 drm_modeset_unlock(&crtc->mutex); in nv50_crc_debugfs_flip_threshold_get()
658 struct drm_crtc *crtc = &head->base.base; in nv50_crc_debugfs_flip_threshold_set() local
659 struct nouveau_drm *drm = nouveau_drm(crtc->dev); in nv50_crc_debugfs_flip_threshold_set()
662 nv50_disp(crtc->dev)->core->func->crc; in nv50_crc_debugfs_flip_threshold_set()
676 ret = drm_modeset_lock_single_interruptible(&crtc->mutex); in nv50_crc_debugfs_flip_threshold_set()
680 armh = nv50_head_atom(crtc->state); in nv50_crc_debugfs_flip_threshold_set()
693 drm_modeset_unlock(&crtc->mutex); in nv50_crc_debugfs_flip_threshold_set()
707 struct drm_crtc *crtc = &head->base.base; in nv50_head_crc_late_register() local
709 nv50_disp(crtc->dev)->core->func->crc; in nv50_head_crc_late_register()
712 if (!func || !crtc->debugfs_entry) in nv50_head_crc_late_register()
715 root = debugfs_create_dir("nv_crc", crtc->debugfs_entry); in nv50_head_crc_late_register()
737 struct drm_crtc *crtc; in nv50_crc_init() local
743 drm_for_each_crtc(crtc, dev) in nv50_crc_init()
744 nv50_crc_init_head(disp, func, nv50_head(crtc)); in nv50_crc_init()