Lines Matching refs:crtc

85 	struct drm_crtc *crtc = m->private;  in crc_control_show()  local
87 if (crtc->funcs->get_crc_sources) { in crc_control_show()
89 const char *const *sources = crtc->funcs->get_crc_sources(crtc, in crc_control_show()
98 if (!crtc->funcs->verify_crc_source(crtc, sources[i], in crc_control_show()
100 if (strcmp(sources[i], crtc->crc.source)) in crc_control_show()
109 seq_printf(m, "%s*\n", crtc->crc.source); in crc_control_show()
115 struct drm_crtc *crtc = inode->i_private; in crc_control_open() local
117 return single_open(file, crc_control_show, crtc); in crc_control_open()
124 struct drm_crtc *crtc = m->private; in crc_control_write() local
125 struct drm_crtc_crc *crc = &crtc->crc; in crc_control_write()
146 ret = crtc->funcs->verify_crc_source(crtc, source, &values_cnt); in crc_control_write()
197 struct drm_crtc *crtc = inode->i_private; in crtc_crc_open() local
198 struct drm_crtc_crc *crc = &crtc->crc; in crtc_crc_open()
203 if (drm_drv_uses_atomic_modeset(crtc->dev)) { in crtc_crc_open()
204 ret = drm_modeset_lock_single_interruptible(&crtc->mutex); in crtc_crc_open()
208 if (!crtc->state->active) in crtc_crc_open()
210 drm_modeset_unlock(&crtc->mutex); in crtc_crc_open()
216 ret = crtc->funcs->verify_crc_source(crtc, crc->source, &values_cnt); in crtc_crc_open()
245 ret = crtc->funcs->set_crc_source(crtc, crc->source); in crtc_crc_open()
260 struct drm_crtc *crtc = filep->f_inode->i_private; in crtc_crc_release() local
261 struct drm_crtc_crc *crc = &crtc->crc; in crtc_crc_release()
268 crtc->funcs->set_crc_source(crtc, NULL); in crtc_crc_release()
287 struct drm_crtc *crtc = filep->f_inode->i_private; in crtc_crc_read() local
288 struct drm_crtc_crc *crc = &crtc->crc; in crtc_crc_read()
346 struct drm_crtc *crtc = file->f_inode->i_private; in crtc_crc_poll() local
347 struct drm_crtc_crc *crc = &crtc->crc; in crtc_crc_poll()
368 void drm_debugfs_crtc_crc_add(struct drm_crtc *crtc) in drm_debugfs_crtc_crc_add() argument
372 if (!crtc->funcs->set_crc_source || !crtc->funcs->verify_crc_source) in drm_debugfs_crtc_crc_add()
375 crc_ent = debugfs_create_dir("crc", crtc->debugfs_entry); in drm_debugfs_crtc_crc_add()
377 debugfs_create_file("control", S_IRUGO | S_IWUSR, crc_ent, crtc, in drm_debugfs_crtc_crc_add()
379 debugfs_create_file("data", S_IRUGO, crc_ent, crtc, in drm_debugfs_crtc_crc_add()
393 int drm_crtc_add_crc_entry(struct drm_crtc *crtc, bool has_frame, in drm_crtc_add_crc_entry() argument
396 struct drm_crtc_crc *crc = &crtc->crc; in drm_crtc_add_crc_entry()